diff options
author | Dianne Hackborn <hackbod@google.com> | 2013-02-11 10:52:46 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2013-02-11 15:33:48 -0800 |
commit | 514074fae81028937eda29e782c92e8ea78d85d2 (patch) | |
tree | 063f29c329837834d3f60400899ea883322fa02e /data/etc | |
parent | de1fadfb7f70d464382e518c7f3390faf82f81f2 (diff) | |
download | frameworks_base-514074fae81028937eda29e782c92e8ea78d85d2.zip frameworks_base-514074fae81028937eda29e782c92e8ea78d85d2.tar.gz frameworks_base-514074fae81028937eda29e782c92e8ea78d85d2.tar.bz2 |
App ops: cleanup, handle root and shell, perms.
Rework how the shell user is defined so that it is
associated with an actual apk, instead of being a free
roaming uid with special permissions assigned to it.
This allows us to correctly account for its operations
in app ops.
Implement a special case for the root user in app ops --
it is always allowed, always with the package name "root".
Add various code to take care of cleaning up package state
from app ops -- when packages are uninstalled, and during
boot if any packages currently being stored no longer exist.
Also fix a bug in the activity manager to correctly grant
permissions in all cases when onNewIntent() is being called.
Change-Id: Iae9f6d793ee48b93518c984ad957e46ae4582581
Diffstat (limited to 'data/etc')
-rw-r--r-- | data/etc/platform.xml | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/data/etc/platform.xml b/data/etc/platform.xml index cf04b5c..d986c1e 100644 --- a/data/etc/platform.xml +++ b/data/etc/platform.xml @@ -122,71 +122,6 @@ others should have a fairly open environment in which to interact with the system. --> - <!-- Standard permissions granted to the shell. --> - <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" /> - <assign-permission name="android.permission.SEND_SMS" uid="shell" /> - <assign-permission name="android.permission.CALL_PHONE" uid="shell" /> - <assign-permission name="android.permission.READ_CONTACTS" uid="shell" /> - <assign-permission name="android.permission.WRITE_CONTACTS" uid="shell" /> - <assign-permission name="android.permission.READ_CALENDAR" uid="shell" /> - <assign-permission name="android.permission.WRITE_CALENDAR" uid="shell" /> - <assign-permission name="android.permission.READ_USER_DICTIONARY" uid="shell" /> - <assign-permission name="android.permission.WRITE_USER_DICTIONARY" uid="shell" /> - <assign-permission name="android.permission.ACCESS_FINE_LOCATION" uid="shell" /> - <assign-permission name="android.permission.ACCESS_COARSE_LOCATION" uid="shell" /> - <assign-permission name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" uid="shell" /> - <assign-permission name="android.permission.ACCESS_NETWORK_STATE" uid="shell" /> - <assign-permission name="android.permission.ACCESS_WIFI_STATE" uid="shell" /> - <assign-permission name="android.permission.BLUETOOTH" uid="shell" /> - <assign-permission name="android.permission.EXPAND_STATUS_BAR" uid="shell" /> - <!-- System tool permissions granted to the shell. --> - <assign-permission name="android.permission.GET_TASKS" uid="shell" /> - <assign-permission name="android.permission.CHANGE_CONFIGURATION" uid="shell" /> - <assign-permission name="android.permission.REORDER_TASKS" uid="shell" /> - <assign-permission name="android.permission.SET_ANIMATION_SCALE" uid="shell" /> - <assign-permission name="android.permission.SET_PREFERRED_APPLICATIONS" uid="shell" /> - <assign-permission name="android.permission.WRITE_SETTINGS" uid="shell" /> - <assign-permission name="android.permission.WRITE_SECURE_SETTINGS" uid="shell" /> - <assign-permission name="android.permission.BROADCAST_STICKY" uid="shell" /> - <!-- Development tool permissions granted to the shell. --> - <assign-permission name="android.permission.SET_DEBUG_APP" uid="shell" /> - <assign-permission name="android.permission.SET_PROCESS_LIMIT" uid="shell" /> - <assign-permission name="android.permission.SET_ALWAYS_FINISH" uid="shell" /> - <assign-permission name="android.permission.DUMP" uid="shell" /> - <assign-permission name="android.permission.SIGNAL_PERSISTENT_PROCESSES" uid="shell" /> - <assign-permission name="android.permission.KILL_BACKGROUND_PROCESSES" uid="shell" /> - <!-- Internal permissions granted to the shell. --> - <assign-permission name="android.permission.FORCE_BACK" uid="shell" /> - <assign-permission name="android.permission.BATTERY_STATS" uid="shell" /> - <assign-permission name="android.permission.INTERNAL_SYSTEM_WINDOW" uid="shell" /> - <assign-permission name="android.permission.INJECT_EVENTS" uid="shell" /> - <assign-permission name="android.permission.RETRIEVE_WINDOW_CONTENT" uid="shell" /> - <assign-permission name="android.permission.SET_ACTIVITY_WATCHER" uid="shell" /> - <assign-permission name="android.permission.READ_INPUT_STATE" uid="shell" /> - <assign-permission name="android.permission.SET_ORIENTATION" uid="shell" /> - <assign-permission name="android.permission.INSTALL_PACKAGES" uid="shell" /> - <assign-permission name="android.permission.CLEAR_APP_USER_DATA" uid="shell" /> - <assign-permission name="android.permission.DELETE_CACHE_FILES" uid="shell" /> - <assign-permission name="android.permission.DELETE_PACKAGES" uid="shell" /> - <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="shell" /> - <assign-permission name="android.permission.READ_FRAME_BUFFER" uid="shell" /> - <assign-permission name="android.permission.DEVICE_POWER" uid="shell" /> - <assign-permission name="android.permission.INSTALL_LOCATION_PROVIDER" uid="shell" /> - <assign-permission name="android.permission.BACKUP" uid="shell" /> - <assign-permission name="android.permission.FORCE_STOP_PACKAGES" uid="shell" /> - <assign-permission name="android.permission.STOP_APP_SWITCHES" uid="shell" /> - <assign-permission name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" uid="shell" /> - <assign-permission name="android.permission.GRANT_REVOKE_PERMISSIONS" uid="shell" /> - <assign-permission name="android.permission.SET_KEYBOARD_LAYOUT" uid="shell" /> - <assign-permission name="android.permission.GET_DETAILED_TASKS" uid="shell" /> - <assign-permission name="android.permission.SET_SCREEN_COMPATIBILITY" uid="shell" /> - <assign-permission name="android.permission.READ_EXTERNAL_STORAGE" uid="shell" /> - <assign-permission name="android.permission.WRITE_EXTERNAL_STORAGE" uid="shell" /> - <assign-permission name="android.permission.INTERACT_ACROSS_USERS" uid="shell" /> - <assign-permission name="android.permission.INTERACT_ACROSS_USERS_FULL" uid="shell" /> - <assign-permission name="android.permission.MANAGE_USERS" uid="shell" /> - <assign-permission name="android.permission.BLUETOOTH_STACK" uid="shell" /> - <assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" /> <assign-permission name="android.permission.ACCESS_DRM" uid="media" /> <assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" /> |