* commit '89d4131d75cc4c89e3fb36115be929837c9a3171': Don't kill apps that are multi-user aware...
This commit is contained in:
@@ -5126,6 +5126,11 @@ public class AudioService extends IAudioService.Stub {
|
|||||||
if (UserHandle.getAppId(pkg.applicationInfo.uid) < FIRST_APPLICATION_UID) {
|
if (UserHandle.getAppId(pkg.applicationInfo.uid) < FIRST_APPLICATION_UID) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// Skip packages that have permission to interact across users
|
||||||
|
if (pm.checkPermission(Manifest.permission.INTERACT_ACROSS_USERS, pkg.packageName)
|
||||||
|
== PackageManager.PERMISSION_GRANTED) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (homeActivityName != null
|
if (homeActivityName != null
|
||||||
&& pkg.packageName.equals(homeActivityName.getPackageName())
|
&& pkg.packageName.equals(homeActivityName.getPackageName())
|
||||||
&& pkg.applicationInfo.isSystemApp()) {
|
&& pkg.applicationInfo.isSystemApp()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user