文件最后提交记录最后更新时间
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
restartapp Signed-off-by: Luobniz21 <luoyicong@h-partners.com> # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Tue Apr 28 09:37:42 2026 +0800 # # On branch restartapp # Your branch is up to date with 'origin/restartapp'. # # Changes to be committed: # new file: restartapp/.gitignore # new file: restartapp/AppScope/app.json5 # new file: restartapp/AppScope/resources/base/element/string.json # new file: restartapp/AppScope/resources/base/media/background.png # new file: restartapp/AppScope/resources/base/media/foreground.png # new file: restartapp/AppScope/resources/base/media/layered_image.json # new file: restartapp/README_zh.md # new file: restartapp/build-profile.json5 # new file: restartapp/code-linter.json5 # new file: restartapp/entry/.gitignore # new file: restartapp/entry/build-profile.json5 # new file: restartapp/entry/hvigorfile.ts # new file: restartapp/entry/obfuscation-rules.txt # new file: restartapp/entry/oh-package.json5 # new file: restartapp/entry/src/main/ets/entryability/EntryAbility.ets # new file: restartapp/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets # new file: restartapp/entry/src/main/ets/pages/Index.ets # new file: restartapp/entry/src/main/ets/pages/Index2.ets # new file: restartapp/entry/src/main/ets/pages/Index3.ets # new file: restartapp/entry/src/main/ets/secondability/SecondAbility.ets # new file: restartapp/entry/src/main/module.json5 # new file: restartapp/entry/src/main/resources/base/element/color.json # new file: restartapp/entry/src/main/resources/base/element/float.json # new file: restartapp/entry/src/main/resources/base/element/string.json # new file: restartapp/entry/src/main/resources/base/media/background.png # new file: restartapp/entry/src/main/resources/base/media/foreground.png # new file: restartapp/entry/src/main/resources/base/media/layered_image.json # new file: restartapp/entry/src/main/resources/base/media/startIcon.png # new file: restartapp/entry/src/main/resources/base/profile/backup_config.json # new file: restartapp/entry/src/main/resources/base/profile/main_pages.json # new file: restartapp/entry/src/main/resources/dark/element/color.json # new file: restartapp/entry/src/mock/mock-config.json5 # new file: restartapp/entry/src/ohosTest/ets/test/Ability.test.ets # new file: restartapp/entry/src/ohosTest/ets/test/List.test.ets # new file: restartapp/entry/src/ohosTest/module.json5 # new file: restartapp/entry/src/test/List.test.ets # new file: restartapp/entry/src/test/LocalUnit.test.ets # new file: restartapp/hvigor/hvigor-config.json5 # new file: restartapp/hvigorfile.ts # new file: restartapp/oh-package.json5 # new file: restartapp/ohosTest.md # new file: restartapp/screenshots/ApplicationContextRestartApp.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp1.gif # new file: restartapp/screenshots/UIAbilityContextRestartApp2.gif # # Untracked files: # GuideForAppExit/ # 1 个月前
README_zh.md

应用重启(restartApp)

介绍

本示例展示了如何使用 ApplicationContext 的 restartApp 方法来重启应用。restartApp 方法可以用于在应用运行过程中重启应用,例如在配置更改后需要重启应用使新配置生效的场景。

效果预览

进入应用后,点击"restartApp"按钮,应用将重启并返回到首页。 完全重新启动应用 重启应用刷新当前窗口 重启应用跳转到新窗口

使用说明

  1. 前期准备:
    • 确保设备已正常运行。
    • 使用 DevEco Studio 编译并安装本应用到设备。
  2. 操作步骤:
    • 启动应用后,点击页面中央的"restartApp"按钮。
    • 观察应用重启过程,应用会关闭并重新启动,返回到首页。

工程目录

entry/src/
 ├── main
 │   ├── ets
 │   │   ├── entryability
 │   │       ├── EntryAbility.ets            // 主Ability
 │   │   ├── secondability
 │   │       ├── SecondAbility.ets           // 第二个Ability
 │   │   ├── entrybackupability
 │   │       ├── EntryBackupAbility.ets      // 备份扩展Ability
 │   │   ├── pages
 │   │       ├── Index.ets                   // 主页面,包含restartApp按钮
 │   │       ├── Index2.ets
 │   │       ├── Index3.ets
 │   ├── module.json5
 │   └── resources
 ├── ohosTest
 │   ├── ets
 │   │   ├── test
 │   │       ├── Ability.test.ets            // 自动化测试代码

具体实现

  • 应用重启功能,源码参考:Index.ets
    • 使用 ApplicationContext.restartApp() 方法重启应用
    • 通过 Want 对象指定重启后启动的 Ability

相关权限

不涉及。

依赖

不涉及。

约束与限制

  1. 本示例仅支持标准系统上运行,支持设备:RK3568。

  2. 本示例为 Stage 模型,支持 API22 版本 SDK。

  3. 本示例需要使用 DevEco Studio 6.0.0 Release (Build Version: 6.0.0.858, built on September 24, 2025) 及以上版本才可编译运行。

下载

如需单独下载本工程,执行如下命令:

git init
git config core.sparsecheckout true
echo code/DocsSample/Ability/restartapp > .git/info/sparse-checkout
git remote add origin https://gitcode.com/openharmony/applications_app_samples.git
git pull origin master