summaryrefslogtreecommitdiff
path: root/core/java/android/os/Process.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-11-15 19:07:14 -0700
committerCalin Juravle <calin@google.com>2017-11-17 00:17:21 +0000
commit5f44aa798bdfdaf219e01447743ee2204a9de46b (patch)
tree41abfda2ce92706f18a884c7679d058a055252d7 /core/java/android/os/Process.java
parenta89f6150dc68b64ae0fe2466cad6afc6880f7cae (diff)
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
Diffstat (limited to 'core/java/android/os/Process.java')
-rw-r--r--core/java/android/os/Process.java3
1 files changed, 3 insertions, 0 deletions
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