platform/core/system/system-server.git
9 years agoFix bugs in managing the system group 87/31887/1 tizen
José Bollo [Thu, 11 Dec 2014 15:52:07 +0000 (16:52 +0100)]
Fix bugs in managing the system group

Change-Id: Ib0f09d0dc61b290ee3645d9f44f9e92a6a84af48
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
9 years agoMerge "add path for systemd script" into tizen
Ronan Le Martret [Wed, 3 Dec 2014 14:58:31 +0000 (06:58 -0800)]
Merge "add path for systemd script" into tizen

9 years agoMerge "remove hard coded path for systemd in CMakeLists.txt" into tizen
Ronan Le Martret [Wed, 3 Dec 2014 14:58:08 +0000 (06:58 -0800)]
Merge "remove hard coded path for systemd in CMakeLists.txt" into tizen

9 years agoMerge "Fix install status of a file" into tizen
Ronan Le Martret [Wed, 3 Dec 2014 14:57:49 +0000 (06:57 -0800)]
Merge "Fix install status of a file" into tizen

9 years agoMerge "remove useless cmake macro" into tizen
Ronan Le Martret [Wed, 3 Dec 2014 14:57:17 +0000 (06:57 -0800)]
Merge "remove useless cmake macro" into tizen

10 years agoadd path for systemd script 68/28168/2
Ronan Le Martret [Mon, 29 Sep 2014 11:34:43 +0000 (13:34 +0200)]
add path for systemd script

 -  yocto provide cat,uname, ... in /bin directory

Change-Id: If28ceb0f201dd452098a80f812b61024373411c8
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoRemove syspopup dependencies 21/28321/2
Christophe Moreau [Thu, 2 Oct 2014 12:53:25 +0000 (14:53 +0200)]
Remove syspopup dependencies

Tizen 3 should use a popup system that does not depend on a graphical toolkit

Bug-Tizen: TC-1476

Change-Id: I04701291bc840978ab6f8de08abe57e8648b2ae4
Signed-off-by: Christophe Moreau <christophe.moreau@open.eurogiciel.org>
10 years agoremove hard coded path for systemd in CMakeLists.txt 41/27841/1
Ronan Le Martret [Fri, 19 Sep 2014 15:31:56 +0000 (17:31 +0200)]
remove hard coded path for systemd in CMakeLists.txt

 - in yocto by default systemd is install into "/lib/systemd" not
   "/usr/lib/systemd".

Change-Id: Ia20662b7c4fd899f51f0311cd4d262ee3a00317a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoFix install status of a file 04/27804/1
Ronan Le Martret [Fri, 19 Sep 2014 08:47:52 +0000 (10:47 +0200)]
Fix install status of a file

 - a file install into /usr/bin should be executable.

Change-Id: I99107a544485dd917e1840056c3751ba61c4fb4f
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoremove useless cmake macro 99/27799/1
Ronan Le Martret [Fri, 19 Sep 2014 08:34:14 +0000 (10:34 +0200)]
remove useless cmake macro

 - improve rpmlint score

Change-Id: I8780024da99e4929b1799b8f1444752c1cb206f0
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
10 years agoUnmask SIGTERM and enable PIDFile for systemd 02/27102/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi tizen_3.0_ivi accepted/tizen/common/20140918.164438 accepted/tizen/ivi/20140926.185848 submit/tizen/20140918.134732 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
Mikko Ylinen [Thu, 4 Sep 2014 13:42:31 +0000 (16:42 +0300)]
Unmask SIGTERM and enable PIDFile for systemd

systemd service stop logic uses SIGTERM to stop services. However,
system_server daemon ignores that signal:

   systemd[1]: Stopping Start the system server service...
   system_server[3392]: main.c: sig_quit(47) > received SIGTERM signal 15

Due to TimeoutStopSec=2 being set, systemd waits 2 seconds until it
proceeds with kill:

   systemd[1]: system-server.service stopping timed out. Killing.
   systemd[1]: system-server.service: main process exited, code=killed,
               status=9/KILL

This delays system shutdown time.

Additionally, add PIDFile to tell systemd the .pid system_server uses.
This is useful since system-service.service uses 'forking' and is run
via device-daemon script.

Bug-Tizen: TC-1502

Change-Id: I5b00cf11a67ab15b651d754d270b0549c3f806f4
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
10 years agoMerge "Remove hardcoded path" into tizen accepted/tizen/common/20140724.154424 submit/tizen_common/20140703.095944 submit/tizen_ivi/20140729.000000 submit/tizen_ivi/20140729.000001 submit/tizen_ivi/20140730.000000
Casey Schaufler [Thu, 19 Jun 2014 16:20:42 +0000 (09:20 -0700)]
Merge "Remove hardcoded path" into tizen

10 years agoMerge "time: remove unnecessary global variable" into tizen submit/tizen/20140618.130746
Maciej Wereski [Wed, 18 Jun 2014 12:46:04 +0000 (05:46 -0700)]
Merge "time: remove unnecessary global variable" into tizen

10 years agoRemove hardcoded path 81/23081/1
Jean-Benoit MARTIN [Tue, 17 Jun 2014 08:26:10 +0000 (10:26 +0200)]
Remove hardcoded path

All user data are in home

Bug-Tizen: TC-346

Change-Id: I7bedb30f4e6f799bf1d50d933733cc2115f2e3b4
Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
10 years agotime: remove unnecessary global variable 47/23047/2
jy910.yun [Mon, 16 Jun 2014 10:56:24 +0000 (19:56 +0900)]
time: remove unnecessary global variable

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I091db456d3652530e70d1ee295bf81b9788a6458

10 years agoMake system-server start and run on tizen-common 45/22345/1
Corentin Lecouvey [Tue, 27 May 2014 17:43:33 +0000 (19:43 +0200)]
Make system-server start and run on tizen-common

* packaging: fix regpmon and set_pmon installation

These binaries were provided by system-server and sysman sub-package.
It conducts to an rpm conflict at installation time.

This fix generates correct binaries and only provide them in system-server
package.

* packaging: massive clean up

- remove useless system-server sub-package
- remove useless Apache-2.0 license sub-package
- remove useless systemd require(post/postun/preun) dependencies
- remove useless buildroot deletion in %install section
- gather all of the %post/%postun scriptlets above %files sections
- fix sysman sub-package dependencies

* Removed references to (useless) missing file.

* deviced.conf supersedes system-server.conf

* Removed useless and confusing files from utils/ (bash scripts and one
ARM binary(!))

* system-server.socket goes to sockets.target.wants, system-server.service
goes to multi-user.target.wants

* added missing condition to not include X11 specific code non-X targets

Bug-tizen: TC-16
Change-Id: I37fef948dd64b985a7a983e6e72083eec1e61c70
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Signed-off-by: Romuald Texier-Marcadé <romuald.texier-marcade@open.eurogiciel.org>
10 years agoRemove hardcoded path for multiuser support 90/17090/6 tizen_3.0.m14.2_ivi submit/tizen_common/20140521.163740 submit/tizen_common/20140521.232441 submit/tizen_common/20140522.130648 submit/tizen_common/20140522.135644 submit/tizen_common/20140522.140947 submit/tizen_ivi/20140618.000000 submit/tizen_ivi/20140618.000001 submit/tizen_ivi/20140619.000000 submit/tizen_ivi/20140622.000000 submit/tizen_ivi/20140623.000000 submit/tizen_ivi/20140624.064036 submit/tizen_ivi/20140626.125712 submit/tizen_ivi/20140626.130032 submit/tizen_ivi/20140626.144348 tizen_3.0.m14.2_ivi_release
Sabera Djelti (sdi2) [Mon, 3 Mar 2014 17:14:11 +0000 (18:14 +0100)]
Remove hardcoded path for multiuser support

Change-Id: I5094dd358fb75fc618a196477725b4227e4d8b6b
Bug-Tizen: PTREL-283
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
10 years agoRemove SMACK rule file(.rule) according three domain model 41/19441/2 accepted/tizen/common/20140506.134615 accepted/tizen/ivi/20140519.220117 submit/tizen/20140502.064352
seong.chung [Fri, 11 Apr 2014 14:28:16 +0000 (23:28 +0900)]
Remove SMACK rule file(.rule) according three domain model

Since SMACK only allows three labels, "_"(floor), "User", "System"
The labels of current rule file are not appropriate

Solution:
- Remove rule file (packaging/system-server.rule)
- Remove install statement about installing rule file described in CMakeLists.txt
- Remove file path and name declaration of spec file (packaging/system-server.spec)

Reference site
https://wiki.tizen.org/wiki/Security:SmackThreeDomainModel

Change-Id: I55e2e1b34d35b5a8d2dc7328cbc763135663a598
Signed-off-by: seong.chung <seong.chung@samsung.com>
10 years agoMerge "fix: libslp-pm-devel depends on libslp-pm" into tizen accepted/tizen_generic accepted/tizen_ivi_panda tizen_ivi_panda accepted/tizen/generic/20140312.092952 accepted/tizen/generic/20140403.103242 accepted/tizen/ivi/20140314.172926 accepted/tizen/ivi/20140410.192031 accepted/tizen/ivi/panda/20140403.014852 accepted/tizen/ivi/panda/20140403.193254 submit/tizen/20140312.013906 submit/tizen/20140403.075136 submit/tizen_ivi_panda/20140403.011913
Jiyoung Yun [Tue, 11 Mar 2014 09:36:53 +0000 (02:36 -0700)]
Merge "fix: libslp-pm-devel depends on libslp-pm" into tizen

10 years agoFix package build for Tizen:IVI 19/17719/2 tizen_ivi_release submit/tizen_ivi_release/20140401.030119
Ed Bartosh [Sun, 9 Mar 2014 14:17:56 +0000 (16:17 +0200)]
Fix package build for Tizen:IVI

Build of system-server fails for OBS projects with enabled debuginfo and
defined 'simulator' macro with this error:

error: Installed (but unpackaged) file(s) found:
   /usr/lib/debug/.build-id/6e/480d9a978edacf116bd409aa09b97923290f3b
   /usr/lib/debug/.build-id/6e/480d9a978edacf116bd409aa09b97923290f3b.debug
   /usr/lib/debug/usr/bin/restart.debug

The reason of this failure is explained in this bug
https://bugzilla.redhat.com/show_bug.cgi?id=878863#c2:
Debuginfo generation operates on the disk contents and knows exactly
nothing about specs.

In plain English it means that debuginfo doesn't care about %exclude
statements in %files section of the .spec and processes all binaries,
installed into build root.

This fix removes /usr/bin/restart from buildroot to avoid generation of
debug info for it if 'simulator' macro is defined and includes this binary
into the package only if 'simulator' macro is not defined.

Change-Id: I8368ecc53edb54fb068d394db1abf8d1d73e593a
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agofix: libslp-pm-devel depends on libslp-pm 04/17204/1 sandbox/pcoval/tizen
Philippe Coval [Wed, 5 Mar 2014 09:38:15 +0000 (10:38 +0100)]
fix: libslp-pm-devel depends on libslp-pm

will prevent build issues elsewere (-lpmapi)

Change-Id: Icd10b7ba5fb45c96061554ae5cc125da2d323603
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: strengthen shell tests 59/17159/2
Philippe Coval [Tue, 4 Mar 2014 10:55:14 +0000 (11:55 +0100)]
packaging: strengthen shell tests

Change-Id: I180f422ef46c1da44849651d79202b4ac58df00b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: rm unnecessary dependency on systemd 58/17158/2
Philippe Coval [Tue, 4 Mar 2014 10:52:59 +0000 (11:52 +0100)]
packaging: rm unnecessary dependency on systemd

(could be squashed into my prev merged commit :
 6171bf506322dd868350ca0ec642be1ba9e272d1 )

Change-Id: Ia018c1c55ed30cdb20cbd7e4b8f73880146b4d60
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: uses systemd macros to supports x64 64/17064/1
Philippe Coval [Mon, 3 Mar 2014 11:00:53 +0000 (12:00 +0100)]
packaging: uses systemd macros to supports x64

Change-Id: I043612296a822be8c65d37c39f270687b03b716b
Bug-Tizen: PTREL-643/part
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: only use ecore-x on X config 64/16964/2
Philippe Coval [Thu, 27 Feb 2014 13:59:42 +0000 (14:59 +0100)]
packaging: only use ecore-x on X config

Change-Id: I1c3706413d5c516fea0e3268bd2c91b721ba1a16
Bug-Tizen: PTREL-640
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agopackaging: only use ecore-x on X config 64/16964/1
Philippe Coval [Thu, 27 Feb 2014 13:59:42 +0000 (14:59 +0100)]
packaging: only use ecore-x on X config

Change-Id: I1c3706413d5c516fea0e3268bd2c91b721ba1a16
Bug-Tizen: PTREL-640
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agofix memory leak and return value 80/15380/3
giyeol.ok [Thu, 27 Jun 2013 01:21:55 +0000 (10:21 +0900)]
fix memory leak and return value

Change-Id: I4db1099fad531a4cc4f83ee8d133f972395871a2
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoinsert _GNU_SOURCE define to support using lseek64 of vfat fsck tool 78/15378/3
giyeol.ok [Wed, 5 Jun 2013 05:42:47 +0000 (14:42 +0900)]
insert _GNU_SOURCE define to support using lseek64 of vfat fsck tool

Change-Id: Icaf3f46c50bca9cc7a9be65fac2d7553b44625b0
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoAdding License to FSCK-MSDOS 76/15376/3
Krzysztof Sasiak [Wed, 11 Sep 2013 15:44:28 +0000 (17:44 +0200)]
Adding License to FSCK-MSDOS

Change-Id: If598fe1730ed6f8294be472272d97d0da2500e16
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoimport fsck_msdosfs to fix fsck.vfat crash of dosfstools 75/15375/3
giyeol.ok [Sat, 25 May 2013 05:18:54 +0000 (14:18 +0900)]
import fsck_msdosfs to fix fsck.vfat crash of dosfstools
 the reference url : http://code.metager.de/source/xref/NetBSD/src/sbin/fsck_msdos

Change-Id: I0fd66e7ca36d551f8c867ff292da0d32788cf932
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agowhen OSP or WEB api change the brightness, CUSTOM_BRIGHTNESS_STATUS turns on. 74/15374/1
jy910.yun [Fri, 28 Jun 2013 08:24:07 +0000 (17:24 +0900)]
when OSP or WEB api change the brightness, CUSTOM_BRIGHTNESS_STATUS turns on.

Change-Id: If73a92c2af22bf0cbaad02c50d43f81d3c153968
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agorevise error handling issues 73/15373/1
jy910.yun [Thu, 27 Jun 2013 07:45:09 +0000 (16:45 +0900)]
revise error handling issues

argument cannot be negative (NEGATIVE_RETURNS)

Change-Id: I5c663a51e6ae82e886c132d84bff3df817e86d5f
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoAdd keybacklight basic feature. 72/15372/1
sh.pi [Thu, 27 Jun 2013 05:51:04 +0000 (14:51 +0900)]
Add keybacklight basic feature.

Change-Id: I6e436d16be791b73fab0b0626ced314c30b7c00d
Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
10 years agoArrange dlog of display logic. 74/15274/1
sh.pi [Thu, 27 Jun 2013 01:45:35 +0000 (10:45 +0900)]
Arrange dlog of display logic.

Remove unnecessary dlog and change secure log define.

Change-Id: I9dc12fb57d47d86ffc3fe66523b327ace80d9728
Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
10 years agoprevent resource leak 73/15273/1
juho [Wed, 26 Jun 2013 14:27:24 +0000 (23:27 +0900)]
prevent resource leak

closedir was missed.
so add.

Change-Id: Ib8a1ea11a06cf9bfbe21bf305619c3c935ef5de3
Signed-off-by: juho <juho80.son@samsung.com>
10 years agoCode bugs're fixed 72/15272/1
sh.pi [Wed, 26 Jun 2013 13:27:27 +0000 (22:27 +0900)]
Code bugs're fixed

 missing_return: Arriving at the end of a function without returning a value.
 copy_paste_error: "light_handle" in "light_handle = -1" looks like a copy-paste error.

Change-Id: Ie4e5b597b06d36e33d21a9e486f73e124747983c
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agobug fix about lowbat popup during target booting 71/15271/1
giyeol.ok [Tue, 25 Jun 2013 05:29:49 +0000 (14:29 +0900)]
bug fix about lowbat popup during target booting

Change-Id: I0788fd05ea65ee640d8d9914abd4ae2c7e49f43f
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoRemove battery time log 70/15270/1
sh.pi [Fri, 21 Jun 2013 05:52:17 +0000 (14:52 +0900)]
Remove battery time log

Change-Id: If24cb5fbf49f2dda38da56140379a0569588389b
Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
10 years agoadd display_set_timeout api to resolve build break issue 69/15269/1
jy910.yun [Thu, 20 Jun 2013 03:58:49 +0000 (12:58 +0900)]
add display_set_timeout api to resolve build break issue

Change-Id: I22e9aa301a2d8d53188afa2bc7cecc1cb9118be9
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agochange the structure of controling display to use 'dbus' 68/15268/1
jy910.yun [Tue, 27 Aug 2013 07:30:48 +0000 (09:30 +0200)]
change the structure of controling display to use 'dbus'

Change-Id: Ifa71cfaf2b9919911819e1976ed4ba5664fbac3e
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agosupport switch type devices 67/15267/1
giyeol.ok [Thu, 20 Jun 2013 01:05:47 +0000 (10:05 +0900)]
support switch type devices

Change-Id: I458ae6ed1ad0b9e48f127b8e87e37ddc159430c6
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoexchange privacy logs to secure log 96/15196/1
giyeol.ok [Thu, 20 Jun 2013 00:41:59 +0000 (09:41 +0900)]
exchange privacy logs to secure log

Change-Id: I69ab77fb1f040365513e53ba6fc5166add6b2f6e
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoRemove socket(pm_sock) for display control 95/15195/1
sh.pi [Wed, 19 Jun 2013 12:11:28 +0000 (21:11 +0900)]
Remove socket(pm_sock) for display control

Now all ipc for display control is D-Bus.
Then routine about pm_sock is removed.

Change-Id: Iee263b6cb9bd7d73433cc530344b910158374ab1
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoinsert broadcast signal to power off notification 94/15194/1
giyeol.ok [Tue, 18 Jun 2013 09:16:26 +0000 (18:16 +0900)]
insert broadcast signal to power off notification

Change-Id: I0abbc007fb08bebd05c54b6c29bbf7fb2e2482b3
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoGet lockscreen bg state for backlight time. 93/15193/1
sh.pi [Tue, 18 Jun 2013 07:38:17 +0000 (16:38 +0900)]
Get lockscreen bg state for backlight time.

Backlight time is 5 second in lock state normally.
But there is exceptional state in lock state.
In SOS call or other state, It's normal backlight time in spite of lock state.
Then deviced get background state of lockscreen for exceptional state.

Change-Id: I5ed635bb9ccfcd4c4dc6975ace6bf839187ef376
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoinsert ExecStartPre and ExecStop option into service file 92/15192/1
giyeol.ok [Tue, 18 Jun 2013 05:01:26 +0000 (14:01 +0900)]
insert ExecStartPre and ExecStop option into service file

Change-Id: I6d2359f00768f63ff4231b1fbb1f8fcd3a38c5c1
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoCode cleanup in proc-handler 91/15191/1
Byungsoo Kim [Sat, 15 Jun 2013 07:31:59 +0000 (16:31 +0900)]
Code cleanup in proc-handler

Managing background application is not necessary anymore in system-server.

Change-Id: I16f709b797a4e09efca7db384d9b3e17999e434d
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agochanged implement of sysman format api for supporting osp app. 90/15190/1
jy910.yun [Fri, 14 Jun 2013 05:50:05 +0000 (14:50 +0900)]
changed implement of sysman format api for supporting osp app.

before long, we are planing to delete sysman library.
but osp has still use this api, so we temporary support this api.

Change-Id: Id5ae6f1f8d85eb4764a157af83645639070cb993
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agochange privacy logs to secure log type 89/15189/1
giyeol.ok [Wed, 12 Jun 2013 00:42:50 +0000 (09:42 +0900)]
change privacy logs to secure log type

Change-Id: I5a602925b995671d9424160698d7d562816f131f
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoapply secure_log macro in bs 88/15188/1
juho [Tue, 11 Jun 2013 07:34:53 +0000 (16:34 +0900)]
apply secure_log macro in bs

apply _SD, _SE macro to hide processname and etc information

Change-Id: Iaf5958cb4c0b358e1bac1cb0de90a1fd96f134b7
Signed-off-by: juho <juho80.son@samsung.com>
10 years agouse dbus notifier for mounting mmc card instead of vconf callback 87/15187/1
Byungsoo Kim [Mon, 10 Jun 2013 15:17:26 +0000 (00:17 +0900)]
use dbus notifier for mounting mmc card instead of vconf callback

Change-Id: Iebfe1e92fd1f14176a3d10c60ac287b7620d1674
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agomodify lazy mounting of mmc card for booting speed 86/15186/1
Byungsoo Kim [Mon, 10 Jun 2013 08:13:21 +0000 (17:13 +0900)]
modify lazy mounting of mmc card for booting speed

Change-Id: Ia8e0f3ce18a9dbd763fa399747f3464789471b92
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agoinsert low memory notification routine between entry and leave 74/15174/1
giyeol.ok [Mon, 10 Jun 2013 06:46:53 +0000 (15:46 +0900)]
insert low memory notification routine between entry and leave

Change-Id: I917f87e1df6edb78cc58ba2c7f4308e549330dfb
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agorevise buffer size on create effect function 73/15173/1
jy910.yun [Mon, 10 Jun 2013 05:48:40 +0000 (14:48 +0900)]
revise buffer size on create effect function

Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: I8b660c4ec35ab329ce5704aa1a3252fa332cef14

10 years agorevise the haptic buffer size and add new haptic buffer definition on haptic.h file... 72/15172/1
jy910.yun [Mon, 10 Jun 2013 02:46:39 +0000 (11:46 +0900)]
revise the haptic buffer size and add new haptic buffer definition on haptic.h file for osp app

Change-Id: Iae474f69968bc7edef6e71c7a022e41e3d390e1f
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoFix the bug that device-daemon is not finished. 71/15171/1
sh.pi [Fri, 7 Jun 2013 14:14:04 +0000 (23:14 +0900)]
Fix the bug that device-daemon is not finished.

dbus finished logic was not working and crashed.
now the bug is fixed.

Change-Id: I04956e87ca847af8701d563da82e3da7b5b8d6bc
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoFix the bugs about using ecore timer. 70/15170/1
sh.pi [Fri, 7 Jun 2013 09:00:51 +0000 (18:00 +0900)]
Fix the bugs about using ecore timer.

There is the case that ecore timer is double freed. Then the bugs is fixed.
 ecore.c:562 _ecore_magic_fail()   Input handle has already been freed!

Change-Id: I9287292affc66579f2a79800c09692cc0fc12b55
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agorevise the bug about getting device status 69/15169/1
jy910.yun [Fri, 7 Jun 2013 07:10:54 +0000 (16:10 +0900)]
revise the bug about getting device status

before changing, system-server pass wrong parameter to get_status function

Change-Id: I14613d0995b0e7def173079674a24c86afb8322e
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoremove build warning in core logic 68/15168/1
giyeol.ok [Tue, 27 Aug 2013 07:29:36 +0000 (09:29 +0200)]
remove build warning in core logic

Change-Id: I8ce35b23cf8b61430f172effce9c1051ef021730
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoRemove unnecessary & repetitionary dlog 65/15165/1
sh.pi [Tue, 4 Jun 2013 16:15:06 +0000 (01:15 +0900)]
Remove unnecessary & repetitionary dlog

Change-Id: Ia54554e75f86ede3fbe7c37ce1ccf1e214fe91a5
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoAdd dbus display policy for pulse user 64/15164/1
sh.pi [Tue, 4 Jun 2013 13:09:07 +0000 (22:09 +0900)]
Add dbus display policy for pulse user

Change-Id: I45dde27a39f343af02e124ed61f5330d4eb6f838
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoChange auto brightness change logic. 63/15163/1
sh.pi [Fri, 31 May 2013 10:20:30 +0000 (19:20 +0900)]
Change auto brightness change logic.

Brightness is changed frequently when finger is moving on light sensor.
Now brightness is changed only when values of brightness about 4 times is the same.

Change-Id: Iceefce7bf1877e1406fd39793b7f1d333715b6fe
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agorevise the bad behavior of create effect function caused by wrong argument. 62/15162/1
jy910.yun [Fri, 31 May 2013 06:02:54 +0000 (15:02 +0900)]
revise the bad behavior of create effect function caused by wrong argument.

before changing the code, pass the argument to make string to interger structure.
but now, send the buffer by copying memory.

Change-Id: I1662a0232d0b93ec80656d94d57f8abe8a4f413e
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoinsert umount checking routine to support stable format 61/15161/1
giyeol.ok [Fri, 31 May 2013 05:15:29 +0000 (14:15 +0900)]
insert umount checking routine to support stable format

Change-Id: Iba5d15c1016193423646a7fa0ef6245dffaba9fd
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoFix mounting / unmounting problem 60/15160/1
Byungsoo Kim [Thu, 30 May 2013 12:50:13 +0000 (21:50 +0900)]
Fix mounting / unmounting problem

- remove unnecessary killing application logic
- add to check sd card encryption status at mounting from setting app
- fix unmounting problem

Change-Id: I55db313b649d14a37e9937a399ddba788c27b31c
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agorevise vibrate buffer problem 58/15158/1
jy910.yun [Thu, 30 May 2013 09:38:25 +0000 (18:38 +0900)]
revise vibrate buffer problem

Change-Id: I1373e7a404323628e1dcbbd1f25fdc3b9d7a0996
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoinsert mmc fs register function 57/15157/1
giyeol.ok [Wed, 29 May 2013 11:47:40 +0000 (20:47 +0900)]
insert mmc fs register function

Change-Id: I83679966a90bcd9fd5c2c6e11edc3c5dfa091434
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agochange the structure of haptic to use dbus 56/15156/1
jy910.yun [Wed, 29 May 2013 09:39:18 +0000 (18:39 +0900)]
change the structure of haptic to use dbus

add new interface (.haptic)

Change-Id: Ib650fbadfd25d9b03368a5c05524dc1f03026325
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoSync add_filter & match for dbus watch 55/15155/1
Krzysztof Sasiak [Fri, 9 Aug 2013 10:45:46 +0000 (12:45 +0200)]
Sync add_filter & match for dbus watch

deviced added message filter unconditionally when it's starting.
Without adding dbus match, It's no checking logic.
Now Add dbus filter only when there is match request.

Change-Id: Icf1356d985f5cb9638afd7c82ac9ef67813c1ce1
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agosometimes mmc is not formatted when try to format 54/15154/1
jy910.yun [Wed, 29 May 2013 09:23:58 +0000 (18:23 +0900)]
sometimes mmc is not formatted when try to format

Change-Id: I3d454ce54bd9398dc8c889b09966844f08fdea58
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoLCD off operation by power key is ignored during volume down key is pressed. 53/15153/1
sh.pi [Tue, 28 May 2013 12:56:15 +0000 (21:56 +0900)]
LCD off operation by power key is ignored during volume down key is pressed.

When force dump key is pressed, pm state is not changed to lcd off by power key.

Change-Id: I09c7425440261a299428a6c66725413ca778a616
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoAdd auto brightness working position feature 52/15152/1
sh.pi [Tue, 28 May 2013 11:46:16 +0000 (20:46 +0900)]
Add auto brightness working position feature

an angle of 0~20 degrees from horizontality
 : auto brightness is working normally.
an angle over 20 degrees from horizontality
 : lcd does not get dark, but get bright by lux.

* based on that phone is lying on the floor.

Change-Id: I639a76f2438bd900290aedd47f01841519dcd36c
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoChange display operation name from restore to update. 51/15151/1
sh.pi [Mon, 27 May 2013 08:55:36 +0000 (17:55 +0900)]
Change display operation name from restore to update.

Change-Id: I08a0499081c93dfe7b81dc6cac4c7ccc9097c51f
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoinsert force unmount routine 50/15150/1
giyeol.ok [Thu, 23 May 2013 05:09:46 +0000 (14:09 +0900)]
insert force unmount routine

it is related with PLM issues. and UI concept is not working at setting app yet.
so we support force umounting until setting is completed.

Change-Id: Ib7ec2c9bd641826c9321acf49781b0b9040327e4
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoAdd error logging code to check that press/release of power key is unpair. 49/15149/1
sh.pi [Wed, 22 May 2013 15:06:42 +0000 (00:06 +0900)]
Add error logging code to check that press/release of power key is unpair.

Change-Id: I9a6906128f9268696fa7c44899cc2d24bcad3758
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoinsert of tapi handler init operation 48/15148/1
giyeol.ok [Tue, 21 May 2013 10:35:06 +0000 (19:35 +0900)]
insert of tapi handler init operation

Change-Id: I78302e3c4b5d3e5f21ae9dc7aa688e7f4d49b619
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoinsert external device counting routine: fixing 47/15147/1
giyeol.ok [Mon, 20 May 2013 12:48:48 +0000 (21:48 +0900)]
insert external device counting routine: fixing
an ommitted bug.

Change-Id: Icea5d9512d3565bee83c483541c5743a6f17ecd1
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoadd limit number of launching crash-worker at the same time. 36/15136/1
juho [Wed, 22 May 2013 05:22:11 +0000 (14:22 +0900)]
add limit number of launching crash-worker at the same time.

crash notify files can have many notify to launch crash-worker
when crash is occured many times at the sametime.
It can make problem of target stuck.
so add limit number of launching crash-worker at the same time.

Change-Id: Ia3a2e107b0d9b18c0eb33280061d8a8d27c35ec8
Signed-off-by: juho <juho80.son@samsung.com>
10 years agoinsert external device counting routine 35/15135/1
giyeol.ok [Mon, 20 May 2013 12:48:48 +0000 (21:48 +0900)]
insert external device counting routine

Change-Id: I0d0c4e4e010830ccf17163f377641efc4817aaad
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoinsert get API of internal user space size 34/15134/1
giyeol.ok [Thu, 16 May 2013 07:59:31 +0000 (16:59 +0900)]
insert get API of internal user space size

Change-Id: If0b8113744327de1480bf0d8ad2ad53f052c089e
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoumount usr data partition 33/15133/1
Byungsoo Kim [Sat, 18 May 2013 05:02:19 +0000 (14:02 +0900)]
umount usr data partition

Because system-server connected with /opt/usr, we couldn't send sigterm signal.
Instead of sending signal, use MNT_DETACH option for unmounting rw user data partition. System-server called kernel power off after unmounting /opt/usr partition successfully.

Change-Id: I458f273c5855cff9499c737535d8a0a0a4e25371
Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
10 years agoAdd patch to reset configuration by NameOwnerChanged dbus signal. 32/15132/1
Krzysztof Sasiak [Fri, 9 Aug 2013 10:44:09 +0000 (12:44 +0200)]
Add patch to reset configuration by NameOwnerChanged dbus signal.

Process can change deviced daemon state by dbus.
If the process is terminated, deviced can receive NameOwnerChanged signal.
And It can reset the configurations from the process terminated.

Change-Id: I1e7b12e62c981f261cace54b8381dc93e9769c3d
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoonly delete the unnecessary log in libsysman and system-server 31/15131/1
jy910.yun [Thu, 16 May 2013 07:16:38 +0000 (16:16 +0900)]
only delete the unnecessary log in libsysman and system-server

Change-Id: I7219a7796f9338015af186cf9747cf28ad58bee6
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agodelete unneccessary prefix such as 'ss_' or 'deviced_' 30/15130/1
jy910.yun [Wed, 15 May 2013 10:46:05 +0000 (19:46 +0900)]
delete unneccessary prefix such as 'ss_' or 'deviced_'

Change-Id: I4894afb51955835e0353567d69872fe09e1221b6
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoAdd dbus method to contol min value of autobrightness 29/15129/1
Krzysztof Sasiak [Fri, 9 Aug 2013 13:35:09 +0000 (15:35 +0200)]
Add dbus method to contol min value of autobrightness

There is autobrightness limitation when some application is working.
ex) Min autobrightness of camera application is 60% (default value).
Then Add dbus method for turning min autobrightness.

Change-Id: I89879aa1ecd9a35f0525443b3c083e3593698d62
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoAdd error/warning log to alanyze no lcd dim/on/suspend problem. 28/15128/1
sh.pi [Wed, 15 May 2013 08:52:44 +0000 (17:52 +0900)]
Add error/warning log to alanyze no lcd dim/on/suspend problem.

Change-Id: Ie4255dac47068f47f377ac33f7904265b9e07c2f
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agoCall vconftool as absolute path. 27/15127/1
walyong.cho [Wed, 15 May 2013 07:50:16 +0000 (16:50 +0900)]
Call vconftool as absolute path.

Change-Id: Idec1a93cb24378675a903a8c8dc5f31a9eabedb1
Signed-off-by: walyong.cho <walyong.cho@samsung.com>
10 years agodisplay lock/unlock/change of libdeviced is using dbus for IPC. 26/15126/1
sh.pi [Tue, 14 May 2013 14:19:03 +0000 (23:19 +0900)]
display lock/unlock/change of libdeviced is using dbus for IPC.

Socket is not used for IPC.
Now dbus is used for display lock/unlock/change state.

Change-Id: I4baf5c2f418db0d8b964f078c226d6f2cb38cc27
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agochange siop level control - just set siop level 25/15125/1
giyeol.ok [Wed, 15 May 2013 02:35:01 +0000 (11:35 +0900)]
change siop level control - just set siop level

Change-Id: Ia8bdfc81f1ebe6e24ef2b16c0d309358136163d5
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agonot change an existing format api and add new format api. 24/15124/1
jy910.yun [Tue, 14 May 2013 12:55:37 +0000 (21:55 +0900)]
not change an existing format api and add new format api.

Change-Id: Id46880c069022302c8cb9f9258be435739b67f89
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agoapply force format operation. 23/15123/1
jy910.yun [Tue, 14 May 2013 08:32:35 +0000 (17:32 +0900)]
apply force format operation.

format process changed.
pre-condition : 1. user requests to format sd card
2. any app already access the file in sd card
result : using FMT_NORMAL - deviced will return the error(EBUSY).
 using FMT_FORCE  - deviced will format by force

Change-Id: I40a7c398cc4c2f9673f0fbb961c44fb6bca58b32
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agonoti lowmem of internal memory during booting 41/14941/2
giyeol.ok [Tue, 14 May 2013 07:43:00 +0000 (16:43 +0900)]
noti lowmem of internal memory during booting

Change-Id: I6633729d0b60a465801e40a2bc6b4286cba60a92
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agobug fix about directory handle close 40/14940/2
giyeol.ok [Tue, 14 May 2013 05:34:34 +0000 (14:34 +0900)]
bug fix about directory handle close

Change-Id: I1cba53bbbc0d34c8ddf743dbb07b150cd4abe6cf
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoupdate vconf status of charge now 39/14939/2
giyeol.ok [Tue, 14 May 2013 01:28:28 +0000 (10:28 +0900)]
update vconf status of charge now

Change-Id: Ibf5efd18008705052665302fcc1d76fb367636ff
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
10 years agoChange LCD dim timming from battery level 15% to 5%. 38/14938/2
sh.pi [Mon, 13 May 2013 13:37:01 +0000 (22:37 +0900)]
Change LCD dim timming from battery level 15% to 5%.

LCD power concept is changed.
Now LCD goes to dim state when battery level is under 5%.

Change-Id: I10f067d95ac6f56ee80f971557b4ab03a932d693
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
10 years agorearrange wrong error log and delete redundant log regarding led 37/14937/2
jy910.yun [Fri, 10 May 2013 08:13:42 +0000 (17:13 +0900)]
rearrange wrong error log and delete redundant log regarding led

Change-Id: I9e958db9b72fc5ff2331efc1dfa4bb6925a7b427
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agorearrange wrong error log and delete redundant log regarding ta handler 36/14936/2
jy910.yun [Fri, 10 May 2013 07:29:17 +0000 (16:29 +0900)]
rearrange wrong error log and delete redundant log regarding ta handler

Change-Id: I6376c92bd3a9b724ea9b1082776141c73fc694c4
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agorearrange wrong error log and delete redundant log regarding power handler 35/14935/2
jy910.yun [Fri, 10 May 2013 08:07:12 +0000 (17:07 +0900)]
rearrange wrong error log and delete redundant log regarding power handler

Change-Id: I101e61723a195c060f444e6463a329397f4ee9df
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agorearrange wrong error log and delete redundant log regarding proc handler 34/14934/2
jy910.yun [Fri, 10 May 2013 07:56:15 +0000 (16:56 +0900)]
rearrange wrong error log and delete redundant log regarding proc handler

Change-Id: I507f6410306cd0879d3ea7e47b30253914f83ed6
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
10 years agorearrange wrong error log and delete redundant log regarding deviced library 33/14933/2
jy910.yun [Fri, 10 May 2013 07:40:36 +0000 (16:40 +0900)]
rearrange wrong error log and delete redundant log regarding deviced library

Change-Id: I8deabb118e03cd3058920619c3054d62562c5a91
Signed-off-by: jy910.yun <jy910.yun@samsung.com>