未验证 提交 0adf8aa3 编写于 作者: O openharmony_ci 提交者: Gitee

!5060 【包管理子系统】【3.1Release】签名文件app-feature修改为hos_normal_app和应用设备类型由phone改为default

Merge pull request !5060 from ry/OpenHarmony-3.1-Release
......@@ -17,7 +17,7 @@
"package": "com.example.actsbmsaccesstokentest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -47,10 +47,6 @@
}
],
"reqPermissions": [
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO",
"reason":"need use ohos.permission.GET_BUNDLE_INFO"
......
......@@ -63,13 +63,13 @@ describe('ActsBmsAccessTokenTest', function () {
.then(bundleInfo => {
expect(bundleInfo.name).assertEqual(BUNDLE_NAME3);
expect(bundleInfo.reqPermissions.length).assertEqual(3);
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.MICROPHONE");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.READ_CALENDAR");
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.ALPHA");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.BETA");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissionStates.length).assertEqual(3);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[2]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[2]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
done();
}).catch((err) => {
expect(err).assertFail();
......@@ -87,14 +87,14 @@ describe('ActsBmsAccessTokenTest', function () {
.then(bundleInfo => {
expect(bundleInfo.name).assertEqual(BUNDLE_NAME2);
expect(bundleInfo.reqPermissions.length).assertEqual(5);
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.LOCATION_IN_BACKGROUND");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.READ_CALENDAR");
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.ALPHA");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.LOCATION_IN_BACKGROUND");
expect(bundleInfo.reqPermissions[3]).assertEqual("ohos.permission.SYSTEM_FLOAT_WINDOW");
expect(bundleInfo.reqPermissions[4]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(bundleInfo.reqPermissionStates.length).assertEqual(5);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[2]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[3]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[4]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
......@@ -115,16 +115,16 @@ describe('ActsBmsAccessTokenTest', function () {
.then(bundleInfo => {
expect(bundleInfo.name).assertEqual(BUNDLE_NAME1);
expect(bundleInfo.reqPermissions.length).assertEqual(6);
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.LOCATION_IN_BACKGROUND");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.MICROPHONE");
expect(bundleInfo.reqPermissions[3]).assertEqual("ohos.permission.READ_CALENDAR");
expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.ALPHA");
expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.BETA");
expect(bundleInfo.reqPermissions[2]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING");
expect(bundleInfo.reqPermissions[3]).assertEqual("ohos.permission.LOCATION_IN_BACKGROUND");
expect(bundleInfo.reqPermissions[4]).assertEqual("ohos.permission.SYSTEM_FLOAT_WINDOW");
expect(bundleInfo.reqPermissions[5]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(bundleInfo.reqPermissionStates.length).assertEqual(6);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[2]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[2]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[3]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED);
expect(bundleInfo.reqPermissionStates[4]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
expect(bundleInfo.reqPermissionStates[5]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED);
......
......@@ -17,7 +17,7 @@
"package": "com.example.actsbmsgetinfostest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -157,7 +157,7 @@ describe('ActsBmsQueryAbilityByWant', function () {
expect(data.isVisible).assertEqual(false);
expect(data.permissions.length).assertEqual(0);
expect(data.deviceCapabilities.length).assertEqual(0);
expect(data.deviceTypes[0]).assertEqual('phone');
expect(data.deviceTypes[0]).assertEqual('default');
expect(data.process).assertEqual(SYSTEM_NAME);
expect(data.uri).assertEqual('');
expect(data.bundleName).assertEqual(SYSTEM_NAME);
......
......@@ -17,7 +17,7 @@
"package": "com.example.actsbmshapmoduletest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -47,10 +47,6 @@
}
],
"reqPermissions": [
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO",
"reason":"need use ohos.permission.GET_BUNDLE_INFO"
......
......@@ -58,7 +58,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.backgroundImg).assertEqual("");
expect(hapModuleInfo.supportedModes).assertEqual(0);
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.deviceTypes[0]).assertEqual('default');
expect(hapModuleInfo.mainAbilityName).assertEqual(FIRSTMAINABILITY);
expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
......@@ -116,7 +116,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.backgroundImg).assertEqual("");
expect(hapModuleInfo.supportedModes).assertEqual(0);
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.deviceTypes[0]).assertEqual('default');
expect(hapModuleInfo.mainAbilityName).assertEqual("");
expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
......@@ -148,7 +148,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.backgroundImg).assertEqual("");
expect(hapModuleInfo.supportedModes).assertEqual(0);
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.deviceTypes[0]).assertEqual('default');
expect(hapModuleInfo.mainAbilityName).assertEqual("com.example.third5.AMainAbility");
expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
......@@ -181,7 +181,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(hapModuleInfo.backgroundImg).assertEqual("");
expect(hapModuleInfo.supportedModes).assertEqual(0);
expect(hapModuleInfo.reqCapabilities.length).assertEqual(0);
expect(hapModuleInfo.deviceTypes[0]).assertEqual('phone');
expect(hapModuleInfo.deviceTypes[0]).assertEqual('default');
expect(hapModuleInfo.mainAbilityName).assertEqual("com.example.system1.MainAbility");
expect(hapModuleInfo.abilityInfo.length).assertLarger(0);
expect(hapModuleInfo.installationFree).assertEqual(false);
......@@ -200,7 +200,7 @@ describe('ActsBmsHapModuleTest', function () {
expect(info.backgroundImg).assertEqual("");
expect(info.supportedModes).assertEqual(0);
expect(info.reqCapabilities.length).assertEqual(0);
expect(info.deviceTypes[0]).assertEqual('phone');
expect(info.deviceTypes[0]).assertEqual('default');
expect(info.abilityInfo.length).assertLarger(0);
expect(info.installationFree).assertEqual(false);
}
......
......@@ -17,7 +17,7 @@
"package": "com.example.actsbmsjstest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -48,10 +48,6 @@
}
],
"reqPermissions": [
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO",
"reason":"need use ohos.permission.GET_BUNDLE_INFO"
......
......@@ -30,7 +30,7 @@ describe('ActsBmsHasInstalldTest', function () {
it('hasInstalled_0100', 0, async function (done) {
let flag = 0;
pkg.hasInstalled({
bundleName: 'com.ohos.launcher',
bundleName: 'com.example.third2',
success: function success(data) {
console.info('hasInstalled success function in');
expect(data.result).assertTrue();
......
......@@ -53,7 +53,7 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.icon).assertEqual("$media:icon");
expect(abilityInfo1.isVisible).assertEqual(true);
expect(abilityInfo1.permissions.length).assertEqual(0);
expect(abilityInfo1.deviceTypes[0]).assertEqual('phone');
expect(abilityInfo1.deviceTypes[0]).assertEqual('default');
expect(abilityInfo1.process).assertEqual(BUNDLE_NAME2);
expect(abilityInfo1.uri).assertEqual("");
expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME2);
......@@ -128,7 +128,7 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.icon).assertEqual("$media:icon");
expect(abilityInfo1.isVisible).assertEqual(true);
expect(abilityInfo1.permissions.length).assertEqual(0);
expect(abilityInfo1.deviceTypes[0]).assertEqual('phone');
expect(abilityInfo1.deviceTypes[0]).assertEqual('default');
expect(abilityInfo1.process).assertEqual(BUNDLE_NAME4);
expect(abilityInfo1.uri).assertEqual("");
expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME4);
......@@ -170,7 +170,7 @@ describe('ActsBmsJsTest', function () {
expect(abilityInfo1.icon).assertEqual("$media:icon");
expect(abilityInfo1.isVisible).assertEqual(true);
expect(abilityInfo1.permissions.length).assertEqual(0);
expect(abilityInfo1.deviceTypes[0]).assertEqual('phone');
expect(abilityInfo1.deviceTypes[0]).assertEqual('default');
expect(abilityInfo1.process).assertEqual(BUNDLE_NAME5);
expect(abilityInfo1.uri).assertEqual("");
expect(abilityInfo1.bundleName).assertEqual(BUNDLE_NAME5);
......@@ -201,7 +201,7 @@ describe('ActsBmsJsTest', function () {
expect(info.icon).assertEqual("$media:icon");
expect(info.isVisible).assertEqual(true);
expect(info.permissions.length).assertEqual(0);
expect(info.deviceTypes[0]).assertEqual('phone');
expect(info.deviceTypes[0]).assertEqual('default');
expect(info.process).assertEqual(BUNDLE_NAME3);
expect(info.uri).assertEqual("");
expect(info.bundleName).assertEqual(BUNDLE_NAME3);
......
......@@ -17,7 +17,7 @@
"package": "com.example.actsbmsjsunpermissiontest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.actsbmsmetadatatest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -47,10 +47,6 @@
}
],
"reqPermissions": [
{
"name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED",
"reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED"
},
{
"name":"ohos.permission.GET_BUNDLE_INFO",
"reason":"need use ohos.permission.GET_BUNDLE_INFO"
......
......@@ -18,7 +18,7 @@
"name": ".MyApplication",
"mainAbility": "com.open.harmony.packagemag.MainAbility",
"deviceType": [
"phone"
"default"
],
"reqPermissions": [
{
......@@ -28,7 +28,7 @@
"name": "ohos.permission.GET_BUNDLE_INFO"
},
{
"name": "ohos.permission.CHANGE_ABILITY_ENABLED_STATE"
"name": "ohos.permission.USE_BLUETOOTH"
}
],
"distro": {
......
......@@ -230,7 +230,7 @@ export default function GetabilityInfo() {
expect(data.isVisible).assertEqual(true);
expect(Array.isArray(data.permissions)).assertEqual(true);
expect(Array.isArray(data.deviceCapabilities)).assertEqual(true);
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
expect(typeof (data.process)).assertEqual("string");
expect(data.process).assertEqual("com.open.harmony.packagemag");
expect(typeof (data.uri)).assertEqual("string");
......@@ -262,7 +262,7 @@ export default function GetabilityInfo() {
expect(info.label).assertEqual("$string:entry_MainAbility");
expect(typeof (info.labelId)).assertEqual("number");
expect(info.labelId > 0).assertTrue();
expect(info.systemApp).assertEqual(true);
expect(info.systemApp).assertEqual(false);
expect(typeof (info.entryDir)).assertEqual("string");
expect(info.entryDir).assertEqual("/data/app/el1/bundle/public/com.open.harmony.packagemag/com.open.harmony.packagemag");
expect(typeof (info.supportedModes)).assertEqual("number");
......@@ -281,7 +281,7 @@ export default function GetabilityInfo() {
expect(data.description).assertEqual("$string:mainability_description");
expect(data.icon).assertEqual("$media:icon");
expect(data.isVisible).assertEqual(true);
expect(data.deviceTypes[0]).assertEqual("phone");
expect(data.deviceTypes[0]).assertEqual("default");
expect(data.process).assertEqual("com.example.third1");
expect(data.uri).assertEqual("");
expect(data.moduleName).assertEqual("entry");
......
......@@ -274,7 +274,7 @@ export default function applicationBundleJsunit() {
if (data[i].uid !== 0) {
expect(data[i].uid > 0).assertEqual(true);
};
expect(data[i].systemApp).assertEqual(true);
expect(data[i].systemApp).assertEqual(false);
expect(data[i].supportedModes).assertEqual(0);
expect(data[i].process).assertEqual('com.open.harmony.packagemag');
expect(data[i].entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
......
......@@ -358,7 +358,7 @@ export default function applicationBundleJsunit() {
expect(data.uid > 0).assertEqual(true);
expect(data.label).assertEqual('$string:entry_MainAbility');
expect(data.labelId > 0).assertEqual(true);
expect(data.systemApp).assertEqual(true);
expect(data.systemApp).assertEqual(false);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual('com.open.harmony.packagemag');
expect(data.entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
......@@ -371,9 +371,9 @@ export default function applicationBundleJsunit() {
'com.open.harmony.packagemag/com.open.harmony.packagemag');
expect(data.moduleSourceDirs[0]).assertEqual('/data/app/el1/bundle/public/' +
'com.open.harmony.packagemag/com.open.harmony.packagemag');
expect(data.permissions[0]).assertEqual("ohos.permission.CHANGE_ABILITY_ENABLED_STATE");
expect(data.permissions[1]).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.permissions[2]).assertEqual("ohos.permission.GET_BUNDLE_INFO_PRIVILEGED");
expect(data.permissions[0]).assertEqual("ohos.permission.GET_BUNDLE_INFO");
expect(data.permissions[1]).assertEqual("ohos.permission.GET_BUNDLE_INFO_PRIVILEGED");
expect(data.permissions[2]).assertEqual("ohos.permission.USE_BLUETOOTH");
console.log(msg + ' end ' + JSON.stringify(data));
}
......@@ -388,7 +388,7 @@ export default function applicationBundleJsunit() {
expect(data.uid > 0).assertEqual(true);
expect(data.label).assertEqual('$string:entry_MainAbility');
expect(data.labelId > 0).assertEqual(true);
expect(data.systemApp).assertEqual(true);
expect(data.systemApp).assertEqual(false);
expect(data.supportedModes).assertEqual(0);
expect(data.process).assertEqual('com.open.harmony.packagemag');
expect(data.entryDir).assertEqual('/data/app/el1/bundle/public/com.open.harmony.packagemag' +
......
......@@ -17,7 +17,7 @@
"package": "com.example.actsbundlemanagertest",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -73,13 +73,13 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.installTime).assertLarger(0);
expect(datainfo.updateTime).assertLarger(0);
expect(datainfo.reqPermissions[0]).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(datainfo.reqPermissionDetails[0].name).assertEqual("ohos.permission.USE_BLUETOOTH");
expect(datainfo.reqPermissionDetails[0].reason).assertEqual("Need USE_BLUETOOTH");
expect(datainfo.reqPermissions[0]).assertEqual("ohos.permission.PERMISSION_A");
expect(datainfo.reqPermissionDetails[0].name).assertEqual("ohos.permission.PERMISSION_A");
expect(datainfo.reqPermissionDetails[0].reason).assertEqual("Need PERMISSION_A");
expect(datainfo.reqPermissionDetails[0].usedScene.abilities[0]).assertEqual(NAME1 + ".MainAbility");
expect(datainfo.reqPermissionDetails[0].usedScene.when).assertEqual("always");
expect(datainfo.compatibleVersion).assertEqual(5);
......@@ -135,7 +135,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0);
for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) {
expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry");
......@@ -167,7 +167,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.appInfo.enabled).assertEqual(true);
done();
......@@ -194,7 +194,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0);
for (let j = 0; j < datainfo.appInfo.moduleInfos.length; j++) {
expect(datainfo.appInfo.moduleInfos[j].moduleName).assertEqual("entry");
......@@ -300,7 +300,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0);
......@@ -368,7 +368,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId >= 0).assertTrue();
expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0);
expect(datainfo.enabled).assertEqual(true);
for (let j = 0; j < datainfo.moduleInfos.length; j++) {
......@@ -395,7 +395,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0);
}).catch(err => {
console.info("getApplicationInfo fail" + JSON.stringify(err));
......@@ -424,7 +424,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.descriptionId).assertLarger(0);
expect(parseInt(datainfo.iconId)).assertLarger(0);
expect(parseInt(datainfo.labelId)).assertLarger(0);
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0);
done();
})
......@@ -449,7 +449,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
done();
})
......@@ -473,7 +473,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.appInfo.iconId >= 0).assertTrue();
expect(datainfo.appInfo.label).assertEqual("$string:app_name");
expect(datainfo.appInfo.labelId >= 0).assertTrue();
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
done();
}
})
......@@ -650,7 +650,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId >= 0).assertTrue();
expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.labelId >= 0).assertTrue();
......@@ -740,7 +740,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.labelId >= 0).assertTrue();
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.supportedModes).assertEqual(0);
done();
})
......@@ -834,7 +834,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.icon).assertEqual("$media:icon");
expect(datainfo.label).assertEqual("$string:app_name");
expect(datainfo.systemApp).assertEqual(true);
expect(datainfo.systemApp).assertEqual(false);
expect(datainfo.descriptionId >= 0).assertTrue();
expect(datainfo.iconId >= 0).assertTrue();
expect(datainfo.labelId >= 0).assertTrue();
......@@ -1033,7 +1033,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.subType).assertEqual(demo.AbilitySubType.UNSPECIFIED);
expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.UNSPECIFIED);
expect(datainfo.launchMode).assertEqual(demo.LaunchMode.STANDARD);
expect(datainfo.permissions[0]).assertEqual("ohos.permission.INTERNET");
expect(datainfo.permissions[0]).assertEqual("ohos.permission.BMS_PERMISSION_CAMERA");
expect(datainfo.applicationInfo.name).assertEqual(NAME1);
expect(datainfo.applicationInfo.description).assertEqual(APPLICATION_DESCRIPTION);
expect(datainfo.applicationInfo.descriptionId >= 0).assertTrue();
......@@ -1041,7 +1041,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true);
expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.metaData.length).assertLarger(0);
......@@ -1086,7 +1086,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true);
expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.applicationInfo.enabled).assertEqual(true);
expect(datainfo.applicationInfo.moduleInfos[0].moduleName).assertEqual("entry");
......@@ -1132,7 +1132,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.applicationInfo.iconId >= 0).assertTrue();
expect(datainfo.applicationInfo.label).assertEqual("$string:app_name");
expect(datainfo.applicationInfo.labelId >= 0).assertTrue();
expect(datainfo.applicationInfo.systemApp).assertEqual(true);
expect(datainfo.applicationInfo.systemApp).assertEqual(false);
expect(datainfo.applicationInfo.supportedModes).assertEqual(0);
expect(datainfo.orientation).assertEqual(demo.DisplayOrientation.PORTRAIT);
expect(datainfo.applicationInfo.enabled).assertEqual(true);
......@@ -1193,7 +1193,7 @@ describe('ActsBundleManagerTest', function () {
expect(datainfo.versionName.length).assertLarger(0);
expect(datainfo.uid).assertLarger(2099);
expect(datainfo.appInfo.name).assertEqual(NAME1);
expect(datainfo.appInfo.systemApp).assertEqual(true);
expect(datainfo.appInfo.systemApp).assertEqual(false);
expect(datainfo.appInfo.supportedModes).assertEqual(0);
expect(datainfo.appInfo.moduleInfos.length).assertLarger(0);
expect(datainfo.appInfo.enabled).assertEqual(true);
......@@ -1229,7 +1229,7 @@ describe('ActsBundleManagerTest', function () {
expect(dataInfo.appInfo.iconId >= 0).assertTrue();
expect(dataInfo.appInfo.label).assertEqual("$string:app_name");
expect(dataInfo.appInfo.labelId >= 0).assertTrue();
expect(dataInfo.appInfo.systemApp).assertEqual(true);
expect(dataInfo.appInfo.systemApp).assertEqual(false);
expect(dataInfo.appInfo.supportedModes).assertEqual(0);
expect(dataInfo.updateTime).assertLarger(0);
expect(dataInfo.reqPermissions.length).assertEqual(0);
......@@ -1276,7 +1276,7 @@ describe('ActsBundleManagerTest', function () {
expect(dataInfo.appInfo.iconId >= 0).assertTrue();
expect(dataInfo.appInfo.label).assertEqual("$string:app_name");
expect(dataInfo.appInfo.labelId >= 0).assertTrue();
expect(dataInfo.appInfo.systemApp).assertEqual(true);
expect(dataInfo.appInfo.systemApp).assertEqual(false);
expect(dataInfo.appInfo.supportedModes).assertEqual(0);
expect(dataInfo.updateTime).assertLarger(0);
expect(dataInfo.reqPermissions.length).assertEqual(0);
......
......@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken3",
"name": ".MyApplication1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -66,14 +66,34 @@
}
}
],
"definePermissions":[
{
"availableLevel":"normal",
"description":"ALPHA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"ALPHA label",
"name":"ohos.permission.ALPHA",
"provisionEnable":true
},
{
"availableLevel":"normal",
"description":"BETA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"BETA label",
"name":"ohos.permission.BETA",
"provisionEnable":true
}
],
"reqPermissions":[
{
"name":"ohos.permission.READ_CALENDAR",
"reason":"use ohos.permission.READ_CALENDAR"
"name":"ohos.permission.ALPHA",
"reason":"use ohos.permission.ALPHA"
},
{
"name":"ohos.permission.MICROPHONE",
"reason":"use ohos.permission.MICROPHONE"
"name":"ohos.permission.BETA",
"reason":"use ohos.permission.BETA"
},
{
"name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
......
......@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken2",
"name": ".MyApplication1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -66,14 +66,34 @@
}
}
],
"definePermissions":[
{
"availableLevel":"normal",
"description":"ALPHA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"ALPHA label",
"name":"ohos.permission.ALPHA",
"provisionEnable":true
},
{
"availableLevel":"normal",
"description":"BETA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"BETA label",
"name":"ohos.permission.BETA",
"provisionEnable":true
}
],
"reqPermissions":[
{
"name":"ohos.permission.READ_CALENDAR",
"reason":"use ohos.permission.READ_CALENDAR"
"name":"ohos.permission.ALPHA",
"reason":"use ohos.permission.ALPHA"
},
{
"name":"ohos.permission.MICROPHONE",
"reason":"use ohos.permission.MICROPHONE"
"name":"ohos.permission.BETA",
"reason":"use ohos.permission.BETA"
},
{
"name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
......
......@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken1",
"name": ".MyApplication1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -66,14 +66,34 @@
}
}
],
"definePermissions":[
{
"availableLevel":"normal",
"description":"ALPHA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"ALPHA label",
"name":"ohos.permission.ALPHA",
"provisionEnable":true
},
{
"availableLevel":"normal",
"description":"BETA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"BETA label",
"name":"ohos.permission.BETA",
"provisionEnable":true
}
],
"reqPermissions":[
{
"name":"ohos.permission.READ_CALENDAR",
"reason":"use ohos.permission.READ_CALENDAR"
"name":"ohos.permission.ALPHA",
"reason":"use ohos.permission.ALPHA"
},
{
"name":"ohos.permission.MICROPHONE",
"reason":"use ohos.permission.MICROPHONE"
"name":"ohos.permission.BETA",
"reason":"use ohos.permission.BETA"
},
{
"name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
......
......@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken2",
"name": ".MyApplication2",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -66,10 +66,30 @@
}
}
],
"definePermissions":[
{
"availableLevel":"normal",
"description":"ALPHA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"ALPHA label",
"name":"ohos.permission.ALPHA",
"provisionEnable":true
},
{
"availableLevel":"normal",
"description":"BETA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"BETA label",
"name":"ohos.permission.BETA",
"provisionEnable":true
}
],
"reqPermissions":[
{
"name":"ohos.permission.READ_CALENDAR",
"reason":"use ohos.permission.READ_CALENDAR"
"name":"ohos.permission.ALPHA",
"reason":"use ohos.permission.ALPHA"
},
{
"name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
......
......@@ -17,7 +17,7 @@
"package": "com.example.bmsaccesstoken2",
"name": ".MyApplication1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -66,10 +66,30 @@
}
}
],
"definePermissions":[
{
"availableLevel":"normal",
"description":"ALPHA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"ALPHA label",
"name":"ohos.permission.ALPHA",
"provisionEnable":true
},
{
"availableLevel":"normal",
"description":"BETA description",
"distributedSceneEnable":true,
"grantMode":"user_grant",
"label":"BETA label",
"name":"ohos.permission.BETA",
"provisionEnable":true
}
],
"reqPermissions":[
{
"name":"ohos.permission.READ_CALENDAR",
"reason":"use ohos.permission.READ_CALENDAR"
"name":"ohos.permission.ALPHA",
"reason":"use ohos.permission.ALPHA"
},
{
"name": "ohos.permission.KEEP_BACKGROUND_RUNNING",
......
......@@ -17,7 +17,7 @@
"package": "com.example.firstrequestpermissions",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,7 +19,7 @@
"name": ".BmsThirdBundle5",
"mainAbility": "com.example.third5.AMainAbility",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -20,7 +20,7 @@
"name": "com.example.third1.BmsThirdBundle1",
"colorMode": "light",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -21,7 +21,7 @@
"mainAbility": "com.example.third1.AMainAbility",
"colorMode": "dark",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.third4",
"name": ".BmsThirdBundle4",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.c",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.js",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -20,7 +20,7 @@
"name": ".BmsSystemBundle1",
"mainAbility": "com.example.system1.MainAbility",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -23,7 +23,7 @@
"name": ".system2feature",
"mainAbility": "com.example.system2.MainAbility",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -20,7 +20,7 @@
"name": ".BmsSystemBundle1",
"mainAbility": "com.example.system2.MainAbility",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -23,7 +23,7 @@
"name": ".BmsSystemBundle1",
"mainAbility": "com.example.system2.MainAbility",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.vendor1",
"name": ".BmsVendorBundle1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -18,7 +18,7 @@
"package": "com.example.third2",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.third6",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -20,7 +20,7 @@
"name": ".BmsThirdBundle3",
"colorMode": "auto",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -19,7 +19,7 @@
"mainAbility": "com.example.bmsmainabilityfirstscene.MainAbility",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -18,7 +18,7 @@
"mainAbility": "com.example.bmsmainabilitysecondscene.MainAbility",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.third1",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.myapplication",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.myapplication",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.third1",
"name": "com.example.third1.MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.myapplication1",
"name": ".MyApplication1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......@@ -45,7 +45,7 @@
"launchType": "standard",
"orientation": "unspecified",
"language": "C++",
"permissions":["ohos.permission.INTERNET"],
"permissions":["ohos.permission.BMS_PERMISSION_CAMERA"],
"metaData": {
"customizeData": [
{
......@@ -68,10 +68,26 @@
}
}
],
"defPermissions": [
{
"availableScope": [
"signature"
],
"grantMode": "system_grant",
"name": "ohos.permission.BMS_PERMISSION_CAMERA",
"description": "BMS_PERMISSION_CAMERA permission in detail",
"label": "BMS_PERMISSION_CAMERA permission"
},
{
"name": "ohos.permission.PERMISSION_A",
"grantMode": "system_grant",
"availableScope": ["signature"]
}
],
"reqPermissions": [
{
"name": "ohos.permission.USE_BLUETOOTH",
"reason": "Need USE_BLUETOOTH",
"name": "ohos.permission.PERMISSION_A",
"reason": "Need PERMISSION_A",
"usedScene": {
"ability": [
"com.example.myapplication1.MainAbility"
......
{"app": {"apiVersion": {"compatible": 5,"releaseType": "Beta1","target": 5},"vendor": "example","bundleName": "com.example.napi_test_suite10","version": {"code": 1,"name": "1.0"}},"deviceConfig": {"default": {"debug": true}},"module": {"abilities": [{"iconId": 16777218,"skills": [{"entities": ["entity.system.home","flag.home.intent.from.system"],"actions": ["action.system.home"]}],"descriptionId": 16777217,"labelId": 16777216,"icon": "$media:icon","name": "com.example.napi_test_suite.MainAbility","description": "$string:mainability_description","label": "$string:app_name","type": "page","launchType": "standard"}],"deviceType": ["phone"],"distro": {"moduleType": "entry","deliveryWithInstall": true,"moduleName": "entry"},"package": "com.example.napi_test_suite","name": ".MyApplication","js": [{"pages": ["pages/index/index"],"name": "default","window": {"designWidth": 720,"autoDesignWidth": false}}]}}
\ No newline at end of file
{"app": {"apiVersion": {"compatible": 5,"releaseType": "Beta1","target": 5},"vendor": "example","bundleName": "com.example.napi_test_suite10","version": {"code": 1,"name": "1.0"}},"deviceConfig": {"default": {"debug": true}},"module": {"abilities": [{"iconId": 16777218,"skills": [{"entities": ["entity.system.home","flag.home.intent.from.system"],"actions": ["action.system.home"]}],"descriptionId": 16777217,"labelId": 16777216,"icon": "$media:icon","name": "com.example.napi_test_suite.MainAbility","description": "$string:mainability_description","label": "$string:app_name","type": "page","launchType": "standard"}],"deviceType": ["default"],"distro": {"moduleType": "entry","deliveryWithInstall": true,"moduleName": "entry"},"package": "com.example.napi_test_suite","name": ".MyApplication","js": [{"pages": ["pages/index/index"],"name": "default","window": {"designWidth": 720,"autoDesignWidth": false}}]}}
\ No newline at end of file
......@@ -17,7 +17,7 @@
"package": "com.example.myapplication",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -44,7 +44,7 @@
}
],
"deviceType": [
"phone"
"default"
],
"distro": {
"moduleType": "feature",
......
......@@ -17,7 +17,7 @@
"package": "com.example.myapplication1",
"name": ".MyApplication1",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
......@@ -17,7 +17,7 @@
"package": "com.example.secondrequestpermissions",
"name": ".MyApplication",
"deviceType": [
"phone"
"default"
],
"distro": {
"deliveryWithInstall": true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册