diff options
author | 조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com> | 2024-07-18 08:41:16 +0900 |
---|---|---|
committer | Woongsuk Cho <ws77.cho@samsung.com> | 2024-07-18 09:09:32 +0900 |
commit | acb3b4279bad6003075eed7b31cfe298badd5439 (patch) | |
tree | 9ddc4a54406640e9636af8aa0ba00522fd6011d7 | |
parent | 00c38c281e178f4a553a2f031771749bd49fd2dd (diff) | |
download | launcher-tizen_7.0.tar.gz launcher-tizen_7.0.tar.bz2 launcher-tizen_7.0.zip |
Remove ni file before RO app AOTC (#570)accepted/tizen/7.0/unified/20240718.145933tizen_7.0accepted/tizen_7.0_unified
* Remove ni file before RO app AOTC
If AOTC is performed for a RO app, a native image file will be generated under /opt/usr/dotnet/apps.
During OTN, pkg_upgrade may trigger AOTC again for the RO application.
In this case, it is necessary to remove the previously created file and create a new one.
* Remove RO app ni files under /opt/usr/dotnet/apps
Recreated NI files of RO app, should be removed at FOTA/OTN
-rw-r--r-- | NativeLauncher/tool/ni_common.cc | 4 | ||||
-rw-r--r-- | packaging/715.dotnet_regen_app_ni.patch.sh | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/NativeLauncher/tool/ni_common.cc b/NativeLauncher/tool/ni_common.cc index ecfeee2..96247a8 100644 --- a/NativeLauncher/tool/ni_common.cc +++ b/NativeLauncher/tool/ni_common.cc @@ -1059,6 +1059,10 @@ ni_error_e createNIUnderPkgRoot(const std::string& pkgId, NIOption* opt) if (isReadOnlyArea(rootPath)) { opt->flags |= NI_FLAGS_APP_UNDER_RO_AREA; opt->flags |= NI_FLAGS_NO_PIPELINE; + std::string tmpPath = replaceAll(rootPath, getBaseName(rootPath), __READ_ONLY_APP_UPDATE_DIR); + if (!removeAll(tmpPath)){ + _SERR("Fail to remove RO App update path : %s", tmpPath.c_str()); + } _SERR("Only no-pipeline mode supported for RO app. Set no-pipeline option forcibly"); } else { opt->flags &= ~NI_FLAGS_APP_UNDER_RO_AREA; diff --git a/packaging/715.dotnet_regen_app_ni.patch.sh b/packaging/715.dotnet_regen_app_ni.patch.sh index c877058..12496a9 100644 --- a/packaging/715.dotnet_regen_app_ni.patch.sh +++ b/packaging/715.dotnet_regen_app_ni.patch.sh @@ -4,6 +4,9 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin +# remove application native image files of RO app +rm -rf /opt/usr/dotnet/apps/* + /usr/bin/dotnettool --tac-regen-all /usr/bin/dotnettool --ni-regen-all-app --skip-ro-app /usr/bin/dotnettool --resolve-all-app |