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