platform/core/system/factory-reset.git
2 years agopackaging: Move rstsmack to separate package 03/270203/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063203 accepted/tizen/7.0/unified/hotfix/20221116.105718 accepted/tizen/unified/20220131.155919 submit/tizen/20220126.105940 tizen_7.0_m2_release
Karol Lewandowski [Wed, 26 Jan 2022 09:34:24 +0000 (10:34 +0100)]
packaging: Move rstsmack to separate package

This will allow for rstsmack to be installed even if factory-reset isn't.

Change-Id: I21663e665011d1a54a226862726878329ce2998d

3 years agoClean up the code 26/258826/11
INSUN PYO [Wed, 26 May 2021 07:51:17 +0000 (16:51 +0900)]
Clean up the code

Change-Id: I6ef191e5e5094f2aad84913e78f499590e37c640

3 years agoModify indentation 20/258520/1
INSUN PYO [Wed, 19 May 2021 23:44:05 +0000 (08:44 +0900)]
Modify indentation

Change-Id: I6f1d9a726fb022912b58f498a79f337ea2235ae3

3 years agoFix coverity issue 69/256069/1 accepted/tizen/6.5/unified/20211028.114619 accepted/tizen/unified/20210330.111306 submit/tizen/20210329.054219 submit/tizen/20210330.021727 submit/tizen/20210330.050144 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release
DongHun Kwak [Mon, 29 Mar 2021 05:33:49 +0000 (14:33 +0900)]
Fix coverity issue

Change-Id: I4b8f2a32eb703e39f62b0a1e4d119bfc3a068c5a
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
3 years agoMerge "Fix potential error in codes to insert null" into tizen accepted/tizen/unified/20210217.120445 submit/tizen/20210217.020107
Kiseok Chang [Wed, 17 Feb 2021 01:34:46 +0000 (01:34 +0000)]
Merge "Fix potential error in codes to insert null" into tizen

3 years agoFix potential error in codes to insert null 82/253682/1
kiso.chang [Tue, 16 Feb 2021 09:42:41 +0000 (18:42 +0900)]
Fix potential error in codes to insert null

Change-Id: I8939a923620809846ac9fb6ab09a2dd3ae0dec4a
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
3 years agoFix grammatical error in script 51/253351/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20210210.015106 accepted/tizen/6.0/unified/hotfix/20210209.093954 submit/tizen_6.0/20210209.060229 submit/tizen_6.0_hotfix/20210209.060245
kiso.chang [Tue, 9 Feb 2021 05:54:15 +0000 (14:54 +0900)]
Fix grammatical error in script

- run-factory-reset.sh

Change-Id: I08ee63ad7319d6730891942a85465ffaeea4b728
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
3 years agoFix grammatical error in script 50/253350/1 accepted/tizen/unified/20210209.124328 submit/tizen/20210209.060213
kiso.chang [Tue, 9 Feb 2021 05:54:15 +0000 (14:54 +0900)]
Fix grammatical error in script

- run-factory-reset.sh

Change-Id: I08ee63ad7319d6730891942a85465ffaeea4b728
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
3 years agoumount usb(otg) memory before delete files in/opt 70/253070/1 accepted/tizen/6.0/unified/hotfix/20210204.110932 submit/tizen_6.0/20210204.071723 submit/tizen_6.0/20210209.014244 submit/tizen_6.0_hotfix/20210204.071831 submit/tizen_6.0_hotfix/20210204.072427 submit/tizen_6.0_hotfix/20210204.072756
kiso.chang [Thu, 4 Feb 2021 07:05:58 +0000 (16:05 +0900)]
umount usb(otg) memory before delete files in/opt

Change-Id: I24876cd87855bd03f8bf5a9e42ed351840c6bd9e
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
3 years agoumount usb(otg) memory before delete files in/opt 69/253069/1 accepted/tizen/unified/20210204.134357 submit/tizen/20210204.071635
kiso.chang [Thu, 4 Feb 2021 07:05:58 +0000 (16:05 +0900)]
umount usb(otg) memory before delete files in/opt

Change-Id: I24876cd87855bd03f8bf5a9e42ed351840c6bd9e
Signed-off-by: kiso.chang <kiso.chang@samsung.com>
4 years agoLeave comments for umask 0000 72/237372/6 accepted/tizen/6.0/unified/20201030.115514 accepted/tizen/6.0/unified/hotfix/20201103.003243 accepted/tizen/unified/20200630.131155 submit/tizen/20200630.015627 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Kiseok Chang [Mon, 29 Jun 2020 23:56:13 +0000 (08:56 +0900)]
Leave comments for umask 0000
- the reason to add 'umask 0000' before extract opt.zip (or opt.tar.gz)

Change-Id: Ie059460af4522a0aa9eee078e8d75943e2f6f202
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
4 years agofix a problem with dbspace 52/237352/1
Youngjae Shin [Mon, 29 Jun 2020 10:28:32 +0000 (19:28 +0900)]
fix a problem with dbspace

reset mask for keeping file permission

Change-Id: I4b2f864ee8a7f8b825724f4045df672a79fd9a1f

4 years agochange dir path for 64-bit build 31/236931/1 accepted/tizen/unified/20200624.130128 submit/tizen/20200624.015905
Kiseok Chang [Tue, 23 Jun 2020 09:28:10 +0000 (18:28 +0900)]
change dir path for 64-bit build

Change-Id: Iecb47e0642b4e43fb2e4c0dfe6055cf56b17b6e4
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
4 years agoRemove script lines for clock, memo, contacts 17/236017/1 accepted/tizen/unified/20200616.040953 submit/tizen/20200610.044516 submit/tizen/20200612.052919
Kiseok Chang [Fri, 12 Jun 2020 04:21:57 +0000 (13:21 +0900)]
Remove script lines for clock, memo, contacts

Change-Id: Ic3172cab137bc5b9b7d17ffd2683b5bfe18345c8
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
4 years agoSupport aarch64 build 48/235948/1 accepted/tizen/unified/20200612.022331 submit/tizen/20200611.084729
Kiseok Chang [Thu, 11 Jun 2020 08:38:55 +0000 (17:38 +0900)]
Support aarch64 build

Change-Id: I889a469f857dee19a380dcd01deaa00b1d5e40ae
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
4 years ago[fix] Rename dbus auto-activation service file 85/231385/1
sanghyeok.oh [Tue, 21 Apr 2020 12:55:45 +0000 (21:55 +0900)]
[fix] Rename dbus auto-activation service file

Naming rule for dbus auto-activation service file : well-known name + ".service"
https://bugs.freedesktop.org/show_bug.cgi?id=99874

Change-Id: Icde56581d910c2534d4c4c96b2e7100e4670b5f7

5 years agoRearrange factory-reset.service from multi-user.target to delayed.target 07/211007/1 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.004239 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090124 accepted/tizen/5.5/unified/wearable/hotfix/20201027.112825 accepted/tizen/unified/20190809.110813 submit/tizen/20190809.012808 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
Hyotaek Shim [Mon, 29 Jul 2019 05:31:04 +0000 (14:31 +0900)]
Rearrange factory-reset.service from multi-user.target to delayed.target

Change-Id: I435a8323253108bc7b192fc04282e20ec86bc17a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoDelete meaningless configuration 27/209527/1 accepted/tizen/unified/20190725.112408 submit/tizen/20190723.080824
INSUN PYO [Mon, 8 Jul 2019 11:20:32 +0000 (20:20 +0900)]
Delete meaningless configuration

Change-Id: I0e2341b8528a4531d2ebe0ab37852a214db7a774

5 years agoAdd packaging/org.tizen.factory-reset.conf 01/206601/1 accepted/tizen/unified/20190530.043030 submit/tizen/20190522.102101
Kiseok Chang [Wed, 22 May 2019 04:42:16 +0000 (13:42 +0900)]
Add packaging/org.tizen.factory-reset.conf

Change-Id: Ib2886d18c172242ec7697fdbe83cfce6fc20db16

5 years agoAdd PATH env to script for security 16/204116/1 accepted/tizen/unified/20190422.005539 submit/tizen/20190421.231737
jinwang.an [Fri, 19 Apr 2019 10:01:49 +0000 (19:01 +0900)]
Add PATH env to script for security

Change-Id: I057dc4749fdf1e064eb4ea70713dec1be1c776b9
Signed-off-by: jinwang.an <jinwang.an@samsung.com>
6 years agodelete tizen-boot.target unit in service script 74/189174/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.021106 accepted/tizen/unified/20180914.143108 submit/tizen/20180914.055932 submit/tizen_5.0/20181101.000004
Kiseok Chang [Fri, 14 Sep 2018 04:29:45 +0000 (13:29 +0900)]
delete tizen-boot.target unit in service script

 - deleted : Before=tizen-boot.target

Change-Id: I9676c25418df9a10a8968b1f9f18ba6fae202ce3
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
6 years agoRemove dependency on dbus-glib-1 02/175802/1 accepted/tizen/unified/20180416.213918 submit/tizen/20180413.004809
Kiseok Chang [Thu, 12 Apr 2018 10:22:58 +0000 (19:22 +0900)]
Remove dependency on dbus-glib-1

Change-Id: I80d38697c2fc9a5e3014fb351311b91aecc82c85
Signed-off-by: Kiseok Chang <kiso.chang@samsung.com>
6 years agoupdate smack rule for factory-reset-launch.service 05/163705/1 accepted/tizen/unified/20171218.072311 submit/tizen/20171215.062200
MyoungJune Park [Wed, 13 Dec 2017 03:47:37 +0000 (12:47 +0900)]
update smack rule for factory-reset-launch.service

System --> System::Privileged

Change-Id: I6e9778241ab15eab3e5df07ee5fa70ffc629952e

6 years agosplit userdata-backup pkg from factory-reset 11/163211/2
MyoungJune Park [Fri, 8 Dec 2017 03:11:07 +0000 (12:11 +0900)]
split userdata-backup pkg from factory-reset

Change-Id: I43421fee696927912710b03ea42c476519016be9
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
6 years agoSave rstsmack errors to logfile 14/159214/2 accepted/tizen/unified/20171204.072249 submit/tizen/20171204.003554
Konrad Kuchciak [Tue, 7 Nov 2017 11:27:17 +0000 (12:27 +0100)]
Save rstsmack errors to logfile

This helps a lot in troubleshooting.

Change-Id: I464067300cd46dc1b3f91056bf69e39fe4e69b8d
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
6 years agoRemove ": No smack property found" from smack_label.txt 41/159541/2
Konrad Kuchciak [Thu, 9 Nov 2017 12:53:15 +0000 (13:53 +0100)]
Remove ": No smack property found" from smack_label.txt

List of smack labels is generated by chsmack and the output is stored in
smack_label.txt. When ex. /opt/etc/shadow doesn't have any smack labels
during image creation chsmack produces output like:

opt/etc/shadow: No smack property found

, which is then interpreted by rstsmack as one long filename. And
instead of setting default smack label "_" to the file it does nothing.
Finally, after the factory reset, the file has "System::Privileged"
label which was set during unzipping opt and it causes the whole User
session to fail at system startup.

This is a workaround patch.

Change-Id: I67c3884cdbaec912a08d8979488681931b1e2513
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
6 years agoMerge "Grant capabilities to perform factory reset" into tizen accepted/tizen/unified/20171124.064658 submit/tizen/20171123.214840
MyoungJune Park [Thu, 23 Nov 2017 21:36:07 +0000 (21:36 +0000)]
Merge "Grant capabilities to perform factory reset" into tizen

7 years agoGrant capabilities to perform factory reset 12/159212/1
Konrad Kuchciak [Tue, 7 Nov 2017 11:08:37 +0000 (12:08 +0100)]
Grant capabilities to perform factory reset

Change-Id: Ib66debfc114f7f0a5f374791585955f55e5362e6
Signed-off-by: Konrad Kuchciak <k.kuchciak@samsung.com>
7 years agoUse filesystem label instead of partition label 81/160781/1 accepted/tizen/unified/20171120.151303 submit/tizen/20171120.060354
Sunmin Lee [Fri, 3 Nov 2017 03:21:55 +0000 (12:21 +0900)]
Use filesystem label instead of partition label

In some platform targets, partition label is not set.
Because filesystem label is available for all targets,
it is better to be used.

Change-Id: I8519eb665898b0244337e54a47ef40348d40ab90
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agochange a method to get partition info 13/158113/1 accepted/tizen/unified/20171031.175038 submit/tizen/20171031.030559
MyoungJune Park [Mon, 30 Oct 2017 01:52:19 +0000 (10:52 +0900)]
change a method to get partition info

Change-Id: I40943fe418ce723041e2023c88f08b34a2ba90bc
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoWorkaround patch for fixing repeated reboot problem after triggering on-boot factory... 12/158112/1
Kunhoon Baik [Mon, 23 Oct 2017 06:33:32 +0000 (15:33 +0900)]
Workaround patch for fixing repeated reboot problem after triggering on-boot factory-reset

There are two factory-reset modes
1) By setting application
2) By system recovery

In case of system recovery, system recovery make a file (/opt/.factoryreset)
for triggering on-boot factory-reset.

However, current script & program does not remove the file after factory-reset is finished.
This patch is just workaround, and it should be modified by maintainer.

Change-Id: I19bae97c659bf968334bd2fa1e589c5728ecda63

7 years agoremove UI deps for common dev 00/158100/1 accepted/tizen/unified/20171030.055809 submit/tizen/20171030.002947
MyoungJune Park [Mon, 30 Oct 2017 00:24:35 +0000 (09:24 +0900)]
remove UI deps for common dev

Change-Id: Id0885d5d0685992f62e0b3660fc9fcb9325ddbef
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoadd smack rule desc to factory-reset-launch.service 40/156040/1 accepted/tizen/unified/20171024.071403 submit/tizen/20171023.024928
MyoungJune Park [Tue, 17 Oct 2017 04:53:29 +0000 (13:53 +0900)]
add smack rule desc to factory-reset-launch.service

Change-Id: Ifefe9ed63c72fbc34e4dd7ebc8dfd67bcac8f7e3

7 years agoremove User Group conf 20/156020/2 accepted/tizen/unified/20171017.204702 submit/tizen/20171017.043831
MyoungJune Park [Tue, 17 Oct 2017 03:22:34 +0000 (12:22 +0900)]
remove User Group conf

Change-Id: I26696670cdaca4dd2c07506ef5615b65e806f983
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoupdate smack privilege 12/156012/2
MyoungJune Park [Tue, 17 Oct 2017 03:05:31 +0000 (12:05 +0900)]
update smack privilege

- System -> System::Privileged
- update manifest file

Change-Id: If4739623d5150a5fac1355245b5bc19914c52b36
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoupdate serivce file 50/152850/2
MyoungJune Park [Wed, 27 Sep 2017 08:27:53 +0000 (17:27 +0900)]
update serivce file

Change-Id: Ib7bf8af1f8a5253beec3c7296c9d2aa56d8fa64d
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoreplace localtime with localtime_r for thread safety 83/152483/2 accepted/tizen/unified/20171012.075004 submit/tizen/20171010.011616
MyoungJune Park [Tue, 26 Sep 2017 07:57:22 +0000 (16:57 +0900)]
replace localtime with localtime_r for thread safety

Change-Id: I955f2074f63dc8c4979dde8267c451325c3e7228
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agofix build warning and coding rule error 71/152071/2 accepted/tizen/unified/20170926.165801 submit/tizen/20170926.073310
Youngjae Shin [Mon, 25 Sep 2017 04:37:50 +0000 (13:37 +0900)]
fix build warning and coding rule error

Change-Id: If2745e44e6cb8843b825eb1c25fa7ac9dfe489d6

7 years agoremove setuid(0) 78/150678/1 accepted/tizen/unified/20170920.081043 submit/tizen/20170918.083400
MyoungJune Park [Mon, 18 Sep 2017 08:32:31 +0000 (17:32 +0900)]
remove setuid(0)

Change-Id: I363f816b16ca2dbcb8f3642e18f14e22a65323c5

7 years agoapply ASLR options 20/143820/1 accepted/tizen/4.0/unified/20170829.020112 accepted/tizen/unified/20170816.160049 submit/tizen/20170811.110345 submit/tizen_4.0/20170828.100004 submit/tizen_4.0/20170828.110004
MyoungJune Park [Fri, 11 Aug 2017 10:36:58 +0000 (19:36 +0900)]
apply ASLR options

Change-Id: I4ca0ed31c48710b5512a3cb237fbb2f6a11b047a

7 years agoadd zip as a dependency 62/140662/1 accepted/tizen/4.0/unified/20170816.013426 accepted/tizen/4.0/unified/20170816.015928 accepted/tizen/unified/20170726.135835 submit/tizen/20170726.023159 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
MyoungJune Park [Wed, 26 Jul 2017 02:31:05 +0000 (11:31 +0900)]
add zip as a dependency

Change-Id: Ice4c762d14c22fe5d08adc5c20d902a022dc9c37

7 years agofix the path of utilities in .spec 79/140379/1 accepted/tizen/unified/20170725.173950 submit/tizen/20170725.021117
MyoungJune Park [Tue, 25 Jul 2017 02:04:50 +0000 (11:04 +0900)]
fix the path of utilities in .spec

/bin/tar -> /usr/bin/tar
/bin/ps -> /usr/bin/ps
/bin/grep -> /usr/bin/grep
/bin/sleep -> /usr/bin/sleep
/bin/mount -> /usr/bin/mount
/bin/umount -> /usr/bin/umount

Change-Id: I855f30ee4da570289e5c5677b553daef833bdcfe
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
7 years agoadd util-linux as a dep 23/140323/1 submit/tizen/20170724.121557
MyoungJune Park [Mon, 24 Jul 2017 12:13:41 +0000 (21:13 +0900)]
add util-linux as a dep

Change-Id: I3c073c6b9c7c39e666a09625fb48133958ae1349

7 years agoupdate License field in .spec 11/137811/1 accepted/tizen/unified/20170721.043852 submit/tizen/20170721.022350
MyoungJune Park [Mon, 10 Jul 2017 01:46:18 +0000 (10:46 +0900)]
update License field in .spec

Change-Id: Ifbbdfb5141bb332c7cd7a5ed676195c08d4875e1

7 years agoinit code 32/133332/3
MyoungJune Park [Mon, 27 Mar 2017 04:37:59 +0000 (13:37 +0900)]
init code

Change-Id: Ie6cb5cdbcabca325d23d3a230027d40f67c09644
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
8 years agoInitial empty repository master
Jong Jeong Kim [Thu, 25 Aug 2016 00:31:43 +0000 (17:31 -0700)]
Initial empty repository