commit | 3acee411ada3d93435cccd71130c49617d6471a2 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Jan 30 20:44:52 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Jan 30 20:44:52 2019 +0000 |
tree | acbb8bdec5db5fcb1556a52da03ba870c2071dbd | |
parent | c889a862b5045e085ed720ccf55b3cf80bd929a9 [diff] | |
parent | b763593eae24b1789bebb50099e8f8b2f8ac06b5 [diff] |
Merge "Disallow background run for admin users in auto."
diff --git a/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java b/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java index 23186aa..d1ecf13 100644 --- a/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java +++ b/user/car-user-lib/src/android/car/userlib/CarUserManagerHelper.java
@@ -781,6 +781,9 @@ return null; } assignDefaultIcon(user); + + // Set disallow background run for admin users, users will be killed when switched away. + setUserRestriction(user, UserManager.DISALLOW_RUN_IN_BACKGROUND, /* enable= */ true); return user; }