From 5f44aa798bdfdaf219e01447743ee2204a9de46b Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Wed, 15 Nov 2017 19:07:14 -0700 Subject: Workaround to get passed the broken install flow For fresh installs the PM does not set the app uid before invoking dexopt; so we would always get a bogus GID. This is a temporary workaround which fixes the GID of newly installed apps to an arbitrary UNKNOWN gid. Test: adb install Bug: 64548938 Bug: 69331247 (cherry picked from commit a73e165c2ea0bb6499b89dd335d6ef878c92b8e9) Change-Id: I6438ec8cfca88df813e166f9ef5821e62faf524a --- core/java/android/os/Process.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/java/android/os/Process.java') diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index b5d62e555edc..0874d93e8262 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -151,6 +151,9 @@ public class Process { */ public static final int OTA_UPDATE_UID = 1061; + /** {@hide} */ + public static final int NOBODY_UID = 9999; + /** * Defines the start of a range of UIDs (and GIDs), going from this * number to {@link #LAST_APPLICATION_UID} that are reserved for assigning -- cgit v1.2.3