platform/core/multimedia/media-server.git
3 days agoFix vconf callback function 72/325372/4 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250613.092106 accepted/tizen/unified/x/20250613.100733
Minje Ahn [Tue, 10 Jun 2025 01:14:12 +0000 (10:14 +0900)]
Fix vconf callback function

Change-Id: I4f69cba86c05881ca40f1f73d9d3744fcc21213d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 days agofile size related code cleanup 58/325358/3 accepted/tizen/unified/20250612.143608 accepted/tizen/unified/x/20250612.222027
Minje Ahn [Tue, 10 Jun 2025 00:28:24 +0000 (09:28 +0900)]
file size related code cleanup

Change-Id: Id112e3d388f9246071571f108b1a5ad6cd3f3ef4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 weeks agoFix build error 97/324397/1 accepted/tizen/unified/20250516.202943 accepted/tizen/unified/x/20250517.132158
Minje Ahn [Fri, 16 May 2025 08:28:55 +0000 (17:28 +0900)]
Fix build error

Change-Id: I0f04de6a613d254230ea7174f25c0f6fce4163e7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
7 weeks agoRemove noti for batch insertion 84/323084/1 accepted/tizen/unified/20250516.111223 accepted/tizen/unified/x/20250517.043840
Minje Ahn [Wed, 23 Apr 2025 01:58:55 +0000 (10:58 +0900)]
Remove noti for batch insertion

Change-Id: I1d7cb961deab269be213ab1a2fb94650a0ccc6c8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
8 weeks agoRemove scan_ignore 10/322710/1
Minje Ahn [Tue, 15 Apr 2025 00:11:52 +0000 (09:11 +0900)]
Remove scan_ignore

Change-Id: I8b8b0aa3edcb6a66dd47d69b08edf649147e55ac
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoRemove the batch insert thread 46/322646/1
Minje Ahn [Mon, 14 Apr 2025 03:36:18 +0000 (12:36 +0900)]
Remove the batch insert thread

Removed the thread to reduce the media-scanner's memory usage.

Change-Id: I15640affc9047d746327377c78f1ab5fc7a2ad6b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoFix log message 50/322250/1 accepted/tizen/unified/20250428.091713 accepted/tizen/unified/x/20250429.081825
Minje Ahn [Mon, 7 Apr 2025 05:08:49 +0000 (14:08 +0900)]
Fix log message

Used the correct vconf key name.

Change-Id: I480d797d3cb963d5794326d1dc8554bd07eb6e5d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoFix coverity issue 57/321757/1 accepted/tizen/unified/20250328.082257 accepted/tizen/unified/x/20250330.015843
Minje Ahn [Thu, 27 Mar 2025 23:50:56 +0000 (08:50 +0900)]
Fix coverity issue

Change-Id: Ic973978287b4949525625da3267cc776f0fff9d6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoUpdate validity related code 11/321611/5
Minje Ahn [Wed, 26 Mar 2025 00:26:01 +0000 (09:26 +0900)]
Update validity related code

The related codes have been modified according to the changes in set_storage_validity().

Change-Id: I54a2f2fd0f82f493e0a15cea7fc5ac804c798119
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoUpdate function name 08/321608/2
Minje Ahn [Wed, 26 Mar 2025 00:09:35 +0000 (09:09 +0900)]
Update function name

Changed a funtion name to reset_all_storage_validity from set_all_storage_validity

Change-Id: I18618f1c7321f7103ae86a1bd659263cef830390
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoRemove unused sqlite handles 04/321604/2
Minje Ahn [Tue, 25 Mar 2025 23:46:08 +0000 (08:46 +0900)]
Remove unused sqlite handles

Change-Id: I34a41750f38f5fd25a4e3454d0f168e7e6587fc1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoAdd sql_autoptr 03/321603/1
Minje Ahn [Tue, 25 Mar 2025 23:05:13 +0000 (08:05 +0900)]
Add sql_autoptr

Added auto free pointer for sqlite3

Change-Id: Ibe3a5b2956bf0d661b5d3c2bf01071ded873b1e1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoRecover media table 81/321381/5 accepted/tizen/unified/20250326.054112 accepted/tizen/unified/x/20250326.070139
Minje Ahn [Wed, 19 Mar 2025 22:35:26 +0000 (07:35 +0900)]
Recover media table

This is a code to recover the media table when the db is corrupted due to frequent insertion/deletion of external storage.

Change-Id: I1f58ce0632ee838603c24eed1905514c49b921aa
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 months agoMerge "Add natural collate" into tizen
Minje ahn [Mon, 17 Mar 2025 00:16:34 +0000 (00:16 +0000)]
Merge "Add natural collate" into tizen

3 months agoAdd natural collate 87/321087/1 accepted/tizen/unified/20250317.142115 accepted/tizen/unified/20250317.143617 accepted/tizen/unified/x/20250318.035655
Minje Ahn [Thu, 13 Mar 2025 22:48:24 +0000 (07:48 +0900)]
Add natural collate

A natural collate type was added under the name 'MIXED'.
Since 'NATURAL' is a reserved word, we will use 'MIXED'.

Change-Id: I5da7b073eaf49e105fd74b552aa3d2cd6061cd50
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 months agoRemove OSU script media-server 36/321036/1
h.ongsitco [Thu, 13 Mar 2025 07:41:59 +0000 (15:41 +0800)]
Remove OSU script media-server

Change-Id: I0bf46421058cb990dcb3ae6963e4abfcf74646c3

3 months agoUpdate wrong enum value description 39/320739/1 accepted/tizen/unified/20250311.054100 accepted/tizen/unified/x/20250311.211305
hjkim [Fri, 7 Mar 2025 00:23:08 +0000 (09:23 +0900)]
Update wrong enum value description

Change-Id: Ieb72ced80e8dc7d7832522b65706eddbf701e8f3

3 months agoMerge fixes on media-server and media-scanner-v2 12/320412/1 accepted/tizen/unified/20250228.155413 accepted/tizen/unified/x/20250303.044908
Josh Merlin [Fri, 28 Feb 2025 07:14:27 +0000 (15:14 +0800)]
Merge fixes on media-server and media-scanner-v2

- Fix media-server deadlock when stopping media scanner
- Add owner first before sending request to media scanner
- Set folder and items as invalid first before setting storage validity
- Move setting MS_DB_UPDATING earlier

Change-Id: If10b9dd98cc893a996add655428464de5e9e314c

3 months agoChange module name 39/320339/1 accepted/tizen/unified/20250228.071929 accepted/tizen/unified/x/20250301.185952
Minje Ahn [Thu, 27 Feb 2025 00:37:32 +0000 (09:37 +0900)]
Change module name

Changed PHONESTATUS to VCONF.

Change-Id: I231d4b87fbb651dc57d4cda27090a48d87e9db80
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 months agoRemove feature checker 37/320337/1
Minje Ahn [Thu, 27 Feb 2025 00:32:24 +0000 (09:32 +0900)]
Remove feature checker

No need 'http://tizen.org/feature/storage.external' checker.
Even if there is no feature key verification, exception handling can be done internally.

Change-Id: Id2439a98a916dd4b122b57734e64f6eaf59cebb2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 months agoRemove db space for ebook 43/320243/1 accepted/tizen/unified/20250227.050112 accepted/tizen/unified/x/20250227.210238
Minje Ahn [Tue, 25 Feb 2025 23:23:31 +0000 (08:23 +0900)]
Remove db space for ebook

Change-Id: Ie5d758ff059fbb2b3350232cb5bbc40345c74c9b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 months agoUpdate the annotation 55/319955/2 accepted/tizen/unified/20250224.031258 accepted/tizen/unified/x/20250225.083139
Minje Ahn [Thu, 20 Feb 2025 07:36:28 +0000 (16:36 +0900)]
Update the annotation

Removed 'dcm' from the annotation.

Change-Id: If6258b5bee66cf9dc7090981066269f78c457d04
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 months agoRemove media type checker 10/319710/1 accepted/tizen/unified/20250218.161756 accepted/tizen/unified/x/20250221.042128
Minje Ahn [Mon, 17 Feb 2025 01:26:49 +0000 (10:26 +0900)]
Remove media type checker

Move the checker to libmedia-service.

Change-Id: I732c94f203c40fe74d1f3fc2942a0e86d816621f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 months agoRemove PVR features 70/315370/4 accepted/tizen_unified_x_asan accepted/tizen/unified/20250205.095555 accepted/tizen/unified/20250205.113532 accepted/tizen/unified/x/20250212.043840 accepted/tizen/unified/x/asan/20250211.003455
Minje Ahn [Mon, 2 Dec 2024 01:01:22 +0000 (10:01 +0900)]
Remove PVR features

Change-Id: Idef49ab55bb3020b18644d6ef5367968241e3f3a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 months agoAdd new content mount path for AoT TV 98/318898/1 accepted/tizen/unified/20250203.010856
Josh Merlin [Thu, 23 Jan 2025 12:04:00 +0000 (20:04 +0800)]
Add new content mount path for AoT TV

Change-Id: I9efda7737060f1a9d225c83466583db3a43eba58
(cherry picked from commit 9b131080c2b6d5bbf2c42e35a3dcc275931f8ff1)

4 months agoRemove storage scan request on USB block 70/318270/1 accepted/tizen/unified/20250115.124208 accepted/tizen/unified/x/20250115.142742
Josh Merlin [Tue, 14 Jan 2025 06:01:19 +0000 (14:01 +0800)]
Remove storage scan request on USB block

Change-Id: I6614f9eae2452861cb7e2a4423dc510b49d4097e
(cherry picked from commit 9ea74156bc29a83fa5b2ffc74d78474b4e492867)

6 months agoAdd OS upgrade script for TV 70/321070/3 accepted/tizen/unified/20241130.125025 accepted/tizen/unified/x/20241218.032719 accepted/tizen/unified/x/asan/20241224.004445
josh.merlin [Wed, 27 Nov 2024 06:54:40 +0000 (14:54 +0800)]
Add OS upgrade script for TV

Change-Id: Ib41d27a08baebfc0a73533939a353ffa2b1632eb

6 months agoAvoid double disconnect of DB handle 27/320327/2 accepted/tizen/unified/20241114.092416
josh.merlin [Wed, 13 Nov 2024 08:40:36 +0000 (16:40 +0800)]
Avoid double disconnect of DB handle

Change-Id: I17e653797890893e2ea8018f1983d63d67623452

7 months agoAdd debug info on receiving data from media-server 25/319725/1 accepted/tizen/unified/20241101.174203
Hans Alfonso Arano Ongsitco/VD RH.ongsitcoD Lab /SRPH/Engineer/삼성전자 [Thu, 31 Oct 2024 02:05:37 +0000 (10:05 +0800)]
Add debug info on receiving data from media-server

Change-Id: I08821fbe9faf3a0301b6455ca790f727bae4d5b4

7 months agoupdate for storage share 86/319686/4 accepted/tizen/unified/20241031.084417
Hans Alfonso Arano Ongsitco/VD RH.ongsitcoD Lab /SRPH/Engineer/삼성전자 [Wed, 30 Oct 2024 07:37:25 +0000 (15:37 +0800)]
update for storage share

Change-Id: If23244372609b1b30a9a2bb8ef38de0c04e88f8f

8 months agoClose directory first to avoid errors in unmounting 32/318332/1 accepted/tizen_unified_toolchain accepted/tizen/9.0/unified/20241030.232730 accepted/tizen/unified/20240927.171120 accepted/tizen/unified/toolchain/20241004.101812 accepted/tizen/unified/x/20240929.082809 accepted/tizen/unified/x/asan/20241014.000149 tizen_9.0_m2_release
josh.merlin [Fri, 27 Sep 2024 02:36:54 +0000 (10:36 +0800)]
Close directory first to avoid errors in unmounting

Change-Id: I788b1436392ec3916fe02eaa30c48932ec5c3332

8 months agoIncrease daemon retry count for on-demand activation 41/318141/1 accepted/tizen/unified/20240926.163047 accepted/tizen/unified/20240926.184803 accepted/tizen/unified/x/20240927.022736
josh.merlin [Wed, 25 Sep 2024 04:28:23 +0000 (12:28 +0800)]
Increase daemon retry count for on-demand activation

Change-Id: I2d2aeb16bf75fc7dd9181ee4be68b920cb9a034a

9 months agoRestore DB size checker 98/316298/3 accepted/tizen_unified_dev accepted/tizen/unified/20240821.081452 accepted/tizen/unified/dev/20240822.230350 accepted/tizen/unified/x/20240822.014255
Minje Ahn [Mon, 19 Aug 2024 06:07:26 +0000 (15:07 +0900)]
Restore DB size checker

TV product policy
- Files in the RW area cannot exceed 20MB.

Change-Id: Ibf724e1a8a1fed261ffcafc812a962cfb5498c8d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
10 months agoAdd ID_TYPE attribute for udev-rule 55/315655/6 accepted/tizen/unified/20240808.160403 accepted/tizen/unified/dev/20240809.091505 accepted/tizen/unified/toolchain/20240812.133128 accepted/tizen/unified/x/20240809.012917 accepted/tizen/unified/x/20240809.015611 accepted/tizen/unified/x/asan/20240813.231417
Jiyong [Tue, 6 Aug 2024 02:59:00 +0000 (11:59 +0900)]
Add ID_TYPE attribute for udev-rule

[Problem]
Unintentionally, the media-server is executed by the virtual block devices.
[Solution]
Added ID_TYPE=disk condition to avoid execution by virtual block devices.

Change-Id: I4f81ac426c4c6a23f718a44c221f20e9026979df

11 months agoRemove MS_MEDIA_TYPE_SCSA 81/314181/1 accepted/tizen/unified/20240709.165148 accepted/tizen/unified/dev/20240710.032418 accepted/tizen/unified/x/20240710.012947
Minje Ahn [Mon, 8 Jul 2024 06:28:25 +0000 (15:28 +0900)]
Remove MS_MEDIA_TYPE_SCSA

SCSA(Secure Content Storage Association) is no longer supported.

Change-Id: Ice8c7e1b59becb5eb035b775fa9e8739c051b557
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
11 months agoCleanup plugin parameters 95/313995/1 accepted/tizen/unified/20240708.103317 accepted/tizen/unified/dev/20240709.043420 accepted/tizen/unified/x/20240709.014206
Minje Ahn [Thu, 4 Jul 2024 01:16:43 +0000 (10:16 +0900)]
Cleanup plugin parameters

Change-Id: I4684b243c33726c76711a07ca3d92cb4febe41e3
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
11 months agoMerge media tables on TV profile 66/313566/5 accepted/tizen/unified/20240704.075710 accepted/tizen/unified/dev/20240708.001537 accepted/tizen/unified/x/20240705.012407
Minje Ahn [Fri, 28 Jun 2024 00:32:27 +0000 (09:32 +0900)]
Merge media tables on TV profile

This patch brings the following changes:
 1. Media information from external storage is inserted into the media table.
 2. According to 1., 'media_view' and related codes are deleted.
 3. Tables are no longer created or deleted during runtime.
 4. When a new external storage is inserted, information about the old external storage is deleted.
 5. According to 4., db storage space check is deleted.

Change-Id: I56d25b9f8f02b5bf5c6ebf292de617a269e73874
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
11 months agoMerge "Prevent spurious restarts" into tizen
Jiyong Min [Tue, 2 Jul 2024 22:48:35 +0000 (22:48 +0000)]
Merge "Prevent spurious restarts" into tizen

11 months agoAdd PATH to solve security issue 64/313664/1 accepted/tizen/unified/20240701.191817 accepted/tizen/unified/dev/20240702.054031 accepted/tizen/unified/x/20240702.031214
Minje Ahn [Mon, 1 Jul 2024 01:22:53 +0000 (10:22 +0900)]
Add PATH to solve security issue

Change-Id: I57a908bb10151d859a469d7a0d438ca8faa15fea
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
11 months agoAdd OS upgrade script 56/313556/1 accepted/tizen/unified/20240628.172841 accepted/tizen/unified/dev/20240701.072849 accepted/tizen/unified/x/20240701.021501
Minje Ahn [Thu, 27 Jun 2024 22:52:35 +0000 (07:52 +0900)]
Add OS upgrade script

Change-Id: Ia81a7b23580206bc0341ecdc925e599a147e4072
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
12 months agoPrevent spurious restarts 72/311472/2
Łukasz Stelmach [Tue, 21 May 2024 14:43:32 +0000 (16:43 +0200)]
Prevent spurious restarts

Due to a fix to path units in systemd in commit 708961c701 ("core/path:
recheck path specs when triggered unit changes state"), service units
that aren't supposed to run repeatedly by path units need to set
RemainAfterExit=yes.

Change-Id: I2b1aadf3f7ebfa5511fc057b7a657161206bb844
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
12 months agoRelease from caller 72/311172/1 accepted/tizen/unified/20240611.162816 accepted/tizen/unified/dev/20240620.005523 accepted/tizen/unified/toolchain/20240624.121504 accepted/tizen/unified/x/20240612.025938 accepted/tizen/unified/x/asan/20240625.092526
Minje Ahn [Wed, 15 May 2024 23:37:12 +0000 (08:37 +0900)]
Release from caller

Change-Id: Ib0ea0313c02189a1fbebff0e9167070c784d3ccc
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
12 months agoUse sqlite3 APIs directly 71/311171/1
Minje Ahn [Wed, 15 May 2024 23:30:07 +0000 (08:30 +0900)]
Use sqlite3 APIs directly

sqlite3_free() already performs NULL checking.
No need macro.

Change-Id: Ib00882a463f288694abb889252980108976ea36f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoRemove the ID_BUS key from udev rules 31/310831/1 accepted/tizen/unified/20240509.124630 accepted/tizen/unified/toolchain/20240513.061312 accepted/tizen/unified/x/20240510.061431
Jiyong [Thu, 9 May 2024 00:38:34 +0000 (09:38 +0900)]
Remove the ID_BUS key from udev rules

 - To remove corner-case of various ID_BUS for external storage

Change-Id: I4f2dc99860a65a1c6e25b6d9d629301687a1782f

13 months agoFix that media-server is not running when specific HDD is connected 03/310703/3 accepted/tizen/unified/20240508.080330 accepted/tizen/unified/x/20240509.044730
Jiyong [Tue, 7 May 2024 05:13:56 +0000 (14:13 +0900)]
Fix that media-server is not running when specific HDD is connected

[Problem]
 - On-demand media-server is not running by udev when
   HDD with 2 or more partitions is connected.
[Solution]
 - The ID_BUS of HDD with 2 or more partitions is "ata".
   So a new udev rule has been added for the case where ID_BUS is "ata".

Change-Id: Id577f67954fbc7b737f72eb175cba23c6aff526f

13 months agoModify mediadb-update 93/310493/3 accepted/tizen/unified/20240503.115748 accepted/tizen/unified/toolchain/20240508.012336 accepted/tizen/unified/x/20240507.051001
Minje Ahn [Tue, 30 Apr 2024 03:30:53 +0000 (12:30 +0900)]
Modify mediadb-update

1. Remove non-recursive type.
2. Change to query directly instead of dlopen.
3. Code cleanup

Change-Id: Id4e4793b9cf1152847720f9ce3190ea94d553394
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoModify global to static global 12/310312/2 accepted/tizen/unified/20240502.044630 accepted/tizen/unified/toolchain/20240507.011833 accepted/tizen/unified/x/20240503.091143
Minje Ahn [Thu, 25 Apr 2024 07:08:21 +0000 (16:08 +0900)]
Modify global to static global

Change-Id: I392de11367ee0c851e0b9337a4f8afcdd1fdcf04
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoMerge same functions 65/310265/1
Minje Ahn [Wed, 24 Apr 2024 23:29:19 +0000 (08:29 +0900)]
Merge same functions

'ms_send_storage_otg_scan_request' and 'ms_send_storage_scan_request' are the same function.
merged with 'ms_send_storage_scan_request'.

Change-Id: I0bc6c553d7daa737d8f6a9ccaaf493a09b1d7337
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoPrevent errno reset 64/310264/1
Minje Ahn [Wed, 24 Apr 2024 23:26:22 +0000 (08:26 +0900)]
Prevent errno reset

'strerror_r' updates errno.
So moved down the log.

Change-Id: I7d9c04d41a3d93ccbedb9c49b25aa3a93c809aaf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoDelete 'tcp' from function name 90/310190/1 accepted/tizen/unified/20240425.114153 accepted/tizen/unified/toolchain/20240427.045650 accepted/tizen/unified/x/20240426.050435
Minje Ahn [Wed, 24 Apr 2024 02:59:26 +0000 (11:59 +0900)]
Delete 'tcp' from function name

It was added in the past to prevent confusion with 'udp'.
However, since there is no longer a 'udp' connection in content FW, the function name was modified.

Change-Id: I8eac83773ad79be23418b2a589057ffa64942381
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoFix port type to work normally 86/310186/2
Minje Ahn [Wed, 24 Apr 2024 00:45:48 +0000 (09:45 +0900)]
Fix port type to work normally

ms_ipc_request_recovery() will be deleted after TV media table is integrated.
Behavior is guaranteed until deleted.

Change-Id: I7a8726eb1216cad3cce4e485655274ec928d5a9f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoRemove fixed parameters 85/310185/1
Minje Ahn [Wed, 24 Apr 2024 00:08:09 +0000 (09:08 +0900)]
Remove fixed parameters

First parameter of ms_ipc_request_update_tcp() is always 'MS_MSG_DB_UPDATE'.
So removed the parameter from ms_ipc_request_update_tcp().

Change-Id: I789e604501348250477e1f6d82a1ba04d243a73a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoRemove unused database file 84/310184/1
Minje Ahn [Wed, 24 Apr 2024 00:06:19 +0000 (09:06 +0900)]
Remove unused database file

Change-Id: I69e14698a6b20949aa2120c773062e06fb622358
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
13 months agoRemove uncalled port type 82/310182/1
Minje Ahn [Tue, 23 Apr 2024 22:47:24 +0000 (07:47 +0900)]
Remove uncalled port type

'MS_DB_UPDATE_PORT' is never called.
So, removed ms_msg_port_type_e parameter from ms_ipc_send_msg_to_server_tcp().

Change-Id: I14bf2d56a848ef14700076d83a48489c1612d877
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
14 months agoRemove unnecessary comparison 51/309051/3 accepted/tizen/unified/20240409.135548 accepted/tizen/unified/20240409.155854 accepted/tizen/unified/x/20240411.011818
Minje Ahn [Thu, 4 Apr 2024 07:36:06 +0000 (16:36 +0900)]
Remove unnecessary comparison

PVR timeline is same with modified_time.
Also, for the same path, the folder_id in the folder table and media table cannot be different.

Change-Id: I72b1d2110b0dfce15c6d3535269163fce1706496
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
14 months agoMerge same query 83/308183/1 accepted/tizen/unified/20240320.110711 accepted/tizen/unified/20240320.151926 accepted/tizen/unified/x/20240326.073509
Minje Ahn [Tue, 19 Mar 2024 06:46:33 +0000 (15:46 +0900)]
Merge same query

Change-Id: Idd0b6fafe2f42c7a248b719d6bcb9f10cc578a19
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
14 months agoModify folder_id type 49/308149/1
Minje Ahn [Tue, 19 Mar 2024 00:42:03 +0000 (09:42 +0900)]
Modify folder_id type

Now the folder_id on TV is the same type as public.

Change-Id: I4b27942e2cfb493eb9f688de7ca6681c3580d8d6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
15 months agoAdd uid parameter for ms_update_one_extract_item() 42/307542/2 accepted/tizen/unified/20240313.133537 accepted/tizen/unified/20240313.135018 accepted/tizen/unified/x/20240314.073329
Jiyong [Tue, 12 Mar 2024 03:29:26 +0000 (12:29 +0900)]
Add uid parameter for ms_update_one_extract_item()

Change-Id: I728286e1375eded690fb6703f3f16778f8506ca1

15 months agoFix build error for product TV 83/307483/3 accepted/tizen/unified/20240312.132028 accepted/tizen/unified/x/20240313.092102
Jiyong [Mon, 11 Mar 2024 03:40:20 +0000 (12:40 +0900)]
Fix build error for product TV

Change-Id: I6b27e5055d5fc00a4ad7fc325151a546ed044ce8

15 months agoAdd on-demand storage insertion and removal for product TV 15/306815/15
Jiyong [Wed, 28 Feb 2024 01:58:46 +0000 (10:58 +0900)]
Add on-demand storage insertion and removal for product TV

Change-Id: I71d5144dd023254e22771e8811bf955e9eea332c

15 months agoAdd on-demand with socket activation 08/306808/16
Jiyong [Wed, 28 Feb 2024 00:39:56 +0000 (09:39 +0900)]
Add on-demand with socket activation

- The media-server runs in 3 cases
  booting
  socket activation by application
  udev rules by external storage mount/unmount

- The media-server must save external storage list for checking unmount

- Auto-scan with path activation is disabled except booting

Change-Id: I8f3d3d95f23a1cb4429c7bf0707a58e9683539ce

15 months agoFix batch insert error 31/307431/1 accepted/tizen/unified/20240308.174226 accepted/tizen/unified/x/20240311.100122
minje.ahn [Fri, 8 Mar 2024 07:32:02 +0000 (16:32 +0900)]
Fix batch insert error

storage_id is NULL when batch insert case.

Change-Id: Icddbef60ad00c79c7c2b6112cd7ff4ff30f43251
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agomedia-util.h cleanup 40/307240/5
minje.ahn [Wed, 6 Mar 2024 08:31:27 +0000 (17:31 +0900)]
media-util.h cleanup

Change-Id: Id626fcc5d5d0b0a9b0b6a656763a184ee6661e60
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoFix msg check range 27/307227/1
minje.ahn [Wed, 6 Mar 2024 07:02:40 +0000 (16:02 +0900)]
Fix msg check range

Change-Id: I95c9a1046aab506d221586166b7511f346e3c2bc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoAdd ms_user_get_root_length 22/307222/3
minje.ahn [Wed, 6 Mar 2024 06:18:20 +0000 (15:18 +0900)]
Add ms_user_get_root_length

Change-Id: Ia5a8fb9278d8d5d346e5f7999579e1c77dd0b7db
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoMove IPC path into media-util-user 17/307217/3
minje.ahn [Wed, 6 Mar 2024 05:51:28 +0000 (14:51 +0900)]
Move IPC path into media-util-user

Change-Id: Icedec36291e601fa8a0631c88b2304f87f23c667
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoRemove string valid functions 11/307211/2
minje.ahn [Wed, 6 Mar 2024 05:20:29 +0000 (14:20 +0900)]
Remove string valid functions

Change-Id: I7c64d4b9239bb168ca8a03698716e4e03aac0e4c
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoModify ms_sys_get_uid 08/307208/1
minje.ahn [Wed, 6 Mar 2024 04:57:17 +0000 (13:57 +0900)]
Modify ms_sys_get_uid

Change-Id: Iaf45d6e7556e45a323a40080ee7b25cc5d40d2ec
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoModify scan request functions 03/307203/1
minje.ahn [Wed, 6 Mar 2024 04:41:59 +0000 (13:41 +0900)]
Modify scan request functions

Change-Id: I7e17819f9537db818aa2c00c5018715332ce05fc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse g_strlcpy, g_strlcat directly 99/307199/1
minje.ahn [Wed, 6 Mar 2024 04:18:53 +0000 (13:18 +0900)]
Use g_strlcpy, g_strlcat directly

Change-Id: I9e4ee7d1460f3139a0667669cda5963a23f9dbcc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoUse tzplatform API directly 95/307195/1
minje.ahn [Wed, 6 Mar 2024 04:05:42 +0000 (13:05 +0900)]
Use tzplatform API directly

Change-Id: Idd3ac5edc57bbb92baa578f5d0662eaaadce1b70
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoModify MS_STRING_VALID 35/306835/2
minje.ahn [Wed, 28 Feb 2024 06:20:49 +0000 (15:20 +0900)]
Modify MS_STRING_VALID

Change-Id: I63eade422ce7ce3da71747d2d4496865aeea45d3
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
15 months agoAdd scanner_dispatcher_thread and code cleanup 09/306609/10 accepted/tizen/unified/20240306.094052 accepted/tizen/unified/toolchain/20240311.065443 accepted/tizen/unified/x/20240307.010822
Jiyong [Fri, 23 Feb 2024 06:03:13 +0000 (15:03 +0900)]
Add scanner_dispatcher_thread and code cleanup

Change-Id: I30fbf5fe7ed18e4c894c642610f6bfe2e0c89b94

15 months agoFix TV build error 75/306375/3 accepted/tizen/unified/20240226.134011 accepted/tizen/unified/x/20240226.135040
Jiyong [Wed, 21 Feb 2024 01:58:57 +0000 (10:58 +0900)]
Fix TV build error

Change-Id: Ibce0beed62a04215ace6444da6d67b6cd8030a15

15 months agoFix the problem of not getting the dev_list 25/306325/3
Jiyong [Tue, 20 Feb 2024 06:43:42 +0000 (15:43 +0900)]
Fix the problem of not getting the dev_list

- The format of 'reply_var' is tuple, "(a(issssssisibii))".
  The 'iter' is initialized for tuple by g_variant_iter_init(&iter, reply_var).
  Thus, the 'iter' could not iterate the array.
  So g_variant_get_child_value() is added to get devices(array) from tuple.

Change-Id: Iae074445f4105342ec1b9347e2d4b240cd6b39ab

15 months agoRemove unnecessary uuid variable 57/305957/2 accepted/tizen/unified/20240216.161321 accepted/tizen/unified/x/20240220.150014
minje.ahn [Wed, 14 Feb 2024 07:00:58 +0000 (16:00 +0900)]
Remove unnecessary uuid variable

Change-Id: I0132000834b5a7e97788257b82883eb2b930d1d4
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove unused function 11/305811/1 accepted/tizen/unified/20240214.164000 accepted/tizen/unified/x/20240219.013857
minje.ahn [Thu, 8 Feb 2024 05:42:53 +0000 (14:42 +0900)]
Remove unused function

Change-Id: I2045893c6dd4437efa9ddbcb0aaf99dea3002aaa
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoImprove media-server execution speed 54/305054/5 accepted/tizen/unified/20240207.171610 accepted/tizen/unified/x/20240208.022956
Jiyong [Fri, 26 Jan 2024 02:10:13 +0000 (11:10 +0900)]
Improve media-server execution speed

- reduce db_thread waiting time 1 sec to 10 msec

Change-Id: I7bad40511d54f745ff94daa06f972cbb20523cc2

16 months agoreset handle after closing db handle 29/305529/1
samsung2013 [Sun, 4 Feb 2024 06:19:55 +0000 (14:19 +0800)]
reset handle after closing db handle

Change-Id: I356674e83dfc3abf3d2e976f9a944ba29e315044

16 months agoUse media instead of define 08/304908/1
minje.ahn [Thu, 25 Jan 2024 08:05:19 +0000 (17:05 +0900)]
Use media instead of define

media table is unchanged.

Change-Id: I7a36873ce44cc4871bf991942cebf2c1f5afa0fb
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove storage type 90/304790/5
minje.ahn [Tue, 23 Jan 2024 23:53:55 +0000 (08:53 +0900)]
Remove storage type

Change-Id: Ic9bc9ba6ecc6ae16f4bec325e24f685e8bf64b29
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoChange error defines to enum 58/304658/1 accepted/tizen/unified/20240123.165910 accepted/tizen/unified/x/20240205.063937
minje.ahn [Tue, 23 Jan 2024 01:57:35 +0000 (10:57 +0900)]
Change error defines to enum

Change-Id: I0881d82c0dec1e4cf923d0d08b94fac486615414
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoUpdate help message 43/304643/1
minje.ahn [Tue, 23 Jan 2024 00:34:36 +0000 (09:34 +0900)]
Update help message

Change-Id: I2addc8986c17ee3f9619a24341b296d2df54a363
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove media-util-internal.h 42/304642/1
minje.ahn [Tue, 23 Jan 2024 00:18:32 +0000 (09:18 +0900)]
Remove media-util-internal.h

1. Move defines to media-util.h
2. Remove duplicated defines from media-common-types.h

Change-Id: Ia5448c5f1857f37e47bdf6e0592d724cd5c880ac
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoMove media-server-ipc.h to media-util-ipc.h 40/304640/1
minje.ahn [Mon, 22 Jan 2024 23:40:45 +0000 (08:40 +0900)]
Move media-server-ipc.h to media-util-ipc.h

Both are IPC common codes.
So we merge with media-util-ipc.h.

Change-Id: Icbb17c5e2211d45703513c7f4860550622243f77
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove unnecessary dependency 39/304639/1
minje.ahn [Mon, 22 Jan 2024 23:14:12 +0000 (08:14 +0900)]
Remove unnecessary dependency

Change-Id: I90576217e3630f39c8e9f69e90a5cc30aaf24486
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoCode cleanup 45/304545/2
minje.ahn [Fri, 19 Jan 2024 04:35:20 +0000 (13:35 +0900)]
Code cleanup

1. Reduce defines
2. Exclude TV code.
3. Cleanup headers
4. Remove iniparser related code (The operating environments of scanner-v1 and scanner-v2 are different, so environment variables are unnecessary.)

Change-Id: Ie221610df21bb087dfb34e23ce6e12c3c7a857fe
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoremove all dcm related code 90/303990/7 accepted/tizen/unified/20240119.154749
hjkim [Tue, 9 Jan 2024 02:24:46 +0000 (11:24 +0900)]
remove all dcm related code

face detection(dcm) related APIs are deprecated in Tizen 8.0.
However, to reduce memory usage on the media server, all dcm related code is removed from the media server in advance.

Change-Id: I96f56e97cda78a98512cb7807f3a363a0f38bf9c

16 months agoSeparate TV product code 71/304471/4 accepted/tizen/unified/20240119.021436
hjkim [Thu, 18 Jan 2024 01:56:07 +0000 (10:56 +0900)]
Separate TV product code

Change-Id: I6cd47a9553440a59ffd4691788dade75bd768310

16 months agomedia-common-utils.c: extract product implementations to media-common-utils-tv.c 42/304442/5
Seungbae Shin [Wed, 17 Jan 2024 09:32:26 +0000 (18:32 +0900)]
media-common-utils.c: extract product implementations to media-common-utils-tv.c

Change-Id: I5026f8ef0d905fdebb4f6536a8422d48f9b88894

16 months agoMerge "Remove contact in boilerplate" into tizen
Minje ahn [Thu, 18 Jan 2024 04:55:28 +0000 (04:55 +0000)]
Merge "Remove contact in boilerplate" into tizen

16 months agoRemove contact in boilerplate 77/304477/1
minje.ahn [Thu, 18 Jan 2024 04:05:06 +0000 (13:05 +0900)]
Remove contact in boilerplate

Change-Id: I3c8aceb7abd596d5c38e88cc4f563b9142b83f15
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove block_type 65/304465/4
minje.ahn [Wed, 17 Jan 2024 23:55:59 +0000 (08:55 +0900)]
Remove block_type

block_type was used in the past to distinguish MMC and USB.
This distinction is no longer necessary.

Change-Id: Ic3b12478969b6fdcfe7e45f4a02a3bb2a279eeb6
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove server status writing method 64/304464/4
minje.ahn [Wed, 17 Jan 2024 23:53:38 +0000 (08:53 +0900)]
Remove server status writing method

Change-Id: I3a56d5e4b050e611fd0a2c2c45257e9580fa1182
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoUse _USE_TVPD_MODE instead of _USE_MULTI_USER 36/304436/4
minje.ahn [Wed, 17 Jan 2024 08:28:07 +0000 (17:28 +0900)]
Use _USE_TVPD_MODE instead of _USE_MULTI_USER

Change-Id: I1a126ca8824cfacbc65c888888b914ff3eff238f
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove unused define 35/304435/2
minje.ahn [Wed, 17 Jan 2024 08:18:52 +0000 (17:18 +0900)]
Remove unused define

Change-Id: I4e620e598a91aee75f335ec3d73806907e7a3551
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoRemove unnecessary executable file permission 44/304444/1
Seungbae Shin [Wed, 17 Jan 2024 09:39:30 +0000 (18:39 +0900)]
Remove unnecessary executable file permission

Change-Id: I44d3829ab99246bf57d7e2b70bd6e5eb46c8b303

16 months agoRemove backup db 12/303512/3
minje.ahn [Fri, 29 Dec 2023 05:15:55 +0000 (14:15 +0900)]
Remove backup db

The backup db has existed to initialize when the media.db file size exceeds db space.
However it is no longer needed.
Currently media.db only manages active external storage.

Change-Id: If0c10d6fc3de13ffec93ee25318fe159f9717a50
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
16 months agoMove vconf related code to TVPD feature 60/303460/2
minje.ahn [Thu, 28 Dec 2023 04:43:22 +0000 (13:43 +0900)]
Move vconf related code to TVPD feature

'VCONFKEY_FILEMANAGER_DB_STATUS' is no longer used in scanner-v1.
So, move related code to scanner-v2.

Change-Id: I47136d68c4e1accb1d494d0c635fa3508c401047
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
17 months agoRemove VCONFKEY_FILEMANAGER_MMC_STATUS related code 58/303358/2 accepted/tizen_unified_riscv accepted/tizen/unified/20231228.165741 accepted/tizen/unified/riscv/20240103.054621
minje.ahn [Tue, 26 Dec 2023 07:59:09 +0000 (16:59 +0900)]
Remove VCONFKEY_FILEMANAGER_MMC_STATUS related code

Change-Id: I0322c4b5d52206d4d25e3259acebd5c046884198
Signed-off-by: minje.ahn <minje.ahn@samsung.com>