Commit graph

6376 commits

Author SHA1 Message Date
Pawan Wagh
b6f66fd7b4 Merge "Adding corpus for vold fuzzer" into main 2023-09-08 06:53:26 +00:00
Himanshu Gupta
94fe650a2f Merge "Adding public volume mounts for clone user." into main am: 4a8594b223 am: 8422dde06e am: 898e54bf6f am: eed782509b am: 4cff2ba65b
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2679182

Change-Id: I12805db65e8ec35ee3e628dc857a79c3ac1cb8b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 14:03:21 +00:00
Himanshu Gupta
4cff2ba65b Merge "Adding public volume mounts for clone user." into main am: 4a8594b223 am: 8422dde06e am: 898e54bf6f am: eed782509b
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2679182

Change-Id: I934d70a9a782e703540198a1b74c698b4bca8fa5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 13:06:12 +00:00
Himanshu Gupta
eed782509b Merge "Adding public volume mounts for clone user." into main am: 4a8594b223 am: 8422dde06e am: 898e54bf6f
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2679182

Change-Id: I7fa707bfbc15a787ebabf0345ed219fdc2708cf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 12:28:19 +00:00
Himanshu Gupta
898e54bf6f Merge "Adding public volume mounts for clone user." into main am: 4a8594b223 am: 8422dde06e
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2679182

Change-Id: Ib4092124328abf8e6d779dd2cb32b4d84d253057
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 11:42:54 +00:00
Himanshu Gupta
8422dde06e Merge "Adding public volume mounts for clone user." into main am: 4a8594b223
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2679182

Change-Id: I1f1d9e598806a5fa143d8a745f95ebdf2dadab52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 10:49:20 +00:00
Himanshu Gupta
4a8594b223 Merge "Adding public volume mounts for clone user." into main 2023-09-07 10:13:05 +00:00
Pawan Wagh
efe3c891bd Adding corpus for vold fuzzer
Generated corpus using binder2corpus tool from recordings
of vold transactions and using it with vold service fuzzer.

Test: m vold_native_service_fuzzer && adb sync data && adb shell /data/fuzz/arm64/vold_native_service_fuzzer/vold_native_service_fuzzer /data/fuzz/arm64/vold_native_service_fuzzer/vold_native_service_fuzzer_corpus -runs=1000
Bug: b/299138341
Change-Id: Ic9bc7a7971790fa19a04181b6f89a33a0088bdd8
2023-09-06 21:20:16 +00:00
Paul Lawrence
c9516b322f [automerger skipped] Add vdc volume getStorageSize am: 29ab03668f -s ours am: 69e1dc2112 -s ours am: af7258d928 -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 d73dfd4ab0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24604927

Change-Id: I2412348a6ffb34a6b7cf9dc8cbaefe72f7ed861e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 04:04:48 +00:00
Paul Lawrence
af7258d928 [automerger skipped] Add vdc volume getStorageSize am: 29ab03668f -s ours am: 69e1dc2112 -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 d73dfd4ab0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24604927

Change-Id: I69888f967595278d392c11f973572f9349ca6e50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 03:03:48 +00:00
Paul Lawrence
a23452b296 [automerger skipped] Add vdc volume getStorageSize am: 29ab03668f -s ours am: 8af0628dd5 -s ours am: aee28745f6 -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 24b7d2ddbc is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24604927

Change-Id: I0816e2fe782ff4af3a41f93caae9772a753b42b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 02:31:08 +00:00
Daeho Jeong
a693bb375c Merge "Correct reserved blocks to segments" into main am: ab2b49bb74 am: 4922ef2616 am: b8db678950 am: 10987fcfd8 am: cee23aaa58
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2736813

Change-Id: Iece2f10615f18760ca2e8b79f7a6109b58ef7278
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 02:30:57 +00:00
Paul Lawrence
69e1dc2112 [automerger skipped] Add vdc volume getStorageSize am: 29ab03668f -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 d73dfd4ab0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24604927

Change-Id: I8b99a9e9b0ffe9abd10de2f0de85484dd30fc253
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 02:26:52 +00:00
Paul Lawrence
aee28745f6 [automerger skipped] Add vdc volume getStorageSize am: 29ab03668f -s ours am: 8af0628dd5 -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 24b7d2ddbc is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24604927

Change-Id: I005e2eb793b269b63f01bf119f01a87f540a76f7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 02:22:28 +00:00
Paul Lawrence
8af0628dd5 [automerger skipped] Add vdc volume getStorageSize am: 29ab03668f -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 24b7d2ddbc is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24604927

Change-Id: I27d649fec3e49767da5b95a75ea0d0a8f00d9506
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 02:17:36 +00:00
Daeho Jeong
cee23aaa58 Merge "Correct reserved blocks to segments" into main am: ab2b49bb74 am: 4922ef2616 am: b8db678950 am: 10987fcfd8
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2736813

Change-Id: I87e86b43bf430fed5e7d586eb5e6b48798550627
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 02:13:33 +00:00
Daeho Jeong
10987fcfd8 Merge "Correct reserved blocks to segments" into main am: ab2b49bb74 am: 4922ef2616 am: b8db678950
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2736813

Change-Id: I07bcec0f59c9889564f0d38acd293e9c46858173
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 01:35:48 +00:00
Daeho Jeong
b8db678950 Merge "Correct reserved blocks to segments" into main am: ab2b49bb74 am: 4922ef2616
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2736813

Change-Id: I9b8546b7315c384b7d17336765fc438bb37a1c18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-01 00:47:27 +00:00
Daeho Jeong
4922ef2616 Merge "Correct reserved blocks to segments" into main am: ab2b49bb74
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2736813

Change-Id: If2eed3d67a9b1250b99a02b1d1043e0f24e223cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 23:53:45 +00:00
Daeho Jeong
ab2b49bb74 Merge "Correct reserved blocks to segments" into main 2023-08-31 22:46:23 +00:00
Daeho Jeong
b868a88c1a Correct reserved blocks to segments
Align units to a segment unit when adjusting free segment number.

Test: run the smart idle maint service.
Change-Id: I4fd74ac92adc4ae1a0ded4a7df75a690d829eb20
Signed-off-by: Daeho Jeong <daehojeong@google.com>
2023-08-31 12:54:01 -07:00
Jooyung Han
7a762d667b Merge "Do not read ro.apex.updatable." into main am: 170f15bb4c am: d592cd545b am: 7cf408faef am: 083b92b639 am: 06a9f432a9
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2727653

Change-Id: I31dc2e3a6a725237f57b8ee1da00be3e1fea3229
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 05:49:27 +00:00
Jooyung Han
06a9f432a9 Merge "Do not read ro.apex.updatable." into main am: 170f15bb4c am: d592cd545b am: 7cf408faef am: 083b92b639
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2727653

Change-Id: I7679e5035393176549287c51399bbff9aea73137
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 04:50:12 +00:00
Jooyung Han
083b92b639 Merge "Do not read ro.apex.updatable." into main am: 170f15bb4c am: d592cd545b am: 7cf408faef
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2727653

Change-Id: I1b1bd3e6b54b5271c95239702f00f468068d25b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 04:13:47 +00:00
Jooyung Han
7cf408faef Merge "Do not read ro.apex.updatable." into main am: 170f15bb4c am: d592cd545b
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2727653

Change-Id: I2a2f093d588df4677306501f53bddaeb741bf9fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 03:26:35 +00:00
Jooyung Han
d592cd545b Merge "Do not read ro.apex.updatable." into main am: 170f15bb4c
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2727653

Change-Id: I1bfea3565d290b6723c1d8727fbfd748d91a43c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-31 02:35:21 +00:00
Jooyung Han
170f15bb4c Merge "Do not read ro.apex.updatable." into main 2023-08-31 01:11:11 +00:00
Paul Lawrence
29ab03668f Add vdc volume getStorageSize
StorageStatsManager.getTotalBytes currently takes the size of /data and
rounds up to known probable sizes to guess the size of internal storage.
This is not always correct.

Instead, find the device /data is on and get the size of that device.
This should give a more accurate answer.

Bug: 295358118
Test: vdc volume getStorageSize returns storage size
(cherry picked from https://android-review.googlesource.com/q/commit:d73dfd4ab0ff4cbf704034750b2a25832da7fb0c)
Merged-In: I907892041b1ce2cd72092a9877ac34c12bf3f254
Change-Id: I907892041b1ce2cd72092a9877ac34c12bf3f254
(cherry picked from commit 24b7d2ddbc)
2023-08-30 14:25:40 +00:00
Xin Li
91ee667f74 [automerger skipped] Merge Android U (ab/10368041) am: e737fd0a43 -s ours am: 90bb88c1e7 -s ours am: e4a4bf032b -s ours am: db7f508b30 -s ours
am skip reason: Merged-In Idda5d816c2a012afa35658f1b2d86ae2787c1faf with SHA-1 4801c65d8e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24182860

Change-Id: I9defc4c3661a70d77b49bd3f84b9355005d33085
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 20:38:06 +00:00
himanshuz
0ad0862159 Adding public volume mounts for clone user.
Public SdCard Volumes are mounted only for user 0
(foreground user). This gives ENONT if the cloned
user tries to access the files in SdCard with
paths like "/storage/AB02-G212/DCIM/"

This change adds SdCard Volume mnt under
/mnt/usr/<cloned-user>/ which allows cloned apps
access to SdCard via direct file paths.

Bug: 203395175
Test: Manual by building and flashing device.
Change-Id: I091c40d3cb19915145cd5af40d1e79d5a9ecfa02
2023-08-29 10:38:43 +00:00
Xin Li
db7f508b30 [automerger skipped] Merge Android U (ab/10368041) am: e737fd0a43 -s ours am: 90bb88c1e7 -s ours am: e4a4bf032b -s ours
am skip reason: Merged-In Idda5d816c2a012afa35658f1b2d86ae2787c1faf with SHA-1 4801c65d8e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24182860

Change-Id: Ic8c7f5dd6a0c589f50674de38cb45ff23bb3f5e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 01:10:59 +00:00
Xin Li
e4a4bf032b [automerger skipped] Merge Android U (ab/10368041) am: e737fd0a43 -s ours am: 90bb88c1e7 -s ours
am skip reason: Merged-In Idda5d816c2a012afa35658f1b2d86ae2787c1faf with SHA-1 4801c65d8e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24182860

Change-Id: I7ccfccdd849307e059bc7824dad2f184ab9adf0e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-29 00:35:16 +00:00
Xin Li
90bb88c1e7 [automerger skipped] Merge Android U (ab/10368041) am: e737fd0a43 -s ours
am skip reason: Merged-In Idda5d816c2a012afa35658f1b2d86ae2787c1faf with SHA-1 4801c65d8e is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24182860

Change-Id: I38e90fd338d854710e48e26efc4c695c1a0d1ae9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-28 23:59:17 +00:00
Jooyung Han
a9f2171c42 Do not read ro.apex.updatable.
We no longer support ro.apex.updatable=false case. Hence no need to read
it.

Bug: 297460439
Test: device boots
Change-Id: I9b71ea96052741073f092ca6abcfbe92a927128a
2023-08-25 15:38:12 +09:00
Xin Li
e737fd0a43 Merge Android U (ab/10368041)
Bug: 291102124
Merged-In: Idda5d816c2a012afa35658f1b2d86ae2787c1faf
Change-Id: I9be9d1ad2b5b186bb8276263b3b42297ebfa332f
2023-08-17 16:51:54 -07:00
Paul Lawrence
7445e3f94f [automerger skipped] Add vdc volume getStorageSize am: 24b7d2ddbc -s ours am: 08aaa349c5 -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 d73dfd4ab0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24432931

Change-Id: Id6b4be1d02060dc0444ba7226a77f5133acb9283
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16 12:00:43 +00:00
Paul Lawrence
08aaa349c5 [automerger skipped] Add vdc volume getStorageSize am: 24b7d2ddbc -s ours
am skip reason: Merged-In I907892041b1ce2cd72092a9877ac34c12bf3f254 with SHA-1 d73dfd4ab0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/24432931

Change-Id: I64d0ce059cc2f6f01fc6ebfda711f7ede2d92f62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16 11:14:34 +00:00
Paul Lawrence
7f23bc4ac1 Merge "Add vdc volume getStorageSize" into main am: f05039392c am: 0923cc69d7 am: 0a2095edca am: d0519478ae am: cfb1bfeaf8
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2706217

Change-Id: Ie5e077c61889e732148da83d6e60ccbc26e8436d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 18:29:35 +00:00
Paul Lawrence
cfb1bfeaf8 Merge "Add vdc volume getStorageSize" into main am: f05039392c am: 0923cc69d7 am: 0a2095edca am: d0519478ae
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2706217

Change-Id: I0ed64655f2e7223d65a7528a67fc2ada38ad924a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 17:46:49 +00:00
Paul Lawrence
d0519478ae Merge "Add vdc volume getStorageSize" into main am: f05039392c am: 0923cc69d7 am: 0a2095edca
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2706217

Change-Id: Ib51e6d9695953cb2974a8301b7f6da8ed87e6eea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 17:03:08 +00:00
Paul Lawrence
0a2095edca Merge "Add vdc volume getStorageSize" into main am: f05039392c am: 0923cc69d7
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2706217

Change-Id: Ic5551d2aec02a9a588c748f1800a9959bf72f625
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 16:16:49 +00:00
Paul Lawrence
24b7d2ddbc Add vdc volume getStorageSize
StorageStatsManager.getTotalBytes currently takes the size of /data and
rounds up to known probable sizes to guess the size of internal storage.
This is not always correct.

Instead, find the device /data is on and get the size of that device.
This should give a more accurate answer.

Bug: 295358118
Test: vdc volume getStorageSize returns storage size
(cherry picked from https://android-review.googlesource.com/q/commit:d73dfd4ab0ff4cbf704034750b2a25832da7fb0c)
Merged-In: I907892041b1ce2cd72092a9877ac34c12bf3f254
Change-Id: I907892041b1ce2cd72092a9877ac34c12bf3f254
2023-08-15 15:44:56 +00:00
Paul Lawrence
0923cc69d7 Merge "Add vdc volume getStorageSize" into main am: f05039392c
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2706217

Change-Id: I82ad84f8b63fb5f9204a35e1940cb9a77d45bc23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 15:36:27 +00:00
Paul Lawrence
f05039392c Merge "Add vdc volume getStorageSize" into main 2023-08-15 14:51:08 +00:00
Eric Biggers
c971c05a04 Merge "Revert "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property"" into main am: 50e681b4ba am: 59e7388536 am: 579643b765 am: 298770c2cf am: 67039df9c9
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2705760

Change-Id: I44723626fb3dff19b459cbcc5d7e813b36c03967
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 03:40:56 +00:00
Eric Biggers
67039df9c9 Merge "Revert "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property"" into main am: 50e681b4ba am: 59e7388536 am: 579643b765 am: 298770c2cf
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2705760

Change-Id: If33cd86c907217b773ec2f800fae55d7e0685297
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 02:54:18 +00:00
Eric Biggers
298770c2cf Merge "Revert "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property"" into main am: 50e681b4ba am: 59e7388536 am: 579643b765
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2705760

Change-Id: Ie58b63a6a68bbea912f61bc0e5d670ab4b0d54af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 02:09:29 +00:00
Eric Biggers
579643b765 Merge "Revert "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property"" into main am: 50e681b4ba am: 59e7388536
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2705760

Change-Id: I922242eeb193b924e8f242f954d1935f9cafd749
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 01:25:18 +00:00
Eric Biggers
59e7388536 Merge "Revert "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property"" into main am: 50e681b4ba
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2705760

Change-Id: I2ed5f6e758fc48bc842c05652c8c002edaae991a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-15 00:44:25 +00:00
Paul Lawrence
d73dfd4ab0 Add vdc volume getStorageSize
StorageStatsManager.getTotalBytes currently takes the size of /data and
rounds up to known probable sizes to guess the size of internal storage.
This is not always correct.

Instead, find the device /data is on and get the size of that device.
This should give a more accurate answer.

Bug: 295358118
Test: vdc volume getStorageSize returns storage size
Change-Id: I907892041b1ce2cd72092a9877ac34c12bf3f254
2023-08-14 23:51:39 +00:00