Skip to content
Permalink
Browse files

Development Settings: Show on all build types

Some users may need to change the build type with something like
Magisk so that certain apps work and this causes Developer Options
to disappear.

Change-Id: Icfeeba5cbe4fb8d475fa1c01469d606fafca44b2
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
  • Loading branch information...
nathanchance authored and Mazda-- committed May 21, 2017
1 parent cf62c30 commit 5a647d96432abcb1276fab695600c5233e88b8d3
@@ -2326,7 +2326,7 @@ private boolean isShowingDeveloperOptions(Context context) {
return context.getSharedPreferences(DevelopmentSettings.PREF_FILE,
Context.MODE_PRIVATE).getBoolean(
DevelopmentSettings.PREF_SHOW,
android.os.Build.TYPE.equals("eng"));
true);
}

@Override
@@ -1149,7 +1149,7 @@ private void doUpdateTilesList() {
pm.hasSystemFeature(PackageManager.FEATURE_PRINTING), isAdmin, pm);

final boolean showDev = mDevelopmentPreferences.getBoolean(
DevelopmentSettings.PREF_SHOW, android.os.Build.TYPE.equals("eng") || android.os.Build.TYPE.equals("userdebug"))
DevelopmentSettings.PREF_SHOW, true)
&& !um.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES);
setTileEnabled(new ComponentName(packageName,
Settings.DevelopmentSettingsActivity.class.getName()),

0 comments on commit 5a647d9

Please sign in to comment.
You can’t perform that action at this time.