summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Jeff Sharkey <jsharkey@android.com> 2017-06-27 11:01:36 -0600
committer Jeff Sharkey <jsharkey@android.com> 2017-06-27 11:11:06 -0600
commit5ab024333065c60620867e58eaa27f27dfa85752 (patch)
tree3fbc2b17d61db0a5866012c824e117d9f79a5ed7 /packages/Shell/src
parent27895365008e704c85dcf9c152625695fee6707c (diff)
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
Diffstat (limited to 'packages/Shell/src')
-rw-r--r--packages/Shell/src/com/android/shell/BugreportWarningActivity.java2
1 files changed, 1 insertions, 1 deletions
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.