diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/app.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/app.json5
new file mode 100644
index 0000000000000000000000000000000000000000..bbc9497da185bba656ad2b4939009f4019ed92c4
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/app.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "app": {
+ "bundleName": "com.third.hiworld.big",
+ "vendor": "example",
+ "versionCode": 1,
+ "versionName": "1.0",
+ "icon": "$media:app_layered_image",
+ "label": "$string:app_name"
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..d94fe6c1eee7aaadb112e26cb01a7c08c7ecf6b9
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/element/string.json
@@ -0,0 +1,8 @@
+{
+ "string": [
+ {
+ "name": "app_name",
+ "value": "com.third.hiworld.big"
+ }
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_background.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_background.png
new file mode 100644
index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_background.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_foreground.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..eb9427585b36d14b12477435b6419d1f07b3e0bb
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_foreground.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_layered_image.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..b71c16122943f248ace0f5fa26da38b71dbdbdde
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/AppScope/resources/base/media/app_layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:app_background",
+ "foreground" : "$media:app_foreground"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/BUILD.gn b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/BUILD.gn
old mode 100755
new mode 100644
index 9036dc0d8a3714101d57f07cafec0e91e9efc692..a8da475a1f8cc72aba1aa1e7ecfdf74d07b60620
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/BUILD.gn
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright (c) 2022 Huawei Device Co., Ltd.
+# Copyright (c) 2022-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -14,22 +14,10 @@
import("//build/ohos.gni")
import("../../../../../appexecfwk.gni")
-ohos_hap("stbmsThirdBundle43") {
- hap_profile = "./src/main/config.json"
+ohos_app("stbmsThirdBundle43") {
hap_name = "bmsThirdBundle43"
subsystem_name = "bundlemanager"
- final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stThirdBundle/${hap_name}.hap"
+ hap_out_dir = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stThirdBundle"
testonly = true
- deps = [
- ":hjs_demo_js_assets",
- ":hjs_demo_resources",
- ]
certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/com.third.hiworld.big.p7b"
}
-ohos_js_assets("hjs_demo_js_assets") {
- source_dir = "./src/main/js/default"
-}
-ohos_resources("hjs_demo_resources") {
- sources = [ "./src/main/js/resources" ]
- hap_profile = "./src/main/config.json"
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/build-profile.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..a1e33acefa5a2ecf2e93944e3a101798abfb5284
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/build-profile.json5
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "app": {
+ "signingConfigs": [],
+ "products": [
+ {
+ "name": "default",
+ "signingConfig": "default",
+ "targetSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "compileSdkVersion": 20,
+ "runtimeOS": "OpenHarmony",
+ "buildOption": {
+ "strictMode": {
+ "caseSensitiveCheck": true,
+ "useNormalizedOHMUrl": true
+ }
+ }
+ }
+ ],
+ "buildModeSet": [
+ {
+ "name": "debug",
+ },
+ {
+ "name": "release"
+ }
+ ]
+ },
+ "modules": [
+ {
+ "name": "com.third.hiworld.example.h1",
+ "srcPath": "./entry",
+ "targets": [
+ {
+ "name": "default",
+ "applyToProducts": [
+ "default"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.js b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/build-profile.json5
old mode 100755
new mode 100644
similarity index 53%
rename from test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.js
rename to test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/build-profile.json5
index eb5be916aa414adb35cf8541635725d702a893dc..b4d65d490ef6cbe22d933b9231555210f1555786
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.js
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/build-profile.json5
@@ -1,25 +1,43 @@
-/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const injectRef = Object.getPrototypeOf(global) || global
-injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
-
-export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- }
-}
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "apiType": "stageMode",
+ "buildOption": {
+ },
+ "buildOptionSet": [
+ {
+ "name": "release",
+ "arkOptions": {
+ "obfuscation": {
+ "ruleOptions": {
+ "enable": false,
+ "files": [
+ "./obfuscation-rules.txt"
+ ]
+ }
+ }
+ }
+ },
+ ],
+ "targets": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "ohosTest",
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.js b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/hvigorfile.ts
old mode 100755
new mode 100644
similarity index 67%
rename from test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.js
rename to test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/hvigorfile.ts
index eb5be916aa414adb35cf8541635725d702a893dc..cfa8a00f74f409d9647f55cdf270ab6aec69fe41
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.js
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/hvigorfile.ts
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -12,14 +12,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-const injectRef = Object.getPrototypeOf(global) || global
-injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
+
+import { hapTasks } from '@ohos/hvigor-ohos-plugin';
export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- }
-}
+ system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/obfuscation-rules.txt b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/obfuscation-rules.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c1d419bdc6fa72c5914cc864ede925c53a2b01c5
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/obfuscation-rules.txt
@@ -0,0 +1,36 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Define project specific obfuscation rules here.
+# You can include the obfuscation configuration files in the current module's build-profile.json5.
+#
+# For more details, see
+# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
+
+# Obfuscation options:
+# -disable-obfuscation: disable all obfuscations
+# -enable-property-obfuscation: obfuscate the property names
+# -enable-toplevel-obfuscation: obfuscate the names in the global scope
+# -compact: remove unnecessary blank spaces and all line feeds
+# -remove-log: remove all console.* statements
+# -print-namecache: print the name cache that contains the mapping from the old names to new names
+# -apply-namecache: reuse the given cache file
+
+# Keep options:
+# -keep-property-name: specifies property names that you want to keep
+# -keep-global-name: specifies names that you want to keep in the global scope
+
+-enable-property-obfuscation
+-enable-toplevel-obfuscation
+-enable-filename-obfuscation
+-enable-export-obfuscation
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/oh-package.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..4bf3e2a9b1ae7381cf9363dff1cbcc1861a41e7b
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/oh-package.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "name": "entry",
+ "version": "1.0.0",
+ "description": "Please describe the basic information.",
+ "main": "",
+ "author": "",
+ "license": "",
+ "dependencies": {}
+}
+
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/ets/entryability/EntryAbility.ets b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/ets/entryability/EntryAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b12b706076bc833e0f1c073e99881ef3b3a84004
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/ets/entryability/EntryAbility.ets
@@ -0,0 +1,44 @@
+import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit';
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { window } from '@kit.ArkUI';
+
+const DOMAIN = 0x0000;
+
+export default class EntryAbility extends UIAbility {
+ onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
+ this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET);
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate');
+ }
+
+ onDestroy(): void {
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onDestroy');
+ }
+
+ onWindowStageCreate(windowStage: window.WindowStage): void {
+ // Main window is created, set main page for this ability
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
+
+ windowStage.loadContent('pages/Index', (err) => {
+ if (err.code) {
+ hilog.error(DOMAIN, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err));
+ return;
+ }
+ hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.');
+ });
+ }
+
+ onWindowStageDestroy(): void {
+ // Main window is destroyed, release UI related resources
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
+ }
+
+ onForeground(): void {
+ // Ability has brought to foreground
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onForeground');
+ }
+
+ onBackground(): void {
+ // Ability has back to background
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onBackground');
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/ets/pages/Index.ets b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/ets/pages/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e2d24ad42693fc877d51bb7820f0a9da68fa135
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/ets/pages/Index.ets
@@ -0,0 +1,23 @@
+@Entry
+@Component
+struct Index {
+ @State message: string = 'Hello World';
+
+ build() {
+ RelativeContainer() {
+ Text(this.message)
+ .id('HelloWorld')
+ .fontSize($r('app.float.page_text_font_size'))
+ .fontWeight(FontWeight.Bold)
+ .alignRules({
+ center: { anchor: '__container__', align: VerticalAlign.Center },
+ middle: { anchor: '__container__', align: HorizontalAlign.Center }
+ })
+ .onClick(() => {
+ this.message = 'Welcome';
+ })
+ }
+ .height('100%')
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/module.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..5be97bf0aaf581435f804c87cfee38c0e094cf37
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/module.json5
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "module": {
+ "name": "com.third.hiworld.example.h1",
+ "type": "entry",
+ "description": "$string:module_desc",
+ "mainElement": "EntryAbility",
+ "deviceTypes": [
+ "2in1",
+ "tablet",
+ "default",
+ "tv",
+ ],
+ "deliveryWithInstall": true,
+ "pages": "$profile:main_pages",
+ "abilities": [
+ {
+ "name": "bmsThirdBundle_A1",
+ "srcEntry": "./ets/entryability/EntryAbility.ets",
+ "description": "$string:EntryAbility_desc",
+ "icon": "$media:layered_image",
+ "label": "$string:EntryAbility_label",
+ "startWindowIcon": "$media:startIcon",
+ "startWindowBackground": "$color:start_window_background",
+ "launchType": "singleton",
+ "orientation": "unspecified",
+ "visible": true
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/color.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..d66f9a7d4ac61fb8d215239ab3620b7bcd77bf33
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#FFFFFF"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/float.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/float.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8a5d404dcd8b0466194afc3aa25d90a8a327470
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/float.json
@@ -0,0 +1,8 @@
+{
+ "float": [
+ {
+ "name": "page_text_font_size",
+ "value": "50fp"
+ }
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..f94595515a99e0c828807e243494f57f09251930
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,16 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "label"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/background.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/background.png
new file mode 100644
index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/background.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/foreground.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..97014d3e10e5ff511409c378cd4255713aecd85f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/foreground.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/layered_image.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:background",
+ "foreground" : "$media:foreground"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/startIcon.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/startIcon.png
new file mode 100644
index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/media/startIcon.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/profile/backup_config.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/profile/backup_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..d742c2f96e7dd0f406f499941f3147345e998f95
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/profile/backup_config.json
@@ -0,0 +1,3 @@
+{
+ "allowToBackupRestore": true
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/profile/main_pages.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/profile/main_pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/base/profile/main_pages.json
@@ -0,0 +1,5 @@
+{
+ "src": [
+ "pages/Index"
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/dark/element/color.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/dark/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..438d5bc43bb23c59c210d586b96635a72da5b64a
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/entry/src/main/resources/dark/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#000000"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/hvigor/hvigor-config.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/hvigor/hvigor-config.json5
new file mode 100644
index 0000000000000000000000000000000000000000..c61d3eed60978a00d9a67b754ec36c0c9dcde929
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/hvigor/hvigor-config.json5
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "modelVersion": "5.0.0",
+ "dependencies": {
+ },
+ "execution": {
+ // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */
+ // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
+ // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
+ // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
+ // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
+ },
+ "logging": {
+ // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
+ },
+ "debugging": {
+ // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
+ },
+ "nodeOptions": {
+ // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
+ // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/hvigorfile.ts b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..e3340f07e45ddc5dcadbb87012668555def2e6e0
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { appTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/app.js b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/oh-package.json5
old mode 100755
new mode 100644
similarity index 69%
rename from test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/app.js
rename to test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/oh-package.json5
index 6abda63f0e61d4a957e4320291c42647eb231991..15ec86a73e760904339e9269d493e3015429d8a2
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/app.js
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/oh-package.json5
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -12,11 +12,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-export default {
- onCreate() {
- console.info('AceApplication onCreate');
- },
- onDestroy() {
- console.info('AceApplication onDestroy');
- }
-};
+
+{
+ "modelVersion": "5.0.0",
+ "description": "Please describe the basic information.",
+ "dependencies": {
+ },
+ "devDependencies": {
+ "@ohos/hypium": "1.0.21"
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/config.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/config.json
deleted file mode 100755
index 730762bda365a421d4e4f6db1c1b6112e6fd8df7..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/config.json
+++ /dev/null
@@ -1,57 +0,0 @@
-{
- "app":{
- "bundleName": "com.third.hiworld.big",
- "vendor": "example",
- "version": {
- "code": 1,
- "name": "1.0"
- },
- "apiVersion": {
- "compatible": 3,
- "target": 3,
- "releaseType": "Release"
- }
- },
- "deviceConfig": {
- "default": {
- }
- },
- "module": {
- "package":"com.third.hiworld.example.h1",
- "name":"bmsThirdBundle7",
- "deviceType": [
- "2in1",
- "tablet",
- "default",
- "tv",
- "car"
- ],
- "distro": {
- "deliveryWithInstall": true,
- "moduleName": "testability",
- "moduleType": "entry"
- },
- "abilities": [{
- "name": "bmsThirdBundle_A1",
- "icon": "$media:snowball",
- "label": "bmsThirdBundle_A1 Ability",
- "launchType": "singleton",
- "orientation": "unspecified",
- "type": "page",
- "visible": true
- }
- ],
- "js": [
- {
- "pages": [
- "pages/index/index"
- ],
- "name": "default",
- "window": {
- "designWidth": 720,
- "autoDesignWidth": true
- }
- }
- ]
- }
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/i18n/en-US.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/i18n/en-US.json
deleted file mode 100755
index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/i18n/en-US.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "Hello",
- "world": "World"
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/i18n/zh-CN.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/i18n/zh-CN.json
deleted file mode 100755
index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/i18n/zh-CN.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "您好",
- "world": "世界"
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.css b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.css
deleted file mode 100755
index 01ad739b27f208ff04f21924695104bd27c59df0..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* Copyright (c) 2022 Huawei Device Co., Ltd.
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.hml b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.hml
deleted file mode 100755
index 8d0e2061b88c99c91488405f0f2ead0c77de1a9e..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/element/string.json
deleted file mode 100755
index 4a5d2b0f227cd287e7fa240071e0509f2775bb16..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/element/string.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "string": [
- {
- "name": "permreason_example",
- "value": "bmsfirstright"
- },
- {
- "name": "mainability_description",
- "value": "JS_Phone_Empty Feature Ability"
- }
- ]
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/media/icon.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/media/icon.png
deleted file mode 100755
index 8966a1e3de00956d251d5c1497aa251ea7b5c49f..0000000000000000000000000000000000000000
Binary files a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/media/icon.png and /dev/null differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/media/snowball.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/media/snowball.png
deleted file mode 100755
index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000
Binary files a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/resources/base/media/snowball.png and /dev/null differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/app.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/app.json5
new file mode 100644
index 0000000000000000000000000000000000000000..ef1306dc8a98165e4073d05c619b84b351233665
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/app.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "app": {
+ "bundleName": "com.third.hiworld.example1",
+ "vendor": "example",
+ "versionCode": 1,
+ "versionName": "1.0",
+ "icon": "$media:app_layered_image",
+ "label": "$string:app_name"
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..9f5cd292b2e27f6e9f8b82bdb4daefe826226e4e
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/element/string.json
@@ -0,0 +1,8 @@
+{
+ "string": [
+ {
+ "name": "app_name",
+ "value": "com.third.hiworld.example1"
+ }
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_background.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_background.png
new file mode 100644
index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_background.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_foreground.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..eb9427585b36d14b12477435b6419d1f07b3e0bb
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_foreground.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_layered_image.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..b71c16122943f248ace0f5fa26da38b71dbdbdde
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/AppScope/resources/base/media/app_layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:app_background",
+ "foreground" : "$media:app_foreground"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/BUILD.gn b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/BUILD.gn
old mode 100755
new mode 100644
index d65c70dd52e39e6a64cccce7b0d2b466bec64881..13e6d407fef1d930a6c717dafbc5b7815bbe2635
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/BUILD.gn
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright (c) 2022 Huawei Device Co., Ltd.
+# Copyright (c) 2022-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -14,22 +14,10 @@
import("//build/ohos.gni")
import("../../../../../appexecfwk.gni")
-ohos_hap("stbmsThirdBundle44") {
- hap_profile = "./src/main/config.json"
+ohos_app("stbmsThirdBundle44") {
hap_name = "bmsThirdBundle44"
subsystem_name = "bundlemanager"
- final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stThirdBundle/${hap_name}.hap"
+ hap_out_dir = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stThirdBundle"
testonly = true
- deps = [
- ":hjs_demo_js_assets",
- ":hjs_demo_resources",
- ]
certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/com.third.hiworld.example1.p7b"
}
-ohos_js_assets("hjs_demo_js_assets") {
- source_dir = "./src/main/js/default"
-}
-ohos_resources("hjs_demo_resources") {
- sources = [ "./src/main/js/resources" ]
- hap_profile = "./src/main/config.json"
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/build-profile.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..a1e33acefa5a2ecf2e93944e3a101798abfb5284
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/build-profile.json5
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "app": {
+ "signingConfigs": [],
+ "products": [
+ {
+ "name": "default",
+ "signingConfig": "default",
+ "targetSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "compileSdkVersion": 20,
+ "runtimeOS": "OpenHarmony",
+ "buildOption": {
+ "strictMode": {
+ "caseSensitiveCheck": true,
+ "useNormalizedOHMUrl": true
+ }
+ }
+ }
+ ],
+ "buildModeSet": [
+ {
+ "name": "debug",
+ },
+ {
+ "name": "release"
+ }
+ ]
+ },
+ "modules": [
+ {
+ "name": "com.third.hiworld.example.h1",
+ "srcPath": "./entry",
+ "targets": [
+ {
+ "name": "default",
+ "applyToProducts": [
+ "default"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.js b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/build-profile.json5
old mode 100755
new mode 100644
similarity index 53%
rename from test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.js
rename to test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/build-profile.json5
index eb5be916aa414adb35cf8541635725d702a893dc..b4d65d490ef6cbe22d933b9231555210f1555786
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.js
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/build-profile.json5
@@ -1,25 +1,43 @@
-/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-const injectRef = Object.getPrototypeOf(global) || global
-injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
-
-export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- }
-}
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "apiType": "stageMode",
+ "buildOption": {
+ },
+ "buildOptionSet": [
+ {
+ "name": "release",
+ "arkOptions": {
+ "obfuscation": {
+ "ruleOptions": {
+ "enable": false,
+ "files": [
+ "./obfuscation-rules.txt"
+ ]
+ }
+ }
+ }
+ },
+ ],
+ "targets": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "ohosTest",
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/hvigorfile.ts b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..cfa8a00f74f409d9647f55cdf270ab6aec69fe41
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { hapTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/obfuscation-rules.txt b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/obfuscation-rules.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c1d419bdc6fa72c5914cc864ede925c53a2b01c5
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/obfuscation-rules.txt
@@ -0,0 +1,36 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Define project specific obfuscation rules here.
+# You can include the obfuscation configuration files in the current module's build-profile.json5.
+#
+# For more details, see
+# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
+
+# Obfuscation options:
+# -disable-obfuscation: disable all obfuscations
+# -enable-property-obfuscation: obfuscate the property names
+# -enable-toplevel-obfuscation: obfuscate the names in the global scope
+# -compact: remove unnecessary blank spaces and all line feeds
+# -remove-log: remove all console.* statements
+# -print-namecache: print the name cache that contains the mapping from the old names to new names
+# -apply-namecache: reuse the given cache file
+
+# Keep options:
+# -keep-property-name: specifies property names that you want to keep
+# -keep-global-name: specifies names that you want to keep in the global scope
+
+-enable-property-obfuscation
+-enable-toplevel-obfuscation
+-enable-filename-obfuscation
+-enable-export-obfuscation
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/oh-package.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..4bf3e2a9b1ae7381cf9363dff1cbcc1861a41e7b
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/oh-package.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "name": "entry",
+ "version": "1.0.0",
+ "description": "Please describe the basic information.",
+ "main": "",
+ "author": "",
+ "license": "",
+ "dependencies": {}
+}
+
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/ets/entryability/EntryAbility.ets b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/ets/entryability/EntryAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b12b706076bc833e0f1c073e99881ef3b3a84004
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/ets/entryability/EntryAbility.ets
@@ -0,0 +1,44 @@
+import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit';
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { window } from '@kit.ArkUI';
+
+const DOMAIN = 0x0000;
+
+export default class EntryAbility extends UIAbility {
+ onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
+ this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET);
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate');
+ }
+
+ onDestroy(): void {
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onDestroy');
+ }
+
+ onWindowStageCreate(windowStage: window.WindowStage): void {
+ // Main window is created, set main page for this ability
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
+
+ windowStage.loadContent('pages/Index', (err) => {
+ if (err.code) {
+ hilog.error(DOMAIN, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err));
+ return;
+ }
+ hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.');
+ });
+ }
+
+ onWindowStageDestroy(): void {
+ // Main window is destroyed, release UI related resources
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
+ }
+
+ onForeground(): void {
+ // Ability has brought to foreground
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onForeground');
+ }
+
+ onBackground(): void {
+ // Ability has back to background
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onBackground');
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/ets/pages/Index.ets b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/ets/pages/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e2d24ad42693fc877d51bb7820f0a9da68fa135
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/ets/pages/Index.ets
@@ -0,0 +1,23 @@
+@Entry
+@Component
+struct Index {
+ @State message: string = 'Hello World';
+
+ build() {
+ RelativeContainer() {
+ Text(this.message)
+ .id('HelloWorld')
+ .fontSize($r('app.float.page_text_font_size'))
+ .fontWeight(FontWeight.Bold)
+ .alignRules({
+ center: { anchor: '__container__', align: VerticalAlign.Center },
+ middle: { anchor: '__container__', align: HorizontalAlign.Center }
+ })
+ .onClick(() => {
+ this.message = 'Welcome';
+ })
+ }
+ .height('100%')
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/module.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..99482ae00a6038da967ac4b082f3016683919cc2
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/module.json5
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "module": {
+ "name": "com.third.hiworld.example.h1",
+ "type": "entry",
+ "description": "$string:module_desc",
+ "mainElement": "EntryAbility",
+ "deviceTypes": [
+ "2in1",
+ "tablet",
+ "default",
+ "tv",
+ ],
+ "deliveryWithInstall": true,
+ "pages": "$profile:main_pages",
+ "abilities": [
+ {
+ "name": "PageAbilityDemo",
+ "srcEntry": "./ets/entryability/EntryAbility.ets",
+ "description": "$string:EntryAbility_desc",
+ "icon": "$media:layered_image",
+ "label": "$string:EntryAbility_label",
+ "startWindowIcon": "$media:startIcon",
+ "startWindowBackground": "$color:start_window_background",
+ "launchType": "singleton",
+ "orientation": "unspecified",
+ "visible": true,
+ "skills": [
+ {
+ "actions": [
+ "ohos.aafwk.content.Want.ACTION_HOME"
+ ],
+ "entities": [
+ "ohos.aafwk.content.Want.ENTITY_HOME"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/color.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..d66f9a7d4ac61fb8d215239ab3620b7bcd77bf33
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#FFFFFF"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/float.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/float.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8a5d404dcd8b0466194afc3aa25d90a8a327470
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/float.json
@@ -0,0 +1,8 @@
+{
+ "float": [
+ {
+ "name": "page_text_font_size",
+ "value": "50fp"
+ }
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..f94595515a99e0c828807e243494f57f09251930
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,16 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "label"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/background.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/background.png
new file mode 100644
index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/background.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/foreground.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..97014d3e10e5ff511409c378cd4255713aecd85f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/foreground.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/layered_image.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:background",
+ "foreground" : "$media:foreground"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/startIcon.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/startIcon.png
new file mode 100644
index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/media/startIcon.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/profile/backup_config.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/profile/backup_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..d742c2f96e7dd0f406f499941f3147345e998f95
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/profile/backup_config.json
@@ -0,0 +1,3 @@
+{
+ "allowToBackupRestore": true
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/profile/main_pages.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/profile/main_pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/base/profile/main_pages.json
@@ -0,0 +1,5 @@
+{
+ "src": [
+ "pages/Index"
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/dark/element/color.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/dark/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..438d5bc43bb23c59c210d586b96635a72da5b64a
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/entry/src/main/resources/dark/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#000000"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/hvigor/hvigor-config.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/hvigor/hvigor-config.json5
new file mode 100644
index 0000000000000000000000000000000000000000..c61d3eed60978a00d9a67b754ec36c0c9dcde929
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/hvigor/hvigor-config.json5
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "modelVersion": "5.0.0",
+ "dependencies": {
+ },
+ "execution": {
+ // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */
+ // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
+ // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
+ // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
+ // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
+ },
+ "logging": {
+ // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
+ },
+ "debugging": {
+ // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
+ },
+ "nodeOptions": {
+ // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
+ // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/hvigorfile.ts b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..e3340f07e45ddc5dcadbb87012668555def2e6e0
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { appTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/oh-package.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/oh-package.json5
new file mode 100644
index 0000000000000000000000000000000000000000..15ec86a73e760904339e9269d493e3015429d8a2
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/oh-package.json5
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "modelVersion": "5.0.0",
+ "description": "Please describe the basic information.",
+ "dependencies": {
+ },
+ "devDependencies": {
+ "@ohos/hypium": "1.0.21"
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/config.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/config.json
deleted file mode 100755
index ac096f6924d290fb00f39e2438d760859d6abc96..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/config.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "app": {
- "bundleName": "com.third.hiworld.example1",
- "vendor": "example",
- "version": {
- "code": 1,
- "name": "1.0"
- },
- "apiVersion": {
- "compatible": 3,
- "target": 3,
- "releaseType": "Release"
- }
- },
- "deviceConfig": {
- "default": {}
- },
- "module": {
- "package": "com.third.hiworld.example.h1",
- "name": "bmsThirdBundle1",
- "deviceType": [
- "2in1",
- "tablet",
- "default",
- "tv",
- "car"
- ],
- "distro": {
- "deliveryWithInstall": true,
- "moduleName": "testability",
- "moduleType": "entry"
- },
- "abilities": [
- {
- "name": "PageAbilityDemo",
- "icon": "$media:snowball",
- "srcLanguage": "c++",
- "label": "bmsThirdBundle_A1 Ability",
- "launchType": "singleton",
- "orientation": "unspecified",
- "type": "page",
- "visible": true,
- "skills": [
- {
- "actions": [
- "ohos.aafwk.content.Want.ACTION_HOME"
- ],
- "entities": [
- "ohos.aafwk.content.Want.ENTITY_HOME"
- ],
- "attributes": []
- }
- ]
- }
- ],
- "js": [
- {
- "pages": [
- "pages/index/index"
- ],
- "name": "default",
- "window": {
- "designWidth": 720,
- "autoDesignWidth": true
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/i18n/en-US.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/i18n/en-US.json
deleted file mode 100755
index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/i18n/en-US.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "Hello",
- "world": "World"
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/i18n/zh-CN.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/i18n/zh-CN.json
deleted file mode 100755
index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/i18n/zh-CN.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "您好",
- "world": "世界"
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.css b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.css
deleted file mode 100755
index 01ad739b27f208ff04f21924695104bd27c59df0..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* Copyright (c) 2022 Huawei Device Co., Ltd.
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.hml b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.hml
deleted file mode 100755
index 8d0e2061b88c99c91488405f0f2ead0c77de1a9e..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/element/string.json
deleted file mode 100755
index 4a5d2b0f227cd287e7fa240071e0509f2775bb16..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/element/string.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "string": [
- {
- "name": "permreason_example",
- "value": "bmsfirstright"
- },
- {
- "name": "mainability_description",
- "value": "JS_Phone_Empty Feature Ability"
- }
- ]
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/media/icon.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/media/icon.png
deleted file mode 100755
index 8966a1e3de00956d251d5c1497aa251ea7b5c49f..0000000000000000000000000000000000000000
Binary files a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/media/icon.png and /dev/null differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/media/snowball.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/media/snowball.png
deleted file mode 100755
index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000
Binary files a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/resources/base/media/snowball.png and /dev/null differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/app.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/app.json5
new file mode 100644
index 0000000000000000000000000000000000000000..ef1306dc8a98165e4073d05c619b84b351233665
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/app.json5
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "app": {
+ "bundleName": "com.third.hiworld.example1",
+ "vendor": "example",
+ "versionCode": 1,
+ "versionName": "1.0",
+ "icon": "$media:app_layered_image",
+ "label": "$string:app_name"
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..9f5cd292b2e27f6e9f8b82bdb4daefe826226e4e
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/element/string.json
@@ -0,0 +1,8 @@
+{
+ "string": [
+ {
+ "name": "app_name",
+ "value": "com.third.hiworld.example1"
+ }
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_background.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_background.png
new file mode 100644
index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_background.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_foreground.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..eb9427585b36d14b12477435b6419d1f07b3e0bb
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_foreground.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_layered_image.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..b71c16122943f248ace0f5fa26da38b71dbdbdde
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/AppScope/resources/base/media/app_layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:app_background",
+ "foreground" : "$media:app_foreground"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/BUILD.gn b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/BUILD.gn
old mode 100755
new mode 100644
index 6fd6a1e02f101848bd91ba4989cc06775e5dd118..8d68d4f0d2981e2ef4a516c7c5af3776396179d0
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/BUILD.gn
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright (c) 2022 Huawei Device Co., Ltd.
+# Copyright (c) 2022-2025 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -14,22 +14,10 @@
import("//build/ohos.gni")
import("../../../../../appexecfwk.gni")
-ohos_hap("stbmsThirdBundle45") {
- hap_profile = "./src/main/config.json"
+ohos_app("stbmsThirdBundle45") {
hap_name = "bmsThirdBundle45"
subsystem_name = "bundlemanager"
- final_hap_path = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stThirdBundle/${hap_name}.hap"
+ hap_out_dir = "$root_out_dir/tests/systemtest/bundle_framework/bundle_framework/resource/stThirdBundle"
testonly = true
- deps = [
- ":hjs_demo_js_assets",
- ":hjs_demo_resources",
- ]
certificate_profile = "${bundle_framework_path}/test/sceneProject/signature/com.third.hiworld.example1.p7b"
}
-ohos_js_assets("hjs_demo_js_assets") {
- source_dir = "./src/main/js/default"
-}
-ohos_resources("hjs_demo_resources") {
- sources = [ "./src/main/js/resources" ]
- hap_profile = "./src/main/config.json"
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/build-profile.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..a1e33acefa5a2ecf2e93944e3a101798abfb5284
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/build-profile.json5
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "app": {
+ "signingConfigs": [],
+ "products": [
+ {
+ "name": "default",
+ "signingConfig": "default",
+ "targetSdkVersion": 20,
+ "compatibleSdkVersion": 20,
+ "compileSdkVersion": 20,
+ "runtimeOS": "OpenHarmony",
+ "buildOption": {
+ "strictMode": {
+ "caseSensitiveCheck": true,
+ "useNormalizedOHMUrl": true
+ }
+ }
+ }
+ ],
+ "buildModeSet": [
+ {
+ "name": "debug",
+ },
+ {
+ "name": "release"
+ }
+ ]
+ },
+ "modules": [
+ {
+ "name": "com.third.hiworld.example.h1",
+ "srcPath": "./entry",
+ "targets": [
+ {
+ "name": "default",
+ "applyToProducts": [
+ "default"
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/build-profile.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/build-profile.json5
new file mode 100644
index 0000000000000000000000000000000000000000..b4d65d490ef6cbe22d933b9231555210f1555786
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/build-profile.json5
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "apiType": "stageMode",
+ "buildOption": {
+ },
+ "buildOptionSet": [
+ {
+ "name": "release",
+ "arkOptions": {
+ "obfuscation": {
+ "ruleOptions": {
+ "enable": false,
+ "files": [
+ "./obfuscation-rules.txt"
+ ]
+ }
+ }
+ }
+ },
+ ],
+ "targets": [
+ {
+ "name": "default"
+ },
+ {
+ "name": "ohosTest",
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/hvigorfile.ts b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..cfa8a00f74f409d9647f55cdf270ab6aec69fe41
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { hapTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/obfuscation-rules.txt b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/obfuscation-rules.txt
new file mode 100644
index 0000000000000000000000000000000000000000..c1d419bdc6fa72c5914cc864ede925c53a2b01c5
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/obfuscation-rules.txt
@@ -0,0 +1,36 @@
+# Copyright (c) 2025 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Define project specific obfuscation rules here.
+# You can include the obfuscation configuration files in the current module's build-profile.json5.
+#
+# For more details, see
+# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
+
+# Obfuscation options:
+# -disable-obfuscation: disable all obfuscations
+# -enable-property-obfuscation: obfuscate the property names
+# -enable-toplevel-obfuscation: obfuscate the names in the global scope
+# -compact: remove unnecessary blank spaces and all line feeds
+# -remove-log: remove all console.* statements
+# -print-namecache: print the name cache that contains the mapping from the old names to new names
+# -apply-namecache: reuse the given cache file
+
+# Keep options:
+# -keep-property-name: specifies property names that you want to keep
+# -keep-global-name: specifies names that you want to keep in the global scope
+
+-enable-property-obfuscation
+-enable-toplevel-obfuscation
+-enable-filename-obfuscation
+-enable-export-obfuscation
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/app.js b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/oh-package.json5
old mode 100755
new mode 100644
similarity index 69%
rename from test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/app.js
rename to test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/oh-package.json5
index 6abda63f0e61d4a957e4320291c42647eb231991..88976ebd7718ec5924c11ba3cbb5e9d836f4ae45
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle43/src/main/js/default/app.js
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/oh-package.json5
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -12,11 +12,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-export default {
- onCreate() {
- console.info('AceApplication onCreate');
- },
- onDestroy() {
- console.info('AceApplication onDestroy');
- }
-};
+
+{
+ "name": "entry",
+ "version": "1.0.0",
+ "description": "Please describe the basic information.",
+ "main": "",
+ "author": "",
+ "license": "",
+ "dependencies": {}
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/ets/entryability/EntryAbility.ets b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/ets/entryability/EntryAbility.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b12b706076bc833e0f1c073e99881ef3b3a84004
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/ets/entryability/EntryAbility.ets
@@ -0,0 +1,44 @@
+import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit';
+import { hilog } from '@kit.PerformanceAnalysisKit';
+import { window } from '@kit.ArkUI';
+
+const DOMAIN = 0x0000;
+
+export default class EntryAbility extends UIAbility {
+ onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
+ this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET);
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate');
+ }
+
+ onDestroy(): void {
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onDestroy');
+ }
+
+ onWindowStageCreate(windowStage: window.WindowStage): void {
+ // Main window is created, set main page for this ability
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
+
+ windowStage.loadContent('pages/Index', (err) => {
+ if (err.code) {
+ hilog.error(DOMAIN, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err));
+ return;
+ }
+ hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.');
+ });
+ }
+
+ onWindowStageDestroy(): void {
+ // Main window is destroyed, release UI related resources
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
+ }
+
+ onForeground(): void {
+ // Ability has brought to foreground
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onForeground');
+ }
+
+ onBackground(): void {
+ // Ability has back to background
+ hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onBackground');
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/ets/pages/Index.ets b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/ets/pages/Index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..8e2d24ad42693fc877d51bb7820f0a9da68fa135
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/ets/pages/Index.ets
@@ -0,0 +1,23 @@
+@Entry
+@Component
+struct Index {
+ @State message: string = 'Hello World';
+
+ build() {
+ RelativeContainer() {
+ Text(this.message)
+ .id('HelloWorld')
+ .fontSize($r('app.float.page_text_font_size'))
+ .fontWeight(FontWeight.Bold)
+ .alignRules({
+ center: { anchor: '__container__', align: VerticalAlign.Center },
+ middle: { anchor: '__container__', align: HorizontalAlign.Center }
+ })
+ .onClick(() => {
+ this.message = 'Welcome';
+ })
+ }
+ .height('100%')
+ .width('100%')
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/module.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/module.json5
new file mode 100644
index 0000000000000000000000000000000000000000..0414be38d0e5e039b20eb35f7e2a7a734f45e499
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/module.json5
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "module": {
+ "name": "com.third.hiworld.example.h1",
+ "type": "entry",
+ "description": "$string:module_desc",
+ "mainElement": "EntryAbility",
+ "deviceTypes": [
+ "2in1",
+ "tablet",
+ "default",
+ "tv"
+ ],
+ "deliveryWithInstall": true,
+ "pages": "$profile:main_pages",
+ "abilities": [
+ {
+ "name": "PageAbilityDemo",
+ "srcEntry": "./ets/entryability/EntryAbility.ets",
+ "description": "$string:EntryAbility_desc",
+ "icon": "$media:layered_image",
+ "label": "$string:EntryAbility_label",
+ "startWindowIcon": "$media:startIcon",
+ "startWindowBackground": "$color:start_window_background",
+ "launchType": "singleton",
+ "orientation": "unspecified",
+ "visible": true,
+ "skills": [
+ {
+ "actions": [
+ "ohos.aafwk.content.Want.ACTION_HOME"
+ ],
+ "entities": [
+ "ohos.aafwk.content.Want.ENTITY_HOME"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/color.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..d66f9a7d4ac61fb8d215239ab3620b7bcd77bf33
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#FFFFFF"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/float.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/float.json
new file mode 100644
index 0000000000000000000000000000000000000000..a8a5d404dcd8b0466194afc3aa25d90a8a327470
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/float.json
@@ -0,0 +1,8 @@
+{
+ "float": [
+ {
+ "name": "page_text_font_size",
+ "value": "50fp"
+ }
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..f94595515a99e0c828807e243494f57f09251930
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,16 @@
+{
+ "string": [
+ {
+ "name": "module_desc",
+ "value": "module description"
+ },
+ {
+ "name": "EntryAbility_desc",
+ "value": "description"
+ },
+ {
+ "name": "EntryAbility_label",
+ "value": "label"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/background.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/background.png
new file mode 100644
index 0000000000000000000000000000000000000000..923f2b3f27e915d6871871deea0420eb45ce102f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/background.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/foreground.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/foreground.png
new file mode 100644
index 0000000000000000000000000000000000000000..97014d3e10e5ff511409c378cd4255713aecd85f
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/foreground.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/layered_image.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/layered_image.json
new file mode 100644
index 0000000000000000000000000000000000000000..fb49920440fb4d246c82f9ada275e26123a2136a
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/layered_image.json
@@ -0,0 +1,7 @@
+{
+ "layered-image":
+ {
+ "background" : "$media:background",
+ "foreground" : "$media:foreground"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/startIcon.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/startIcon.png
new file mode 100644
index 0000000000000000000000000000000000000000..205ad8b5a8a42e8762fbe4899b8e5e31ce822b8b
Binary files /dev/null and b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/media/startIcon.png differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/profile/backup_config.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/profile/backup_config.json
new file mode 100644
index 0000000000000000000000000000000000000000..d742c2f96e7dd0f406f499941f3147345e998f95
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/profile/backup_config.json
@@ -0,0 +1,3 @@
+{
+ "allowToBackupRestore": true
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/profile/main_pages.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/profile/main_pages.json
new file mode 100644
index 0000000000000000000000000000000000000000..1898d94f58d6128ab712be2c68acc7c98e9ab9ce
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/base/profile/main_pages.json
@@ -0,0 +1,5 @@
+{
+ "src": [
+ "pages/Index"
+ ]
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/dark/element/color.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/dark/element/color.json
new file mode 100644
index 0000000000000000000000000000000000000000..438d5bc43bb23c59c210d586b96635a72da5b64a
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/entry/src/main/resources/dark/element/color.json
@@ -0,0 +1,8 @@
+{
+ "color": [
+ {
+ "name": "start_window_background",
+ "value": "#000000"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/hvigor/hvigor-config.json5 b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/hvigor/hvigor-config.json5
new file mode 100644
index 0000000000000000000000000000000000000000..c61d3eed60978a00d9a67b754ec36c0c9dcde929
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/hvigor/hvigor-config.json5
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+{
+ "modelVersion": "5.0.0",
+ "dependencies": {
+ },
+ "execution": {
+ // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */
+ // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */
+ // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */
+ // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */
+ // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */
+ },
+ "logging": {
+ // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */
+ },
+ "debugging": {
+ // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */
+ },
+ "nodeOptions": {
+ // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/
+ // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/
+ }
+}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/hvigorfile.ts b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/hvigorfile.ts
new file mode 100644
index 0000000000000000000000000000000000000000..e3340f07e45ddc5dcadbb87012668555def2e6e0
--- /dev/null
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/hvigorfile.ts
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { appTasks } from '@ohos/hvigor-ohos-plugin';
+
+export default {
+ system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
+ plugins: [] /* Custom plugin to extend the functionality of Hvigor. */
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/app.js b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/oh-package.json5
old mode 100755
new mode 100644
similarity index 70%
rename from test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/app.js
rename to test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/oh-package.json5
index 6abda63f0e61d4a957e4320291c42647eb231991..6f0858716430d2425f3f5d446851c11473143e30
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle44/src/main/js/default/app.js
+++ b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/oh-package.json5
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022 Huawei Device Co., Ltd.
+ * Copyright (c) 2025 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -12,11 +12,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-export default {
- onCreate() {
- console.info('AceApplication onCreate');
- },
- onDestroy() {
- console.info('AceApplication onDestroy');
- }
-};
+
+{
+ "modelVersion": "5.0.0",
+ "description": "Please describe the basic information.",
+ "dependencies": {
+ },
+ "devDependencies": {
+ "@ohos/hypium": "1.0.21"
+ }
+}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/config.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/config.json
deleted file mode 100755
index ac096f6924d290fb00f39e2438d760859d6abc96..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/config.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "app": {
- "bundleName": "com.third.hiworld.example1",
- "vendor": "example",
- "version": {
- "code": 1,
- "name": "1.0"
- },
- "apiVersion": {
- "compatible": 3,
- "target": 3,
- "releaseType": "Release"
- }
- },
- "deviceConfig": {
- "default": {}
- },
- "module": {
- "package": "com.third.hiworld.example.h1",
- "name": "bmsThirdBundle1",
- "deviceType": [
- "2in1",
- "tablet",
- "default",
- "tv",
- "car"
- ],
- "distro": {
- "deliveryWithInstall": true,
- "moduleName": "testability",
- "moduleType": "entry"
- },
- "abilities": [
- {
- "name": "PageAbilityDemo",
- "icon": "$media:snowball",
- "srcLanguage": "c++",
- "label": "bmsThirdBundle_A1 Ability",
- "launchType": "singleton",
- "orientation": "unspecified",
- "type": "page",
- "visible": true,
- "skills": [
- {
- "actions": [
- "ohos.aafwk.content.Want.ACTION_HOME"
- ],
- "entities": [
- "ohos.aafwk.content.Want.ENTITY_HOME"
- ],
- "attributes": []
- }
- ]
- }
- ],
- "js": [
- {
- "pages": [
- "pages/index/index"
- ],
- "name": "default",
- "window": {
- "designWidth": 720,
- "autoDesignWidth": true
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/i18n/en-US.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/i18n/en-US.json
deleted file mode 100755
index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/i18n/en-US.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "Hello",
- "world": "World"
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/i18n/zh-CN.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/i18n/zh-CN.json
deleted file mode 100755
index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/i18n/zh-CN.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "strings": {
- "hello": "您好",
- "world": "世界"
- }
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.css b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.css
deleted file mode 100755
index 01ad739b27f208ff04f21924695104bd27c59df0..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* Copyright (c) 2022 Huawei Device Co., Ltd.
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.hml b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.hml
deleted file mode 100755
index 8d0e2061b88c99c91488405f0f2ead0c77de1a9e..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/element/string.json b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/element/string.json
deleted file mode 100755
index 4a5d2b0f227cd287e7fa240071e0509f2775bb16..0000000000000000000000000000000000000000
--- a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/element/string.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "string": [
- {
- "name": "permreason_example",
- "value": "bmsfirstright"
- },
- {
- "name": "mainability_description",
- "value": "JS_Phone_Empty Feature Ability"
- }
- ]
-}
\ No newline at end of file
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/media/icon.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/media/icon.png
deleted file mode 100755
index 8966a1e3de00956d251d5c1497aa251ea7b5c49f..0000000000000000000000000000000000000000
Binary files a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/media/icon.png and /dev/null differ
diff --git a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/media/snowball.png b/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/media/snowball.png
deleted file mode 100755
index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000
Binary files a/test/sceneProject/systemtest/stThirdBundle/bmsThirdBundle45/src/main/js/resources/base/media/snowball.png and /dev/null differ