Home
last modified time | relevance | path

Searched refs:permission (Results 1 – 25 of 702) sorted by relevance

12345678910>>...29

/frameworks/base/docs/html/guide/topics/security/
Dnormal-permissions.jd18 <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 …]
Dpermissions.jd21 <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>&lt;uses-permission&gt;</code></a>
173 &lt;uses-permission android:name=&quot;android.permission.RECEIVE_SMS&quot; /&gt;
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/
DPermissionCache.cpp38 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 …]
DIPermissionController.cpp39 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()
DIServiceManager.cpp50 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/
Duses-permission-sdk-23-element.jd1 page.title=&lt;uses-permission-sdk-23&gt;
2 page.tags="uses-permission-sdk-23","permissions","uses-permission-sdk23"
10 <dd><pre class="stx">&lt;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>&lt;uses-permission-sdk-23&gt;</code> element instead of <a href=
37 "uses-permission-element.html"><code>&lt;uses-permission&gt;</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 …]
Duses-permission-element.jd1 page.title=&lt;uses-permission&gt;
14 through <code>&lt;uses-permission&gt;</code> can affect how
17 <p>If you request a hardware-related permission &mdash;
25 <code>&lt;uses-permission&gt;</code> elements. Then, if you want to disable
38 <dd><pre class="stx">&lt;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">&lt;permission&g…
63 element, a permission defined by another application, or one of the
[all …]
Dpermission-element.jd1 page.title=&lt;permission&gt;
8 <dd><pre class="stx">&lt;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 &mdash; 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 &mdash; for example, in a
[all …]
Dpermission-group-element.jd1 page.title=&lt;permission-group&gt;
8 <dd><pre class="stx">&lt;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">&lt;permission&gt;</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">&lt;permission&gt;</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">&lt;permission&gt;</a></cod…
52 <code><a href="{@docRoot}guide/topics/manifest/permission-element.html#pgroup">&lt;permissionGroup&…
61 <dd><code><a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission&gt;</a><…
[all …]
Dpermission-tree-element.jd1 page.title=&lt;permission-tree&gt;
8 <dd><pre class="stx">&lt;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">&lt;permission&gt;</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">&lt;permission&gt;</a><…
62 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-g…
63 …/><code><a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">&lt;uses-permission
/frameworks/base/docs/html/training/permissions/
Drequesting.jd57 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 …]
Ddeclaring.jd38 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/
Dwear-permissions.jd41 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/
DAndroidTestCase.java100 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/
DPermissionsState.java155 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/
DManifestClassGenerator_test.cpp46 <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/
Dmanifest-intro.jd77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">&lt;uses-permission /&gt;</…
78 <a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission /&gt;</a>
79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tree /&gt;</…
80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-group /&gt;…
116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permissi…
118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html">&lt;path-permission /&gt;</…
141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permiss…
146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission&gt;</a>…
147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-g…
148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tr…
[all …]
/frameworks/base/docs/html-intl/intl/ko/guide/topics/manifest/
Dmanifest-intro.jd77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">&lt;uses-permission /&gt;</…
78 <a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission /&gt;</a>
79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tree /&gt;</…
80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-group /&gt;…
116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permissi…
118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html">&lt;path-permission /&gt;</…
141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permiss…
146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission&gt;</a>…
147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-g…
148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tr…
[all …]
/frameworks/base/docs/html-intl/intl/ja/guide/topics/manifest/
Dmanifest-intro.jd77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">&lt;uses-permission /&gt;</…
78 <a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission /&gt;</a>
79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tree /&gt;</…
80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-group /&gt;…
116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permissi…
118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html">&lt;path-permission /&gt;</…
141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permiss…
146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission&gt;</a>…
147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-g…
148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tr…
[all …]
/frameworks/base/docs/html-intl/intl/ru/guide/topics/manifest/
Dmanifest-intro.jd77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">&lt;uses-permission /&gt;</…
78 <a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission /&gt;</a>
79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tree /&gt;</…
80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-group /&gt;…
116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permissi…
118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html">&lt;path-permission /&gt;</…
141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permiss…
146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission&gt;</a>…
147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-g…
148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tr…
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/manifest/
Dmanifest-intro.jd77 …<a href="{@docRoot}guide/topics/manifest/uses-permission-element.html">&lt;uses-permission /&gt;</…
78 <a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission /&gt;</a>
79 …<a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tree /&gt;</…
80 …<a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-group /&gt;…
116 …<a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permissi…
118 …<a href="{@docRoot}guide/topics/manifest/path-permission-element.html">&lt;path-permission /&gt;</…
141 …><a href="{@docRoot}guide/topics/manifest/grant-uri-permission-element.html">&lt;grant-uri-permiss…
146 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-element.html">&lt;permission&gt;</a>…
147 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-group-element.html">&lt;permission-g…
148 <br/><code><a href="{@docRoot}guide/topics/manifest/permission-tree-element.html">&lt;permission-tr…
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DChipsUtil.java32 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/
DPermissionChecker.java87 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/
DAppOpsManager.java601 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/
DGeofenceHardwareService.java80 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,

12345678910>>...29