Kichan Kwon [Wed, 2 Aug 2017 01:15:09 +0000 (10:15 +0900)]
Use memcpy to prevent buffer over-reading by snprintf
- snprintf calculates return value by checking the length of format string
- Therefore, if format string is non-terminated, snprintf can over-read
- To prevent, use memcpy and write null character
Change-Id: I9ba837d8e22313be6e34ba39e4ccaf7743166d89
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kunhoon Baik [Sat, 22 Jul 2017 01:20:01 +0000 (10:20 +0900)]
Enhancement system-init-db for updating specific lang feature
Now, system init db tool can update bool value for specific runtime.
The feature will be updated according to following command.
Whole runtime feature update : -k KEY -t bool -v VALUE
C# runtime feature update : -k KEY -t bool -v VALUE -l csapi
C runtime feature update : -k KEY -t bool -v VALUE -l capi
Web runtime feature update : -k KEY -t bool -v VALUE -l webapi
Change-Id: Iad562a040778b4b1b76492ad6f06e6043edee234
Kichan Kwon [Wed, 19 Jul 2017 07:49:38 +0000 (16:49 +0900)]
init_db : update boolean to modified value
- The lang option of update is removed because of the lack of default value
Change-Id: I8568e369a4ddd140b070256c1a4d199090cd58aa
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 5 Jul 2017 12:21:45 +0000 (21:21 +0900)]
init_db : write boolean to 'T' or 'F' instead of 0x1 or 0x0
- To prevent misunderstanding false as the end of string
- In addition, we can get the readbility
Change-Id: If94ec9337f4360f696c242664e5d32401da5f934
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 5 Jul 2017 02:25:10 +0000 (11:25 +0900)]
Version up
Change-Id: I45c65e0d5645a881dfa009eda96fbde83614129c
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kunhoon Baik [Mon, 3 Jul 2017 23:33:26 +0000 (08:33 +0900)]
Fix a bug of buffer-size using when checking tizen-id validation
It should be ID_LEN(28)+4 because 32 byte is maximum.
Change-Id: I0a877b9b01c7fa1184308598f0ce21c03f1707d9
Kichan Kwon [Thu, 1 Jun 2017 02:44:48 +0000 (11:44 +0900)]
Generate tizenID with libuuid instead of openssl
- To detach openssl
Change-Id: I55a6cbbd686857a94d0ff7cb9806759db4c40f03
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 9 Jun 2017 08:03:20 +0000 (17:03 +0900)]
Support language runtime property for boolean feature
- Some keys are needed to have different value depend on runtime
- To support different value, model-config will have runtime property
- e.g. < ... capi="on" webapi="off" csapi="on">VALUE</key>
- init_db stores the value for all runtimes with default value
- Before system-info reads key, it check RUNTIME_TYPE
- If RUNTIME_TYPE is invalid or NULL, return default value
Change-Id: I247245270ddf58ae2da5254a23b0fa2188e77899
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Denis Khalikov [Tue, 20 Jun 2017 11:19:18 +0000 (14:19 +0300)]
Switch off UBSan for update_db
Change-Id: I6ffd4ce833bd72c1ee66cdc77f8139b63ce618a0
Signed-off-by: Denis Khalikov <d.khalikov@partner.samsung.com>
Slava Barinov [Fri, 16 Sep 2016 14:24:28 +0000 (17:24 +0300)]
Switch off ASan for update_db
Sanitized binary cannot be built with '-static' since Address Sanitizer intercepts function calls from libraries.
Thus, system-info is built in both Address Sanitizer On environment and Address Sanitizer Off environment. Then, system-info-update-db built without sanitized build option is installed.
Change-Id: I16a09d0555252cac0d717068560d99f06d0c12d3
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Kichan Kwon [Mon, 22 May 2017 09:21:46 +0000 (18:21 +0900)]
Correct broken link
Change-Id: I6fc657e9a22bd9d2e4f9aa35933de3b697536aeb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 19 Apr 2017 12:03:04 +0000 (21:03 +0900)]
Fix invalid type specifier
Change-Id: I5ef279c47e01468417c347faf19573dc27bee1ad
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 19 Apr 2017 02:17:30 +0000 (11:17 +0900)]
update_db : do chdir after chroot
- To prevent from accessing outside of chroot directory
Change-Id: Ia951443f9a0f4da12596640361288519b94a38c6
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Youngjae Shin [Wed, 12 Apr 2017 07:36:37 +0000 (16:36 +0900)]
remove the dependency of model-config
It will be handled by ks file.
Change-Id: I0f3bdbf34e0734725621dd614aa3ab439d6221d5
Youngjae Shin [Wed, 12 Apr 2017 02:22:56 +0000 (11:22 +0900)]
add Recommends for model-config
Change-Id: Iae9ab03093e7e248901bfb81111f59e5f3749223
Youngjae Shin [Wed, 12 Apr 2017 01:29:25 +0000 (10:29 +0900)]
revise packaging for unified build
Change-Id: Idcc56926fbbb07840d25da2117f49eb42d293517
Kichan Kwon [Mon, 10 Apr 2017 05:12:19 +0000 (14:12 +0900)]
Fix spec file and add manifest file for extension-emulator
Change-Id: I01f72716a252b840e81a7266c64ccfc18524f1ab
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 5 Apr 2017 11:34:10 +0000 (20:34 +0900)]
Add LCOV comment for not supported API
Change-Id: Ieda1db7075020d61bd6cb7d11c57263ad318cc90
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
hk57.kim [Thu, 30 Mar 2017 07:15:39 +0000 (16:15 +0900)]
[Tizen] Remove emulator build dependencies
- This is for Tizen 4.0.
- Added backward-compatibility that does not deteriorate 4.0 Configurability
- When you SR this, you need to create JIRA-TRE issue of:
: add capi-system-info-extension-emulator for all(common/mobile/wearable/ivi/tv) emulator
(It's add, not replace.)
Change-Id: I8fcbd4760846ba03d9ea2adfbbb6117ab73e714e
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
[Fix build error]
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 3 Apr 2017 04:58:32 +0000 (13:58 +0900)]
Modify uid/gid of tizenid
- system_share will be deprecated
Change-Id: I92e20ba86c81b08358fee1829c6ceed2f43c2ca0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
taeyoung [Sat, 4 Mar 2017 06:45:06 +0000 (15:45 +0900)]
Merge branch 'tizen_3.0' into tizen
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I3a8911f1c70b5657555513c669151d0aa0d9c76c
taeyoung [Sat, 4 Mar 2017 06:38:15 +0000 (15:38 +0900)]
pc: add prefix for the pc file
Pc file uses PREFIX macro, but there was no place to define the macro.
Now, The macro is defined in the CMakeLists.txt file.
Change-Id: I3ea9ca72bf6a4db4cd1e36f573600b38c5ff13bc
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Fri, 3 Mar 2017 00:55:47 +0000 (09:55 +0900)]
Merge branch 'tizen_3.0' into tizen
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: Ie52144c8631d9885deea1ce7a6cafa0e32bc2d0b
taeyoung [Tue, 21 Feb 2017 05:04:26 +0000 (14:04 +0900)]
pc: add prefix information
prefix information is not the necessary information.
But the information is used in other place, and thus
the information is added.
Change-Id: I1bf5556eda7b3aae6fdda25d4ed419229193f5a8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kichan Kwon [Thu, 16 Feb 2017 07:49:48 +0000 (16:49 +0900)]
Proofread header file
Change-Id: Ia4e206d3ea8d0364d09d3c37ed1d411b91c23bfc
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
pr.jung [Wed, 1 Feb 2017 09:02:00 +0000 (18:02 +0900)]
Merge remote-tracking branch 'origin/tizen_3.0' into tizen
Change-Id: Iaca788a3fa7b68277ed05242875982fec2f23618
Signed-off-by: pr.jung <pr.jung@samsung.com>
pr.jung [Wed, 1 Feb 2017 09:01:15 +0000 (01:01 -0800)]
Merge "Fix for memory leak" into tizen_3.0
pr.jung [Wed, 1 Feb 2017 08:37:56 +0000 (17:37 +0900)]
Fix for memory leak
- gdbm_fetch returns a d_data and the actual value is in d_data.dptr
- Memory allocated to d_data.dptr needs to be freed
Change-Id: I774f2b16bbfbeb1cc500976aa266143aa56d5dbb
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Tue, 24 Jan 2017 06:11:55 +0000 (15:11 +0900)]
model-config: add dependency for the model-config.xml
During image creation, model-config.xml file needs
to be installed before system-info. Thus the dependency
is added.
Change-Id: I31d91c375e9a6d39854fdea3fdc8eefa87f7f073
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 24 Jan 2017 06:11:55 +0000 (15:11 +0900)]
model-config: add dependency for the model-config.xml
During image creation, model-config.xml file needs
to be installed before system-info. Thus the dependency
is added.
Change-Id: Ie6e6bfa28bde987d99d76ef5553dc3367f92a7f2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Sunmin Lee [Wed, 11 Jan 2017 02:41:19 +0000 (11:41 +0900)]
Upgrade: Do not use systemctl
The system offline update is going to be done without
basic.target. However, systemctl command requires basic.target
internally. So, replace it with a command.
Change-Id: I84fecf4ad727a82506cd4eab9ce091fa29b35d03
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
taeyoung [Thu, 5 Jan 2017 07:21:46 +0000 (16:21 +0900)]
Merge branch 'tizen_3.0' into tizen
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: Ie795c139475762d0157437f30a2f57210b37b427
taeyoung [Thu, 5 Jan 2017 07:18:27 +0000 (16:18 +0900)]
db: create db in the post script
Previously, the db was created after installing all packages.
However, several packages want to use the system information
during installation. Thus the db is created once in the post
script, and db is updated after build information is created.
Change-Id: Ia4d71ac1696c5c7ed9ca6728baf8eb6b504d19e3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 29 Dec 2016 01:52:59 +0000 (10:52 +0900)]
Merge branch 'tizen_3.0' into tizen
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: Ie81c175e7575f6bd278693d23c48ed8067e6b12a
Sunmin Lee [Fri, 2 Dec 2016 08:54:50 +0000 (17:54 +0900)]
Upgrade: set RW update script number
+ revert patch using binary instead of systemctl
Change-Id: I728645cb1a8d15b96dadf68942935b4925e5d454
taeyoung [Tue, 22 Nov 2016 05:57:22 +0000 (14:57 +0900)]
upgrade: remove systemctl command from upgrade script
- During upgrade, systemctl cannot be used. Thus tizen_id
needs to be called directly.
Change-Id: Ia1f8d4018ad16248858da22ce0c8621bbe396901
Signed-off-by: taeyoung <ty317.kim@samsung.com>
pr.jung [Tue, 27 Sep 2016 06:35:29 +0000 (15:35 +0900)]
Add lock for multi-thread cases
Change-Id: I7a362ca4341b9e0c5fdc765980b885050aae9f8c
Signed-off-by: pr.jung <pr.jung@samsung.com>
Sunmin Lee [Tue, 20 Sep 2016 04:02:33 +0000 (13:02 +0900)]
upgrade: fix upgrade script directory
Change-Id: I4154cdea4cc49faaff19f124bcb488ba408dc5c4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
taeyoung [Tue, 13 Sep 2016 02:17:16 +0000 (11:17 +0900)]
upgrade: add upgrade script for tizen id
- tizen id is created on the system partition,
and thus the permission of the tizen id path
needs to be granted to make tizen id properly.
Change-Id: I028bfd6b264c0b30cf4c38098b742eb40ec38260
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Kunhoon Baik [Wed, 7 Sep 2016 04:25:15 +0000 (13:25 +0900)]
add install-time dependency for security-config
because security-config provides system-share
Change-Id: I7fd870a52134088dd865a7f278a528a5ad36d240
Taeyoung Kim [Tue, 6 Sep 2016 05:28:16 +0000 (22:28 -0700)]
Merge "Tizenid service SHOULD use std io because it is executed at sysinit.target" into tizen
Kunhoon Baik [Tue, 6 Sep 2016 00:10:52 +0000 (09:10 +0900)]
Tizenid service SHOULD use std io because it is executed at sysinit.target
Change-Id: Ie7da8ed400c234bf0625265f7bd498b5aaac1836
pr.jung [Thu, 1 Sep 2016 07:19:38 +0000 (16:19 +0900)]
Add hash table
- Find hash table before DB
Change-Id: Icad177d108e3b990d33e81df8f8dce3cdda4c26d
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Tue, 9 Aug 2016 08:25:59 +0000 (17:25 +0900)]
tizen id: change user and group of systemd service file to system_share
- Tizen ID is made with the system_share user and group.
Change-Id: I5010c91b20e679e80294697ef664457bbc2c0ea2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 19 Jul 2016 04:26:43 +0000 (13:26 +0900)]
db: add db update command for Emulator
- In the emulator environment, the display resolution
can be changed before the first boot. Thus the command
system_info_update_db is used to update the system info
values before the first boot.
Change-Id: I06fcef9eeef60630b33f6bce9c2f054473eb8525
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 3 Aug 2016 03:38:51 +0000 (20:38 -0700)]
Merge "Fix pkgconfig file Version: field" into tizen
Gleb Fotengauer-Malinovskiy [Wed, 4 Mar 2015 14:28:38 +0000 (17:28 +0300)]
Fix pkgconfig file Version: field
Change-Id: I3edcf699ce3891b45ca31baa76f8089d097c0d8b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Ronan Le Martret [Tue, 14 Oct 2014 08:57:59 +0000 (10:57 +0200)]
remove useless definition for prefix for cmake
- incompatible with yocto build native
Change-Id: I07bfa938cf3dfb8335f2f2693337386a28b52942
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Ronan Le Martret [Tue, 14 Oct 2014 09:43:29 +0000 (11:43 +0200)]
remove hard coded path to pkg-config pc file
- we need to generate the pc file with cmake macro for yocto native build.
Change-Id: I807a5c8e8d04cd5af22c9c188a3067291426239a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
taeyoung [Thu, 21 Jul 2016 06:22:05 +0000 (15:22 +0900)]
plugin: remove sample plugin
- Sample plugin codes existed just for guide.
But it is unnecessary codes, and thus they are removed
Change-Id: I79c3180d0db56a009935357b57d8eb8cadc518cc
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 21 Jul 2016 03:27:16 +0000 (12:27 +0900)]
tizen id: change tizen id path to set smack label
- Tizen ID is stored in the path which has transmute
property to give smack label automatically
Change-Id: I8b9d9640b5c2f32373b9c63c9466198c8296b669
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 5 Jul 2016 02:51:14 +0000 (11:51 +0900)]
coverage: add comments to exclude from the coverage test
- Error exception routines can be excluded since they
could not be occurred.
- Plugin handling routines can be excluded since Platform
does not have the plugin.
Change-Id: Ib88b0175007e18df7e19e7d5e5ee75cce86cc8f6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 5 Jul 2016 00:58:32 +0000 (09:58 +0900)]
tizenid: change rand() to rand_r( to fix the thread unsafe issue
Change-Id: I172b39587d12bb066fbdda43ba6084f78a68a3cd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Thu, 30 Jun 2016 09:44:58 +0000 (18:44 +0900)]
common: set PATH env
- PATH env need to be added since system PATH env
can have weird paths.
Change-Id: I65dbbb388df2f0028a953a6fac9dbd113a3f6ab8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 29 Jun 2016 00:43:05 +0000 (09:43 +0900)]
tizen id: use rand() instead of /dev/random
- /dev/random is powered from actual entropy
gathered by the environment. If the internal
entropy pool is exhausted, it is need to wait
for a while to get random value from /dev/random.
- Not to wait to read random value, rand() is used.
Change-Id: Iee6d3e44501a09ac00e6f229fe1f8ad133373868
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 28 Jun 2016 23:20:20 +0000 (08:20 +0900)]
common: apply Tizen coding rule
Change-Id: I100502366b66f6b4aa7bf41fff6256125e83caba
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 28 Jun 2016 06:00:49 +0000 (15:00 +0900)]
tizenid: move tizenid.service to sysinit.target
- Previously, tizenid.service was started at multi-user.target.
Thus several apps tried to access tizen id before making it,
and failed to access tizen id.
- Now, tizenid.service is started at sysinit.target. Thus
tizenid is made just after /opt is mounted.
Change-Id: Iaa81091ac83a99b0d62a5e64217e4f3e61408459
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 27 Jun 2016 12:21:52 +0000 (21:21 +0900)]
gdbm: reduce cache size to 10
- Before reducing cache size, HEAP size allocated
was 428kB with test app.
- After reducing cache size, HEAP size allocated
is decreased to 64kB.
- The performance to read data is not decreased.
Change-Id: I68809bbbe3e1345b726bfdba3d8bd39e807f9381
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 18 May 2016 09:57:22 +0000 (18:57 +0900)]
db: change backend of system info from xml to gdbm
- Previously, Each app using system-info opened and parsed
the model-config.xml file. However the size of libxml2 is big
and xml parsing is required whenever each app gets system
information.
- Now, gdbm is used to store the information of model-config.xml.
Thus memory size is decreased and read db is faster than
parsing the xml file.
* App with libxml2
- PSS: 231 KB
- Average time to get a value: 14,331 usec
* App with gdbm
- PSS: 176 KB
- Average time to get a value: 408 usec
- The db using gdbm is created at image creation time.
Change-Id: Ieb9bc2fab3f171be4db6416a31252e45fdba75e2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 19 May 2016 08:11:49 +0000 (17:11 +0900)]
tizen id: change path of Tizen ID to RW path
- Previous: /etc/tizenid (RO)
- Now: /opt/etc/tizenid (RW)
- Previous path is RO and thus Tizen ID cannot be made
at runtime. Thus the path is changed to RW path.
Change-Id: Iad21c3e9f7331581765cfa4223231aff489c32b8
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 29 Apr 2016 06:27:47 +0000 (23:27 -0700)]
Merge "build info: change ID and Release" into tizen
Taeyoung Kim [Fri, 29 Apr 2016 06:17:50 +0000 (23:17 -0700)]
Merge "tizen id: reset tizen id if there is no content in the id file" into tizen
Taeyoung Kim [Fri, 29 Apr 2016 06:17:45 +0000 (23:17 -0700)]
Merge "tizen id: reset Tizen ID if it is not a normal file" into tizen
Taeyoung Kim [Thu, 21 Apr 2016 07:32:55 +0000 (16:32 +0900)]
build info: change ID and Release
- ID format is changed to get the value from Version.Build
= Previous Build ID example
: tizen-mobile_20160308.8_mobile-wayland-armv7l-tm1
= Changed Build ID example
: tizen-mobile
- Release value is changed to get the value from Version.Build
= Previously, the value was created by removing alphabet
from Version.Build. However the Version.Build could contain
other numbers between alphabets. Thus Release value
could be weird.
= Now, Release value is parsed from Version.Build by
the Build.Date value.
Change-Id: I70087a74065e37842a0c1d2297cee87595a46a23
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Fri, 1 Apr 2016 00:05:54 +0000 (09:05 +0900)]
common: apply Tizen Coding Rule
- Space before the square bracket is removed
Change-Id: Id17121768b5d8151294b40b17bce5231e859f6e6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Thu, 10 Mar 2016 03:33:37 +0000 (12:33 +0900)]
build info: add build id, type, variant, and release inforation
- Examples
= Build ID: "tizen-mobile_20160308.8_mobile-wayland-armv7l-tm1"
= Build Type: "eng" or "user"
= Build Variant: It can be set according to the product type
= Build release: "
20160308.8"
Change-Id: I29e14b461dfe6b18b562922a3d8c03ded750b181
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Wed, 16 Mar 2016 05:58:57 +0000 (14:58 +0900)]
license: change license name to Apache-2.0
Apache License, Version 2.0 -> Apache-2.0
Change-Id: Ifc9594ca7c72b84a10d57443e7733f19813b6746
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Kichan Kwon [Fri, 11 Mar 2016 01:25:16 +0000 (10:25 +0900)]
Add new features about build information
- build.id
- build.type
- build.version.release
- build.variant
Change-Id: Iab338073e232a940fa6d5ad77575f81891cf8116
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Taeyoung Kim [Wed, 3 Feb 2016 02:31:34 +0000 (11:31 +0900)]
system-info: add function to return types of the keys
- The function system_info_get_platform_type() returns
the type of the system keys. The api is just for
internal use currently.
Change-Id: I812aae1f40da26bffde8525953b965e6cdf4a2ff
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Tue, 12 Jan 2016 07:41:42 +0000 (16:41 +0900)]
tizen id: reset tizen id if there is no content in the id file
- Tizen ID file can be empty when the device is rebooted
during making Tizen ID. Thus the content in the Tizen ID file
should be checked and reset if there is no content
Change-Id: I506fee8476ee0f43edc437ebbcf2c77e4fb262a3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Tue, 12 Jan 2016 06:44:58 +0000 (15:44 +0900)]
tizen id: reset Tizen ID if it is not a normal file
- If the Tizen ID file is not a normal file such as symlink,
the file is removed and Tizen ID is re-made.
Change-Id: Id83565c38721cfe1f4b78f1a8d8202a8e2b8cc41
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
pr.jung [Tue, 22 Dec 2015 06:33:15 +0000 (15:33 +0900)]
Fix as Tizen coding rule
Change-Id: I6173457f78dc39b1a0d4d2c8701b04a6aa18a536
Signed-off-by: pr.jung <pr.jung@samsung.com>
taeyoung [Wed, 18 Nov 2015 06:54:00 +0000 (15:54 +0900)]
license: change license file name
Change-Id: I46f9f0d6453aa0aecfec282afac9d6a6656b4614
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 18 Nov 2015 06:47:57 +0000 (15:47 +0900)]
plugin: add sample plugin
- If Vendors want to add their own plugin, they
can use the sample code for the plugin
Change-Id: Ie6e7af9d5e7a1de4e6d7745da3bd8caca8c4fef8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 18 Nov 2015 06:31:28 +0000 (15:31 +0900)]
plugin: add apis to add plugin for vendor specific system information
- Vendors can add there own system information keys and values
by making system-info-plugin.so using capi-systsem-info-plugin
library.
Change-Id: If68dec5f72dfe8d34e2210107472b9f355c61f12
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 18 Nov 2015 06:21:17 +0000 (15:21 +0900)]
log: change dlog macro to _I, _D, and _E
- LOG_TAG also is defined at one file
Change-Id: I6cb5d3395eae817274b9e9bab61bc3090075c703
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Wed, 18 Nov 2015 06:05:18 +0000 (15:05 +0900)]
common: remove legacy operations
- The apis using enum values are legacy apis and will be removed
Change-Id: I45f3709e1b200fcb1cc7069a1d81c54428b1b1f4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Mon, 7 Sep 2015 02:22:14 +0000 (11:22 +0900)]
tizen id: change tizen id path and smack label
- tizen id path is changed from /home/root/tizenid to /etc/tizenid
- The smack label of tizen id is changed to System::Share
for every apps to be able to read it
Change-Id: Id3983c7dcb2e177950200cb40e1227ee18b7c692
Signed-off-by: taeyoung <ty317.kim@samsung.com>
taeyoung [Tue, 1 Sep 2015 13:08:43 +0000 (22:08 +0900)]
tizen id: change default path of the tizen id to /home/root
- Previously /opt/home/root was used. But the path does not exist
in Tizen 3.0. Thus the path is changed to /home/root
Change-Id: I9d6a077a700988836bd0062863080dd2664176c5
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Sangjung Woo [Tue, 11 Aug 2015 07:03:55 +0000 (16:03 +0900)]
spec: fix the unit file location
Because of some buggy code in spec file, the systemd unit file
'tizenid.service' is install into /usr/lib64/systemd/system. This patch
fixes this bug.
Change-Id: Ic8b878f16c28d2bb48699d76aa9976963a24aaf9
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Chan Lee [Fri, 12 Jun 2015 07:23:49 +0000 (00:23 -0700)]
Merge "enum: move the position of the enum keys and apis related with the keys" into tizen
taeyoung [Fri, 12 Jun 2015 07:11:30 +0000 (16:11 +0900)]
enum: move the position of the enum keys and apis related with the keys
- The enum keys are deprecated, but Currently other apps use it.
Thus the keys and apis are enabled now. The keys will be deprecated
with "deprecated" flags
Change-Id: I0ecae4693e6db11c5803bda7450e3de64aa78440
Signed-off-by: taeyoung <ty317.kim@samsung.com>
Sangjung Woo [Wed, 10 Jun 2015 12:38:14 +0000 (21:38 +0900)]
bugfix: fix the so name properly
Because omiting both MAJORVER and FULLVER macro, the so name is not
right format (i.e. libcapi-system-info.so.SOVERSION) As a result, the
build break occurs when building some modules that use system-info APIs.
This patch fixs this bug.
Change-Id: I9fe53365784c125397fb39e297fb4c814db375cd
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Taeyoung Kim [Sat, 6 Jun 2015 13:49:21 +0000 (22:49 +0900)]
common: change implementations of apis using enum
- The apis using enum values will be deprecated.
- The implementations of the apis are changed to use key string
declared on Tizen.org developer guide
Change-Id: Iab978500aad94c257acf7bf207bfc38b9496dab3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Sat, 6 Jun 2015 13:00:20 +0000 (22:00 +0900)]
common: change file name system_info_no_file.c to system_info_file.c
- The codes are related with reading information from certain files.
Thus the name is changed from 'no_file' to 'file'
Change-Id: I238a4338b9494d5349362b7fe98750ea022be730
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Sat, 6 Jun 2015 12:27:38 +0000 (21:27 +0900)]
tizen id: remove dependency with libcryptsvc
- Previous: system-info uses libcryptsvc to get
values with base 64 encoding. But libcryptscv
is used by other apps and the apps can use
system-info. So circular dependency problem
can be occurred
- Now: system-info uses glib fot base 64 encoding.
Change-Id: I33819041e305db6d2210d08f8e9aec7b515a8365
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Taeyoung Kim [Sat, 6 Jun 2015 12:18:20 +0000 (21:18 +0900)]
common: move file paths to spec file
- The paths of config files are configurable.
Thus the positions to define the paths are moved to the spec file.
Change-Id: Ia15309e6286eba38be5de7d934257d469d42920d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Suchang Woo [Tue, 21 Apr 2015 12:31:01 +0000 (21:31 +0900)]
Fix build break - iniparser API is changed
iniparser_getstr() is changed to iniparser_getstring() in iniparser v3.1
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
Change-Id: Ib0ffdc822b8a32421d9fbd8ec8eef1eea4ab1bce
Taeyoung Kim [Mon, 16 Feb 2015 10:20:28 +0000 (19:20 +0900)]
build info: change build info operation to read /etc/info.ini file
- Build information is created when image is created.
- Build information is storaged in /etc/info.ini and thus
system-info should read the ini file.
- The keys for build information is already opened to tizen.org
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.mobile.native.appprogramming/html/guide/system/sysinfo.htm
Change-Id: Id8044d8edb681fb9c8bdb50e8a9345914be3a732
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Jiyoung Yun [Fri, 6 Feb 2015 11:18:54 +0000 (20:18 +0900)]
system-info: Merge Tizen 2.3 source code into tizen branch
Details:
https://developer.tizen.org/dev-guide/native/2.3.0/org.tizen.mobile.native.apireference/group__CAPI__SYSTEM__SYSTEM__INFO__MODULE.html
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I379ec0a30b5f726f1e19f33a8b2c7bcd2c1a6936
Mikko Ylinen [Wed, 12 Nov 2014 12:25:54 +0000 (14:25 +0200)]
Fix info.ini generator for Tizen 3.0
Bug-Tizen: TC-2047
Change-Id: Ie3a3d59818902c8ec74922e0fd875e4338cace55
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Casey Schaufler [Wed, 27 Aug 2014 16:12:57 +0000 (09:12 -0700)]
Merge "clean spec file for yocto compliance." into tizen
Mikko Ylinen [Tue, 29 Jul 2014 04:36:14 +0000 (07:36 +0300)]
Remove an obsolete BuildRequires to capi-media-sound-manager
Change-Id: Icb871ea03eab5ab9f3a2cc8ce3ed4de9d9872baa
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Ronan Le Martret [Fri, 11 Jul 2014 09:36:51 +0000 (11:36 +0200)]
clean spec file for yocto compliance.
Change-Id: Ia6540cdeff5652db99d63a6b1f8916582725e694
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Nicolas Zingilé [Mon, 24 Feb 2014 10:19:32 +0000 (11:19 +0100)]
Enable build with iniparser v 3.1
Bug-Tizen: PTREL-101
Change-Id: I1cd50acc3aafdbaee406ff1786242a1980a7124c
Signed-off-by: Nicolas Zingilé <nicolas.zingile@open.eurogiciel.org>
wangfei [Fri, 20 Dec 2013 08:10:33 +0000 (03:10 -0500)]
init wayland support.
The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0.
Basically and consistently, two macros were used "with wayland" and "with x".
Below summarize the combination of the macros:
| wayland | x | meaning
|---------------------------
| 0 | 1 | pure X11 platform(no wayland)
| 1 | 0 | pure wayland platform (no X11)
| 1 | 1 | wayland but X compatibility
| 0 | 0 | no X and no wayland
This method unifies the meaning and usage. Deploy this method to capi-system-info package.
Currently we need "pure wayland platform (no X11)" status,so "with wayland" and "with x" are
defined into "1" and "0" in build.conf file.If you need other status of above illustration,
please change values of "with x" and "with wayland" in your build.conf file.
Change-Id: If8c3b9e099d60fc892140fe480fe6b52e8a66d6a
Signed-off-by: wangfei <feix.w.wang@intel.com>
Anas Nashif [Mon, 16 Sep 2013 21:24:45 +0000 (17:24 -0400)]
update changelog
Anas Nashif [Mon, 16 Sep 2013 21:23:15 +0000 (17:23 -0400)]
Merge branch 'tizen_2.2' into tizen
Conflicts:
CMakeLists.txt
packaging/capi-system-info.spec
src/system_info_device.c
src/system_info_platform.c
Nam KwanWoo [Mon, 9 Sep 2013 10:07:58 +0000 (19:07 +0900)]
fix build error
/home/abuild/rpmbuild/BUILD/capi-system-info-0.1.14/src/system_info_device.c:490:2:
error: implicit declaration of function 'net_nfc_is_supported' [-Werror=implicit-function-declaration]
Change-Id: Iae72ff724d0a259593a5720253229e3a2440bab0
Signed-off-by: Nam KwanWoo <kw46.nam@samsung.com>
Chengwei Yang [Sun, 25 Aug 2013 01:42:59 +0000 (09:42 +0800)]
Remove debian packaging stuff
Change-Id: I17b87aff7dc0a621d822896a366dfde1a8406656
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>