frameworks/base
Revision | e9c1ec70bd94e629031878afb29b62930020e2f8 (tree) |
---|---|
Time | 2020-01-08 08:03:55 |
Author | Jing Ji <jji@goog...> |
Commiter | Vasyl Gello |
Prevent system uid component from running in an isolated app process
Bug: 140055304
Test: Manua
Change-Id: Ie7f6ed23f0c6009aad0f67a00af119b02cdceac3
Merged-In: I5a1618fab529cb0300d4a8e9c7762ee218ca09eb
(cherry picked from commit 0bfebadf304bdd5f921e80f93de3e0d13b88b79c)
@@ -3635,7 +3635,8 @@ public final class ActivityManagerService extends ActivityManagerNative | ||
3635 | 3635 | final int procCount = procs.size(); |
3636 | 3636 | for (int i = 0; i < procCount; i++) { |
3637 | 3637 | final int procUid = procs.keyAt(i); |
3638 | - if (UserHandle.isApp(procUid) || !UserHandle.isSameUser(procUid, uid)) { | |
3638 | + if (UserHandle.isApp(procUid) || !UserHandle.isSameUser(procUid, uid) | |
3639 | + || UserHandle.isIsolated(procUid)) { | |
3639 | 3640 | // Don't use an app process or different user process for system component. |
3640 | 3641 | continue; |
3641 | 3642 | } |