How to apply for media read and write permissions on Hongmeng device [Nut Pie]

How to apply for media read and write permissions on Hongmeng device

Applicable to: OpenHarmony version 3.2 API 9 Stage model and HarmonyOS

solution

1. Configure the media read and write permissions ohos.permission.READ_MEDIA and ohos.permission.WRITE_MEDIA in the module.json5 configuration file.

Example:

{
   
    
    
  "module" : {
   
    
    
    "requestPermissions":[
      {
   
    
    
        "name" : "ohos.permission.READ_MEDIA",
        "reason"<

Guess you like

Origin blog.csdn.net/qq_39132095/article/details/132772772