Home
last modified time | relevance | path

Searched refs:AppOpsManager (Results 1 – 25 of 211) sorted by relevance

123456789

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java33 import android.app.AppOpsManager;
60 private AppOpsManager mAppOpsManager;
76 getContext().addMockSystemService(AppOpsManager.class, mAppOpsManager); in setUp()
96 new int[]{AppOpsManager.OP_RECORD_AUDIO, AppOpsManager.OP_FINE_LOCATION}, in addCallback_includedCode()
99 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_includedCode()
100 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
101 AppOpsManager.MODE_ALLOWED); in addCallback_includedCode()
103 verify(mCallback).onActiveStateChanged(AppOpsManager.OP_RECORD_AUDIO, in addCallback_includedCode()
109 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_notIncludedCode()
111 AppOpsManager.OP_RECORD_AUDIO, TEST_UID, TEST_PACKAGE_NAME, true); in addCallback_notIncludedCode()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsActiveWatcherTest.java30 import android.app.AppOpsManager;
31 import android.app.AppOpsManager.OnOpActiveChangedListener;
59 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchActiveOps()
60 appOpsManager.startWatchingActive(new int[] {AppOpsManager.OP_CAMERA, in testWatchActiveOps()
61 AppOpsManager.OP_RECORD_AUDIO}, listener); in testWatchActiveOps()
64 appOpsManager.startOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
68 .times(1)).onOpActiveChanged(eq(AppOpsManager.OP_CAMERA), in testWatchActiveOps()
78 assertThat(appOpsManager.isOperationActive(AppOpsManager.OP_CAMERA, in testWatchActiveOps()
82 appOpsManager.finishOp(AppOpsManager.OP_CAMERA); in testWatchActiveOps()
86 .times(1)).onOpActiveChanged(eq(AppOpsManager.OP_CAMERA), in testWatchActiveOps()
[all …]
DAppOpsNotedWatcherTest.java20 import android.app.AppOpsManager;
21 import android.app.AppOpsManager.OnOpNotedListener;
54 final AppOpsManager appOpsManager = getContext().getSystemService(AppOpsManager.class); in testWatchNotedOps()
55 appOpsManager.startWatchingNoted(new int[]{AppOpsManager.OP_FINE_LOCATION, in testWatchNotedOps()
56 AppOpsManager.OP_CAMERA}, listener); in testWatchNotedOps()
59 appOpsManager.noteOp(AppOpsManager.OP_FINE_LOCATION, Process.myUid(), in testWatchNotedOps()
61 appOpsManager.noteOp(AppOpsManager.OP_CAMERA, Process.myUid(), in testWatchNotedOps()
67 .times(1)).onOpNoted(eq(AppOpsManager.OP_FINE_LOCATION), in testWatchNotedOps()
69 eq(AppOpsManager.MODE_ALLOWED)); in testWatchNotedOps()
71 .times(1)).onOpNoted(eq(AppOpsManager.OP_CAMERA), in testWatchNotedOps()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java30 import android.app.AppOpsManager;
45 private AppOpsManager mAppOsMgr;
69 mAppOsMgr = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in setUp()
79 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOpNoThrow( in setUp()
80 eq(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS), anyInt(), eq(TAG)); in setUp()
129 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
130 eq(AppOpsManager.OPSTR_READ_PHONE_STATE), anyInt(), eq(TAG)); in testGetDeviceIdWithOutPermission()
150 doReturn(AppOpsManager.MODE_ALLOWED).when(mAppOsMgr).noteOp( in testGetDeviceIdWithOutPermission()
151 eq(AppOpsManager.OPSTR_READ_PHONE_STATE), anyInt(), eq(TAG)); in testGetDeviceIdWithOutPermission()
210 doReturn(AppOpsManager.MODE_ERRORED).when(mAppOsMgr).noteOp( in testGetNaiWithOutPermission()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java33 import android.app.AppOpsManager;
76 @Mock private AppOpsManager mMockAppOps;
189 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
212 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
256 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
278 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
301 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testLegacyForegroundAppWithOtherPermissionsDenied()
328 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED; in testLegacyAppHasLocationAndAllPermissions()
329 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testLegacyAppHasLocationAndAllPermissions()
375 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED; in testCannotAccessScanResults_LocationModeDisabled()
[all …]
/frameworks/native/libs/binder/
DAppOpsManager.cpp32 const int APP_OPS_MANAGER_UNAVAILABLE_MODE = AppOpsManager::MODE_ALLOWED;
34 const int APP_OPS_MANAGER_UNAVAILABLE_MODE = AppOpsManager::MODE_IGNORED;
52 AppOpsManager::AppOpsManager() in AppOpsManager() function in android::AppOpsManager
58 sp<IAppOpsService> AppOpsManager::getService() { return NULL; } in getService()
60 sp<IAppOpsService> AppOpsManager::getService() in getService()
88 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage) in checkOp()
96 int32_t AppOpsManager::checkAudioOpNoThrow(int32_t op, int32_t usage, int32_t uid, in checkAudioOpNoThrow()
104 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp()
111 int32_t AppOpsManager::startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage, in startOpNoThrow()
119 void AppOpsManager::finishOp(int32_t op, int32_t uid, const String16& callingPackage) { in finishOp()
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManager.aidl19 parcelable AppOpsManager.PackageOps;
20 parcelable AppOpsManager.OpEntry;
22 parcelable AppOpsManager.HistoricalOp;
23 parcelable AppOpsManager.HistoricalOps;
24 parcelable AppOpsManager.HistoricalPackageOps;
25 parcelable AppOpsManager.HistoricalUidOps;
DAppOpsManager.java79 public class AppOpsManager { class
481 public static final int OP_FLAGS_ALL_TRUSTED = AppOpsManager.OP_FLAG_SELF
482 | AppOpsManager.OP_FLAG_UNTRUSTED_PROXY
483 | AppOpsManager.OP_FLAG_TRUSTED_PROXIED;
1815 AppOpsManager.MODE_ALLOWED, // COARSE_LOCATION
1816 AppOpsManager.MODE_ALLOWED, // FINE_LOCATION
1817 AppOpsManager.MODE_ALLOWED, // GPS
1818 AppOpsManager.MODE_ALLOWED, // VIBRATE
1819 AppOpsManager.MODE_ALLOWED, // READ_CONTACTS
1820 AppOpsManager.MODE_ALLOWED, // WRITE_CONTACTS
[all …]
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java22 import android.app.AppOpsManager;
78 private volatile AppOpsManager mAppOpsManager = null;
296 private AppOpsManager getAppOpsManager() { in getAppOpsManager()
298 mAppOpsManager = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in getAppOpsManager()
336 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage()
337 callingPkg) != AppOpsManager.MODE_ALLOWED) { in sendMessage()
356 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage()
357 callingPkg) != AppOpsManager.MODE_ALLOWED) { in downloadMessage()
373 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage()
374 callingPkg) != AppOpsManager.MODE_ALLOWED) { in importTextMessage()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java19 import android.app.AppOpsManager;
52 AppOpsManager.OP_MONITOR_LOCATION,
53 AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION,
57 AppOpsManager.OP_FINE_LOCATION,
58 AppOpsManager.OP_COARSE_LOCATION,
79 AppOpsManager aoManager = in getAppList()
80 (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in getAppList()
81 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_REQUEST_OPS); in getAppList()
92 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
110 final String permission = AppOpsManager.opToPermission(op); in getAppList()
[all …]
DRecentLocationAccesses.java19 import android.app.AppOpsManager;
52 public static final int TRUSTED_STATE_FLAGS = AppOpsManager.OP_FLAG_SELF
53 | AppOpsManager.OP_FLAG_UNTRUSTED_PROXY
54 | AppOpsManager.OP_FLAG_TRUSTED_PROXIED;
58 AppOpsManager.OP_FINE_LOCATION,
59 AppOpsManager.OP_COARSE_LOCATION,
86 AppOpsManager aoManager = in getAppList()
87 (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in getAppList()
88 List<AppOpsManager.PackageOps> appOps = aoManager.getPackagesForOps(LOCATION_OPS); in getAppList()
99 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java22 import android.app.AppOpsManager;
159 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneState()
160 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) in checkReadPhoneState()
161 == AppOpsManager.MODE_ALLOWED; in checkReadPhoneState()
212 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneStateOnAnyActiveSub()
213 return appOps.noteOp(AppOpsManager.OPSTR_READ_PHONE_STATE, uid, callingPackage) == in checkReadPhoneStateOnAnyActiveSub()
214 AppOpsManager.MODE_ALLOWED; in checkReadPhoneStateOnAnyActiveSub()
334 AppOpsManager appOpsManager = (AppOpsManager) context.getSystemService( in checkPrivilegedReadPermissionOrCarrierPrivilegePermission()
337 if (appOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_READ_DEVICE_IDENTIFIERS, uid, in checkPrivilegedReadPermissionOrCarrierPrivilegePermission()
338 callingPackage) == AppOpsManager.MODE_ALLOWED) { in checkPrivilegedReadPermissionOrCarrierPrivilegePermission()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java19 import static android.app.AppOpsManager.MAX_PRIORITY_UID_STATE;
20 import static android.app.AppOpsManager.MIN_PRIORITY_UID_STATE;
21 import static android.app.AppOpsManager.OP_CAMERA;
22 import static android.app.AppOpsManager.OP_FLAGS_ALL;
23 import static android.app.AppOpsManager.OP_NONE;
24 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
25 import static android.app.AppOpsManager.OP_RECORD_AUDIO;
26 import static android.app.AppOpsManager.UID_STATE_BACKGROUND;
27 import static android.app.AppOpsManager.UID_STATE_CACHED;
28 import static android.app.AppOpsManager.UID_STATE_FOREGROUND;
[all …]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java32 import android.app.AppOpsManager;
61 @Mock private AppOpsManager mMockAppOps;
101 when(mMockAppOps.noteOp(AppOpsManager.OPSTR_WIFI_SCAN, mUid, TEST_PKG_NAME)) in setupMocks()
103 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_COARSE_LOCATION), eq(mUid), in setupMocks()
106 when(mMockAppOps.noteOp(eq(AppOpsManager.OPSTR_FINE_LOCATION), eq(mUid), in setupMocks()
130 mWifiScanAllowApps = AppOpsManager.MODE_ERRORED; in initTestVars()
138 mAllowCoarseLocationApps = AppOpsManager.MODE_ERRORED; in initTestVars()
139 mAllowFineLocationApps = AppOpsManager.MODE_ERRORED; in initTestVars()
179 mAllowCoarseLocationApps = AppOpsManager.MODE_ALLOWED;
180 mWifiScanAllowApps = AppOpsManager.MODE_ALLOWED;
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAppsTest.java8 import android.app.AppOpsManager;
9 import android.app.AppOpsManager.OpEntry;
10 import android.app.AppOpsManager.PackageOps;
51 private AppOpsManager mAppOpsManager;
104 AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION, in testGetAppList_shouldNotShowAndroidOS()
142 AppOpsManager.OP_MONITOR_LOCATION, in createTestPackageOpsList()
160 accessTimes.put(AppOpsManager.makeKey(AppOpsManager.UID_STATE_TOP, in createOpEntryWithTime()
161 AppOpsManager.OP_FLAG_SELF), time); in createOpEntryWithTime()
163 durations.put(AppOpsManager.makeKey(AppOpsManager.UID_STATE_TOP, in createOpEntryWithTime()
164 AppOpsManager.OP_FLAG_SELF), duration); in createOpEntryWithTime()
[all …]
DRecentLocationAccessesTest.java9 import android.app.AppOpsManager;
10 import android.app.AppOpsManager.OpEntry;
11 import android.app.AppOpsManager.PackageOps;
50 private AppOpsManager mAppOpsManager;
107 AppOpsManager.OP_FINE_LOCATION, in testGetAppList_shouldNotShowAndroidOS()
144 AppOpsManager.OP_FINE_LOCATION, in createTestPackageOpsList()
161 accessTimes.put(AppOpsManager.makeKey(AppOpsManager.UID_STATE_BACKGROUND, in createOpEntryWithTime()
162 AppOpsManager.OP_FLAG_SELF), time); in createOpEntryWithTime()
164 return new OpEntry(op, false, AppOpsManager.MODE_ALLOWED, accessTimes, null /*durations*/, in createOpEntryWithTime()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsAccessTest.java24 import android.app.AppOpsManager;
52 @Mock private AppOpsManager mAppOps;
80 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_hasCarrierPrivileges()
91 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_isDeviceOwner()
102 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_isProfileOwner()
113 setHasAppOpsPermission(AppOpsManager.MODE_ALLOWED, false); in testCheckAccessLevel_hasAppOpsBitAllowed()
124 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, true); in testCheckAccessLevel_hasAppOpsBitDefault_grantedPermission()
135 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_hasReadHistoryPermission()
146 setHasAppOpsPermission(AppOpsManager.MODE_ERRORED, true); in testCheckAccessLevel_deniedAppOpsBit()
157 setHasAppOpsPermission(AppOpsManager.MODE_DEFAULT, false); in testCheckAccessLevel_deniedAppOpsBit_deniedPermission()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipAppOpsListener.java19 import static android.app.AppOpsManager.MODE_ALLOWED;
20 import static android.app.AppOpsManager.OP_PICTURE_IN_PICTURE;
22 import android.app.AppOpsManager;
23 import android.app.AppOpsManager.OnOpChangedListener;
38 private AppOpsManager mAppOpsManager;
41 private AppOpsManager.OnOpChangedListener mAppOpsChangedListener = new OnOpChangedListener() {
69 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in PipAppOpsListener()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DOverlayControl.java20 import android.app.AppOpsManager;
35 private final @NonNull AppOpsManager mAppOpsManager;
38 mAppOpsManager = context.getSystemService(AppOpsManager.class); in OverlayControl()
51 mAppOpsManager.setUserRestrictionForUser(AppOpsManager.OP_SYSTEM_ALERT_WINDOW, !allowed, in setOverlayAllowed()
53 mAppOpsManager.setUserRestrictionForUser(AppOpsManager.OP_TOAST_WINDOW, !allowed, in setOverlayAllowed()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java20 import android.app.AppOpsManager;
47 private final AppOpsManager mAppOps;
59 mAppOps = (AppOpsManager) mContext.getSystemService(Context.APP_OPS_SERVICE); in WifiPermissionsUtil()
171 boolean isAppOpAllowed = noteAppOpAllowed(AppOpsManager.OP_FINE_LOCATION, pkgName, uid); in checkCallersLocationPermission()
173 isAppOpAllowed = noteAppOpAllowed(AppOpsManager.OP_COARSE_LOCATION, pkgName, uid); in checkCallersLocationPermission()
210 if (!checkAppOpAllowed(AppOpsManager.OP_FINE_LOCATION, pkgName, uid)) { in checkCallersFineLocationPermission()
214 if (!noteAppOpAllowed(AppOpsManager.OP_FINE_LOCATION, pkgName, uid)) { in checkCallersFineLocationPermission()
384 return noteAppOpAllowed(AppOpsManager.OP_WIFI_SCAN, pkgName, uid); in isScanAllowedbyApps()
417 return mAppOps.noteOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in noteAppOpAllowed()
421 return mAppOps.checkOp(op, uid, pkgName) == AppOpsManager.MODE_ALLOWED; in checkAppOpAllowed()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java23 import android.app.AppOpsManager;
55 = new int[] {AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION};
59 private AppOpsManager mAppOpsManager;
78 mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in LocationControllerImpl()
154 List<AppOpsManager.PackageOps> packages in areActiveHighPowerLocationRequests()
160 AppOpsManager.PackageOps packageOp = packages.get(packageInd); in areActiveHighPowerLocationRequests()
161 List<AppOpsManager.OpEntry> opEntries = packageOp.getOps(); in areActiveHighPowerLocationRequests()
165 AppOpsManager.OpEntry opEntry = opEntries.get(opInd); in areActiveHighPowerLocationRequests()
168 if (opEntry.getOp() == AppOpsManager.OP_MONITOR_HIGH_POWER_LOCATION) { in areActiveHighPowerLocationRequests()
/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java33 import android.app.AppOpsManager;
87 AppOpsManager.OPSTR_READ_SMS,
88 AppOpsManager.OPSTR_WRITE_SMS,
89 AppOpsManager.OPSTR_RECEIVE_SMS,
90 AppOpsManager.OPSTR_RECEIVE_WAP_PUSH,
91 AppOpsManager.OPSTR_SEND_SMS,
92 AppOpsManager.OPSTR_READ_CELL_BROADCASTS
106 @Mock private AppOpsManager mAppOpsManager;
115 when(mContext.getSystemService(AppOpsManager.class)).thenReturn(mAppOpsManager); in setUp()
139 .thenReturn(AppOpsManager.MODE_ALLOWED); in setUp()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsPermissions.java20 import android.app.AppOpsManager;
43 private final AppOpsManager mAppOps;
45 public SmsPermissions(Phone phone, Context context, AppOpsManager appOps) { in SmsPermissions()
116 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingCanSendSms()
117 == AppOpsManager.MODE_ALLOWED; in checkCallingCanSendSms()
130 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingOrSelfCanSendSms()
131 == AppOpsManager.MODE_ALLOWED; in checkCallingOrSelfCanSendSms()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpsControllerImpl.java21 import android.app.AppOpsManager;
52 AppOpsManager.OnOpActiveChangedListener,
53 AppOpsManager.OnOpNotedListener, Dumpable {
60 private final AppOpsManager mAppOps;
72 AppOpsManager.OP_CAMERA,
73 AppOpsManager.OP_SYSTEM_ALERT_WINDOW,
74 AppOpsManager.OP_RECORD_AUDIO,
75 AppOpsManager.OP_COARSE_LOCATION,
76 AppOpsManager.OP_FINE_LOCATION
82 mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in AppOpsControllerImpl()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java21 import static android.app.AppOpsManager.MODE_ALLOWED;
22 import static android.app.AppOpsManager.MODE_DEFAULT;
23 import static android.app.AppOpsManager.MODE_IGNORED;
24 import static android.app.AppOpsManager.OP_LEGACY_STORAGE;
25 import static android.app.AppOpsManager.OP_NONE;
35 import android.app.AppOpsManager;
262 public abstract @AppOpsManager.Mode int getDesiredOpMode();

123456789