Hherb.liuadd opp
14b8ed23创建于 23 天前历史提交
{
  "module": {
    "name": "entry",
    "type": "entry",
    "srcEntrance": "",
    "description": "$string:share_name",
    "mainElement": "EntryAbility",
    "deviceTypes": [
      "phone",
      "tablet",
      "2in1",
      "wearable",
      "tv"
    ],
    "apiType": "stageMode",
    "deliveryWithInstall": true,
    "installationFree": false,
    "pages": "$profile:main_pages",
    "abilities": [
      {
        "name": "EntryAbility",
        "srcEntry": "./ets/common/MainAbility.ets",
        "label": "$string:share_name",
        "skills": [
          {
            "entities": [
              "entity.system.home"
            ],
            "actions": [
              "action.system.home"
            ]
          }
        ]
      },
      {
        "name": "BluetoothReceiveUIAbility",
        "srcEntry": "./ets/oppability/BluetoothReceiveUIAbility.ets",
        "launchType": "singleton",
        "icon": "$media:app_icon",
        "label": "BluetoothReceiveUIAbility",
        "description": "service",
        "metadata": [],
        "exported": true,
        "permissions": ["ohos.permission.MANAGE_BLUETOOTH"],
        "continuable": false,
        "skills": [],
        "backgroundModes": [
          "bluetoothInteraction"
        ],
        "startWindowIcon": "$media:app_icon",
        "startWindowBackground": "$color:start_window_background",
        "removeMissionAfterTerminate": true
      },
      {
        "name": "BluetoothSendUIAbility",
        "srcEntry": "./ets/oppability/BluetoothSendUIAbility.ets",
        "launchType": "singleton",
        "icon": "$media:app_icon",
        "label": "BluetoothSendUIAbility",
        "description": "service",
        "metadata": [],
        "exported": true,
        "permissions": ["ohos.permission.MANAGE_BLUETOOTH"],
        "continuable": false,
        "skills": [],
        "backgroundModes": [
          "bluetoothInteraction"
        ],
        "startWindowIcon": "$media:app_icon",
        "startWindowBackground": "$color:start_window_background",
        "removeMissionAfterTerminate": true
      }
    ],
    "extensionAbilities": [
      {
        "name": "BluetoothServiceAbility",
        "icon": "$media:app_icon",
        "label": "$string:share_name",
        "description": "UIExtAbility",
        "srcEntry": "./ets/oppability/BluetoothServiceAbility.ets",
        "type": "share",
        "extensionProcessMode": "instance",
        "exported": true,
        "permissions": ["ohos.permission.KEEP_BACKGROUND_RUNNING"],
        "skills": [
          {
            "actions": [
              "ohos.want.action.sendData"
            ],
            "uris": [
              {
                "scheme": "file",
                "utd": "general.object",
                "maxFileSupported": 300
              },
              {
                "scheme": "file",
                "utd": "general.entity",
                "maxFileSupported": 300
              }
            ]
          }
        ]
      },
      {
        "name": "BluetoothReceiveServiceUIAbility",
        "srcEntry": "./ets/oppability/BluetoothReceiveServiceUIAbility.ets",
        "description": "BluetoothReceiveServiceUIAbility",
        "label": "BluetoothReceiveServiceUIAbility",
        "exported": true,
        "permissions": ["ohos.permission.MANAGE_BLUETOOTH"],
        "type": "sysDialog/common"
      }
    ],
    "requestPermissions": [
      {
        "name": "ohos.permission.GET_BUNDLE_INFO"
      },
      {
        "name": "ohos.permission.ACCESS_BLUETOOTH",
        "reason": "use at bluetooth app",
        "usedScene": {
          "abilities": [
            "BluetoothReceiveServiceUIAbility",
            "BluetoothReceiveUIAbility",
            "BluetoothSendUIAbility",
            "BluetoothServiceAbility"
          ]
        }
      },
      {
        "name": "ohos.permission.USE_BLUETOOTH",
        "reason": "use at bluetooth app"
      },
      {
        "name": "ohos.permission.MANAGE_BLUETOOTH",
        "reason": "use at bluetooth app"
      },
      {
        "name": "ohos.permission.ACCESS_SYSTEM_SETTINGS",
        "reason": "use at bluetooth app"
      },
      {
        "name": "ohos.permission.WRITE_IMAGEVIDEO",
        "reason": "use at bluetooth app",
        "usedScene": {
          "abilities": [
            "BluetoothReceiveServiceUIAbility",
            "BluetoothReceiveUIAbility"
          ]
        }
      },
      {
        "name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
        "reason": "use at bluetooth app"
      }
    ]
  }
}