Loading packages/PackageInstaller/src/com/android/packageinstaller/v2/model/UninstallRepository.kt +11 −8 Original line number Diff line number Diff line Loading @@ -144,8 +144,10 @@ class UninstallRepository(private val context: Context) { if (uninstalledUser == null) { uninstalledUser = Process.myUserHandle() } else { val profiles = userManager!!.userProfiles if (!profiles.contains(uninstalledUser)) { if (uninstalledUser!! != Process.myUserHandle()) { val isCurrentUserProfileOwner = Process.myUserHandle() == userManager!!.getProfileParent(uninstalledUser!!) if (!isCurrentUserProfileOwner) { Log.e( LOG_TAG, "User " + Process.myUserHandle() + " can't request uninstall " + Loading @@ -154,6 +156,7 @@ class UninstallRepository(private val context: Context) { return UninstallAborted(UninstallAborted.ABORT_REASON_USER_NOT_ALLOWED) } } } callback = intent.getParcelableExtra( PackageInstaller.EXTRA_CALLBACK, PackageManager.UninstallCompleteCallback::class.java Loading Loading
packages/PackageInstaller/src/com/android/packageinstaller/v2/model/UninstallRepository.kt +11 −8 Original line number Diff line number Diff line Loading @@ -144,8 +144,10 @@ class UninstallRepository(private val context: Context) { if (uninstalledUser == null) { uninstalledUser = Process.myUserHandle() } else { val profiles = userManager!!.userProfiles if (!profiles.contains(uninstalledUser)) { if (uninstalledUser!! != Process.myUserHandle()) { val isCurrentUserProfileOwner = Process.myUserHandle() == userManager!!.getProfileParent(uninstalledUser!!) if (!isCurrentUserProfileOwner) { Log.e( LOG_TAG, "User " + Process.myUserHandle() + " can't request uninstall " + Loading @@ -154,6 +156,7 @@ class UninstallRepository(private val context: Context) { return UninstallAborted(UninstallAborted.ABORT_REASON_USER_NOT_ALLOWED) } } } callback = intent.getParcelableExtra( PackageInstaller.EXTRA_CALLBACK, PackageManager.UninstallCompleteCallback::class.java Loading