diff options
author | Amith Yamasani <yamasani@google.com> | 2014-06-08 17:54:27 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2014-09-10 17:15:06 -0700 |
commit | 8cd28b57ed732656d002d97879e15c5695b54fff (patch) | |
tree | 33f02a0e243e5c3d8889862c26af5accc0e4e98b /services/usage/java/com | |
parent | da6e6c888f81d3bd19ff1f3cf9b081b7f9b2a013 (diff) | |
download | frameworks_base-8cd28b57ed732656d002d97879e15c5695b54fff.zip frameworks_base-8cd28b57ed732656d002d97879e15c5695b54fff.tar.gz frameworks_base-8cd28b57ed732656d002d97879e15c5695b54fff.tar.bz2 |
Apply cross-user restrictions to Shell
Even though Shell user is allowed to perform cross-user actions,
lock that path down if the target user has restrictions imposed by
the profile owner device admin that prevents access via adb.
If the profile owner has imposed DISALLOW_DEBUGGING_FEATURES, don't
allow the shell user to make the following types of calls:
start activities, make service calls, access content providers,
send broadcasts, block/unblock packages, clear user data, etc.
Bug: 15086577
Change-Id: I9669fc165953076f786ed51cbc17d20d6fa995c3
Diffstat (limited to 'services/usage/java/com')
-rw-r--r-- | services/usage/java/com/android/server/usage/UsageStatsService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/usage/java/com/android/server/usage/UsageStatsService.java b/services/usage/java/com/android/server/usage/UsageStatsService.java index 2dcdcc4..92117c3 100644 --- a/services/usage/java/com/android/server/usage/UsageStatsService.java +++ b/services/usage/java/com/android/server/usage/UsageStatsService.java @@ -33,6 +33,7 @@ import android.content.pm.ParceledListSlice; import android.content.pm.UserInfo; import android.content.res.Configuration; import android.os.Binder; +import android.os.Debug; import android.os.Environment; import android.os.Handler; import android.os.Looper; |