• 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.ets",
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    "extensionAbilities": [
36      {
37        "name": "FilePickerUIExtAbility",
38        "srcEntry": "./ets/entryability/FilePickerUIExtAbility.ets",
39        "description": "FilePickerUIExtAbility",
40        "exported": true,
41        "type": "sysPicker/filePicker",
42      },
43    ],
44    requestPermissions: [
45      // 媒体库管理权限
46      {
47        name: "ohos.permission.MEDIA_LOCATION",
48        "reason": "$string:permission_storage_reason_tips",
49        usedScene: {
50          "when": "always",
51          "abilities": ['MainAbility']
52        }
53      },
54      {
55        name: "ohos.permission.READ_MEDIA",
56        "reason": "$string:permission_storage_reason_tips",
57        usedScene: {
58          "when": "always",
59          "abilities": ['MainAbility']
60        }
61      },
62      {
63        name: "ohos.permission.WRITE_MEDIA",
64        "reason": "$string:permission_storage_reason_tips",
65        usedScene: {
66          "when": "always",
67          "abilities": ['MainAbility']
68        }
69      },
70      // 文件管理权限
71      {
72        name: "ohos.permission.FILE_ACCESS_MANAGER"
73      },
74      // 应用程序包管理权限
75      {
76        name: 'ohos.permission.GET_BUNDLE_INFO_PRIVILEGED'
77      },
78      // 公共目录uri代理授权的权限
79      {
80        "name": "ohos.permission.PROXY_AUTHORIZATION_URI"
81      }
82    ]
83  }
84}