• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "module": {
3    "name": "entry",
4    "type": "entry",
5    "srcEntry": "./ets/application/PickerAbilityStage.ets",
6    "description": "$string:module_desc",
7    "mainElement": "MainAbility",
8    "deviceTypes": [
9      "default",
10      "tablet"
11    ],
12    "deliveryWithInstall": true,
13    "installationFree": false,
14    "pages": "$profile:main_pages",
15    "abilities": [
16      {
17        "name": "MainAbility",
18        "srcEntry": "./ets/entryability/MainAbility.ts",
19        "description": "$string:EntryAbility_desc",
20        "icon": "$media:app_icon",
21        "label": "$string:EntryAbility_label",
22        "startWindowIcon": "$media:app_icon",
23        "startWindowBackground": "$color:start_window_background",
24        "exported": true,
25        "skills": [
26          {
27            "actions": [
28              "ohos.want.action.OPEN_FILE",
29              "ohos.want.action.CREATE_FILE"
30            ]
31          }
32        ]
33      }
34    ],
35    requestPermissions: [
36      // 媒体库管理权限
37      {
38        name: "ohos.permission.MEDIA_LOCATION",
39        "reason": "$string:permission_storage_reason_tips",
40        usedScene: {
41          "when": "always",
42          "abilities": ['MainAbility']
43        }
44      },
45      {
46        name: "ohos.permission.READ_MEDIA",
47        "reason": "$string:permission_storage_reason_tips",
48        usedScene: {
49          "when": "always",
50          "abilities": ['MainAbility']
51        }
52      },
53      {
54        name: "ohos.permission.WRITE_MEDIA",
55        "reason": "$string:permission_storage_reason_tips",
56        usedScene: {
57          "when": "always",
58          "abilities": ['MainAbility']
59        }
60      },
61      // 文件管理权限
62      {
63        name: "ohos.permission.FILE_ACCESS_MANAGER"
64      },
65      // 应用程序包管理权限
66      {
67        name: 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'
68      },
69      // 公共目录uri代理授权的权限
70      {
71        "name": "ohos.permission.PROXY_AUTHORIZATION_URI"
72      }
73    ]
74  }
75}