platform/core/system/setup-adaptor.git
3 years agofix file access error by permission. 28/244328/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.0/unified/20201030.114022 accepted/tizen/6.0/unified/hotfix/20201103.002207 accepted/tizen/6.5/unified/20211028.115629 accepted/tizen/7.0/unified/20221110.063612 accepted/tizen/7.0/unified/hotfix/20221116.105802 accepted/tizen/8.0/unified/20231005.093845 accepted/tizen/unified/20200918.071503 accepted/tizen/unified/riscv/20231226.210754 submit/tizen/20200918.052452 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 submit/tizen_6.5/20211028.162501 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
jiehwan [Thu, 17 Sep 2020 09:02:25 +0000 (18:02 +0900)]
fix file access error by permission.

setup-adaptor service daemon was changed root to system_fw user.
but /opt/etc/setup-adaptor is created as root in ism. so can't be deleted by setup-adaptor.
the problem is that setup adaptor is activated every booting time.
to resolve this, add script to make setup-adaptor directory in spec file.

Change-Id: I636860441775ac6ef2fbfecf5264535ceae35a79
Signed-off-by: jiehwan.park <jiehwan.park@samsung.com>
3 years agomodify build option to apply ASLR and set service uid/gid 73/236173/1 accepted/tizen/unified/20200616.062025 submit/tizen/20200616.051356
jiehwan [Mon, 15 Jun 2020 09:43:38 +0000 (18:43 +0900)]
modify build option to apply ASLR and set service uid/gid

Change-Id: Ie576f77619784dcc10448d5590a3af9135b98b79
Signed-off-by: jiehwan <jiehwan.park@samsung.com>
3 years agoadd aarch64 arch 10/236010/1 accepted/tizen/unified/20200615.135415 submit/tizen/20200612.065017
jiehwan [Fri, 12 Jun 2020 02:36:51 +0000 (11:36 +0900)]
add aarch64 arch

Change-Id: I1c138714d393923d7735eab82993a82beeb1ee1c
Signed-off-by: jiehwan <jiehwan.park@samsung.com>
4 years agoChange service type to oneshot from notify. 59/230159/1 accepted/tizen/unified/20200424.141543 submit/tizen/20200424.013524
jiehwan [Wed, 8 Apr 2020 07:53:48 +0000 (16:53 +0900)]
Change service type to oneshot from notify.

There is no sd_notify("READY=1").

Change-Id: Ia330f76577e7f2bab192a61af25c1107abdaa2ad
Signed-off-by: jiehwan <jiehwan.park@samsung.com>
5 years agoMerge "fix dlog format check error" into tizen accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.004255 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090712 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113334 accepted/tizen/unified/20181210.060131 submit/tizen/20181207.080958 submit/tizen_5.5/20191031.000010 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
park jiehwan [Fri, 7 Dec 2018 07:58:33 +0000 (07:58 +0000)]
Merge "fix dlog format check error" into tizen

5 years agofix dlog format check error 13/194813/1
jiehwan.park [Fri, 7 Dec 2018 07:52:43 +0000 (16:52 +0900)]
fix dlog format check error

Change-Id: I6bc844b58ea03145007d4e3ccc167f8f70685d5f
Signed-off-by: jiehwan.park <jiehwan.park@samsung.com>
5 years agoMerge remote-tracking branch 'upstream/master' into tizen accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021609 accepted/tizen/unified/20181005.012450 submit/tizen/20181004.024641 submit/tizen_5.0/20181101.000004
hwajeong.son [Thu, 4 Oct 2018 02:44:24 +0000 (11:44 +0900)]
Merge remote-tracking branch 'upstream/master' into tizen

5 years agoMerge branch 'tizen', remote-tracking branch 'upstream/master' master
hwajeong.son [Thu, 4 Oct 2018 02:19:58 +0000 (11:19 +0900)]
Merge branch 'tizen', remote-tracking branch 'upstream/master'

5 years agoMerge pull request #6 from RS7-DeviceManagement/fix/build_warning
손화정/Data Service Lab(SR)/Staff Engineer/삼성전자 [Thu, 4 Oct 2018 02:17:36 +0000 (11:17 +0900)]
Merge pull request #6 from RS7-DeviceManagement/fix/build_warning

fix build warning

5 years agofix build warning
hwajeong.son [Thu, 4 Oct 2018 01:48:20 +0000 (10:48 +0900)]
fix build warning

5 years agoFix for SVACE (WGID 322531) in setup-adaptor accepted/tizen/unified/20181002.093448 submit/tizen/20181002.025635
hwajeong.son [Mon, 1 Oct 2018 10:58:43 +0000 (19:58 +0900)]
Fix for SVACE (WGID 322531) in setup-adaptor

The issue is caused by g_main_loop_new.
If the thread is completed, it should be freed.
In case of error like unitializing case, it should be properly freed.

Change-Id: I1305cfcd24ccd53218818427978fac5242523089

5 years agoMerge pull request #5 from RS7-DeviceManagement/v0.3-apply_tizen_4.0_patch
손화정/Data Service Lab(SR)/Staff Engineer/삼성전자 [Tue, 2 Oct 2018 02:09:55 +0000 (11:09 +0900)]
Merge pull request #5 from RS7-DeviceManagement/v0.3-apply_tizen_4.0_patch

V0.3 apply tizen 4.0 patch

5 years agoFix for SVACE (WGID 322531) in setup-adaptor
hwajeong.son [Mon, 1 Oct 2018 10:58:43 +0000 (19:58 +0900)]
Fix for SVACE (WGID 322531) in setup-adaptor

The issue is caused by g_main_loop_new.
If the thread is completed, it should be freed.
In case of error like unitializing case, it should be properly freed.

5 years agoFix for Coverity defect(CID 104926)
hwajeong.son [Mon, 1 Oct 2018 10:56:58 +0000 (19:56 +0900)]
Fix for Coverity defect(CID 104926)

Due to conditional free, the defect was occured.
Change the code to free properly.
If memory is alloced, it will be freed at the end of 'if'

5 years agoChange the path to manage config and flag files for setup-adaptor
hwajeong.son [Mon, 1 Oct 2018 10:56:07 +0000 (19:56 +0900)]
Change the path to manage config and flag files for setup-adaptor

from /etc/setup-adaptor -> /opt/etc/setup-adaptor
the file will be written on running time therefore, it should be rw area

5 years agoFixed coverity(prevent) issue
hwajeong.son [Mon, 1 Oct 2018 10:54:55 +0000 (19:54 +0900)]
Fixed coverity(prevent) issue

5 years agoModify handling case for not found ssid
hwajeong.son [Mon, 1 Oct 2018 10:52:22 +0000 (19:52 +0900)]
Modify handling case for not found ssid

If ssid is not able to find, setup-adaptor has to be retried to re connect next booting.
In order to provide the scenario __Wifl_scan_finished_ca() would be waited forever.
And systemd kills the service.

5 years agoUpdate version v0.3.0
hwajeong.son [Mon, 1 Oct 2018 10:51:14 +0000 (19:51 +0900)]
Update version v0.3.0

5 years agoFixed TPLDOCKER-382 related to ethernet cable
hwajeong.son [Mon, 1 Oct 2018 10:50:22 +0000 (19:50 +0900)]
Fixed TPLDOCKER-382 related to ethernet cable

If the cable is detached, config.json is removed.
In this case, it has to be retried when the cable is connected.
Therefore, the flag file has to be kept

Change-Id: Ic1b52e8cc5a1e4a00acb59ca48e53c30381873e1
Signed-off-by: nshero.lee <nshero.lee@samsung.com>
Removed unnecessary value in print log

5 years ago Fixed TPLDOCKER-381 defect regarding invalid ssid connection
hwajeong.son [Mon, 1 Oct 2018 10:48:53 +0000 (19:48 +0900)]
 Fixed TPLDOCKER-381 defect regarding invalid ssid connection

If setup-adaptor tries to connection with invalid ssid,
it will not be completed properly.

1) wifi ssid : docker, password : dockerdocker111 => Okay (invaild password case)
2) wifi ssid : docker11, password : dockerdocker => Fail (invalid ssid case)

setup-adaptor uses __wifi_scan_finished_cb function to connect.
wifi_manager_foreach_found_ap will be worked according to __wifi_connect_ap_cb() return
If all of ssids are searched and compared, it will go down and has to meet
__wifi_exit_loop() function to be completed properly.

5 years agoFixed the defect TPLDPCLER-380
hwajeong.son [Mon, 1 Oct 2018 10:47:54 +0000 (19:47 +0900)]
Fixed the defect TPLDPCLER-380

wifi connection is not established if wifi is already activated.
Wifi has steps to connect, before connection, it has to be activated.
If the device is activated and not connected, it would be return 'alreay
exists'. Therefore it must cover to deal with

5 years agoFixed coding rule due to white space
hwajeong.son [Mon, 1 Oct 2018 10:46:47 +0000 (19:46 +0900)]
Fixed coding rule due to white space

5 years agoFixed SVACE bug
hwajeong.son [Mon, 1 Oct 2018 10:45:40 +0000 (19:45 +0900)]
Fixed SVACE bug

Locally, the codes are checked with SVACE tool and fixed critical
and major issues

5 years agoApplied coding rule
hwajeong.son [Mon, 1 Oct 2018 10:43:59 +0000 (19:43 +0900)]
Applied coding rule

Not to make coding rule error, check tizen coding rule

6 years agoMerge pull request #4 from RS7-DeviceManagement/v0.1-resolve-duplication
박지환/Advanced DX Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jan 2018 06:29:11 +0000 (15:29 +0900)]
Merge pull request #4 from RS7-DeviceManagement/v0.1-resolve-duplication

V0.1 resolve duplication

6 years agoMerge branch 'master' of https://github.sec.samsung.net/RS7-DeviceManagement/setup...
jiehwan.park [Tue, 2 Jan 2018 06:13:03 +0000 (15:13 +0900)]
Merge branch 'master' of https://github.sec.samsung.net/RS7-DeviceManagement/setup-adaptor into v0.1-resolve-duplication

Signed-off-by: jiehwan.park <jiehwan.park@samsung.com>
6 years agoMerge pull request #3 from RS7-DeviceManagement/v0.1-enable_ethernet
박지환/Advanced DX Lab(SR)/Principal Engineer/삼성전자 [Tue, 2 Jan 2018 05:01:31 +0000 (14:01 +0900)]
Merge pull request #3 from RS7-DeviceManagement/v0.1-enable_ethernet

enable ethernet setting

6 years agoRemoved delay for checking network state v0.1-enable_ethernet
wansu.yoo [Tue, 2 Jan 2018 04:38:09 +0000 (13:38 +0900)]
Removed delay for checking network state

there need some delay for sync after network setting
but delay is not proper method for waiting
so, remove delay and check routine
it have to be considered through callback or others

Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
6 years agoFixed excption when it prints logs
nshero.lee [Tue, 2 Jan 2018 03:03:17 +0000 (12:03 +0900)]
Fixed excption when it prints logs

In case of dynamic allocation, it needs to check memory and print out
It was missed and added it before printing logs

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoFix ethernet setting errors
wansu.yoo [Thu, 28 Dec 2017 01:22:40 +0000 (10:22 +0900)]
Fix ethernet setting errors

1. fix parsing error of "secondaryDnsServer" key
ethernet is being enabled successfully with correct "secondaryDnsServer" value.

2. increase delay time for sync after setting. (2 -> 5 sec)
currently, __network_get_state is returning wrong value using previous connection handle.
there need more delay time after setting network to get new connection.

3. remove temporary blocked code / add some debug info

Signed-off-by: wansu.yoo <wansu.yoo@samsung.com>
6 years agoconsider re-entrance issue.
jiehwan.park [Wed, 27 Dec 2017 11:21:33 +0000 (20:21 +0900)]
consider re-entrance issue.

delete config file if completed.
add each flag of configuration items because wifi has async return.

Signed-off-by: jiehwan.park <jiehwan.park@samsung.com>
6 years agoenable ethernet setting
sy1124.kim [Wed, 27 Dec 2017 10:09:15 +0000 (19:09 +0900)]
enable ethernet setting

Signed-off-by: sy1124.kim <sy1124.kim@samsung.com>
6 years agoMerge pull request #2 from RS7-DeviceManagement/v0.1-enable_wifi
박지환/Advanced DX Lab(SR)/Principal Engineer/삼성전자 [Wed, 27 Dec 2017 07:01:04 +0000 (16:01 +0900)]
Merge pull request #2 from RS7-DeviceManagement/v0.1-enable_wifi

enable wifi setting

6 years agoenable wifi setting v0.1-enable_wifi
jiehwan.park [Wed, 27 Dec 2017 06:43:01 +0000 (15:43 +0900)]
enable wifi setting

Signed-off-by: jiehwan.park <jiehwan.park@samsung.com>
6 years agoUpdate readme
nshero.lee [Thu, 21 Dec 2017 08:28:18 +0000 (17:28 +0900)]
Update readme

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate readme
nshero.lee [Thu, 21 Dec 2017 06:28:24 +0000 (15:28 +0900)]
Update readme

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate sample config
nshero.lee [Thu, 21 Dec 2017 06:27:09 +0000 (15:27 +0900)]
Update sample config

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate
nshero.lee [Thu, 21 Dec 2017 01:17:31 +0000 (10:17 +0900)]
Update

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate
nshero.lee [Thu, 21 Dec 2017 01:16:52 +0000 (10:16 +0900)]
Update

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate
nshero.lee [Thu, 21 Dec 2017 01:11:09 +0000 (10:11 +0900)]
Update

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate
nshero.lee [Wed, 20 Dec 2017 17:11:38 +0000 (02:11 +0900)]
Update

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoFixed parsing issue
nshero.lee [Wed, 20 Dec 2017 12:50:30 +0000 (21:50 +0900)]
Fixed parsing issue

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoChange parsing structure
nshero.lee [Wed, 20 Dec 2017 11:09:27 +0000 (20:09 +0900)]
Change parsing structure

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate implementaion
nshero.lee [Wed, 20 Dec 2017 10:08:02 +0000 (19:08 +0900)]
Update implementaion

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate build error according to resturctuing
nshero.lee [Wed, 20 Dec 2017 00:23:43 +0000 (09:23 +0900)]
Update build error according to resturctuing

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoModify design and apply
nshero.lee [Tue, 19 Dec 2017 07:23:21 +0000 (16:23 +0900)]
Modify design and apply

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoChange file name
nshero.lee [Tue, 19 Dec 2017 03:29:20 +0000 (12:29 +0900)]
Change file name

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoImplement 18th Dec
nshero.lee [Mon, 18 Dec 2017 13:10:41 +0000 (22:10 +0900)]
Implement 18th Dec

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate parsing code in sa_systemdata.c
nshero.lee [Mon, 18 Dec 2017 11:17:45 +0000 (20:17 +0900)]
Update parsing code in sa_systemdata.c

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoUpdate setup-adaptor implementation
nshero.lee [Mon, 18 Dec 2017 10:23:58 +0000 (19:23 +0900)]
Update setup-adaptor implementation

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoModify coding rule
nshero.lee [Fri, 15 Dec 2017 08:39:33 +0000 (17:39 +0900)]
Modify coding rule

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoMerge pull request #1 from RS7-DeviceManagement/v0.1-Skeleton_Developement
이남수/Developer Experience Lab(S/W센터)/Senior Engineer/삼성전자 [Mon, 20 Nov 2017 07:30:56 +0000 (16:30 +0900)]
Merge pull request #1 from RS7-DeviceManagement/v0.1-Skeleton_Developement

Skeleton developement

6 years agoSkeleton developement v0.1-Skeleton_Developement
nshero.lee [Mon, 20 Nov 2017 07:28:42 +0000 (16:28 +0900)]
Skeleton developement

Signed-off-by: nshero.lee <nshero.lee@samsung.com>
6 years agoInitial commit
이남수/Developer Experience Lab(S/W센터)/Senior Engineer/삼성전자 [Fri, 17 Nov 2017 07:40:29 +0000 (16:40 +0900)]
Initial commit