Home
last modified time | relevance | path

Searched refs:permissions (Results 1 – 25 of 5781) sorted by relevance

12345678910>>...232

/ohos5.0/docs/zh-cn/application-dev/security/AccessToken/
H A Dapp-permission-group-list.md15 - 当前系统支持的权限组如下所示,各子权限的含义请查阅[应用权限列表](permissions-for-all-user.md)。
23 - [ohos.permission.LOCATION](permissions-for-all-user.md#ohospermissionlocation)
29 - [ohos.permission.CAMERA](permissions-for-all-user.md#ohospermissioncamera)
33 - [ohos.permission.MICROPHONE](permissions-for-all-user.md#ohospermissionmicrophone)
43 - [ohos.permission.READ_CALENDAR](permissions-for-all-user.md#ohospermissionread_calendar)
45 - [ohos.permission.WRITE_CALENDAR](permissions-for-all-user.md#ohospermissionwrite_calendar)
71 - [ohos.permission.WRITE_AUDIO](permissions-for-system-apps.md#ohospermissionwrite_audio)
73 - [ohos.permission.READ_AUDIO](permissions-for-system-apps.md#ohospermissionread_audio)
93 - [ohos.permission.ANSWER_CALL](permissions-for-system-apps.md#ohospermissionanswer_call)
109 - [ohos.permission.RECEIVE_MMS](permissions-for-system-apps.md#ohospermissionreceive_mms)
[all …]
H A Ddetermine-application-mode.md29 | [开放权限(系统授权)](permissions-for-all.md) | system_grant | [声明权限](declare-permissions.md) > 访问接口 |
30 | [开放权限(用户授权)](permissions-for-all-user.md) | user_grant | [声明权限](declare-permissions.md) > [向用…
31 …申请](permissions-for-system-apps.md#system_grant允许acl跨级申请) | system_grant | [申请使用受限权限](declare-perm…
32 …跨级申请](permissions-for-system-apps.md#user_grant允许acl跨级申请) | user_grant | [申请使用受限权限](declare-permis…
45 | normal、system_basic | system_grant | - | [声明权限](declare-permissions.md) > 访问接口 |
46 | normal、system_basic | user_grant | - | [声明权限](declare-permissions.md) > [向用户申请授权](request-user…
47 …_core | system_grant | true | [申请使用受限权限](declare-permissions-in-acl.md) > [声明权限](declare-permis…
48 …em_core | user_grant | true | [申请使用受限权限](declare-permissions-in-acl.md) > [声明权限](declare-permis…
H A DReadme-CN.md8 - [声明权限](declare-permissions.md)
13 - [申请使用受控权限](declare-permissions-in-acl.md)
15 - [应用权限列表](app-permissions.md)
16 - [开放权限(系统授权)](permissions-for-all.md)
17 - [开放权限(用户授权)](permissions-for-all-user.md)
19 - [系统应用可用权限](permissions-for-system-apps.md)
21 - [企业类应用可用权限](permissions-for-enterprise-apps.md)
22 - [仅MDM应用可用权限](permissions-for-mdm-apps.md)
H A Dapp-permissions.md7 - [开放权限(系统授权)](permissions-for-all.md)
11 - [开放权限(用户授权)](permissions-for-all-user.md)
15 - [企业类应用可用权限](permissions-for-enterprise-apps.md)
19 - [MDM应用可用权限](permissions-for-mdm-apps.md)
24 - [系统应用可用权限](permissions-for-system-apps.md)
30 应用可通过[ACL](declare-permissions-in-acl.md)的方式,跨级别申请。符合条件的应用申请了此类权限后,系统将在用户安装应用时,自动把相应权限授予给应用。
37 应用可通过[ACL](declare-permissions-in-acl.md)的方式,跨级别申请。应用申请了此类权限后,还需要在应用动态运行时,通过发送弹窗的方式请求用户授权。
/ohos5.0/docs/en/application-dev/security/AccessToken/
H A Dapp-permissions.md3 The way to request permissions varies, depending on the scope of the permissions and the authorizat…
5 The system provides the following permissions. You can determine the appropriate way to apply for t…
7 - [Open system_grant permissions](permissions-for-all.md)
9permissions are available to all applications and granted by the system. After an application requ…
11 - [Open user_grant permissions](permissions-for-all-user.md)
13 …The permissions are available to all applications and granted by the user. After an application re…
19 - [Permissions for MDM applications](permissions-for-mdm-apps.md)
26 …The permissions are available only to system applications and system services. The permissions can…
30permissions can be requested via the [ACL](declare-permissions-in-acl.md) and are authorized by th…
35 3. user_grant permissions that can be requested via the ACL:
[all …]
H A Dapp-permission-group-list.md5 …ou understand [permission groups and permissions](app-permission-mgmt-overview.md#permission-group…
15 …supported by the system. For details about the permissions, see [Open user_grant Permissions](perm…
23 - [ohos.permission.LOCATION](permissions-for-all-user.md#ohospermissionlocation)
29 - [ohos.permission.CAMERA](permissions-for-all-user.md#ohospermissioncamera)
33 - [ohos.permission.MICROPHONE](permissions-for-all-user.md#ohospermissionmicrophone)
43 - [ohos.permission.READ_CALENDAR](permissions-for-all-user.md#ohospermissionread_calendar)
71 - [ohos.permission.WRITE_AUDIO](permissions-for-system-apps.md#ohospermissionwrite_audio)
73 - [ohos.permission.READ_AUDIO](permissions-for-system-apps.md#ohospermissionread_audio)
93 - [ohos.permission.ANSWER_CALL](permissions-for-system-apps.md#ohospermissionanswer_call)
109 - [ohos.permission.RECEIVE_MMS](permissions-for-system-apps.md#ohospermissionreceive_mms)
[all …]
H A Ddetermine-application-mode.md3 … needs related permissions before accessing data or performing an operation. If permissions are re…
13 - ② Permissions can be classified into system_grant permissions and user_grant permissions based on…
16 1. In the configuration file, declare the permissions required by your application.
29 | [Open system_grant permissions](permissions-for-all.md)| system_grant | [Declare permission](decl…
30 | [Open user_grant permissions](permissions-for-all-user.md)| user_grant | [Declare permission](de…
31permissions available for normal applications via ACL](permissions-for-system-apps.md#system_grant…
32permissions available for normal applications via ACL](permissions-for-system-apps.md#user_grant-p…
45 | normal or system_basic| system_grant | - | [Declare permission](declare-permissions.md) > Acce…
46 | normal or system_basic| user_grant | - | [Declare permission](declare-permissions.md) > [Reque…
47 …| [Request restricted permission](declare-permissions-in-acl.md) > [Declare permission](declare…
[all …]
H A Dapp-permission-mgmt-overview.md7 Application permissions are used to protect:
15permissions required by your application based on the use cases of your application. Comply with …
17permissions required by your application (including third-party libraries referenced by your appli…
19 … Request only the least required permissions for your application. Do not apply for unnecessary or…
23 - Sensitive permissions must be dynamically requested before the related service feature is provide…
29 Permissions can be classified into system_grant permissions and user_grant permissions based on the…
43permissions related to the microphone and camera in the [Open user_grant Permissions](permissions-…
47 A permission group consists of user_grant permissions that are logically related.
63 …Both the applications and permissions are assigned with different APLs to prevent abuse of permiss…
65 … the application's priority for requesting permissions. Applications of different APLs can request…
[all …]
H A DReadme-EN.md8 - [Declaring Permissions](declare-permissions.md)
13 - [Requesting Restricted Permissions](declare-permissions-in-acl.md)
15 - [Application Permissions](app-permissions.md)
16 - [Open system_grant Permissions](permissions-for-all.md)
17 - [Open user_grant Permissions](permissions-for-all-user.md)
19 - [Permissions for System Applications](permissions-for-system-apps.md)
21 - [Permissions for Enterprise Applications](permissions-for-enterprise-apps.md)
22 - [Permissions for MDM Applications](permissions-for-mdm-apps.md)
H A Drequest-user-authorization.md5 The procedure for requesting user_grant permissions is as follows:
7 1. Declare the permissions required by your application in the configuration file.
10 For details about the preceding two steps, see [Declaring Permissions](declare-permissions.md).
42 The following example steps you through on how to request the location permissions.
44 **Figure 1** Requesting the location permissions
48 … ohos.permission.APPROXIMATELY_LOCATION permissions. For details, see [Declaring Permissions](decl…
50 2. Check whether the user has granted the permissions.
120 atManager.requestPermissionsFromUser(context, permissions).then((data) => {
140 reqPermissionsFromUser(permissions, this.context);
159 atManager.requestPermissionsFromUser(context, permissions).then((data) => {
[all …]
/ohos5.0/base/request/request/test/rustest/c/source/
H A Dpermission.cpp27 auto permissions = std::vector<std::string>(); in SetAccessTokenPermission() local
28 permissions.push_back("ohos.permission.INTERNET"); in SetAccessTokenPermission()
29 permissions.push_back("ohos.permission.GET_NETWORK_INFO"); in SetAccessTokenPermission()
30 permissions.push_back("ohos.permission.READ_MEDIA"); in SetAccessTokenPermission()
31 permissions.push_back("ohos.permission.WRITE_MEDIA"); in SetAccessTokenPermission()
33 permissions.push_back("ohos.permission.GET_NETWORK_INFO"); in SetAccessTokenPermission()
34 permissions.push_back("ohos.permission.CONNECTIVITY_INTERNAL"); in SetAccessTokenPermission()
36 permissions.push_back("ohos.permission.ACCESS_CERT_MANAGER"); in SetAccessTokenPermission()
42 for (size_t i = 0; i < permissions.size(); i++) { in SetAccessTokenPermission()
43 perms[i] = permissions[i].c_str(); in SetAccessTokenPermission()
[all …]
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm/src/
H A Dadmin_test.cpp40 std::vector<std::string> permissions; variable
55 std::vector<std::string> permissions; variable
56 permissions.push_back(TEST_PERMISSION_FAIL);
71 std::vector<std::string> permissions; variable
72 permissions.push_back(TEST_PERMISSION);
87 std::vector<std::string> permissions; variable
102 std::vector<std::string> permissions; variable
117 std::vector<std::string> permissions; variable
132 std::vector<std::string> permissions; variable
147 std::vector<std::string> permissions; variable
[all …]
H A Dadmin_manager_test.cpp69 std::vector<std::string> permissions; variable
76 permissions = {"ohos.permission.EDM_TEST_PERMISSION"};
77 Admin admin(abilityInfo, AdminType::NORMAL, entInfo, permissions, false);
102 std::vector<std::string> permissions; variable
109 permissions = {"ohos.permission.EDM_TEST_PERMISSION"};
141 std::vector<std::string> permissions; variable
148 permissions = {"ohos.permission.EDM_TEST_PERMISSION"};
187 std::vector<std::string> permissions; variable
190 permissions = {};
245 std::vector<std::string> permissions; variable
[all …]
/ohos5.0/base/security/permission_lite/services/pms/src/
H A Dpms_impl.c342 HalFree((void *)permissions); in QueryAppCapabilities()
347 HalFree((void *)permissions); in QueryAppCapabilities()
363 HalFree((void *)permissions); in QueryAppCapabilities()
397 HalFree((void *)permissions); in UpdateAppPermission()
430 HalFree((void *)permissions); in UpdateAppPermission()
465 permissions[distinctNum++] = permissions[i]; in SaveOrUpdatePermissions()
467 if (strcmp(permissions[i].name, permissions[j].name) == 0) { in SaveOrUpdatePermissions()
553 HalFree((void *)permissions); in LoadPermissions()
564 node->permList = permissions; in LoadPermissions()
613 HalFree((void *)permissions); in OnPermissionFileSync()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/common_event/
H A DcommonEvent-definitions.md21 - Required subscriber permissions: none
26 - Required subscriber permissions: none
31 - Required subscriber permissions: none
36 - Required subscriber permissions: none
41 - Required subscriber permissions: none
47 - Required subscriber permissions: none
53 - Required subscriber permissions: none
59 - Required subscriber permissions: none
65 - Required subscriber permissions: none
71 - Required subscriber permissions: none
[all …]
H A DcommonEventManager-definitions.md17 **Required subscriber permissions**: none
29 **Required subscriber permissions**: none
42 **Required subscriber permissions**: none
54 **Required subscriber permissions**: none
66 **Required subscriber permissions**: none
79 **Required subscriber permissions**: none
90 **Required subscriber permissions**: none
101 **Required subscriber permissions**: none
114 **Required subscriber permissions**: none
127 **Required subscriber permissions**: none
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/unittest/gatt/
H A Dgatt_descriptor_test.cpp55 int permissions = 27; variable
56 EXPECT_EQ(permissions, GattDescriptor(uuid_, permissions).GetPermissions());
68 int permissions = 27; variable
69 uint16_t handle = GattDescriptor(uuid_, permissions).GetHandle();
81 int permissions = 27; variable
87 const UUID result = GattDescriptor(uuid_, handle_, permissions).GetUuid();
106 int permissions = 27; variable
125 int permissions = 27; variable
136 GattDescriptor getvalue = GattDescriptor(uuid_, handle_, permissions);
154 int permissions = 27; variable
[all …]
/ohos5.0/docs/zh-cn/application-dev/security/
H A Dapp-provision-structure.md5 …、version-name对象、uuid对象、type对象、issuer对象、validity对象、bundle-info对象、acls对象、permissions对象、debug-info对象、…
18 | permissions | 表示允许使用的受限敏感权限信息。参考[permissions对象内部结构](#permissions对象内部结构)。 | 对象 | 可选 | 可缺省…
49 "permissions": {
50 "restricted-permissions": ["string"]
86 acls对象包含已授权的[ACL权限](AccessToken/permissions-for-system-apps.md)。需要指出的是,开发者仍然需要在[应用包配置文件](../quick-s…
90 | allowed-acls | 表示已授权的[ACL权限](AccessToken/permissions-for-system-apps.md)列表。 | 字符串数组 | 可选 | 不可缺…
92 ### permissions对象内部结构
93 permissions对象包含允许使用的受限敏感权限。不同于acls对象,permissions对象中的权限仅代表应用允许使用该敏感权限,权限最终由用户运行时授权。需要指出的是,开发者仍然需要在[应…
97 | restricted-permissions | 表示允许使用的[受限敏感权限](AccessToken/permissions-for-all-user.md)。 | 字符串数组 | 可…
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/
H A Dfile_share.md18 …h.md) | Provides APIs for persisting permissions, activating or deactivating permissions, and obta…
70 Defines an enum for the permissions on a URI.
125 Enumerates the permissions on a URI.
179 **Required permissions**
196 Checks the persistent permissions on files or folders.
209 **Required permissions**
239 **Required permissions**
256 Persists the permissions on files or folders.
269 **Required permissions**
306 Revokes the permissions from files or folders.
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.9.1/
H A Dchangelogs-accessToken.md4 The original **Media and File** permission group contains the following permissions:
15 …mission group rather than the permission is presented in the dialog box for requesting permissions.
17 …the change, if the three permissions are applied for an application, a dialog box for requesting t…
18 … change, if the three permissions are applied for an application, a dialog box for requesting the …
44 …he **Phone**, **Messaging**, and **Call logs** permission groups contain the following permissions:
57 These permissions can be pre-authorized only.
62 Instead of requesting these permissions through a pop-up window, the system applications can obtain…
70 These permissions can be pre-authorized only.
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/
H A Dgt_bundle_installer.h52 …uint8_t StorePermissions(const char *bundleName, PermissionTrans *permissions, int32_t permNum, bo…
62 …nt8_t CheckProvisionInfoIsValid(const SignatureInfo &signatureInfo, const Permissions &permissions,
71 #define FREE_PRO_RESOURCE(fp, permissions, bundleInfo) \ argument
77 UI_Free((permissions).permissionTrans); \
87 #define CHECK_PRO_RESULT(errcode, fp, permissions, bundleInfo, signatureInfo) \ argument
90 FREE_PRO_RESOURCE(fp, permissions, bundleInfo); \
105 #define CHECK_PRO_PART_ROLLBACK(errcode, path, permissions, bundleInfo, signatureInfo) \ argument
112 UI_Free((permissions).permissionTrans); \
117 #define CHECK_PRO_ROLLBACK(errcode, permissions, bundleInfo, signatureInfo, randStr) \ argument
121 UI_Free((permissions).permissionTrans); \
/ohos5.0/base/security/access_token/interfaces/innerkits/token_callback/test/unittest/src/
H A Dtoken_callback_test.cpp48 const std::vector<std::string> &permissions, const std::vector<int> &grantResults) in GrantResultsCallback() argument
50 GTEST_LOG_(INFO) << "GrantResultsCallback, permissions.size:" << permissions.size() << in GrantResultsCallback()
63 std::vector<std::string> permissions; variable
65 uint32_t listSize = permissions.size();
74 ASSERT_EQ(true, data.WriteString16(Str8ToStr16(permissions[i])));
96 std::vector<std::string> permissions; variable
98 permissions.emplace_back("ohos.permission.CAMERA");
100 uint32_t listSize = permissions.size();
109 ASSERT_EQ(true, data.WriteString16(Str8ToStr16(permissions[i])));
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-file-chmod.md6 This command is used to change file operation permissions.
20 | mode | Specifies the permissions for a file or directory. The value is an octal number, repre…
26 - Specify **mode** to change file permissions.
28permissions include only user read and write. The **group** and **others** permissions do not take…
36 Change the permissions on the **hello-openharmony.txt** file to **644** and **777**.
41 Modify the permissions on the **hello-openharmony.txt** file in the **/dev** directory.
/ohos5.0/docs/en/application-dev/media/medialibrary/
H A DphotoAccessHelper-preparation.md3 …refore, the application must also apply for the related read and write permissions from the user. …
25permissions for the **PhotoAccessHelper** module, ensure that the [basic principles for using perm…
32permissions must be authorized by the user. After adding the permissions in the **module.json5** f…
36 … the required permissions via the ACL. For details, see [Requesting Restricted Permissions](../../…
38 2. [Declare the required permissions in the **module.json5** file](../../security/AccessToken/decla…
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dbundle_installer.cpp172 Permissions permissions = {.permNum = 0, .permissionTrans = nullptr}; in ProcessBundleInstall() local
178 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
188 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
193 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
208 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
215 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
220 CHECK_PRO_RESULT(errorCode, bundleInfo, permissions, bundleRes.abilityRes); in ProcessBundleInstall()
235 …errorCode = StorePermissions(installRecord.bundleName, permissions.permissionTrans, permissions.pe… in ProcessBundleInstall()
242 AdapterFree(permissions.permissionTrans); in ProcessBundleInstall()
275 …(!MatchPermissions(signatureInfo.restrictedPermissions, permissions.permissionTrans, permissions.p… in CheckProvisionInfoIsValid()
[all …]

12345678910>>...232