From 07c5c6f7f02b0ed1b71647558fabdac15bbc8d24 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 21 Mar 2017 10:09:50 -0600 Subject: Allocate new UID for OTA update resource tracking. Recent changes to OTA updates started "blaming" network usage on the system UID, which makes it difficult to triage incoming bugreports that claim heavy network usage. Instead, this change gives OTA updates an explicit UID to make triage easier. Test: builds, boots Bug: 36130264 Change-Id: I541299f83def41cfebc010dd825093467f372e79 --- core/java/android/os/Process.java | 6 ++++++ 1 file changed, 6 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 d6688e3c00f7..f69c996c5368 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -139,6 +139,12 @@ public class Process { */ public static final int WEBVIEW_ZYGOTE_UID = 1051; + /** + * Defines the UID used for resource tracking for OTA updates. + * @hide + */ + public static final int OTA_UPDATE_UID = 1061; + /** * 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