Disable DevelopmentSettingsActivity by default
And if for any reason monkey user is able to enter develop option page, we show nothing. And update some test to sdk 26. Change-Id: I3f985e7fe14bd290db73b8c46dd817591df02015 Fixes: 68707778 Test: robotests
This commit is contained in:
@@ -825,7 +825,8 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
|| somethingChanged;
|
||||
|
||||
final boolean showDev = DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(this)
|
||||
&& !um.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES);
|
||||
&& !um.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)
|
||||
&& !Utils.isMonkeyRunning();
|
||||
|
||||
somethingChanged = setTileEnabled(new ComponentName(packageName,
|
||||
Settings.DevelopmentSettingsDashboardActivity.class.getName()),
|
||||
|
Reference in New Issue
Block a user