• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 对所有应用开放
2
3在申请目标权限前,建议开发者先阅读[申请应用权限](determine-application-mode.md),对权限的工作流程有基本了解后,再结合以下权限字段的具体说明,判断应用能否申请目标权限,提高开发效率。
4
5> **说明:**
6> 权限级别为normal的权限,不涉及ACL使能字段。
7
8## system_grant(系统授权)权限列表
9
10以下权限的授权方式均为[system_grant](app-permission-mgmt-overview.md#system_grant系统授权),申请方式请参考[声明权限](declare-permissions.md)。
11
12### ohos.permission.USE_BLUETOOTH
13
14允许应用查看蓝牙的配置。
15
16**权限级别**:normal
17
18**授权方式**:system_grant
19
20**起始版本**:8
21
22### ohos.permission.GET_BUNDLE_INFO
23
24允许查询应用的基本信息。
25
26**权限级别**:normal
27
28**授权方式**:system_grant
29
30**起始版本**:7
31
32### ohos.permission.PREPARE_APP_TERMINATE
33
34允许应用关闭前执行自定义的预关闭动作。
35
36**权限级别**:normal
37
38**授权方式**:system_grant
39
40**起始版本**:10
41
42### ohos.permission.PRINT
43
44允许应用获取打印框架的能力。
45
46**权限级别**:normal
47
48**授权方式**:system_grant
49
50**起始版本**:10
51
52### ohos.permission.DISCOVER_BLUETOOTH
53
54允许应用配置本地蓝牙,查找远端设备且与之配对连接。
55
56**权限级别**:normal
57
58**授权方式**:system_grant
59
60**起始版本**:8
61
62### ohos.permission.ACCELEROMETER
63
64允许应用读取加速度传感器的数据。
65
66**权限级别**:normal
67
68**授权方式**:system_grant
69
70**起始版本**:7
71
72### ohos.permission.ACCESS_BIOMETRIC
73
74允许应用使用生物特征识别能力进行身份认证。
75
76**权限级别**:normal
77
78**授权方式**:system_grant
79
80**起始版本**:6
81
82### ohos.permission.ACCESS_NOTIFICATION_POLICY
83
84在本设备上允许应用访问通知策略。
85
86仅当控制铃声从静音到非静音时,需要申请该权限。
87
88**权限级别**:normal
89
90**授权方式**:system_grant
91
92**起始版本**:7
93
94### ohos.permission.GET_NETWORK_INFO
95
96允许应用获取数据网络信息。
97
98**权限级别**:normal
99
100**授权方式**:system_grant
101
102**起始版本**:8
103
104### ohos.permission.GET_WIFI_INFO
105
106允许应用获取Wi-Fi信息。
107
108**权限级别**:normal
109
110**授权方式**:system_grant
111
112**起始版本**:8
113
114### ohos.permission.GYROSCOPE
115
116允许应用读取陀螺仪传感器的数据。
117
118**权限级别**:normal
119
120**授权方式**:system_grant
121
122**起始版本**:7
123
124### ohos.permission.INTERNET
125
126允许使用Internet网络。
127
128**权限级别**:normal
129
130**授权方式**:system_grant
131
132**起始版本**:9
133
134### ohos.permission.KEEP_BACKGROUND_RUNNING
135
136允许Service Ability在后台持续运行。
137
138**权限级别**:normal
139
140**授权方式**:system_grant
141
142**起始版本**:8
143
144### ohos.permission.NFC_CARD_EMULATION
145
146允许应用实现卡模拟功能。
147
148**权限级别**:normal
149
150**授权方式**:system_grant
151
152**起始版本**:8
153
154### ohos.permission.NFC_TAG
155
156允许应用读写Tag卡片。
157
158**权限级别**:normal
159
160**授权方式**:system_grant
161
162**起始版本**:7
163
164### ohos.permission.PRIVACY_WINDOW
165
166允许应用将窗口设置为隐私窗口,禁止截屏录屏。
167
168**权限级别**:API version 9-10为system_basic;从API version 11开始为normal。
169
170**授权方式**:system_grant
171
172**起始版本**:9
173
174### ohos.permission.PUBLISH_AGENT_REMINDER
175
176允许该应用使用后台代理提醒。
177
178**权限级别**:normal
179
180**授权方式**:system_grant
181
182**起始版本**:7
183
184### ohos.permission.SET_WIFI_INFO
185
186允许应用配置Wi-Fi设备。
187
188**权限级别**:normal
189
190**授权方式**:system_grant
191
192**起始版本**:8
193
194### ohos.permission.VIBRATE
195
196允许应用控制马达振动。
197
198**权限级别**:normal
199
200**授权方式**:system_grant
201
202**起始版本**:7
203
204### ohos.permission.CLEAN_BACKGROUND_PROCESSES
205
206允许应用根据包名清理相关后台进程。
207
208**权限级别**:normal
209
210**授权方式**:system_grant
211
212**起始版本**:7
213
214### ohos.permission.COMMONEVENT_STICKY
215
216允许应用发布粘性公共事件。
217
218**权限级别**:normal
219
220**授权方式**:system_grant
221
222**起始版本**:7
223
224### ohos.permission.MODIFY_AUDIO_SETTINGS
225
226允许应用修改音频设置。
227
228**权限级别**:normal
229
230**授权方式**:system_grant
231
232**起始版本**:8
233
234### ohos.permission.RUNNING_LOCK
235
236允许应用获取运行锁,保证应用在后台的持续运行。
237
238**权限级别**:normal
239
240**授权方式**:system_grant
241
242**起始版本**:7
243
244### ohos.permission.SET_WALLPAPER
245
246允许应用设置壁纸。
247
248**权限级别**:normal
249
250**授权方式**:system_grant
251
252**起始版本**:7
253
254### ohos.permission.ACCESS_CERT_MANAGER
255
256允许应用进行查询证书及私有凭据等操作。
257
258**权限级别**:normal
259
260**授权方式**:system_grant
261
262**起始版本**:9
263
264### ohos.permission.hsdr.HSDR_ACCESS
265
266允许应用访问安全检测与响应框架。
267
268**权限级别**:normal
269
270**授权方式**:system_grant
271
272**起始版本**:10
273
274### ohos.permission.RUN_DYN_CODE
275
276允许系统方舟运行时引擎在受限模式下执行动态下发的方舟字节码。
277
278该权限相关的API均为系统API,仅部分特定系统应用可申请该权限。
279
280**权限级别**:normal
281
282**授权方式**:system_grant
283
284**起始版本**:11
285
286### ohos.permission.READ_CLOUD_SYNC_CONFIG
287
288允许接入云空间的应用查询应用云同步相关配置信息。
289
290**权限级别**:normal
291
292**授权方式**:system_grant
293
294**起始版本**:11
295
296### ohos.permission.STORE_PERSISTENT_DATA
297
298允许应用存储持久化的数据,该数据直到设备恢复出厂设置或重装系统才会被清除。
299
300**权限级别**: normal
301
302**授权方式**:system_grant
303
304**起始版本**: 11
305
306### ohos.permission.ACCESS_EXTENSIONAL_DEVICE_DRIVER
307
308允许应用使用外接设备增强功能。
309
310**权限级别**: normal
311
312**授权方式**:system_grant
313
314**起始版本**:11
315
316### ohos.permission.READ_ACCOUNT_LOGIN_STATE
317
318允许应用读取用户账号的登录状态。
319
320**权限级别**:normal
321
322**授权方式**:system_grant
323
324**起始版本**:12
325
326### ohos.permission.ACCESS_SERVICE_NAVIGATION_INFO
327
328允许应用访问导航信息服务。
329
330**权限级别**:normal
331
332**授权方式**:system_grant
333
334**起始版本**:12
335
336### ohos.permission.PROTECT_SCREEN_LOCK_DATA
337
338允许应用在锁屏后保护本应用敏感数据不被访问。
339
340应用获取此权限后,系统将给用户新建一个高安全级别el5的目录。应用可以在此目录下存放数据,这部分数据在锁屏后无法被访问。
341
342**权限级别**:normal
343
344**授权方式**:system_grant
345
346**起始版本**:12
347
348### ohos.permission.FILE_ACCESS_PERSIST
349
350允许应用支持持久化访问文件Uri。
351
352<!--RP2--><!--RP2End-->
353
354**权限级别**:API version 11为system_basic; 从API version 12开始为normal。
355
356**授权方式**:system_grant
357
358**起始版本**:11
359
360### ohos.permission.ACCESS_CAR_DISTRIBUTED_ENGINE
361
362允许应用访问出行分布式业务引擎。
363
364**权限级别**:normal
365
366**授权方式**:system_grant
367
368**起始版本**:12
369
370## user_grant(用户授权)权限列表
371
372以下权限的授权方式均为[user_grant(用户授权)](app-permission-mgmt-overview.md#user_grant用户授权),申请方式请参考[声明权限](declare-permissions.md) &gt; [向用户申请授权](request-user-authorization.md) 。
373
374### ohos.permission.ACCESS_BLUETOOTH
375
376允许应用接入蓝牙并使用蓝牙能力,例如配对、连接外围设备等。
377
378**权限级别**:normal
379
380**授权方式**:user_grant
381
382**起始版本**:10
383
384### ohos.permission.MEDIA_LOCATION
385
386允许应用访问用户媒体文件中的地理位置信息。
387
388**权限级别**:normal
389
390**授权方式**:user_grant
391
392**起始版本**:7
393
394### ohos.permission.APP_TRACKING_CONSENT
395
396允许应用读取开放匿名设备标识符。
397
398**权限级别**:normal
399
400**授权方式**:user_grant
401
402**起始版本**:9
403
404### ohos.permission.ACTIVITY_MOTION
405
406允许应用读取用户的运动状态。
407
408**权限级别**:normal
409
410**授权方式**:user_grant
411
412**起始版本**:7
413
414### ohos.permission.CAMERA
415
416允许应用使用相机。
417
418**权限级别**:normal
419
420**授权方式**:user_grant
421
422**起始版本**:9
423
424### ohos.permission.DISTRIBUTED_DATASYNC
425
426允许不同设备间的数据交换。
427
428**权限级别**:normal
429
430**授权方式**:user_grant
431
432**起始版本**:7
433
434### ohos.permission.LOCATION_IN_BACKGROUND
435
436允许应用在后台运行时获取设备位置信息。
437
438由于安全隐私要求,应用不能通过弹窗的形式被授予后台位置权限,应用如果需要使用后台位置权限,需要引导用户到设置界面手动授予。
439
440**申请流程**:
441
4421. 在“module.json5”配置文件中[声明权限](declare-permissions.md)。
443
444   由于在申请后台权限前,必须先申请前台位置权限,因此开发者在配置时,应同时配置后台位置权限ohos.permission.LOCATION_IN_BACKGROUND和前台位置权限。前台位置权限的申请有两种允许情况:
445   - 申请前台模糊位置权限:[ohos.permission.APPROXIMATELY_LOCATION](#ohospermissionapproximately_location)。
446   - 申请前台精确位置权限:[ohos.permission.APPROXIMATELY_LOCATION](#ohospermissionapproximately_location)和[ohos.permission.LOCATION](#ohospermissionlocation)。
4472. 应用需通过弹窗向用户申请对应的前台位置权限。
4483. 当用户点击弹窗授予前台位置权限后,应用应通过弹窗、提示窗等形式告知用户前往设置界面授予后台位置权限。
4494. 用户在设置界面中的选择“始终允许”应用访问位置信息权限,完成手动授予。
450
451   设置路径:
452   <!--RP1-->
453   - 路径一:设置 > 隐私 > 权限管理 > 位置信息 > *具体应用*
454   - 路径二:设置 > 隐私 > 权限管理 > 应用 > *具体应用* > 位置信息
455   <!--RP1End-->
456
457**权限级别**:normal
458
459**授权方式**:user_grant
460
461**起始版本**:7
462
463### ohos.permission.LOCATION
464
465允许应用获取设备位置信息。
466
467**申请条件**:需要与模糊位置权限[ohos.permission.APPROXIMATELY_LOCATION](#ohospermissionapproximately_location)一起,才可申请此权限。
468
469**权限级别**:normal
470
471**授权方式**:user_grant
472
473**起始版本**:7
474
475### ohos.permission.APPROXIMATELY_LOCATION
476
477允许应用获取设备模糊位置信息。
478
479**权限级别**:normal
480
481**授权方式**:user_grant
482
483**起始版本**:9
484
485### ohos.permission.MICROPHONE
486
487允许应用使用麦克风。
488
489**权限级别**:normal
490
491**授权方式**:user_grant
492
493**起始版本**:8
494
495### ohos.permission.READ_CALENDAR
496
497允许应用读取日历信息。
498
499**权限级别**:normal
500
501**授权方式**:user_grant
502
503**起始版本**:8
504
505### ohos.permission.WRITE_CALENDAR
506
507允许应用添加、移除或更改日历活动。
508
509**权限级别**:normal
510
511**授权方式**:user_grant
512
513**起始版本**:8
514
515### ohos.permission.READ_HEALTH_DATA
516
517允许应用读取用户的健康数据。
518
519**权限级别**:normal
520
521**授权方式**:user_grant
522
523**起始版本**:7
524
525### ohos.permission.ACCESS_NEARLINK
526
527允许应用接入星闪并使用星闪能力,例如配对、连接外围设备等。
528
529**权限级别**:normal
530
531**授权方式**:user_grant
532
533**起始版本**:12
534
535### ohos.permission.READ_WRITE_DOWNLOAD_DIRECTORY
536
537允许应用访问公共目录下Download目录及子目录。
538
539当前仅2in1设备应用可申请此权限。
540
541<!--RP2--><!--RP2End-->
542
543**权限级别**:API version 11为system_basic; 从API version 12开始为normal。
544
545**授权方式**:user_grant
546
547**起始版本**:11
548
549### ohos.permission.READ_WRITE_DOCUMENTS_DIRECTORY
550
551允许应用访问公共目录下的Documents目录及子目录。
552
553当前仅2in1设备应用可申请此权限。
554
555<!--RP2--><!--RP2End-->
556
557**权限级别**:API version 11为system_basic; 从API version 12开始为normal。
558
559**授权方式**:user_grant
560
561**起始版本**:11
562
563### ohos.permission.READ_MEDIA
564
565允许应用读取用户外部存储中的媒体文件信息。
566
567**权限级别**:normal
568
569**授权方式**:user_grant
570
571**起始版本**:7
572
573**废弃版本**:12
574
575**替代方案**:
576
577请参考[文件权限组废弃替代方案](app-permission-group-list.md#文件deprecated)。
578
579### ohos.permission.WRITE_MEDIA
580
581允许应用读写用户外部存储中的媒体文件信息。
582
583**权限级别**:normal
584
585**授权方式**:user_grant
586
587**起始版本**:7
588
589**废弃版本**:12
590
591**替代方案**:
592
593请参考[文件权限组废弃替代方案](app-permission-group-list.md#文件deprecated)。
594