frameworks/base
Révision | 330d823c639537528f0e57a67ce2c82a99be0bde (tree) |
---|---|
l'heure | 2016-11-27 15:50:24 |
Auteur | Zhao Wei Liew <zhaoweiliew@gmai...> |
Commiter | Dan Pasanen |
Build: use UserHandle.isApp for M compatibility
Change-Id: Ie4511c547d9afe2697e1ac3519f41a9b19784f18
@@ -712,7 +712,7 @@ public class Build { | ||
712 | 712 | |
713 | 713 | /** @hide */ |
714 | 714 | public static void adjustBuildTypeIfNeeded() { |
715 | - if (Process.isApplicationUid(Process.myUid()) && !TextUtils.isEmpty(TYPE_FOR_APPS)) { | |
715 | + if (UserHandle.isApp(Process.myUid()) && !TextUtils.isEmpty(TYPE_FOR_APPS)) { | |
716 | 716 | try { |
717 | 717 | // This is sick. TYPE is final (which can't be changed because it's an API |
718 | 718 | // guarantee), but we have to reassign it. Resort to reflection to unset the |