/frameworks/base/docs/html/guide/topics/security/ |
D | normal-permissions.jd | 18 <li>{@link android.Manifest.permission}</li> 44 permission explicitly. By contrast, there's no great risk in allowing an app 45 to vibrate the device, so that permission is designated as <em>normal.</em> 50 manifest that it needs a normal permission, the system automatically grants 52 that permission at install time. The system does not prompt the user 61 <li>{@link android.Manifest.permission#ACCESS_LOCATION_EXTRA_COMMANDS 65 <li>{@link android.Manifest.permission#ACCESS_NETWORK_STATE 69 <li>{@link android.Manifest.permission#ACCESS_NOTIFICATION_POLICY 73 <li>{@link android.Manifest.permission#ACCESS_WIFI_STATE ACCESS_WIFI_STATE} 76 <li>{@link android.Manifest.permission#BLUETOOTH BLUETOOTH} [all …]
|
D | permissions.jd | 21 <li><a href="#custom-recommendations">Custom permission recommendations</a></li> 31 <li>{@link android.Manifest.permission}</li> 74 "permission" mechanism that enforces restrictions on the specific operations 89 application, by default, has permission to perform any operations that would 119 href="{@docRoot}guide/topics/manifest/permission-element.html#plevel">signature-level 163 <a href="{@docRoot}guide/topics/manifest/uses-permission-element.html" 164 ><code><uses-permission></code></a> 173 <uses-permission android:name="android.permission.RECEIVE_SMS" /> 215 user installs the app. If you add a new permission to an updated version of 216 the app, the system asks the user to grant that permission when the user [all …]
|
/frameworks/native/libs/binder/ |
D | PermissionCache.cpp | 38 const String16& permission, uid_t uid) const { in check() argument 41 e.name = permission; in check() 51 void PermissionCache::cache(const String16& permission, in cache() argument 55 ssize_t index = mPermissionNamesPool.indexOf(permission); in cache() 59 mPermissionNamesPool.add(permission); in cache() 60 e.name = permission; in cache() 77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission() argument 78 return PermissionCache::checkCallingPermission(permission, NULL, NULL); in checkCallingPermission() 82 const String16& permission, int32_t* outPid, int32_t* outUid) { in checkCallingPermission() argument 88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission() [all …]
|
D | IPermissionController.cpp | 39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission() argument 43 data.writeString16(permission); in checkPermission() 71 virtual bool isRuntimePermission(const String16& permission) in isRuntimePermission() argument 75 data.writeString16(permission); in isRuntimePermission() 93 String16 permission = data.readString16(); in onTransact() local 96 bool res = checkPermission(permission, pid, uid); in onTransact() 118 String16 permission = data.readString16(); in onTransact() local 119 const bool res = isRuntimePermission(permission); in onTransact()
|
D | IServiceManager.cpp | 50 bool checkCallingPermission(const String16& permission) in checkCallingPermission() argument 52 return checkCallingPermission(permission, NULL, NULL); in checkCallingPermission() 58 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission() argument 65 return checkPermission(permission, pid, uid); in checkCallingPermission() 68 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission() argument 84 bool res = pc->checkPermission(permission, pid, uid); in checkPermission() 89 String8(permission).string(), uid, pid); in checkPermission() 97 String8(permission).string(), uid, pid); in checkPermission() 116 String8(permission).string(), uid, pid); in checkPermission()
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | uses-permission-sdk-23-element.jd | 1 page.title=<uses-permission-sdk-23> 2 page.tags="uses-permission-sdk-23","permissions","uses-permission-sdk23" 10 <dd><pre class="stx"><uses-permission-sdk-23 android:<a href="#nm">name</a>="<i>string</i>" 21 Specifies that an app wants a particular permission, but <em>only</em> if 26 permission. 30 feature that requires an additional permission. If a user updates an app on a 36 <code><uses-permission-sdk-23></code> element instead of <a href= 37 "uses-permission-element.html"><code><uses-permission></code></a>, 38 you can request the permission <em>only</em> if the app is running on 51 at {@link android.Manifest.permission android.Manifest.permission}. [all …]
|
D | uses-permission-element.jd | 1 page.title=<uses-permission> 14 through <code><uses-permission></code> can affect how 17 <p>If you request a hardware-related permission — 25 <code><uses-permission></code> elements. Then, if you want to disable 38 <dd><pre class="stx"><uses-permission android:<a href="#nm">name</a>="<i>string</i>" 45 <dd itemprop="description">Requests a permission that the application must be granted in 56 {@link android.Manifest.permission android.Manifest.permission}. 61 <dd>The name of the permission. It can be a permission defined by the 62 … with the <code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission&g… 63 element, a permission defined by another application, or one of the [all …]
|
D | permission-element.jd | 1 page.title=<permission> 8 <dd><pre class="stx"><permission android:<a href="#desc">description</a>="<i>string resource</i>" 21 <dd itemprop="description">Declares a security permission that can be used to 31 <dd>A user-readable description of the permission, longer and more 33 permission to the user — for example, when the user is asked 34 whether to grant the permission to another application. 43 permission.</dd> 46 <dd>A name for the permission, one that can be displayed to users. 57 <dd>The name of the permission. This is the name that will be used in 58 code to refer to the permission — for example, in a [all …]
|
D | permission-group-element.jd | 1 page.title=<permission-group> 8 <dd><pre class="stx"><permission-group android:<a href="#desc">description</a>="<i>string resour… 18 permission join the group through the {@code permissionGroup} attribute of the 19 <code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></cod… 23 Note that this element does not declare a permission itself, only a category in 25 <code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></cod… 38 <dd>An icon representing the permission. This attribute must be set 50 <code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></cod… 52 <code><a href="{@docRoot}guide/topics/manifest/permission-element.html#pgroup"><permissionGroup&… 61 <dd><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a><… [all …]
|
D | permission-tree-element.jd | 1 page.title=<permission-tree> 8 <dd><pre class="stx"><permission-tree android:<a href="#icon">icon</a>="<i>drawable resource</i>" 28 Note that this element does not declare a permission itself, only a 30 <code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a></cod… 48 <dd>The name that's at the base of the permission tree. It serves as 49 a prefix to all permission names in the tree. Java-style scoping should 61 <dd><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a><… 62 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-g… 63 …/><code><a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission…
|
/frameworks/base/docs/html/training/permissions/ |
D | requesting.jd | 57 lists a normal permission in its manifest, the system grants the permission 62 data. If your app lists a normal permission in its manifest, the system 63 grants the permission automatically. If you list a dangerous permission, the 84 is 22 or lower: If you list a dangerous permission in your manifest, the user 85 has to grant the permission when they install the app; if they do not grant 86 the permission, the system does not install the app at all. 91 <em>and</em> it must request each dangerous permission it needs while the app 92 is running. The user can grant or deny each permission, and the app can 94 permission request. 102 it's missing a needed permission, regardless of what API level your app [all …]
|
D | declaring.jd | 38 the appropriate <i>permission.</i> You declare that your app needs a 39 permission by listing the permission in the <a href= 44 Depending on how sensitive the permission is, the system might grant the 45 permission automatically, or the device user might have to grant 46 the request. For example, if your app requests permission to turn on the 47 device's flashlight, the system grants that permission automatically. But 49 to approve that permission. Depending on the platform version, the user 50 grants the permission either when they install the app (on Android 5.1 and 58 that require a permission. Typically, an app is going to need permissions 62 turn Wi-Fi on or off, the app needs the appropriate permission. For a list of [all …]
|
/frameworks/base/docs/html/training/articles/ |
D | wear-permissions.jd | 41 a user might grant a handset app permission to use location data, and subsequently 42 have to grant the same permission to the Wear version of the app.</p> 46 every permission an app may ever need. Instead, the app does not request permissions until it 72 <li>The wearable app uses a <em>different permission model</em> from its handset counterpart. 79 <h3 id="wear-app-wear-perm">Wear app requests permission for an app running on the wearable 82 <p>When the Wear app requests a permission for an app running on the wearable device, the system 83 displays a dialog to prompt the user for that permission. An app or service can only call the 87 a watch face, the service must open an activity before requesting the permission.</p> 92 you may choose to provide additional education before prompting for a permission.</p> 94 <p>If an app or watch face requires more than one permission at a time, [all …]
|
/frameworks/base/core/java/android/test/ |
D | AndroidTestCase.java | 100 String packageName, String className, String permission) { in assertActivityRequiresPermission() argument 107 fail("expected security exception for " + permission); in assertActivityRequiresPermission() 110 assertTrue("error message should contain " + permission + ".", in assertActivityRequiresPermission() 111 expected.getMessage().contains(permission)); in assertActivityRequiresPermission() 123 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission() argument 126 fail("expected SecurityException requiring " + permission); in assertReadingContentUriRequiresPermission() 129 assertTrue("error message should contain " + permission + ".", in assertReadingContentUriRequiresPermission() 130 expected.getMessage().contains(permission)); in assertReadingContentUriRequiresPermission() 142 public void assertWritingContentUriRequiresPermission(Uri uri, String permission) { in assertWritingContentUriRequiresPermission() argument 145 fail("expected SecurityException requiring " + permission); in assertWritingContentUriRequiresPermission() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PermissionsState.java | 155 public int grantInstallPermission(BasePermission permission) { in grantInstallPermission() argument 156 return grantPermission(permission, UserHandle.USER_ALL); in grantInstallPermission() 167 public int revokeInstallPermission(BasePermission permission) { in revokeInstallPermission() argument 168 return revokePermission(permission, UserHandle.USER_ALL); in revokeInstallPermission() 180 public int grantRuntimePermission(BasePermission permission, int userId) { in grantRuntimePermission() argument 185 return grantPermission(permission, userId); in grantRuntimePermission() 197 public int revokeRuntimePermission(BasePermission permission, int userId) { in revokeRuntimePermission() argument 202 return revokePermission(permission, userId); in revokeRuntimePermission() 281 String permission = mPermissions.keyAt(i); in getPermissions() local 283 if (hasInstallPermission(permission)) { in getPermissions() [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | ManifestClassGenerator_test.cpp | 46 <permission android:name="android.permission.ACCESS_INTERNET" /> 47 <permission android:name="android.DO_DANGEROUS_THINGS" /> 48 <permission android:name="com.test.sample.permission.HUH" /> 49 <permission-group android:name="foo.bar.PERMISSION" /> 55 const size_t permissionClassPos = actual.find("public static final class permission {"); 95 <permission android:name="android.permission.ACCESS_INTERNET" /> 96 <!-- @deprecated This permission is for playing outside. --> 97 <permission android:name="android.permission.PLAY_OUTSIDE" /> 98 <!-- This is a private permission for system only! 101 <permission android:name="android.permission.SECRET" />
|
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/manifest/ |
D | manifest-intro.jd | 77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission /></… 78 <a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission /></a> 79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree /></… 80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group />… 116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permissi… 118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html"><path-permission /></… 141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permiss… 146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a>… 147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-g… 148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tr… [all …]
|
/frameworks/base/docs/html-intl/intl/ko/guide/topics/manifest/ |
D | manifest-intro.jd | 77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission /></… 78 <a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission /></a> 79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree /></… 80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group />… 116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permissi… 118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html"><path-permission /></… 141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permiss… 146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a>… 147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-g… 148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tr… [all …]
|
/frameworks/base/docs/html-intl/intl/ja/guide/topics/manifest/ |
D | manifest-intro.jd | 77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission /></… 78 <a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission /></a> 79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree /></… 80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group />… 116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permissi… 118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html"><path-permission /></… 141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permiss… 146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a>… 147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-g… 148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tr… [all …]
|
/frameworks/base/docs/html-intl/intl/ru/guide/topics/manifest/ |
D | manifest-intro.jd | 77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission /></… 78 <a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission /></a> 79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree /></… 80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group />… 116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permissi… 118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html"><path-permission /></… 141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permiss… 146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a>… 147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-g… 148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tr… [all …]
|
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/manifest/ |
D | manifest-intro.jd | 77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html"><uses-permission /></… 78 <a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission /></a> 79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tree /></… 80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-group />… 116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permissi… 118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html"><path-permission /></… 141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html"><grant-uri-permiss… 146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html"><permission></a>… 147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html"><permission-g… 148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html"><permission-tr… [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | ChipsUtil.java | 32 void onPermissionCheck(String permission, boolean granted); in onPermissionCheck() argument 39 new String[] { Manifest.permission.READ_CONTACTS }; 62 public static int checkPermission(Context context, String permission) { in checkPermission() argument 65 return context.checkPermission(permission, Process.myPid(), Process.myUid()); in checkPermission() 80 for (String permission : REQUIRED_PERMISSIONS) { in hasPermissions() 82 checkPermission(context, permission) == PackageManager.PERMISSION_GRANTED; in hasPermissions() 84 permissionsCheckListener.onPermissionCheck(permission, granted); in hasPermissions()
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
D | PermissionChecker.java | 87 public static int checkPermission(@NonNull Context context, @NonNull String permission, in checkPermission() argument 89 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { in checkPermission() 93 String op = AppOpsManagerCompat.permissionToOp(permission); in checkPermission() 124 @NonNull String permission) { in checkSelfPermission() argument 125 return checkPermission(context, permission, android.os.Process.myPid(), in checkSelfPermission() 141 @NonNull String permission, String packageName) { in checkCallingPermission() argument 145 return checkPermission(context, permission, Binder.getCallingPid(), in checkCallingPermission() 159 @NonNull String permission) { in checkCallingOrSelfPermission() argument 162 return checkPermission(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermission()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 601 android.Manifest.permission.ACCESS_COARSE_LOCATION, 602 android.Manifest.permission.ACCESS_FINE_LOCATION, 604 android.Manifest.permission.VIBRATE, 605 android.Manifest.permission.READ_CONTACTS, 606 android.Manifest.permission.WRITE_CONTACTS, 607 android.Manifest.permission.READ_CALL_LOG, 608 android.Manifest.permission.WRITE_CALL_LOG, 609 android.Manifest.permission.READ_CALENDAR, 610 android.Manifest.permission.WRITE_CALENDAR, 611 android.Manifest.permission.ACCESS_WIFI_STATE, [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareService.java | 80 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 88 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 99 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 107 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 116 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 125 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 135 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE, 146 mContext.enforceCallingPermission(Manifest.permission.LOCATION_HARDWARE,
|