1{ 2 "module": { 3 "name": "phone_photos", 4 "type": "entry", 5 "srcEntry": "./ets/Application/AbilityStage.ts", 6 "description": "$string:mainability_description", 7 "mainElement": "MainAbility", 8 "deviceTypes": [ 9 "default", 10 "tablet" 11 ], 12 "deliveryWithInstall": true, 13 "installationFree": false, 14 "pages": "$profile:main_pages", 15 "metadata": [ 16 { 17 "name": "ArkTSPartialUpdate", 18 "value": "true" 19 } 20 ], 21 "requestPermissions": [ 22 { 23 "name": "ohos.permission.PROXY_AUTHORIZATION_URI" 24 }, 25 { 26 "name": "ohos.permission.READ_IMAGEVIDEO" 27 }, 28 { 29 "name": "ohos.permission.WRITE_IMAGEVIDEO" 30 }, 31 { 32 "name": "ohos.permission.MEDIA_LOCATION" 33 }, 34 { 35 "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" 36 }, 37 { 38 "name": "ohos.permission.GET_BUNDLE_INFO" 39 } 40 ], 41 "abilities": [ 42 { 43 "startWindowIcon": "$media:startWindow_Bg", 44 "startWindowBackground": "$color:white", 45 "name": "com.ohos.photos.MainAbility", 46 "srcEntry": "./ets/MainAbility/MainAbility.ts", 47 "description": "$string:description_mainability", 48 "icon": "$media:ohos_gallery", 49 "label": "$string:app_name", 50 "visible": true, 51 "launchType": "singleton", 52 "skills": [ 53 { 54 "entities": [ 55 "entity.system.home" 56 ], 57 "actions": [ 58 "action.system.home", 59 "ohos.want.action.viewData", 60 "ohos.want.action.photoPicker" 61 ], 62 "uris": [ 63 { 64 "type": "image/*", 65 "scheme": 'file' 66 }, 67 { 68 "type": "video/*", 69 "scheme": 'file' 70 }, 71 { 72 "type": "multipleselect", 73 "scheme": 'file' 74 }, 75 { 76 "type": "singleselect", 77 "scheme": 'file' 78 }, 79 { 80 "type": "image/*" 81 }, 82 { 83 "type": "video/*" 84 }, 85 { 86 "type": "multipleselect" 87 }, 88 { 89 "type": "singleselect" 90 } 91 ] 92 } 93 ], 94 "supportWindowMode": [ 95 "fullscreen" 96 ] 97 } 98 ], 99 "extensionAbilities": [ 100 { 101 "name": "com.ohos.photos.FormAbility", 102 "srcEntry": "./ets/FormAbility/FormAbility.ts", 103 "label": "$string:form_FormAbility_label", 104 "description": "$string:app_name", 105 "type": "form", 106 "metadata": [ 107 { 108 "name": "ohos.extension.form", 109 "resource": "$profile:form_config" 110 } 111 ], 112 }, 113 { 114 "name": "com.ohos.photos.ServiceExtAbility", 115 "srcEntry": "./ets/ServiceExt/ServiceExtAbility.ts", 116 "icon": "$media:ohos_gallery", 117 "description": "$string:app_name", 118 "type": "service", 119 "visible": true, 120 "skills": [ 121 { 122 "actions": [ 123 "ohos.want.action.deleteDialog" 124 ], 125 "uris": [ 126 { 127 "type": "image/*" 128 } 129 ], 130 } 131 ] 132 }, 133 { 134 "name": "PickerUIExtensionAbility", 135 "description": "PickerUIExtensionAbility", 136 "type": "sysPicker/photoPicker", 137 "exported": true, 138 "srcEntry": "./ets/picker/PickerUIExtensionAbility.ets" 139 }, 140 { 141 "name": "DeleteUIExtensionAbility", 142 "description": "DeleteUIExtensionAbility", 143 "type": "sysDialog/common", 144 "exported": true, 145 "srcEntry": "./ets/DeleteAbility/DeleteUIExtensionAbility.ets" 146 } 147 ] 148 }, 149}