DevelopmentSettings: Remove system update and other prefs
Moved to just disabling most of the controllers for android10 instead of deleting all the preferences. Change-Id: If4d73b6c5351d8f39fb672713dbe26ff9a225240 Signed-off-by: Jason Edson <jaysonedson@gmail.com> Signed-off-by: Joey Huab <joey@evolution-x.org> Signed-off-by: Dmitrii <bankersenator@gmail.com>
This commit is contained in:
@@ -143,21 +143,9 @@
|
||||
android:title="@string/color_temperature"
|
||||
android:summary="@string/color_temperature_desc" />
|
||||
|
||||
<!--<SwitchPreferenceCompat
|
||||
android:key="ota_disable_automatic_update"
|
||||
android:title="@string/ota_disable_automatic_update"
|
||||
android:summary="@string/ota_disable_automatic_update_summary" />-->
|
||||
|
||||
<Preference android:key="dsu_loader"
|
||||
android:title="@string/dsu_loader_title" />
|
||||
|
||||
<Preference
|
||||
android:key="demo_mode"
|
||||
android:title="@string/demo_mode">
|
||||
<intent android:action="com.android.settings.action.DEMO_MODE"
|
||||
android:targetPackage="com.android.systemui"/>
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="quick_settings_tiles"
|
||||
android:title="@string/quick_settings_developer_tiles"
|
||||
|
||||
@@ -49,8 +49,7 @@ public class AutomaticSystemServerHeapDumpPreferenceController extends
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return Build.IS_DEBUGGABLE && mIsConfigEnabled
|
||||
&& !mUserManager.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -49,8 +49,7 @@ public class BugReportHandlerPreferenceController extends DeveloperOptionsPrefer
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return !mUserManager.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)
|
||||
&& mBugReportHandlerUtil.isBugReportHandlerEnabled(mContext);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -815,7 +815,6 @@ public class DevelopmentSettingsDashboardFragment extends RestrictedDashboardFra
|
||||
controllers.add(new ShortcutManagerThrottlingPreferenceController(context));
|
||||
controllers.add(new EnableGnssRawMeasFullTrackingPreferenceController(context));
|
||||
controllers.add(new DefaultLaunchPreferenceController(context, "running_apps"));
|
||||
controllers.add(new DefaultLaunchPreferenceController(context, "demo_mode"));
|
||||
controllers.add(new DefaultLaunchPreferenceController(context, "quick_settings_tiles"));
|
||||
controllers.add(new DefaultLaunchPreferenceController(context, "feature_flags_dashboard"));
|
||||
controllers.add(new DefaultUsbConfigurationPreferenceController(context));
|
||||
|
||||
@@ -53,8 +53,7 @@ public class SystemServerHeapDumpPreferenceController extends DeveloperOptionsPr
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return Build.IS_DEBUGGABLE
|
||||
&& !mUserManager.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user