Loading src/com/android/settings/DeviceAdminAdd.java +30 −26 Original line number Diff line number Diff line Loading @@ -116,7 +116,10 @@ public class DeviceAdminAdd extends Activity { return; } // Make sure the given component name is actually a valid device admin. // When activating, make sure the given component name is actually a valid device admin. // No need to check this when deactivating, because it is safe to deactivate an active // invalid device admin. if (!mDPM.isAdminActive(cn)) { List<ResolveInfo> avail = getPackageManager().queryBroadcastReceivers( new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED), 0); Loading Loading @@ -145,6 +148,7 @@ public class DeviceAdminAdd extends Activity { finish(); return; } } ResolveInfo ri = new ResolveInfo(); ri.activityInfo = ai; Loading Loading
src/com/android/settings/DeviceAdminAdd.java +30 −26 Original line number Diff line number Diff line Loading @@ -116,7 +116,10 @@ public class DeviceAdminAdd extends Activity { return; } // Make sure the given component name is actually a valid device admin. // When activating, make sure the given component name is actually a valid device admin. // No need to check this when deactivating, because it is safe to deactivate an active // invalid device admin. if (!mDPM.isAdminActive(cn)) { List<ResolveInfo> avail = getPackageManager().queryBroadcastReceivers( new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_ENABLED), 0); Loading Loading @@ -145,6 +148,7 @@ public class DeviceAdminAdd extends Activity { finish(); return; } } ResolveInfo ri = new ResolveInfo(); ri.activityInfo = ai; Loading