初始提交

This commit is contained in:
2026-01-04 11:09:06 +08:00
commit 8fa31df250
1326 changed files with 213907 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
{
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"phone",
"tablet",
"2in1"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:layered_image",
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
]
}
],
"definePermissions": [
{
"name": "ohos.permission.WRITE_USER_STORAGE",
"description": "允许应用写入用户存储",
"grantMode": "user_grant"
},
{
"name": "ohos.permission.READ_USER_STORAGE",
"description": "允许应用创建文件目录",
"grantMode": "user_grant"
}
],
"requestPermissions": [
{
"name": "ohos.permission.INTERNET"
},
{
"name": "ohos.permission.LOCATION",
"reason": "$string:permissionsReason",
"usedScene": {
"abilities": ["EntryAbility"],
"when": "always"
}
},
{
"name":"ohos.permission.CAMERA",
"reason":"$string:Camera",
"usedScene":{}
},
{
"name":"ohos.permission.MICROPHONE",
"reason":"$string:Voice",
"usedScene":{
"abilities":["EntryAbility"]
}
},
{
"name":"ohos.permission.WRITE_USER_STORAGE",
"reason":"$string:SaveFile",
"usedScene":{
"abilities":["com.example.MainAbility"],
"when": "inuse"
}
},
{
"name":"ohos.permission.READ_USER_STORAGE",
"reason":"$string:mkdir",
"usedScene":{
"abilities":["com.example.MainAbility"],
"when": "inuse"
}
}
]
}
}