From 5ab024333065c60620867e58eaa27f27dfa85752 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 27 Jun 2017 11:01:36 -0600 Subject: Only require that system UIDs tag their sockets. Apps with a normal UID are typically isolated enough to not require socket tagging; we're mostly interested in tracking down internal UIDs that have lots of code sharing the same UID. Also fix up everyone doing manual string checks of Build.TYPE, since we now have first-class fields for those. Bug: 38126076 Test: builds, boots Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd --- packages/Shell/src/com/android/shell/BugreportWarningActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/Shell/src') diff --git a/packages/Shell/src/com/android/shell/BugreportWarningActivity.java b/packages/Shell/src/com/android/shell/BugreportWarningActivity.java index bdf41714d26c..2191d939e591 100644 --- a/packages/Shell/src/com/android/shell/BugreportWarningActivity.java +++ b/packages/Shell/src/com/android/shell/BugreportWarningActivity.java @@ -64,7 +64,7 @@ public class BugreportWarningActivity extends AlertActivity final int state = getWarningState(this, STATE_UNKNOWN); final boolean checked; - if (Build.TYPE.equals("user")) { + if (Build.IS_USER) { checked = state == STATE_HIDE; // Only checks if specifically set to. } else { checked = state != STATE_SHOW; // Checks by default. -- cgit v1.2.3-59-g8ed1b