platform/core/dotnet/launcher.git
8 months agoFixed TAC related bugs caused by function integration patch
j-h.choi [Thu, 22 Feb 2024 01:00:32 +0000 (10:00 +0900)]
Fixed TAC related bugs caused by function integration patch

Change-Id: Ib274591f120e7d8ed89b568c67de042cba21e07a

8 months agoChanged the creation location of the NI file to configure smack for RPK
j-h.choi [Wed, 21 Feb 2024 05:05:44 +0000 (14:05 +0900)]
Changed the creation location of the NI file to configure smack for RPK

When the RPK(resource package) is installed through pkgcmd, AOT is performed.
At this time, there was an issue that the smack label did not change for the NI created in the lib folder.
Because the installer does not have the capability of cap_mac_admin.

Change-Id: I74d47104d9edf07187fd1bd942a2993c280a7219

8 months agoremove unnecessary ecore dependency accepted/tizen/unified/20240220.115648 accepted/tizen/unified/20240220.144648
Woongsuk Cho [Tue, 20 Feb 2024 01:41:12 +0000 (10:41 +0900)]
remove unnecessary ecore dependency

8 months agoFixed bug that check the arch of device
j-h.choi [Mon, 19 Feb 2024 08:31:40 +0000 (17:31 +0900)]
Fixed bug that check the arch of device

Change-Id: Ia27f81678ad75cc5d5029a2d9288c27f8319f291

8 months agoRefactoring to extract duplicate logic as a separate method
j-h.choi [Wed, 14 Feb 2024 07:09:54 +0000 (16:09 +0900)]
Refactoring to extract duplicate logic as a separate method

Change-Id: I765201c0249f6415b6c1e3654888ae0567af5889

8 months agoChange implementation of regeneratePkgNI
Woongsuk Cho [Mon, 5 Feb 2024 01:08:27 +0000 (10:08 +0900)]
Change implementation of regeneratePkgNI

8 months agoAOT support for RPK
Woongsuk Cho [Wed, 31 Jan 2024 07:17:32 +0000 (16:17 +0900)]
AOT support for RPK

The RPK (Resource Package) can contain dlls for resources and NUIGadget.
For RPK, Dlls can be located under lib and res/allowed directory.

AOT for RPK is enabled by metadata "http://tizen.org/metadata/prefer_dotnet_aot".
It triggered by metadata installer plugin and dotnettool(--ni-pkg, --ni-regen-all-app).

8 months ago[Refactoring] Code cleanup and remove duplicate methods
j-h.choi [Thu, 18 Jan 2024 06:40:47 +0000 (15:40 +0900)]
[Refactoring] Code cleanup and remove duplicate methods

Change-Id: I6c65e5108b0110a51b5f9d60e34779d7d4f300ef

8 months agoUpdate NativeLauncher/tool/ni_common.cc
조웅석/MDE Lab(SR)/삼성전자 [Mon, 18 Dec 2023 07:21:04 +0000 (16:21 +0900)]
Update NativeLauncher/tool/ni_common.cc

Co-authored-by: 최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
8 months agoRemove duplicated ni regeneration
Woongsuk Cho [Wed, 29 Nov 2023 04:16:49 +0000 (13:16 +0900)]
Remove duplicated ni regeneration

In case of --ni-regen-all-app option, AOTC was performed multiply for one package if multiple app is contained in it.
To avoid this situation, get unique candiate package list for --ni-regen-all-app.

8 months agoUpdate ni_common.cc
최종헌/MDE Lab(SR)/삼성전자 [Mon, 18 Dec 2023 06:32:09 +0000 (15:32 +0900)]
Update ni_common.cc

8 months agoRemove duplicate files from app assembly list
j-h.choi [Tue, 21 Nov 2023 07:22:37 +0000 (16:22 +0900)]
Remove duplicate files from app assembly list

8 months agoRemove ZapDisable=1 for Coreprofiler
Gleb Balykov [Thu, 15 Feb 2024 07:43:30 +0000 (10:43 +0300)]
Remove ZapDisable=1 for Coreprofiler

Explicit disabling of ni.dll is not needed, because
- in case of enter/leave hooks usage (non-alternative sampling mode) ni.dll will be disabled automatically
- in case of DoStackSnapshot (alternative sampling mode) ni.dll can be freely used and this will improve performance

8 months agoRevert PR #509, #510 (#513)
최종헌/MDE Lab(SR)/삼성전자 [Wed, 14 Feb 2024 03:07:12 +0000 (12:07 +0900)]
Revert PR #509, #510 (#513)

* Revert "Sets the ZapDisable env according to the Alternative Sampling value of the coreprofiler"

This reverts commit 2fa05eebf1a9a61018efefea5c5cfe42a9fd5b7f.

* Revert "[Refactoring] Improve SAM score through DC and GV improvement"

This reverts commit 04a885649ac58636a6b7da2c20449adceb84e40b.

8 months ago[TC Fixed] Remove the TC for dotnet-nui-loader
j-h.choi [Thu, 4 Jan 2024 01:29:48 +0000 (10:29 +0900)]
[TC Fixed] Remove the TC for dotnet-nui-loader

8 months ago[Refactoring] Improve SAM score through DC and GV improvement
j-h.choi [Mon, 22 Jan 2024 04:34:47 +0000 (13:34 +0900)]
[Refactoring] Improve SAM score through DC and GV improvement

8 months agoSets the ZapDisable env according to the Alternative Sampling value of the coreprofiler
j-h.choi [Wed, 24 Jan 2024 06:25:09 +0000 (15:25 +0900)]
Sets the ZapDisable env according to the Alternative Sampling value of the coreprofiler

Change-Id: Iba9dfd40023c15b0d59a9cc8032c0e9390d7278d

8 months agoAdd --set-priority option in dotnettool
j-h.choi [Tue, 2 Jan 2024 07:52:01 +0000 (16:52 +0900)]
Add --set-priority option in dotnettool

Change-Id: I9d7c0291e24e6be28e6974be360e5c271f9c3c1e

9 months agoTAC is applied to all dlls in the R2R mode (#502) accepted/tizen/unified/20240129.163413
최종헌/MDE Lab(SR)/삼성전자 [Sun, 28 Jan 2024 23:54:56 +0000 (08:54 +0900)]
TAC is applied to all dlls in the R2R mode (#502)

9 months agoFix build error in aarch64 (#511) accepted/tizen/unified/20240125.160247 accepted/tizen/unified/20240126.061438 accepted/tizen/unified/20240126.061455 accepted/tizen/unified/toolchain/20240125.111836 accepted/tizen/unified/toolchain/20240312.065456
최종헌/MDE Lab(SR)/삼성전자 [Thu, 25 Jan 2024 04:51:14 +0000 (13:51 +0900)]
Fix build error in aarch64 (#511)

Change-Id: I9577aa8ea2813a0ac92c4acd6cb9a1241e450fcf

9 months agoCode review feedback
최종헌/MDE Lab(SR)/삼성전자 [Wed, 3 Jan 2024 08:43:52 +0000 (17:43 +0900)]
Code review feedback

9 months agoChange to create a .native_image_tmp folder when creating NI
j-h.choi [Tue, 2 Jan 2024 06:44:39 +0000 (15:44 +0900)]
Change to create a .native_image_tmp folder when creating NI

10 months agoAdd define HOST_XXX to support pal.h accepted/tizen_unified_riscv accepted/tizen/unified/riscv/20231226.055533 accepted/tizen/unified/toolchain/20240311.064824 accepted/tizen/unified/toolchain/20240312.012715
Woongsuk Cho [Fri, 22 Dec 2023 00:02:00 +0000 (09:02 +0900)]
Add define HOST_XXX to support pal.h

Processor-specifc glue code is removed from latest pal.h.
To avoid build failure, add HOST_XXX define for each architecture.

10 months ago[RISCV64] Add definition for riscv64
j-h.choi [Tue, 19 Dec 2023 01:28:49 +0000 (10:28 +0900)]
[RISCV64] Add definition for riscv64

Change-Id: Ibc4d4be09967bb1941e0b569b2044371d178f21c

11 months agoCheck library extension more accepted/tizen/8.0/unified/20231129.170829 accepted/tizen/unified/20231130.180856
Woongsuk Cho [Tue, 28 Nov 2023 11:42:47 +0000 (20:42 +0900)]
Check library extension more

To handle ".so.{number}" case, add more checking logic

11 months agoBug-fix : native library resolving logic accepted/tizen/unified/20231128.175131
Woongsuk Cho [Tue, 28 Nov 2023 08:28:33 +0000 (17:28 +0900)]
Bug-fix : native library resolving logic

11 months agoAdd error log when using --rm-all-app-profile option (#493) accepted/tizen/8.0/unified/20231113.182916 accepted/tizen/unified/20231114.041324
최종헌/MDE Lab(SR)/삼성전자 [Mon, 13 Nov 2023 03:55:40 +0000 (12:55 +0900)]
Add error log when using --rm-all-app-profile option (#493)

11 months agoRefactoring the fallback graph of RID/TFM (#488)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 13 Nov 2023 03:55:33 +0000 (12:55 +0900)]
Refactoring the fallback graph of RID/TFM (#488)

11 months agoGet user app root dir for remove profile data accepted/tizen/8.0/unified/20231110.171756 accepted/tizen/unified/20231110.172151
Woongsuk Cho [Thu, 9 Nov 2023 06:06:16 +0000 (15:06 +0900)]
Get user app root dir for remove profile data

To remove duplicated API call(changing user), get userAppRoot dir instead of uid.

11 months agoSet default value (NULL) for removeAllProfile accepted/tizen/8.0/unified/20231109.181656
Woongsuk Cho [Thu, 9 Nov 2023 01:58:58 +0000 (10:58 +0900)]
Set default value (NULL) for removeAllProfile

11 months agoGets the user's uid related to installed app only.
Woongsuk Cho [Thu, 9 Nov 2023 01:05:34 +0000 (10:05 +0900)]
Gets the user's uid related to installed app only.

if there are many installed apps, it takes a lot of time to delete profile data.
This is because it attempts to delete profile data for all uids.

To optimize this, only uids related to the installed app are obtained.

11 months agoRevert "Add launchpad_loader_block/unblock_thread() method" accepted/tizen/8.0/unified/20231108.165834 accepted/tizen/unified/20231107.172920
j-h.choi [Tue, 7 Nov 2023 06:22:48 +0000 (15:22 +0900)]
Revert "Add launchpad_loader_block/unblock_thread() method"

This reverts commit c8b525e03ec5caf89e78ffa4a888aa57f2179540.

12 months agoCreate vconf related to .NET as a file in RO location accepted/tizen/8.0/unified/20231103.040910
j-h.choi [Mon, 30 Oct 2023 22:11:43 +0000 (07:11 +0900)]
Create vconf related to .NET as a file in RO location

12 months agoAdd launchpad_loader_block/unblock_thread() method accepted/tizen/unified/20231030.034756
j-h.choi [Thu, 26 Oct 2023 00:01:26 +0000 (09:01 +0900)]
Add launchpad_loader_block/unblock_thread() method

12 months agoAdd DIAGNOSTIC to debugger script (#484) accepted/tizen/8.0/unified/20231011.152835 accepted/tizen/unified/20231011.153140 tizen_8.0_m2_release
조웅석/MDE Lab(SR)/삼성전자 [Wed, 11 Oct 2023 01:18:39 +0000 (10:18 +0900)]
Add DIAGNOSTIC to debugger script (#484)

To set DOTNET_DiagnosticPorts environment for app launching,
Add DIAGNOSTIC option to debugger script

Only environment key value is described in debugger script.
The environment value should be set when launching application like below.

owner:~> launch_app [APP_ID] __AUL_SDK__ DIAGNOSTIC DOTNET_DiagnosticPorts [PortName]

14 months agoCall plugin has log control before preloading (#483) accepted/tizen/8.0/unified/20231005.093328 accepted/tizen/unified/20230825.121024
조웅석/MDE Lab(SR)/삼성전자 [Thu, 24 Aug 2023 06:58:23 +0000 (15:58 +0900)]
Call plugin has log control before preloading (#483)

* Call pluginHasLogControl in the initialize

VD create log thread in the pluginHasLogControl to redirect stdout,stderr to vlog.
To prevent log missing in the candidate process, call pluginHasLogControl in the initialize() function.

* call pluginHasLogControl before preloading

14 months agoCall pluginHasLogControl in the initialize
Woongsuk Cho [Thu, 24 Aug 2023 06:36:16 +0000 (15:36 +0900)]
Call pluginHasLogControl in the initialize

VD create log thread in the pluginHasLogControl to redirect stdout,stderr to vlog.
To prevent log missing in the candidate process, call pluginHasLogControl in the initialize() function.

14 months agoCheck library extensions more accurately accepted/tizen/unified/20230825.044242
j-h.choi [Thu, 24 Aug 2023 00:52:30 +0000 (09:52 +0900)]
Check library extensions more accurately

15 months agoUpdate tfm to net6.0 (#479) accepted/tizen/unified/20230731.175323
최종헌/MDE Lab(SR)/삼성전자 [Mon, 31 Jul 2023 04:17:47 +0000 (13:17 +0900)]
Update tfm to net6.0 (#479)

15 months agoChange the location and value for generating vconf of runtime_version (#478)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 31 Jul 2023 04:15:17 +0000 (13:15 +0900)]
Change the location and value for generating vconf of runtime_version (#478)

15 months agoRemove storage API dependency (#477) accepted/tizen/unified/20230726.020653
조웅석/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 23:46:24 +0000 (08:46 +0900)]
Remove storage API dependency (#477)

Use tzplatform_config API to get special folder instead of storage API.
storage API makes thread and gdbus connection internally and it can make some error at the loader mode.
In this patch, we get special folders (music, image, video) from tzplatform data.
Additionally, to allow override speicial folder location with coreclr_env.list,
change the initEnvForSpecialFolder() call location.

15 months agoChange the priority of the function to check (#476)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 05:31:21 +0000 (14:31 +0900)]
Change the priority of the function to check (#476)

15 months agoUse setEnvrionmentVariable() to set SpecialFolder (#475) accepted/tizen/unified/20230725.013007
조웅석/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 04:34:59 +0000 (13:34 +0900)]
Use setEnvrionmentVariable() to set SpecialFolder (#475)

Storage API which is used to get SpecialFolder(Music, Picture, Video) makes threads internally,
and it makes crash when we call setenv() function in the launcher because setenv() is not thread-safe function.

So, use setEnvironmentVariable() function which set envrionment variable in the .NET runtime.

15 months agoFix deprecated SHA* to EVP_MD* (#473)
이형주/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 04:31:33 +0000 (13:31 +0900)]
Fix deprecated SHA* to EVP_MD* (#473)

* Fix deprecated SHA* to EVP_MD*

15 months agoCopy only when there is .native_image folder (#474)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 24 Jul 2023 04:28:12 +0000 (13:28 +0900)]
Copy only when there is .native_image folder (#474)

15 months agoOpenssl 1.1 -> 3 (#472) accepted/tizen/unified/20230720.164633
이형주/MDE Lab(SR)/삼성전자 [Thu, 20 Jul 2023 06:25:20 +0000 (15:25 +0900)]
Openssl 1.1 -> 3 (#472)

* Openssl 1.1 -> 3

* Fix libname

15 months agoFix compile error for gcc13 (#471) accepted/tizen/unified/dev/20230726.120036
이형주/MDE Lab(SR)/삼성전자 [Wed, 19 Jul 2023 09:04:40 +0000 (18:04 +0900)]
Fix compile error for gcc13 (#471)

* Fix compile error for gcc13

* Filetype to unix

15 months agoRemove the preload code related to TIZEN_UIFW. Only NUI is supported (#469) accepted/tizen/unified/20230718.162214
최종헌/MDE Lab(SR)/삼성전자 [Tue, 18 Jul 2023 00:37:26 +0000 (09:37 +0900)]
Remove the preload code related to TIZEN_UIFW. Only NUI is supported (#469)

15 months agoAdded the sdk_tool path to find diagnostics (#459) accepted/tizen/unified/20230710.154005
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 04:44:46 +0000 (13:44 +0900)]
Added the sdk_tool path to find diagnostics (#459)

Change-Id: Ic3bb7521e5fe8c2f8be39118ab06725e4f91a6e3

15 months ago[Tizen S] Deleted unused scripts because wearable is not supported (#463)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 04:44:31 +0000 (13:44 +0900)]
[Tizen S] Deleted unused scripts because wearable is not supported (#463)

15 months ago[Bug fix] Added reboot to avoid mount issue for RO app (#467)
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 04:44:16 +0000 (13:44 +0900)]
[Bug fix] Added reboot to avoid mount issue for RO app (#467)

15 months agoFix bugs for apps that do not have AOT metadata when running the --tac-regen-all...
최종헌/MDE Lab(SR)/삼성전자 [Mon, 10 Jul 2023 00:55:24 +0000 (09:55 +0900)]
Fix bugs for apps that do not have AOT metadata when running the --tac-regen-all option (#466)

15 months agoThe default heaptrack configuration file path added. (#465)
Oleg Lekarev/Advanced System SW Lab /SRR/Staff Engineer/Samsung Electronics [Sun, 9 Jul 2023 23:48:53 +0000 (02:48 +0300)]
The default heaptrack configuration file path added. (#465)

15 months agoRemove deadcode
Hyungju Lee [Wed, 5 Jul 2023 23:55:35 +0000 (08:55 +0900)]
Remove deadcode

16 months agoSupport UI Thread Separate (UTS) App Model (#464) accepted/tizen/unified/20230627.025434
조웅석/MDE Lab(SR)/삼성전자 [Mon, 26 Jun 2023 04:16:49 +0000 (13:16 +0900)]
Support UI Thread Separate (UTS) App Model (#464)

define new apptype dotnet-uts for UI Thread Separate App Model

In the UI Thread Separate App Model, the main thread operates with the gmainloop
and UI-related tasks operate with the ecoreloop in a separate thread.
Therefore, ecore_init() should not be called in the main thread of the candidate process
for the UI Thread Separate App Model.
Also, candidate process should run with the gmainloop.

To run by the UI Thread Separate App Model, the environment variable "TIZEN_UI_THREAD" should be set to "true".
If this environment variable is set, then NUI would work on UI Thread Separate Mode.

17 months ago[Tizen S] Integrate app types(dotnet, dotnet-nui) accepted/tizen/unified/20230601.163008
j-h.choi [Thu, 27 Apr 2023 04:46:45 +0000 (13:46 +0900)]
[Tizen S] Integrate app types(dotnet, dotnet-nui)

18 months agoAdd "User" execute labe to dotnet-hydra-loader (#461)
조웅석/MDE Lab(SR)/삼성전자 [Mon, 10 Apr 2023 01:00:41 +0000 (10:00 +0900)]
Add "User" execute labe to dotnet-hydra-loader (#461)

20 months agoCreate the /tmp/.dotnet/mcj dir to reduce the number of I/O of profile data accepted/tizen/7.0/unified/20230213.171720
j-h.choi [Thu, 19 Jan 2023 01:23:55 +0000 (10:23 +0900)]
Create the /tmp/.dotnet/mcj dir to reduce the number of I/O of profile data

Change-Id: I19ecbbdb2d6603d6cdea1d3214ae79c638bc06e6

21 months agoChanged the json exception
j-h.choi [Thu, 26 Jan 2023 07:32:39 +0000 (16:32 +0900)]
Changed the json exception

Change-Id: I87c0c32673b94e62682d13b69b62a29f847f1bfe

21 months agoRemove preload thread (#456) accepted/tizen/7.0/unified/20230119.134111 accepted/tizen/unified/20230120.182039
이형주/MDE Lab(SR)/삼성전자 [Wed, 18 Jan 2023 23:51:16 +0000 (08:51 +0900)]
Remove preload thread (#456)

22 months agoChanged the path of diagnostics tool (#455) accepted/tizen/unified/20221229.165944
최종헌/MDE Lab(SR)/삼성전자 [Thu, 29 Dec 2022 01:59:31 +0000 (10:59 +0900)]
Changed the path of diagnostics tool (#455)

Change-Id: I68c3697ad22d727ff6b4cbdfdc875a1378321f6c

22 months agoThe Pre-Compiled app skips the TAC (#444) accepted/tizen/7.0/unified/20221216.133937 accepted/tizen/unified/20221213.123154
최종헌/Common Platform Lab(SR)/삼성전자 [Mon, 12 Dec 2022 08:09:46 +0000 (17:09 +0900)]
The Pre-Compiled app skips the TAC (#444)

Change-Id: I8aa987f98d4e5a5deb68cea543ea05faef73277f

22 months agoQuick&Dirty patch to reduce icu searching overhead (#453) accepted/tizen/unified/20221209.014605
이형주/Common Platform Lab(SR)/삼성전자 [Thu, 8 Dec 2022 08:36:54 +0000 (17:36 +0900)]
Quick&Dirty patch to reduce icu searching overhead (#453)

* Quick&Dirty patch to reduce icu searching overhead

* Fix version to `build` to use build time icu first.

22 months agoAdd TAC installer accepted/tizen/unified/20221208.043843
j-h.choi [Tue, 15 Nov 2022 01:32:39 +0000 (10:32 +0900)]
Add TAC installer

Change-Id: I69d7e46bdc9483b637664ece11213a91c0a99d25

22 months agoAdd '--skip-ro-app' option in TC_TOOL
j-h.choi [Thu, 24 Nov 2022 01:20:42 +0000 (10:20 +0900)]
Add '--skip-ro-app' option in TC_TOOL

Change-Id: I41517444a497cbdc9ccb0d3412be20bc905d2969

22 months agoUpdate launcher version to 6.0.9 in spec
j-h.choi [Tue, 8 Nov 2022 00:49:30 +0000 (09:49 +0900)]
Update launcher version to 6.0.9 in spec

Change-Id: I5adafd6c51aef5946632848ce0d5e756f67d6e45

22 months agoRefactoring preloading (#452) accepted/tizen/unified/20221205.101746
이형주/Common Platform Lab(SR)/삼성전자 [Mon, 5 Dec 2022 03:40:54 +0000 (12:40 +0900)]
Refactoring preloading (#452)

* Separate thread-safe preload from others
* Add UIFW to dotnet/dotnet-nui launchers

22 months agoIntroduce preloadThread for launcher (#451)
이형주/Common Platform Lab(SR)/삼성전자 [Mon, 5 Dec 2022 00:09:07 +0000 (09:09 +0900)]
Introduce preloadThread for launcher (#451)

* Introduce preloadThread for launcher

23 months agoAdd ToUpper() ToLower() to preload logic
Hyungju Lee [Fri, 2 Dec 2022 05:40:28 +0000 (14:40 +0900)]
Add ToUpper() ToLower() to preload logic

23 months agoexit app if fail to open plugin library (#449)
조웅석/Common Platform Lab(SR)/삼성전자 [Fri, 2 Dec 2022 05:22:14 +0000 (14:22 +0900)]
exit app if fail to open plugin library (#449)

23 months agoFixed bug checking internet privilege for each app (#447)
최종헌/Common Platform Lab(SR)/삼성전자 [Mon, 28 Nov 2022 01:54:39 +0000 (10:54 +0900)]
Fixed bug checking internet privilege for each app (#447)

Change-Id: Id7491a7e5156a30583caa48db273ecdedf9f56af

2 years agoRemove temporal test code accepted/tizen/unified/20221103.165812
Woongsuk Cho [Wed, 19 Oct 2022 01:42:25 +0000 (10:42 +0900)]
Remove temporal test code

2 years agoApply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062148 accepted/tizen/7.0/unified/hotfix/20221116.105305 accepted/tizen/unified/20221017.104849 tizen_7.0_m2_release
j-h.choi [Mon, 17 Oct 2022 02:11:27 +0000 (11:11 +0900)]
Apply smack when '._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6' file is created

Change-Id: I6b85a62d45c2261353a24420d95dd3c641efb25d

2 years agoExclude exe extension from target assembly accepted/tizen/unified/20221014.123806
Woongsuk Cho [Fri, 7 Oct 2022 03:13:27 +0000 (12:13 +0900)]
Exclude exe extension from target assembly

Recently installed apps at RPI4 include exe files which are not assemblies.
It occurs error while App AOTC. So, exclude exe extension from target assembly.

2 years agoChanged API to check internet privilege
j-h.choi [Thu, 13 Oct 2022 07:56:08 +0000 (16:56 +0900)]
Changed API to check internet privilege

Change-Id: I9952150b11e561e1d89b5d8ce4798fdcddb62e0d

2 years agoRemove language_change_cb on the loader accepted/tizen/unified/20220929.140032
Woongsuk Cho [Thu, 29 Sep 2022 02:18:26 +0000 (11:18 +0900)]
Remove language_change_cb on the loader

Appfw set CultureInfo from i18n when application launching
So, there is no need to restart candidate process when language changed.

Recreating candidate process can make launching failure becauseof timing issue.
(candidate process process killed -> app-launching request raised -> launchpad get sighchild)

To remove this kind timing issue, remove language changed callback

2 years agoFixed the segmentation fault in dotnettool (#437) accepted/tizen/unified/20220927.132406
최종헌/Common Platform Lab(SR)/삼성전자 [Mon, 26 Sep 2022 07:28:49 +0000 (16:28 +0900)]
Fixed the segmentation fault in dotnettool (#437)

Change-Id: I9fff49ed5d130483f46ebeed4603ef076619f885

2 years agoCheck the existence of the original(.dll) file to use the --ni-reset-system option...
최종헌/Common Platform Lab(SR)/삼성전자 [Thu, 22 Sep 2022 06:26:47 +0000 (15:26 +0900)]
Check the existence of the original(.dll) file to use the --ni-reset-system option (#436)

Change-Id: I0b8d79b399729018408b02847ced5b5b1a8849b2

2 years agoAdd limitation for -rm-origin-after-ni (#435) accepted/tizen/unified/20220923.052701
조웅석/Common Platform Lab(SR)/삼성전자 [Wed, 21 Sep 2022 02:25:06 +0000 (11:25 +0900)]
Add limitation for -rm-origin-after-ni (#435)

After upgrading platform, native image files for app should be regenerated.
In that case, original assembly is needed.
So, prohibits the use of "--rm-origin-after-ni" option in app related options.
(--ni-pkg, --ni-regen-all-app, --tac-regen-all)

2 years agoAdd --rm-origin-after-ni option accepted/tizen/unified/20220920.160600
Woongsuk Cho [Thu, 3 Feb 2022 05:09:41 +0000 (14:09 +0900)]
Add --rm-origin-after-ni option

Add option to remove original dll after creating native image for reducing storage consumption.
This option doesnot work with --ni-pkg option because app can be re-compiled.

2 years agoFix dll filter in doAOTList (#433) accepted/tizen/unified/20220920.050137
이형주/Common Platform Lab(SR)/삼성전자 [Thu, 15 Sep 2022 04:54:47 +0000 (13:54 +0900)]
Fix dll filter in doAOTList (#433)

2 years agoModify log for profile data
j-h.choi [Wed, 31 Aug 2022 23:16:53 +0000 (08:16 +0900)]
Modify log for profile data

Change-Id: I498b7ce75a9e262b658303c2aee7e54815da7eca

2 years agoAdd log for profile data when the app runs
j-h.choi [Tue, 30 Aug 2022 23:28:58 +0000 (08:28 +0900)]
Add log for profile data when the app runs

Change-Id: Id3f6eb5559ea5c6da4efecc43315df8f1897a296

2 years agoFixed TAC_TC
j-h.choi [Fri, 26 Aug 2022 02:07:07 +0000 (11:07 +0900)]
Fixed TAC_TC

Change-Id: Id626c06a649c7903559cf8bbf43a8248f8bd148f

2 years agoAdd log when profile data is successfully loaded in candidate process
j-h.choi [Tue, 30 Aug 2022 09:31:39 +0000 (18:31 +0900)]
Add log when profile data is successfully loaded in candidate process

Change-Id: Ibceb2b5f8fb7dd0aa8b31b79759f22b98dbbb4f8

2 years agoChange the published value of metadata accepted/tizen/unified/20220826.060837 submit/tizen/20220826.015422
j-h.choi [Fri, 26 Aug 2022 01:42:25 +0000 (10:42 +0900)]
Change the published value of metadata

Change-Id: Ie0a17da992a647afa642c7a6c0b58c708c8d1010

2 years agoFixed build warning submit/tizen/20220825.083931
j-h.choi [Thu, 11 Aug 2022 05:52:04 +0000 (14:52 +0900)]
Fixed build warning

Change-Id: Iafff976b1ad4fa3556260f0709058a7fe573ffeb

2 years ago[WIP] Profile data generation tools to use in candidate process
j-h.choi [Mon, 25 Jul 2022 04:35:50 +0000 (13:35 +0900)]
[WIP] Profile data generation tools to use in candidate process

Change-Id: If92eaf2089233d65e137cd8c8b8c59f120541de1

2 years agoAdd the option to check Internet privilege in dotnettool for the FOTA
j-h.choi [Tue, 14 Jun 2022 07:13:45 +0000 (16:13 +0900)]
Add the option to check Internet privilege in dotnettool for the FOTA

Change-Id: I74604e5145519db06f8a0b6f8bd57ba69707c190

2 years agoAdd NCDB startup hook support.
Mikhail Kurinnoi [Fri, 29 Jul 2022 15:30:26 +0000 (18:30 +0300)]
Add NCDB startup hook support.

2 years agoUpgrade the nuget(Newtonsoft.Json) version of TC (#422)
최종헌/Common Platform Lab(SR)/삼성전자 [Tue, 19 Jul 2022 23:53:03 +0000 (08:53 +0900)]
Upgrade the nuget(Newtonsoft.Json) version of TC (#422)

Change-Id: I9234a89f05489a771f3ea50242d750e71d652951

2 years ago[WIP] Set the MCJ in the candidate process
j-h.choi [Sun, 8 May 2022 23:41:35 +0000 (08:41 +0900)]
[WIP] Set the MCJ in the candidate process

Change-Id: I95438e3a8ee4a4bbe5e538dc5add317d543a26f0

2 years agolink profile_common library to apptype_plugin (#421)
조웅석/Common Platform Lab(SR)/삼성전자 [Wed, 6 Jul 2022 21:39:17 +0000 (06:39 +0900)]
link profile_common library to apptype_plugin (#421)

To avoid symbol lookup error, link libprofile_common.so to libapptype_plugin.so

2 years agoSeparate the code related to the profile data into a profile_common file
j-h.choi [Tue, 14 Jun 2022 06:54:12 +0000 (15:54 +0900)]
Separate the code related to the profile data into a profile_common file

Change-Id: I6c62e7a26f502651333458473202b6d438f46261

2 years agoChange --ni-dir option operation
Woongsuk Cho [Wed, 29 Jun 2022 05:36:17 +0000 (14:36 +0900)]
Change --ni-dir option operation

if the --inputbubble option and --ni-dir option used together, all input directories must be processed as one bubble.
For this requirements, change implementation of --ni-dir option.

2 years agoRenew InputBubble Option (#416)
조웅석/Common Platform Lab(SR)/삼성전자 [Tue, 28 Jun 2022 00:01:54 +0000 (09:01 +0900)]
Renew InputBubble Option (#416)

When the native image compiled with the --inputbubble option is executed, all assemblies included in the same bubble must be compiled too.
Previous --ni-dll or --no-pipeline option can lead misusage of --inputbubble option.
For example, if the below command are executed, system libraries are compiled one by one.

$ dotnettool --inputbubble --no-pipeline --ni-dir /usr/share/dotnet.tizen/netcoreapp

In this case, a problem may occur because crossgen2 is executed with compiled native images with --inputbubble and the non-compiled assemblies

In order to prevent errors caused by such misuse, the following modifications were made.
1. When using no-pipeline mode, it was temporarily created as ni.dll.tmp and then changed to ni.dll in the last step of dotnettool.
2. if --inputbubbleref option is not set, only input file(s) of dotnettool is added to bubble

Additionally, for fine tunning, --ref and --inputbubbleref option get file path(s) ot directory path(s)

2 years agoChange update size for PBA (#419)
조웅석/Common Platform Lab(SR)/삼성전자 [Wed, 22 Jun 2022 10:34:57 +0000 (19:34 +0900)]
Change update size for PBA (#419)

When using PBA, file size was used to calculate next base address of assembly.
However, there is a problem that the file size is smaller than the image size loaded in the actual memory.
when native image files are loaded in the memory area, some native image files cannot be loaded where desired because of area overlapping.

So, get size of image from OptionalHeader, and use that value for updating next base address.

2 years agoAvoid calling storage API
Woongsuk Cho [Wed, 4 May 2022 01:41:04 +0000 (10:41 +0900)]
Avoid calling storage API

The storage API is used to get direcoty of SpecialFolder
In special case (like target booting up time), some delay can occur inside the API.

So, to avoid that kind of delay, set SpecialFolder with environment variable if that is set.

2 years agoChange the optimization options for crossgen2 (#409)
최종헌/Common Platform Lab(SR)/삼성전자 [Wed, 25 May 2022 21:36:03 +0000 (06:36 +0900)]
Change the optimization options for crossgen2 (#409)

Change-Id: Ic9588655352bc3e439e5432455e4a433d5c0ec19

2 years agoSet base address at native image (#400) accepted/tizen/unified/20220501.223640 submit/tizen/20220429.002649
조웅석/Common Platform Lab(SR)/삼성전자 [Fri, 29 Apr 2022 00:37:07 +0000 (09:37 +0900)]
Set base address at native image (#400)

--imagebase option is added to set base address at native imaage to avoid relocatoin.

Note! this feature is enabled --no-pipeline mode only