提交 182c26bf 编写于 作者: Z zhuhongtao666 提交者: Gitee

Merge branch 'master' of gitee.com:openharmony/xts_acts into moveFile

Signed-off-by: Nzhuhongtao666 <zhuhongtao12@huawei.com>
...@@ -57,6 +57,7 @@ Note:If the text contains special characters, please escape them according to th ...@@ -57,6 +57,7 @@ Note:If the text contains special characters, please escape them according to th
<policylist> <policylist>
<policy name="projectPolicy" desc=""> <policy name="projectPolicy" desc="">
<policyitem type="copyright" name="Copyright (c) 2022 Shenzhen Kaihong Digital" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> <policyitem type="copyright" name="Copyright (c) 2022 Shenzhen Kaihong Digital" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
<policyitem type="copyright" name="Copyright (c) 2023-2030 iSoftStone Information Technology (Group) Co.,Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/>
</policy> </policy>
</policylist> </policylist>
<filefilterlist> <filefilterlist>
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -33,6 +39,12 @@ ...@@ -33,6 +39,12 @@
} }
] ]
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -33,6 +39,12 @@ ...@@ -33,6 +39,12 @@
} }
] ]
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -33,6 +39,12 @@ ...@@ -33,6 +39,12 @@
} }
] ]
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -59,6 +65,12 @@ ...@@ -59,6 +65,12 @@
"visible": true, "visible": true,
"launchType": "singleton" "launchType": "singleton"
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
{ {
"app": { "app": {
"bundleName": "com.example.amsabilitymultiinstanceappa", "bundleName": "com.acts.abilitymultiinstancea",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -22,8 +22,8 @@ function publishCallBack() { ...@@ -22,8 +22,8 @@ function publishCallBack() {
} }
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -34,34 +34,34 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -34,34 +34,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
{ {
"module": { "module": {
"name": "com.example.amsabilitymultiinstanceappa", "name": "com.acts.abilitymultiinstancea",
"type": "entry", "type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts", "srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
...@@ -13,9 +13,15 @@ ...@@ -13,9 +13,15 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.amsabilitymultiinstanceappa.MainAbility", "name": "com.acts.abilitymultiinstancea.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.amsabilitymultiinstanceappb", "bundleName": "com.acts.abilitymultiinstanceb",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -22,8 +22,8 @@ function publishCallBack() { ...@@ -22,8 +22,8 @@ function publishCallBack() {
} }
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -34,34 +34,34 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -34,34 +34,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
{ {
"module": { "module": {
"name": "com.example.amsabilitymultiinstanceappb", "name": "com.acts.abilitymultiinstanceb",
"type": "entry", "type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts", "srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
...@@ -13,9 +13,15 @@ ...@@ -13,9 +13,15 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.amsabilitymultiinstanceappb.MainAbility", "name": "com.acts.abilitymultiinstanceb.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.amsabilitymultiinstanceappc", "bundleName": "com.acts.abilitymultiinstancec",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -41,8 +41,8 @@ async function onShowProcess() { ...@@ -41,8 +41,8 @@ async function onShowProcess() {
} }
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -53,34 +53,34 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -53,34 +53,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
{ {
"module": { "module": {
"name": "com.example.amsabilitymultiinstanceappc", "name": "com.acts.abilitymultiinstancec",
"type": "entry", "type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts", "srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
...@@ -13,9 +13,15 @@ ...@@ -13,9 +13,15 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.amsabilitymultiinstanceappc.MainAbility", "name": "com.acts.abilitymultiinstancec.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.amsabilitymultiinstanceappd", "bundleName": "com.acts.abilitymultiinstanced",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
...@@ -42,8 +42,8 @@ async function onShowProcess() { ...@@ -42,8 +42,8 @@ async function onShowProcess() {
} }
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -54,34 +54,34 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -54,34 +54,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
...@@ -42,8 +42,8 @@ async function onShowProcess() { ...@@ -42,8 +42,8 @@ async function onShowProcess() {
} }
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -54,34 +54,34 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -54,34 +54,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
...@@ -42,8 +42,8 @@ async function onShowProcess() { ...@@ -42,8 +42,8 @@ async function onShowProcess() {
} }
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -54,30 +54,30 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -54,30 +54,30 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
default: default:
......
{ {
"module": { "module": {
"name": "com.example.amsabilitymultiinstanceappd", "name": "com.acts.abilitymultiinstanced",
"type": "entry", "type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts", "srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
...@@ -13,9 +13,15 @@ ...@@ -13,9 +13,15 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.amsabilitymultiinstanceappd.MainAbility", "name": "com.acts.abilitymultiinstanced.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
...@@ -35,7 +41,7 @@ ...@@ -35,7 +41,7 @@
] ]
}, },
{ {
"name": "com.example.amsabilitymultiinstanceappd.SecondAbility", "name": "com.acts.abilitymultiinstanced.SecondAbility",
"srcEntrance": "./ets/SecondAbility/SecondAbility.ts", "srcEntrance": "./ets/SecondAbility/SecondAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
...@@ -55,7 +61,7 @@ ...@@ -55,7 +61,7 @@
] ]
}, },
{ {
"name": "com.example.amsabilitymultiinstanceappd.ThirdAbility", "name": "com.acts.abilitymultiinstanced.ThirdAbility",
"srcEntrance": "./ets/ThirdAbility/ThirdAbility.ts", "srcEntrance": "./ets/ThirdAbility/ThirdAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.amsabilitymultiinstanceappe", "bundleName": "com.acts.abilitymultiinstancee",
"vendor": "example", "vendor": "example",
"version": { "version": {
"code": 1, "code": 1,
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
}, },
"deviceConfig": { "deviceConfig": {
"default": { "default": {
"process": "com.example.amsabilitymultiinstanceappe" "process": "com.acts.abilitymultiinstancee"
} }
}, },
"module": { "module": {
"package": "com.example.amsabilitymultiinstanceappe", "package": "com.acts.abilitymultiinstancee",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"default", "default",
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
] ]
} }
], ],
"name": "com.example.amsabilitymultiinstanceappe.MainAbility", "name": "com.acts.abilitymultiinstancee.MainAbility",
"visible": true, "visible": true,
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
......
...@@ -24,8 +24,8 @@ function publishCallBack() { ...@@ -24,8 +24,8 @@ function publishCallBack() {
} }
async function startAbilityProcess(parameters) { async function startAbilityProcess(parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -36,34 +36,34 @@ async function startAbilityProcess(parameters) { ...@@ -36,34 +36,34 @@ async function startAbilityProcess(parameters) {
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
...@@ -24,8 +24,8 @@ const ONACCEPTWANT_KEY_UNDEFINED_ID = -2; ...@@ -24,8 +24,8 @@ const ONACCEPTWANT_KEY_UNDEFINED_ID = -2;
const UNSUBSCRIBE_TIMEOUT = 5000; const UNSUBSCRIBE_TIMEOUT = 5000;
async function startAbilityProcess(abilityContext, parameters) { async function startAbilityProcess(abilityContext, parameters) {
let bundleName = "com.example.amsabilitymultiinstanceappa"; let bundleName = "com.acts.abilitymultiinstancea";
let abilityName = "com.example.amsabilitymultiinstanceappa.MainAbility"; let abilityName = "com.acts.abilitymultiinstancea.MainAbility";
let idx = parameters.nextStep; let idx = parameters.nextStep;
switch (parameters.step[idx]) { switch (parameters.step[idx]) {
...@@ -45,34 +45,34 @@ async function startAbilityProcess(abilityContext, parameters) { ...@@ -45,34 +45,34 @@ async function startAbilityProcess(abilityContext, parameters) {
parameters.startId = ONACCEPTWANT_KEY_UNDEFINED_ID; parameters.startId = ONACCEPTWANT_KEY_UNDEFINED_ID;
break; break;
case "StartB": case "StartB":
bundleName = "com.example.amsabilitymultiinstanceappb"; bundleName = "com.acts.abilitymultiinstanceb";
abilityName = "com.example.amsabilitymultiinstanceappb.MainAbility"; abilityName = "com.acts.abilitymultiinstanceb.MainAbility";
break; break;
case "StartC": case "StartC":
bundleName = "com.example.amsabilitymultiinstanceappc"; bundleName = "com.acts.abilitymultiinstancec";
abilityName = "com.example.amsabilitymultiinstanceappc.MainAbility"; abilityName = "com.acts.abilitymultiinstancec.MainAbility";
break; break;
case "StartDMain1": case "StartDMain1":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 1; parameters.startId = 1;
break; break;
case "StartDMain2": case "StartDMain2":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.MainAbility"; abilityName = "com.acts.abilitymultiinstanced.MainAbility";
parameters.startId = 2; parameters.startId = 2;
break; break;
case "StartDSec": case "StartDSec":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.SecondAbility"; abilityName = "com.acts.abilitymultiinstanced.SecondAbility";
break; break;
case "StartDThd": case "StartDThd":
bundleName = "com.example.amsabilitymultiinstanceappd"; bundleName = "com.acts.abilitymultiinstanced";
abilityName = "com.example.amsabilitymultiinstanceappd.ThirdAbility"; abilityName = "com.acts.abilitymultiinstanced.ThirdAbility";
break; break;
case "StartE": case "StartE":
bundleName = "com.example.amsabilitymultiinstanceappe"; bundleName = "com.acts.abilitymultiinstancee";
abilityName = "com.example.amsabilitymultiinstanceappe.MainAbility"; abilityName = "com.acts.abilitymultiinstancee.MainAbility";
break; break;
default: default:
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.abilitymultiinstance.MainAbility", "name": "com.example.abilitymultiinstance.MainAbility",
...@@ -34,6 +40,12 @@ ...@@ -34,6 +40,12 @@
} }
] ]
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility2", "name": "MainAbility2",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility3", "name": "MainAbility3",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility4", "name": "MainAbility4",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbilityf5", "name": "MainAbilityf5",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility6", "name": "MainAbility6",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility7", "name": "MainAbility7",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "TestAbility", "name": "TestAbility",
......
...@@ -12,6 +12,12 @@ ...@@ -12,6 +12,12 @@
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"uiSyntax": "ets", "uiSyntax": "ets",
"abilities": [ "abilities": [
{ {
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.systemappcalleea.MainAbility", "name": "com.example.systemappcalleea.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.systemappcallera.MainAbility", "name": "com.example.systemappcallera.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.systemappcallerb.MainAbility", "name": "com.example.systemappcallerb.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.systemappcallerc.MainAbility", "name": "com.example.systemappcallerc.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.systemcalltest.MainAbility", "name": "com.example.systemcalltest.MainAbility",
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.second.MainAbility", "name": "com.example.second.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.thirdappa.MainAbility", "name": "com.example.thirdappa.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.thirdcalltest.MainAbility", "name": "com.example.thirdcalltest.MainAbility",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 5, "target": 5,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.1.1" "name": "1.1.1"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -53,6 +59,12 @@ ...@@ -53,6 +59,12 @@
"icon": "$media:icon", "icon": "$media:icon",
"label": "$string:MainAbility4_label" "label": "$string:MainAbility4_label"
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.1.1" "name": "1.1.1"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.1.1" "name": "1.1.1"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -35,6 +41,12 @@ ...@@ -35,6 +41,12 @@
} }
] ]
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
...@@ -35,6 +41,12 @@ ...@@ -35,6 +41,12 @@
} }
] ]
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.0.0" "name": "1.0.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.0.0" "name": "1.0.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.0.0" "name": "1.0.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.0.0" "name": "1.0.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
......
...@@ -905,7 +905,8 @@ export default function formHostTest() { ...@@ -905,7 +905,8 @@ export default function formHostTest() {
let TAG = 'System_API_Test_Form_Host_3500'; let TAG = 'System_API_Test_Form_Host_3500';
try { try {
let formId = "1337079774"; let formId = "1337079774";
formHost.shareForm(formId, null, (error, data) => { let deviceId = "12400633174999288";
formHost.shareForm(formId, deviceId, (error, data) => {
if (error) { if (error) {
console.log(TAG + ' formHost shareForm, error:' + JSON.stringify(error)); console.log(TAG + ' formHost shareForm, error:' + JSON.stringify(error));
expect(error.code).assertEqual(ERROR_CODE); expect(error.code).assertEqual(ERROR_CODE);
...@@ -929,8 +930,9 @@ export default function formHostTest() { ...@@ -929,8 +930,9 @@ export default function formHostTest() {
*/ */
it('System_API_Test_Form_Host_3600',0, async function (done) { it('System_API_Test_Form_Host_3600',0, async function (done) {
let TAG = 'System_API_Test_Form_Host_3600'; let TAG = 'System_API_Test_Form_Host_3600';
let formId = "12400633174999288"; let formId = "1337079774";
formHost.shareForm(formId, null) let deviceId = "12400633174999288";
formHost.shareForm(formId, deviceId)
.then(() => { .then(() => {
expect().assertFail(); expect().assertFail();
done(); done();
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"uiSyntax": "ets", "uiSyntax": "ets",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "MainAbility", "name": "MainAbility",
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"name": "1.1.1" "name": "1.1.1"
}, },
"apiVersion": { "apiVersion": {
"compatible": 9, "compatible": 8,
"target": 9 "target": 9
} }
}, },
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.acts.killprocesshap.MainAbility", "name": "com.acts.killprocesshap.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.acts.killprocessthirdhap.MainAbility", "name": "com.acts.killprocessthirdhap.MainAbility",
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.acts.killprocessthirdhap2.MainAbility", "name": "com.acts.killprocessthirdhap2.MainAbility",
......
...@@ -388,111 +388,6 @@ export default function abilityTest() { ...@@ -388,111 +388,6 @@ export default function abilityTest() {
}) })
/*
* @tc.number : ACTS_startAbility_3000
* @tc.name : start new ability
* @tc.desc : Start an ability with the parameter startability with options succeeded.(promise)
*/
it('ACTS_startAbility_3000', 0, async function (done) {
let TAG = 'ACTS_startAbility_3000'
let Subscriber
var flag = true
var startresult = false
function SubscribeCallBack (err, data) {
expect(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent" || data.event == "ACTS_TerminateSelf_CommonEvent").assertTrue();
console.debug(TAG + "====>0100 Subscribe CallBack data:====>" + JSON.stringify(data));
if(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent"){
startresult = true
}
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback);
}
commonEvent.createSubscriber(subscriberInfo_MainAbility).then(async (data) => {
console.debug(TAG + "====>Create Subscriber====>");
data.getSubscribeInfo().then(async (SubscribeInfo)=>{
console.debug(TAG + "====>SubscribeInfo is====>" + JSON.stringify(SubscribeInfo));
Subscriber = data;
commonEvent.subscribe(Subscriber, SubscribeCallBack);
console.debug(TAG + "====>start startAbility====>");
await globalThis.abilityContext.startAbility(
{
bundleName: 'com.example.userservicesystemapi7',
abilityName: 'com.example.userservicesystemapi7.ServiceAbility'
}).then(()=>{
console.debug(TAG + "====>startAbility end====>");
})
})
})
function UnSubscribeCallback() {
console.debug(TAG + "====>UnSubscribeCallback====>");
flag = false
expect(startresult).assertEqual(true);
done();
}
function timeout() {
if(flag == true) {
expect().assertFail();
console.debug(TAG + 'ACTS_startAbility_3000 - timeout');
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
}
}
setTimeout(timeout, START_ABILITY_TIMEOUT);
})
/*
* @tc.number : ACTS_startAbility_3100
* @tc.name : start new ability
* @tc.desc : Start an ability with the parameter startability with options succeeded.(promise)
*/
it('ACTS_startAbility_3100', 0, async function (done) {
let TAG = 'ACTS_startAbility_3100'
let Subscriber
var flag = true
var startresult = false
function SubscribeCallBack (err, data) {
expect(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent" || data.event == "ACTS_TerminateSelf_CommonEvent").assertTrue();
console.debug(TAG + "====>0100 Subscribe CallBack data:====>" + JSON.stringify(data));
if(data.event == "ACTS_InterfaceMultiUsers_0100_Start_CommonEvent"){
startresult = true
}
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback);
}
commonEvent.createSubscriber(subscriberInfo_MainAbility).then(async (data) => {
console.debug(TAG + "====>Create Subscriber====>");
data.getSubscribeInfo().then(async (SubscribeInfo)=>{
console.debug(TAG + "====>SubscribeInfo is====>" + JSON.stringify(SubscribeInfo));
Subscriber = data;
commonEvent.subscribe(Subscriber, SubscribeCallBack);
console.debug(TAG + "====>start startAbility====>");
await globalThis.abilityContext.startAbility(
{
bundleName: 'com.example.userservicesystemapi7',
abilityName: 'com.example.userservicesystemapi7.ServiceAbility'
},()=>{
console.debug(TAG + "====>startAbility end====>");
})
})
})
function UnSubscribeCallback() {
console.debug(TAG + "====>UnSubscribeCallback====>");
flag = false
expect(startresult).assertEqual(true);
done();
}
function timeout() {
if(flag == true) {
expect().assertFail();
console.debug(TAG + 'ACTS_startAbility_3100 - timeout');
commonEvent.unsubscribe(Subscriber, UnSubscribeCallback)
}
}
setTimeout(timeout, START_ABILITY_TIMEOUT);
})
/* /*
* @tc.number : ACTS_StartAbilityForResult_0100 * @tc.number : ACTS_StartAbilityForResult_0100
* @tc.name : start new ability for result * @tc.name : start new ability for result
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.acts.actsinterfacemultiuserstest.MainAbility", "name": "com.acts.actsinterfacemultiuserstest.MainAbility",
...@@ -80,6 +86,10 @@ ...@@ -80,6 +86,10 @@
{ {
"name": "ohos.permission.GET_RUNNING_INFO", "name": "ohos.permission.GET_RUNNING_INFO",
"reason": "need use ohos.permission.GET_RUNNING_INFO" "reason": "need use ohos.permission.GET_RUNNING_INFO"
},
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
} }
] ]
} }
......
...@@ -21,7 +21,7 @@ ohos_js_hap_suite("ActsAmsUsersThirdTest") { ...@@ -21,7 +21,7 @@ ohos_js_hap_suite("ActsAmsUsersThirdTest") {
":actsamsusersthirdtest_resources", ":actsamsusersthirdtest_resources",
] ]
ets2abc = true ets2abc = true
certificate_profile = "signature/openharmony_sx_thirdparty.p7b" certificate_profile = "signature/openharmony_sx.p7b"
hap_name = "ActsAmsUsersThirdTest" hap_name = "ActsAmsUsersThirdTest"
subsystem_name = "ability" subsystem_name = "ability"
part_name = "ability_runtime" part_name = "ability_runtime"
......
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.acts.actsinterfacemultiusersthirdtest.MainAbility", "name": "com.acts.actsinterfacemultiusersthirdtest.MainAbility",
...@@ -51,6 +57,12 @@ ...@@ -51,6 +57,12 @@
"visible": true, "visible": true,
"orientation": "portrait" "orientation": "portrait"
} }
],
"requestPermissions": [
{
"name":"ohos.permission.START_ABILITIES_FROM_BACKGROUND",
"reason":"need use ohos.permission.START_ABILITIES_FROM_BACKGROUND"
}
] ]
} }
} }
{ {
"app":{ "app":{
"bundleName":"com.example.staticabilitystagecontext", "bundleName":"com.acts.stabilitystagecontext",
"vendor":"huawei", "vendor":"huawei",
"versionCode":1000000, "versionCode":1000000,
"versionName":"1.0.0", "versionName":"1.0.0",
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"driver": { "driver": {
"type": "OHJSUnitTest", "type": "OHJSUnitTest",
"test-timeout": "180000", "test-timeout": "180000",
"bundle-name": "com.example.staticabilitystagecontext", "bundle-name": "com.acts.stabilitystagecontext",
"module-name": "com.example.staticabilitystagecontext", "module-name": "com.acts.stabilitystagecontext",
"shell-timeout": "600000", "shell-timeout": "600000",
"testcase-timeout": 70000 "testcase-timeout": 70000
}, },
......
...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { ...@@ -59,7 +59,7 @@ export default class OpenHarmonyTestRunner implements TestRunner {
onAbilityCreate: onAbilityCreateCallback, onAbilityCreate: onAbilityCreateCallback,
}; };
abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback)
var cmd = 'aa start -d 0 -a com.example.staticabilitystagecontext.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName var cmd = 'aa start -d 0 -a com.acts.stabilitystagecontext.MainAbility' + ' -b ' + abilityDelegatorArguments.bundleName
cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters) cmd += ' '+translateParamsToString(abilityDelegatorArguments.parameters)
var debug = abilityDelegatorArguments.parameters["-D"] var debug = abilityDelegatorArguments.parameters["-D"]
if (debug == 'true') if (debug == 'true')
......
...@@ -91,7 +91,7 @@ export default function abilityTest() { ...@@ -91,7 +91,7 @@ export default function abilityTest() {
expect(typeof (data.removable)).assertEqual("boolean"); expect(typeof (data.removable)).assertEqual("boolean");
console.log("checkApplicationInfo_expect_typeof_end") console.log("checkApplicationInfo_expect_typeof_end")
expect(data.name).assertEqual("com.example.staticabilitystagecontext"); expect(data.name).assertEqual("com.acts.stabilitystagecontext");
expect(data.description).assertEqual("$string:description_application"); expect(data.description).assertEqual("$string:description_application");
expect(data.descriptionId).assertLarger(0); expect(data.descriptionId).assertLarger(0);
expect(data.systemApp).assertEqual(true); expect(data.systemApp).assertEqual(true);
...@@ -100,12 +100,12 @@ export default function abilityTest() { ...@@ -100,12 +100,12 @@ export default function abilityTest() {
expect(data.labelId.length).assertLarger(0); expect(data.labelId.length).assertLarger(0);
expect(data.icon).assertEqual("$media:icon"); expect(data.icon).assertEqual("$media:icon");
expect(data.iconId.length).assertLarger(0); expect(data.iconId.length).assertLarger(0);
expect(data.process).assertEqual("com.example.staticabilitystagecontext"); expect(data.process).assertEqual("com.acts.stabilitystagecontext");
expect(data.supportedModes).assertEqual(0); expect(data.supportedModes).assertEqual(0);
expect(data.moduleInfos.length).assertEqual(1); expect(data.moduleInfos.length).assertEqual(1);
expect(data.moduleInfos[0].moduleName).assertEqual("com.example.staticabilitystagecontext"); expect(data.moduleInfos[0].moduleName).assertEqual("com.acts.stabilitystagecontext");
expect(data.codePath).assertEqual("/data/app/el1/bundle/public/" + expect(data.codePath).assertEqual("/data/app/el1/bundle/public/" +
"com.example.staticabilitystagecontext"); "com.acts.stabilitystagecontext");
expect(data.removable).assertEqual(true); expect(data.removable).assertEqual(true);
console.log("checkApplicationInfo end " + data); console.log("checkApplicationInfo end " + data);
} }
...@@ -145,7 +145,7 @@ export default function abilityTest() { ...@@ -145,7 +145,7 @@ export default function abilityTest() {
expect(typeof (data.moduleName)).assertEqual("string"); expect(typeof (data.moduleName)).assertEqual("string");
expect(typeof (data.mainAbilityName)).assertEqual("string"); expect(typeof (data.mainAbilityName)).assertEqual("string");
console.log("checkHapModuleInfo_expect_typeof_end") console.log("checkHapModuleInfo_expect_typeof_end")
expect(data.name).assertEqual("com.example.staticabilitystagecontext"); expect(data.name).assertEqual("com.acts.stabilitystagecontext");
expect(data.description).assertEqual("$string:phone_entry_dsc"); expect(data.description).assertEqual("$string:phone_entry_dsc");
expect(data.descriptionId).assertEqual(16777221); expect(data.descriptionId).assertEqual(16777221);
expect(data.icon).assertEqual("$media:icon"); expect(data.icon).assertEqual("$media:icon");
...@@ -157,10 +157,10 @@ export default function abilityTest() { ...@@ -157,10 +157,10 @@ export default function abilityTest() {
expect(data.reqCapabilities.length).assertEqual(0); expect(data.reqCapabilities.length).assertEqual(0);
expect(data.deviceTypes.length).assertEqual(2); expect(data.deviceTypes.length).assertEqual(2);
expect(data.deviceTypes[0]).assertEqual("default"); expect(data.deviceTypes[0]).assertEqual("default");
expect(data.moduleName).assertEqual("com.example.staticabilitystagecontext") expect(data.moduleName).assertEqual("com.acts.stabilitystagecontext")
expect(data.mainAbilityName).assertEqual("com.example.staticabilitystagecontext.MainAbility"); expect(data.mainAbilityName).assertEqual("com.acts.stabilitystagecontext.MainAbility");
expect(data.installationFree).assertEqual(false); expect(data.installationFree).assertEqual(false);
expect(data.mainElementName).assertEqual('com.example.staticabilitystagecontext.MainAbility'); expect(data.mainElementName).assertEqual('com.acts.stabilitystagecontext.MainAbility');
expect(data.hashValue).assertEqual(''); expect(data.hashValue).assertEqual('');
console.log("checkHapModuleInfo end " + data); console.log("checkHapModuleInfo end " + data);
} }
......
{ {
"module": { "module": {
"name": "com.example.staticabilitystagecontext", "name": "com.acts.stabilitystagecontext",
"type": "entry", "type": "entry",
"srcEntrance": "./ets/Application/AbilityStage.ts", "srcEntrance": "./ets/Application/AbilityStage.ts",
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "com.example.staticabilitystagecontext.MainAbility", "mainElement": "com.acts.stabilitystagecontext.MainAbility",
"deviceTypes": [ "deviceTypes": [
"default", "default",
"tablet" "tablet"
...@@ -13,9 +13,15 @@ ...@@ -13,9 +13,15 @@
"installationFree": false, "installationFree": false,
"uiSyntax": "ets", "uiSyntax": "ets",
"pages": "$profile:main_pages", "pages": "$profile:main_pages",
"metadata": [
{
"name": "ArkTSPartialUpdate",
"value": "false"
}
],
"abilities": [ "abilities": [
{ {
"name": "com.example.staticabilitystagecontext.MainAbility", "name": "com.acts.stabilitystagecontext.MainAbility",
"srcEntrance": "./ets/MainAbility/MainAbility.ts", "srcEntrance": "./ets/MainAbility/MainAbility.ts",
"description": "$string:phone_entry_main", "description": "$string:phone_entry_main",
"icon": "$media:icon", "icon": "$media:icon",
......
{ {
"app": { "app": {
"bundleName": "com.example.staticinformationmultihappackage", "bundleName": "com.acts.stinformationmulapp",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册