module.json 2.3 KB
Newer Older
W
weiyufeng 已提交
1 2 3 4 5
{
    "module": {
        "name": "phone",
        "type": "entry",
        "srcEntrance": "./ets/Application/AbilityStage.ts",
C
caochuan 已提交
6
        "description": "$string:phone_entry_dsc",
W
weiyufeng 已提交
7 8
        "mainElement": "MainAbility",
        "deviceTypes": [
C
caochuan 已提交
9 10
            "tablet",
            "default",
11 12
            "phone",
            "2in1"
W
weiyufeng 已提交
13 14 15 16 17 18 19
        ],
        "deliveryWithInstall": true,
        "installationFree": false,
        "uiSyntax": "ets",
        "pages": "$profile:main_pages",
        "abilities": [
            {
C
caochuan 已提交
20
                "name": "com.example.myapplication.MainAbility",
W
weiyufeng 已提交
21
                "srcEntrance": "./ets/MainAbility/MainAbility.ts",
C
caochuan 已提交
22
                "description": "$string:phone_entry_main",
W
weiyufeng 已提交
23
                "icon": "$media:icon",
C
caochuan 已提交
24
                "label": "$string:entry_label",
W
weiyufeng 已提交
25 26 27 28 29 30 31
                "visible": true,
                "orientation": "portrait",
                "skills": [
                    {
                        "actions": [
                            "action.system.home"
                        ],
C
caochuan 已提交
32
                        "entities": [
W
weiyufeng 已提交
33 34 35 36 37 38
                            "entity.system.home"
                        ]
                    }
                ]
            }
        ],
C
caochuan 已提交
39
        "requestPermissions": [
W
weiyufeng 已提交
40 41 42 43 44 45
            {
                "name": "ohos.permission.GET_BUNDLE_INFO",
                "reason": "use ohos.permission.GET_BUNDLE_INFO"
            },
            {
                "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
C
caochuan 已提交
46
                "reason": "use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
W
weiyufeng 已提交
47 48
            },
            {
C
caochuan 已提交
49 50
                "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS",
                "reason": "use ohos.permission.GRANT_SENSITIVE_PERMISSIONS"
W
weiyufeng 已提交
51 52
            },
            {
C
caochuan 已提交
53 54
                "name": "ohos.permission.REVOKE_SENSITIVE_PERMISSIONS",
                "reason": "use ohos.permission.REVOKE_SENSITIVE_PERMISSIONS"
W
weiyufeng 已提交
55 56 57
            },
            {
                "name": "ohos.permission.MEDIA_LOCATION",
C
caochuan 已提交
58
                "reason": "use ohos.permission.MEDIA_LOCATION"
W
weiyufeng 已提交
59 60 61
            },
            {
                "name": "ohos.permission.READ_MEDIA",
C
caochuan 已提交
62
                "reason": "use ohos.permission.READ_MEDIA"
W
weiyufeng 已提交
63 64 65
            },
            {
                "name": "ohos.permission.WRITE_MEDIA",
C
caochuan 已提交
66
                "reason": "use ohos.permission.WRITE_MEDIA"
W
weiyufeng 已提交
67 68 69
            }
        ]
    }
C
caochuan 已提交
70
}