Ilho Kim [Tue, 31 May 2022 06:39:20 +0000 (15:39 +0900)]
Release version 0.22.16
Changes:
- Add capabilities to pkg db recovery service
Change-Id: I690e7d85009aca36098ad7cdafeb0079b24d5bef
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 30 May 2022 06:55:19 +0000 (15:55 +0900)]
Add capabilities to pkg db recovery service
This service can execute backend(tpk-backend,wgt-backend,unified-backend)
so same capabilities is needed
Change-Id: I8441449049658df805d39203c3d0d823e6704b7f
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 27 May 2022 07:12:17 +0000 (16:12 +0900)]
Release version 0.22.15
Changes:
- Fix spec file for coverage measurement
Change-Id: I73322426d54d781121c1fd783989dea6eb94d68c
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 27 May 2022 00:53:32 +0000 (09:53 +0900)]
Fix spec file for coverage measurement
To measure code coverages automatically, a run-unittest.sh is needed
Change-Id: I80baad904065d8639910e62a035ff04a0f3a5660
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Changgyu Choi [Wed, 25 May 2022 01:46:52 +0000 (10:46 +0900)]
Release version 0.22.14
Changes:
- Refactor WorkerThread
- Remove TODOs
- Add missing filter checker
Change-Id: I630a6faf5e1c271144adc01eb42e61c5461a7e7a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Mon, 23 May 2022 10:20:34 +0000 (19:20 +0900)]
Add missing filter checker
Change-Id: Ib51e5e25e2c3595d4f8804224f7a0ba1faa47d49
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Thu, 12 May 2022 06:22:15 +0000 (15:22 +0900)]
Remove TODOs
Get UID from sender's PkgRequest and send it into each RequestHandler
Change-Id: I751d1c99d04aa74af76ba2f61be434d8991f579d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Thu, 12 May 2022 08:17:05 +0000 (08:17 +0000)]
Merge "Refactor WorkerThread" into tizen
Changgyu Choi [Fri, 6 May 2022 08:21:51 +0000 (17:21 +0900)]
Refactor WorkerThread
Changes:
- Moves Scheduler to CreateCacheRequestHandler.
- Adds PreExec() & PostExec() to RequestHandler steps.
- Adds RequestHandlerFactory for loose coupling.
Change-Id: I0520f73164d335e6b5db97000db25c4132caad6d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Ilho Kim [Thu, 12 May 2022 04:10:12 +0000 (13:10 +0900)]
Release version 0.22.13
Changes:
- Check map data in cache has key before access
Change-Id: Ib32a7eeaeb52ab5e49d40b5fe92831538fc37e4a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 12 May 2022 03:35:01 +0000 (12:35 +0900)]
Check map data in cache has key before access
map's operator[] can modify it's data
it can cause problem in multithreaded environments
Change-Id: I2aa75be1ae70a675e6875039a25af0243a1eeb90
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 11 May 2022 04:09:25 +0000 (13:09 +0900)]
Release version 0.22.12
Changes:
- Check if database is modified when making cache
Change-Id: I3ce72ada1db9180ecc60bcf90d1bd73992677d0d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 10 May 2022 11:46:35 +0000 (20:46 +0900)]
Check if database is modified when making cache
If there is a writer tring access db directly,
there is a possibility that the database will change while creating the cache
so check the change time of the database before and after making the cache
and detect the modification of the database
if so fails the cache creation task
Change-Id: Ib606db06e424b5dfca2414592938a10f43ab4240
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Fri, 29 Apr 2022 06:04:38 +0000 (15:04 +0900)]
Release version 0.22.11
Changes:
- Change scheduling policy to a round-robin policy
Change-Id: I4d99836568c02b97fb0683be1be09cbfa537eb52
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 28 Apr 2022 00:37:44 +0000 (09:37 +0900)]
Change scheduling policy to a round-robin policy
Before creating the cache information(CREATE_CACHE), the worker thread of
pkginfo-server adjusts scheduling policy to the round-robin policy to improve
the performance temporaily. And, the CREATE_CACHE command is started after
the worker threads are created immediately.
Calling TrimCache() is removed from TrimMemory().
Change-Id: I1ecc2aabdbdb5f171b411704bd5cbef15c0e17b1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghyun Yeon [Fri, 22 Apr 2022 06:38:57 +0000 (15:38 +0900)]
Release version 0.22.10
Changes:
- Change db schema comparison logic
- Refactor pkgmgr-info
- Revert refactor patch and its release patch
- Add lightuser feature
Change-Id: I64bf330689af2f87f82dea1216820b22a1a47ef0
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 20 Apr 2022 04:52:34 +0000 (13:52 +0900)]
Add lightuser feature
Add columns, getter, setter for lightuser feature
Change-Id: I7d0e84c9a425f886373e125be3a86d578dda5942
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 20 Apr 2022 02:34:14 +0000 (11:34 +0900)]
Revert refactor patch and its release patch
It causes some thread related exception
Change-Id: I12c1ccadf82a75882e7d7472aadab80ff79a0681
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 8 Apr 2022 08:26:24 +0000 (17:26 +0900)]
Release version 0.22.10
Changes:
- Change db schema comparison logic
- Refactor pkgmgr-info
Change-Id: I049893d2e71e63dc800a8f920a6e73ac5f4053b6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 13 Jan 2022 04:26:28 +0000 (13:26 +0900)]
Refactor pkgmgr-info
- Separace Cache logic from DBHandleProvider.
- Change function name for readability.
- Add UID setter/getter function at AbstractRequestHandler to provide uid at CacheRequestHandler.
- Apply early-return policy to reduce indentation.
Change-Id: I1f2bc50247178a70c2268c81d2f2fc5bd2e75b2c
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 25 Mar 2022 08:30:04 +0000 (17:30 +0900)]
Change db schema comparison logic
DB schema couldn't be separated by newline when db has upgraded
using "alter table" sql statement.
To compare it with db schema separated by newline, parse retrieved
schema with "," and trim empty lines to separate schema with one
colum definition.
Change-Id: I14c0f58c67f668962aac9a574ff2161132e69702
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 6 Apr 2022 06:19:27 +0000 (15:19 +0900)]
Release version 0.22.9
Changes:
- Fix metadata filter when using cached app info
Change-Id: I63eb4f35ad2319c1b184b2e4ed9e4bf5d012d678
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 6 Apr 2022 04:49:57 +0000 (13:49 +0900)]
Fix metadata filter when using cached app info
when compare metadata value using metadat filter
there is need to check the exact matching of values using 'strcmp' not 'strstr'
Change-Id: I61f85c4a3e50278077730eb7190caeb0f6b484eb
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 21 Mar 2022 09:36:18 +0000 (18:36 +0900)]
Release version 0.22.8
Changes:
- Trim cache after set query request
Change-Id: Id587ba5963374b9349c31c98cff9dd6602e32709
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 21 Mar 2022 08:51:12 +0000 (17:51 +0900)]
Trim cache after set query request
After the write query request is completed
the cache value and database value are different
there is a need to call trim cache directrly after excuting write query
Change-Id: Icc7f87fa60c372fad7df6e31df4ae5055d36419d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Mon, 21 Mar 2022 06:22:45 +0000 (15:22 +0900)]
Release version 0.22.7
Changes:
- Add parameters for offline mode
- Separate pkgid and pkg manifest
Change-Id: I562fcff0ca75d7530e944683816ba8ed02fbcdcf
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 21 Mar 2022 06:23:17 +0000 (06:23 +0000)]
Merge "Add parameters for offline mode" into tizen
Junghyun Yeon [Fri, 18 Mar 2022 07:22:06 +0000 (16:22 +0900)]
Separate pkgid and pkg manifest
Change-Id: I35e1d4caaa8567d80083801930948684f6954714
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 17 Mar 2022 03:34:54 +0000 (12:34 +0900)]
Add parameters for offline mode
Callback registration for language change is unnecessary
if code operates as offline mode.
Change-Id: I89067c8305a81c8ffc3b0bf67f7bb10789051767
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 22 Feb 2022 03:29:45 +0000 (12:29 +0900)]
Release version 0.22.6
Changes:
- Fix static analysis issue
Change-Id: Ibc5cc3d26225ef39e55a2f8527e4c7e33578cf97
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 17 Feb 2022 02:33:04 +0000 (11:33 +0900)]
Fix static analysis issue
- Uninitialized scalar field
Change-Id: Ic0f2ed78562f9d74f7a8ad346a10384d35419504
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 20 Jan 2022 05:18:07 +0000 (14:18 +0900)]
Release version 0.22.5
Changes:
- Change gcov installation path
Change-Id: I7b6e466b96696ce1f12939ed531d1109c9532ccf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 20 Jan 2022 04:12:48 +0000 (13:12 +0900)]
Change gcov installation path
Change-Id: If8c9e82810f10280e97d3e6706e1239701bbb0dd
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Mon, 17 Jan 2022 00:36:12 +0000 (09:36 +0900)]
Release version 0.22.4
Changes:
- Fix crash issue
Change-Id: I9893e4ced85d075130d08d3503ed2bcdcf3f61d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Sun, 16 Jan 2022 23:27:16 +0000 (08:27 +0900)]
Fix crash issue
While calling AddApplication() with calling std::move(), pkginfo-server process
has crashed. 'app->appid' causes the crash issue.
Change-Id: I006516a9553c7a52220afe85d2f80ae10fa24ff0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghyun Yeon [Wed, 12 Jan 2022 05:56:05 +0000 (14:56 +0900)]
Release version 0.22.3
Changes:
- Refactor pkgmgr-info
- Revert "Replace mock API"
- Merge "Revert "Replace mock API"" into tizen
Change-Id: Ib6e8b6599bca867107aa2f1f4c4cf8ee752b683a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghoon Park [Wed, 12 Jan 2022 05:55:42 +0000 (05:55 +0000)]
Merge "Revert "Replace mock API"" into tizen
Junghoon Park [Wed, 12 Jan 2022 05:54:40 +0000 (05:54 +0000)]
Revert "Replace mock API"
This reverts commit
e9bab6113e40817d021b167c6cd6639dd27003e7.
Change-Id: I8c5e54093e59c9b6b548c9c6cae60f136fadedd3
jh9216.park [Tue, 11 Jan 2022 01:08:02 +0000 (20:08 -0500)]
Refactor pkgmgr-info
- Use std::vector instead of GHashTable to move application_x data
- Change c code to cpp code
Change-Id: Ibdccf3a216a611266e8c4e7d02f539f92c9b5c4e
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Junghyun Yeon [Tue, 11 Jan 2022 09:21:23 +0000 (18:21 +0900)]
Release version 0.22.2
Changes:
- Replace mock API
- Change method name
- Minor refactor
Change-Id: Ia44f0792a4ee3013bb008866a2189f2468683280
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Thu, 6 Jan 2022 05:35:06 +0000 (14:35 +0900)]
Minor refactor
- Remove unnecessary parameter and local variable which is no longer used.
- Extract duplicate codes info function.
- Change variable name for readability.
- Adjust code order for readability.
Change-Id: I98050d35f0fd9a256895e698918fc34f8840fad1
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
jh9216.park [Mon, 10 Jan 2022 01:38:37 +0000 (20:38 -0500)]
Change method name
- I changed the method name from GetAppHandle to DetachAppHandle because it
moves container 'handle_list_'
Change-Id: I67868253c8b3527ef81a88380c28cee0559c65d3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
jh9216.park [Mon, 10 Jan 2022 00:57:19 +0000 (19:57 -0500)]
Replace mock API
- Use MOCK_METHOD instead of deprecated MOCK_METHODx
Change-Id: I03baf3a89f5c3663d74fa606fbd81cc61539623d
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Ilho Kim [Thu, 6 Jan 2022 05:35:41 +0000 (14:35 +0900)]
Release version 0.22.1
Changes:
- Fix memory leak
- Add boot-sequence to manifest.xsd
- Skip SetMemoryMode in offline mode
Change-Id: Ia9c61075c42c15f5bfe5ca1c0fbfb1d29afa4130
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Thu, 6 Jan 2022 04:20:27 +0000 (13:20 +0900)]
Skip SetMemoryMode in offline mode
SetMemoryMode is unnecessarily performed during mic build
so skip SetMemoryMode operation in offline mode
Change-Id: I4ab061f097aa488abbcac4d37e23e06fdb182700
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
HwanKyu Jhun [Thu, 6 Jan 2022 04:54:29 +0000 (04:54 +0000)]
Merge "Add boot-sequence to manifest.xsd" into tizen
SukhyungKang [Fri, 26 Nov 2021 11:44:30 +0000 (20:44 +0900)]
Add boot-sequence to manifest.xsd
The UI & Service application can define boot-sequence to the tizen-manifest.xml.
The developer can adjust dependencies of on-boot apps using boot-sequence.
The application manager starts on-boot apps using boot-sequence.
This feature is only available for inhouse developer.
Change-Id: I626c2ec893225dcf0b16eb16b8d2f38e9e12890c
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Ilho Kim [Thu, 6 Jan 2022 01:32:11 +0000 (10:32 +0900)]
Fix memory leak
Change-Id: I0407ab804cbdc3ea911e617c144efcf3ab3275cc
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 5 Jan 2022 07:45:26 +0000 (16:45 +0900)]
Release version 0.22.0
Changes:
- Fix static analysis issues
- Add to cache pkg & appinfo
- Create cache on a separate thread
Change-Id: I00cfea4874037092161ce8255447726214477337
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 1 Nov 2021 09:01:54 +0000 (18:01 +0900)]
Create cache on a separate thread
Change-Id: Ia00e4dea4b1b38cc7bd3876ac1d7695e6997c716
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Changgyu Choi [Thu, 8 Jul 2021 11:31:17 +0000 (20:31 +0900)]
Add to cache pkg & appinfo
It is very expensive cost that access the sqlite db.
If getting pkg or app info query is called,
the server caches the info lists.
The cache data is released, when the set query was called.
Change-Id: I83380e1726bd7ae2acac6860cce05ce04326830e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Tue, 4 Jan 2022 06:14:01 +0000 (15:14 +0900)]
Fix static analysis issues
Change-Id: I8d998de92fe576b64e87aef6dd7d3dbe132f8e84
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Changgyu Choi [Wed, 15 Dec 2021 06:20:07 +0000 (15:20 +0900)]
Release version 0.21.14
Changes:
- Remove macro for supporting old glib
Change-Id: I6fc05bc10c00d383ffabc3d3b0f588c67a0c4295
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 15 Dec 2021 05:19:13 +0000 (14:19 +0900)]
Remove macro for supporting old glib
Change-Id: I218dfa031d79e69480c16e0b355b3380f46f6619
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
jh9216.park [Wed, 15 Dec 2021 00:50:01 +0000 (19:50 -0500)]
Release version 0.21.13
Changes:
- Fix build error for new glib
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Change-Id: I4a9aab764da50fa809dbf5ea5ae03228500e4cb1
jh9216.park [Wed, 15 Dec 2021 00:45:08 +0000 (19:45 -0500)]
Fix build error for new glib
Change-Id: I583a83f837ddff0ab75a5edf577b9b40242f9af0
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
Hwankyu Jhun [Fri, 10 Dec 2021 02:03:30 +0000 (11:03 +0900)]
Release version 0.21.12
Changes:
- Adjust pkgmgr-info.service depenedency
Change-Id: If5836c9d050788d1aec7b03f56783bbe48d9f518
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 9 Dec 2021 00:46:32 +0000 (09:46 +0900)]
Adjust pkgmgr-info.service depenedency
To improve launching performance of the pkginfo-server daemon,
dependencies of the service file is adjusted.
The 'After=pkgmgr-info.socket' dependency is added on the pkgmgr-info.service.
The 'Before=sockets.target' dependency is added on the pkgmgr-info.socket.
And, the 'DefaultDependencies=no' option is added on the pkgmgr-info.socket.
Change-Id: I653463020585419a28cd435922764ad820fa6718
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Ilho Kim [Sun, 21 Nov 2021 23:45:10 +0000 (08:45 +0900)]
Release version 0.21.11
Changes:
- Fix thread synchronization when clear cache
Change-Id: Id2a5bcaafce65dc8596a530582997c40aff0c6ad
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Fri, 19 Nov 2021 08:15:18 +0000 (17:15 +0900)]
Fix thread synchronization when clear cache
RemoveCache operation need to get lock before operation
for syncronization with other read threads
Change-Id: I3cd78d81e6d4612a6f19531d8c7bda5e8cf883f5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Changgyu Choi [Thu, 18 Nov 2021 00:26:23 +0000 (09:26 +0900)]
Release version 0.21.10
Changes:
- Fix to set locale
Change-Id: I280cdb6eb762841ed71a25b295e0ec13145fb47a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Fri, 12 Nov 2021 08:51:41 +0000 (17:51 +0900)]
Fix to set locale
Some language codes are being another pattern with "XX_XX".
This patch generalize algorithm that convert to locale.
Change-Id: I4b55dcd185ecd029562da036aebbc5ac6ab6eefe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Wed, 10 Nov 2021 07:36:50 +0000 (16:36 +0900)]
Release version 0.21.9
Changes:
- Fix memory leak
- Fix minor coding rule
Change-Id: I4a56e349ab8a1eff0a4e38e775854058e4fffb65
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Thu, 28 Oct 2021 07:58:36 +0000 (16:58 +0900)]
Fix minor coding rule
Change-Id: Idcb957159f3861d7374d16c5dad7f23dbc9060c2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Thu, 28 Oct 2021 04:51:10 +0000 (13:51 +0900)]
Fix memory leak
res_type, res_version should be free
Change-Id: Ia32662389504fced7b8bd63a1f0fd5898e0a0237
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Hwankyu Jhun [Thu, 28 Oct 2021 05:52:14 +0000 (14:52 +0900)]
Release version 0.21.8
Changes:
- Change codes for readability
- Fix some API's request type checked
- Fix wrong parameter
- Add pkgmgr-info-server pkgconfig file
Change-Id: Ib3197ca45f9f0c4b8140ae6c239a74e6350609f9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 21 Oct 2021 00:15:07 +0000 (09:15 +0900)]
Add pkgmgr-info-server pkgconfig file
To improve db direct access performance, the pkgmgr-info-server.pc file
is added for compilation. The amd package will be built using the pkgconfig.
This is to remove the behavior of opening the so file at runtime.
Change-Id: I1c7b9eae6bd181c8b89c8b13735df7788b5ddbf3
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Changgyu Choi [Wed, 13 Oct 2021 02:58:52 +0000 (11:58 +0900)]
Fix wrong parameter
Change-Id: If8969221815f634edea4cca6779921ed78b59d9c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Changgyu Choi [Thu, 30 Sep 2021 00:51:58 +0000 (09:51 +0900)]
Fix some API's request type checked
Change-Id: I5bd5de1a4abcc9732d6070998257a92ecba123fe
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
Junghyun Yeon [Mon, 26 Jul 2021 10:13:44 +0000 (19:13 +0900)]
Change codes for readability
- Adjust include file order.
- Add some blank lines for readability.
- Apply early-return policy to reduce indentation depth.
- Extract duplicated codes into function.
- Remove unnecessary local variables.
- Move parameter checking logics to another function.
Change-Id: I45b86175e90e559c7eccf263f21841042bec1d96
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Mon, 13 Sep 2021 07:20:35 +0000 (16:20 +0900)]
Release version 0.21.7
Changes:
- Change pkg db version to 30007
Change-Id: I771c7b02b9ed84b830c51f2b55748e210fa72d15
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 10 Sep 2021 09:32:07 +0000 (18:32 +0900)]
Change pkg db version to 30007
Change-Id: I848e230fdcf69cd108d830cd3f5feade82440043
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Wed, 8 Sep 2021 08:31:18 +0000 (17:31 +0900)]
Release version 0.21.6
Changes:
- Add dac_override capability in pkgmgr-info.service
Change-Id: I007c0ef04ff7d0d3418f73f598129863ed437d20
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 8 Sep 2021 06:49:11 +0000 (15:49 +0900)]
Add dac_override capability in pkgmgr-info.service
pkgmgr-info service need that capability for accessing user database
Change-Id: Idd875e7c74fe4cde506ca1bcae64754f08d64627
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 23 Jul 2021 02:38:55 +0000 (11:38 +0900)]
Release version 0.21.5
Changes:
- Add pkg update, delete unittest
- Change log format
- Change CPU scheluding priority and policy
- Store global uid as static variable
Change-Id: I802639948a07f9ce3fbe5a5480c6b9c35628129a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 6 Jul 2021 06:56:39 +0000 (15:56 +0900)]
Store global uid as static variable
Change-Id: I7b7fdaf6072f2b9af82aa3f491de50b6fc8a92a6
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 21 Jul 2021 10:17:05 +0000 (19:17 +0900)]
Change CPU scheluding priority and policy
Change-Id: Ic35b6c16a6a7f40066c793b83b230d84b78274ca
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Wed, 14 Jul 2021 09:03:32 +0000 (18:03 +0900)]
Change log format
Change-Id: Ib2039794e719cf1e4a06e38b7509d05be7186e0a
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 2 Jul 2021 10:21:22 +0000 (19:21 +0900)]
Add pkg update, delete unittest
Change-Id: Ie20f8a77532cfdd28f13066a0dad628539ccd99d
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 6 Jul 2021 06:35:39 +0000 (15:35 +0900)]
Release version 0.21.4
Changes:
- Cleanup code
- Separate parser db handler and query db handler unit test
- Fix static analysis issue
- Minor cleanup unit test
- Remove unnecessary log
Change-Id: I48291d50b2e983284b4cafcf0b987fdb50f78da7
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 2 Jul 2021 09:54:56 +0000 (18:54 +0900)]
Remove unnecessary log
Change-Id: I3395d1453c06e0c872d8ac72ae0860ab7145ce89
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 2 Jul 2021 10:05:04 +0000 (19:05 +0900)]
Minor cleanup unit test
Change-Id: I0e43c4e0e2ae0e4f42ba976986c2f956e23a5621
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 6 Jul 2021 00:55:44 +0000 (09:55 +0900)]
Fix static analysis issue
- Fix uninitialized local variable
- Fix sql injection
Change-Id: Ic0d572e2b0354ee237194d5ec3c5c1aafad3472d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 2 Jul 2021 09:54:23 +0000 (18:54 +0900)]
Separate parser db handler and query db handler unit test
Change-Id: Idfa916390dfaf15aeb7ac6b0ee6ef70dc1b317a9
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 2 Jul 2021 09:30:02 +0000 (18:30 +0900)]
Cleanup code
- Change codes for coding rule.
- Add some empty lines for readability.
- Remove unnecessary function variable declaration.
- Remove certinfo remove function which is no longer used.
Change-Id: If7d8206982d4989f34ab024caa6e52ea5a42b9da
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Ilho Kim [Tue, 29 Jun 2021 01:57:41 +0000 (10:57 +0900)]
Release version 0.21.3
Changes:
- Use LIB_INSTALL_DIR to get library path
Change-Id: Iaf264544b628140f0c9b3b6730d86746df6ad4ca
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Tue, 29 Jun 2021 01:38:50 +0000 (10:38 +0900)]
Use LIB_INSTALL_DIR to get library path
The library path may vary depending on the architecture
Change-Id: If60268e6efe0026255b50ee2991e5c818f2633a2
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 28 Jun 2021 10:54:41 +0000 (19:54 +0900)]
Release version 0.21.2
Remove sqlite3 dependency from pkgmgr-info
Add unittests
Change-Id: Ie2b71d1d81ed0abe52c9d04f5c9daddf6e38ef7a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 28 Jun 2021 09:10:40 +0000 (18:10 +0900)]
Merge branch 'master' of github.sec.samsung.net:appfw/pkgmgr-info into tizen
Change-Id: I404ed720f12f81f00ca8c5cf1acf27370bee14ee
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 21 Jun 2021 01:49:44 +0000 (10:49 +0900)]
Fix query request's behavior
pkgmgrinfo_appinfo_usr_get_localed_label
-> Need to check all of the result
pkgmgrinfo_appinfo_usr_get_datacontrol_info
pkgmgrinfo_appinfo_usr_get_datacontrol_appid
pkgmgrinfo_appinfo_usr_get_datacontrol_trusted_info
-> Find global db first and user db later
pkgmgrinfo_updateinfo_get_usr_updateinfo
-> Check only the result related to input uid
Change-Id: I432508978d0d19bbd387c966ffb135636a61b9a4
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 21 Jun 2021 02:11:18 +0000 (11:11 +0900)]
Fix QueryParcelable
Need to pass uid for user db request
Change-Id: Ib32c027b306993c824f02f92fcd88bcc7a9700d5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Wed, 16 Jun 2021 02:05:13 +0000 (11:05 +0900)]
Fix ResultParcelable to handle null char pointer
Change-Id: Ia0370f48c59fc9a096396750993276092fdbcb71
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Ilho Kim [Mon, 14 Jun 2021 09:31:14 +0000 (18:31 +0900)]
Fix QueryParcelable to handle null char pointer
Change-Id: I1c1c02487beebd0586ad4423226231cab93c5167
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
Junghyun Yeon [Fri, 18 Jun 2021 12:46:40 +0000 (21:46 +0900)]
Cleanup code
- Minor refactor codes.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 18 Jun 2021 10:19:49 +0000 (19:19 +0900)]
Cleanup db handlers and db handle provider
- Add empty lines for readability.
- Move initialization to initialization list for consistency.
- Fix minor coding rule.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 18 Jun 2021 10:01:28 +0000 (19:01 +0900)]
Cleanup abstract_db_handler
- Move initialization of member variable into initialize lists for consistency.
- Remove flag parameter of open or creating database functions.
- Add some empty lines at class definition for readability.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 18 Jun 2021 09:22:08 +0000 (18:22 +0900)]
Fix abstract_db_handler
- Check coding rule.
- Move empty constructor implementation into header.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 18 Jun 2021 09:14:09 +0000 (18:14 +0900)]
Remove unnecessary routines
Checking database lock routine is unnecessary.
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Fri, 18 Jun 2021 07:28:07 +0000 (16:28 +0900)]
Fix additional coding rule
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
Junghyun Yeon [Tue, 8 Jun 2021 10:07:21 +0000 (19:07 +0900)]
Fix coding rule
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>