Loading src/com/android/settings/deviceinfo/BuildNumberPreferenceController.java +11 −13 Original line number Diff line number Diff line Loading @@ -130,12 +130,11 @@ public class BuildNumberPreferenceController extends BasePreferenceController im } if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { if (mUm.isDemoUser()) { // Route to demo device owner to lift the debugging restriction. final ComponentName componentName = Utils.getDeviceOwnerComponent(mContext); if (componentName != null) { // Route to active device admin to lift the debugging restriction. if (mDebuggingFeaturesDisallowedAdmin != null && mDebuggingFeaturesDisallowedAdmin.component != null) { final Intent requestDebugFeatures = new Intent() .setPackage(componentName.getPackageName()) .setPackage(mDebuggingFeaturesDisallowedAdmin.component.getPackageName()) .setAction("com.android.settings.action.REQUEST_DEBUG_FEATURES"); final ResolveInfo resolveInfo = mContext.getPackageManager().resolveActivity( requestDebugFeatures, 0); Loading @@ -144,7 +143,6 @@ public class BuildNumberPreferenceController extends BasePreferenceController im return false; } } } if (mDebuggingFeaturesDisallowedAdmin != null && !mDebuggingFeaturesDisallowedBySystem) { RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, Loading Loading
src/com/android/settings/deviceinfo/BuildNumberPreferenceController.java +11 −13 Original line number Diff line number Diff line Loading @@ -130,12 +130,11 @@ public class BuildNumberPreferenceController extends BasePreferenceController im } if (mUm.hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES)) { if (mUm.isDemoUser()) { // Route to demo device owner to lift the debugging restriction. final ComponentName componentName = Utils.getDeviceOwnerComponent(mContext); if (componentName != null) { // Route to active device admin to lift the debugging restriction. if (mDebuggingFeaturesDisallowedAdmin != null && mDebuggingFeaturesDisallowedAdmin.component != null) { final Intent requestDebugFeatures = new Intent() .setPackage(componentName.getPackageName()) .setPackage(mDebuggingFeaturesDisallowedAdmin.component.getPackageName()) .setAction("com.android.settings.action.REQUEST_DEBUG_FEATURES"); final ResolveInfo resolveInfo = mContext.getPackageManager().resolveActivity( requestDebugFeatures, 0); Loading @@ -144,7 +143,6 @@ public class BuildNumberPreferenceController extends BasePreferenceController im return false; } } } if (mDebuggingFeaturesDisallowedAdmin != null && !mDebuggingFeaturesDisallowedBySystem) { RestrictedLockUtils.sendShowAdminSupportDetailsIntent(mContext, Loading