diff options
author | Svet Ganov <svetoslavganov@google.com> | 2015-04-28 12:09:01 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2015-04-28 16:33:28 -0700 |
commit | f1377f506c764a8b254b60ee28e38e12ccc8135c (patch) | |
tree | 4de921366de5c41e50e466e6dfa5d12225c9a004 /include/binder | |
parent | 4afd8b67f9be307e6c6ed89deab2e85516bb3a0e (diff) | |
download | frameworks_native-f1377f506c764a8b254b60ee28e38e12ccc8135c.zip frameworks_native-f1377f506c764a8b254b60ee28e38e12ccc8135c.tar.gz frameworks_native-f1377f506c764a8b254b60ee28e38e12ccc8135c.tar.bz2 |
Respect the record audio app op - frameworks native
Change-Id: Id747767377953fd644a538aad3f603d6c50875a2
Diffstat (limited to 'include/binder')
-rw-r--r-- | include/binder/AppOpsManager.h | 26 | ||||
-rw-r--r-- | include/binder/IPermissionController.h | 11 |
2 files changed, 32 insertions, 5 deletions
diff --git a/include/binder/AppOpsManager.h b/include/binder/AppOpsManager.h index 256cb94..ea33952 100644 --- a/include/binder/AppOpsManager.h +++ b/include/binder/AppOpsManager.h @@ -63,7 +63,31 @@ public: OP_ACCESS_NOTIFICATIONS = 25, OP_CAMERA = 26, OP_RECORD_AUDIO = 27, - OP_PLAY_AUDIO = 28 + OP_PLAY_AUDIO = 28, + OP_READ_CLIPBOARD = 29, + OP_WRITE_CLIPBOARD = 30, + OP_TAKE_MEDIA_BUTTONS = 31, + OP_TAKE_AUDIO_FOCUS = 32, + OP_AUDIO_MASTER_VOLUME = 33, + OP_AUDIO_VOICE_VOLUME = 34, + OP_AUDIO_RING_VOLUME = 35, + OP_AUDIO_MEDIA_VOLUME = 36, + OP_AUDIO_ALARM_VOLUME = 37, + OP_AUDIO_NOTIFICATION_VOLUME = 38, + OP_AUDIO_BLUETOOTH_VOLUME = 39, + OP_WAKE_LOCK = 40, + OP_MONITOR_LOCATION = 41, + OP_MONITOR_HIGH_POWER_LOCATION = 42, + OP_GET_USAGE_STATS = 43, + OP_MUTE_MICROPHONE = 44, + OP_TOAST_WINDOW = 45, + OP_PROJECT_MEDIA = 46, + OP_ACTIVATE_VPN = 47, + OP_WRITE_WALLPAPER = 48, + OP_ASSIST_STRUCTURE = 49, + OP_ASSIST_SCREENSHOT = 50, + OP_READ_PHONE_STATE = 51, + OP_ADD_VOICEMAIL = 52 }; AppOpsManager(); diff --git a/include/binder/IPermissionController.h b/include/binder/IPermissionController.h index f9d371b..f3f0a92 100644 --- a/include/binder/IPermissionController.h +++ b/include/binder/IPermissionController.h @@ -19,6 +19,7 @@ #define ANDROID_IPERMISSION_CONTROLLER_H #include <binder/IInterface.h> +#include <stdlib.h> namespace android { @@ -29,11 +30,13 @@ class IPermissionController : public IInterface public: DECLARE_META_INTERFACE(PermissionController); - virtual bool checkPermission(const String16& permission, - int32_t pid, int32_t uid) = 0; - + virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) = 0; + + virtual void getPackagesForUid(const uid_t uid, Vector<String16> &packages) = 0; + enum { - CHECK_PERMISSION_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION + CHECK_PERMISSION_TRANSACTION = IBinder::FIRST_CALL_TRANSACTION, + GET_PACKAGES_FOR_UID_TRANSACTION = CHECK_PERMISSION_TRANSACTION + 1 }; }; |