- Jul 11, 2024
-
-
Devang authored
Current buffer size is too small - vold can miss sdcard block device uevent at the startup which result in card not being mounted until user reinserts the tray. An example for the Sony H8216 device: * 64KB buffer size * vold's /proc/net/netlink entry - 4 drops: 0000000000000000 15 718 ffffffff 0 0 0 2 4 15066 * 'sm list-volumes' output - sdcard isn't mounted: private mounted null emulated mounted null * 128KB buffer size * vold's /proc/net/netlink entry - no drops: 0000000000000000 15 686 ffffffff 0 0 0 2 0 15225 * 'sm list-volumes' output - sdcard is mounted: private mounted null public:179,1 mounted F08D-EA6A emulated mounted null Bug: 111172932 Test: Manual - Insert SD card and see it is detected Change-Id: Iaae8567bce52a957ad4241e53953ef3ff215961a
-
Pierre-Hugues Husson authored
Change-Id: I5ae38741374b25b84595a9eae9bdda7afe2cac05
-
Alexander Koskovich authored
Change-Id: If7c98275b4a3ca41c4471755114aecc7ae827664 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
-
- Jun 15, 2024
-
-
Michael Bestas authored
Reason for revert: Still needed for <4.14 devices. This reverts commit 0e87a83c. Change-Id: I025911c9cb033d8021e6f23c005ce546411b1472
-
Michael Bestas authored
Android 14.0.0 Release 50 (AP2A.240605.024) # -----BEGIN PGP SIGNATURE----- # # iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZmdzqQAKCRDorT+BmrEO # eLG9AJwMfwRuCe/+bKQSnR15cYFjNmm/IACeIfMs1x4SZyy5mHqDeFWCfDy4SMI= # =7Fr6 # -----END PGP SIGNATURE----- # gpg: Signature made Tue Jun 11 00:44:09 2024 EEST # gpg: using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78 # gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal] # gpg: initial-contribution@android.com: Verified 2542 signatures in the past # 2 years. Encrypted 4 messages in the past 2 years. # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 4340 D135 70EF 945E 8381 0964 E8AD 3F81 9AB1 0E78 # By Eric Biggers (3) and others # Via Automerger Merge Worker (18) and others * tag 'android-14.0.0_r50': Delete unused code conditional on MANAGE_MISC_DIRS Add API to get remaining lifetime as a percentage. Add time_offset=<UTC offset> to mount arguments Don't use std::allocator::pointer Remove userSerial param from vold methods that don't use it vold: remove session keyring workaround for old kernels Reduce AppFuse max read size. Conflicts: KeyUtil.cpp Change-Id: I27cf6365a8982c40e24707748720b75b4659fea0
-
- May 27, 2024
-
-
Tom Marshall authored
* Support nonremovable disks and expose a nonremovable flag in the DiskCreated message. * New DiskPartition class to hold single partitions. DiskPartition is used when the fs_mgr entry has a partnum (eg. when fs_mgr_flags contains voldmanaged=label:#). Override disk partitioning methods to prevent destroying the emmc. Change-Id: Id7ec3ea409b5c96e691730604e4b1e9cc3aa9d33 vold: Correct base header paths These headers were moved to android-base Change-Id: I3eaa8316006b9017c5f5e31cd1e91efc2862106d DiskPartition.cpp: Add sysmacros.h dependency for major/minor Change-Id: I22c267c8f12b40fb3e2295becd88f12b75907b69 Signed-off-by: Adrian DC <radian.dc@gmail.com> [mikeioannina] Adapt for Pie and Q Change-Id: Id7ec3ea409b5c96e691730604e4b1e9cc3aa9d33
-
- Mar 09, 2024
-
-
Michael Bestas authored
Android 14.0.0 release 29 # -----BEGIN PGP SIGNATURE----- # # iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZeZW7AAKCRDorT+BmrEO # eMBBAJ0S26LIKmwlJMHXgC427MCRZRIXPwCfV7jsbqdKU9Hs7tsV8Dw1EtnW/qI= # =L2Xt # -----END PGP SIGNATURE----- # gpg: Signature made Tue Mar 5 01:19:08 2024 EET # gpg: using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78 # gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal] # gpg: initial-contribution@android.com: Verified 2370 signatures in the past # 2 years. Encrypted 4 messages in the past 2 years. # gpg: WARNING: This key is not certified with sufficiently trusted signatures! # gpg: It is not certain that the signature belongs to the owner. # Primary key fingerprint: 4340 D135 70EF 945E 8381 0964 E8AD 3F81 9AB1 0E78 # By Eric Biggers (14) and others # Via Automerger Merge Worker (216) and others * tag 'android-14.0.0_r29': (36 commits) Add support for 16k F2FS Use logical path to handle different dm target per boot Add new modules to TEST_MAPPING Verify if pid actually killed for processes with open files Rename "user key" methods in vold Revert "fskeyring & userspace reboot: support CE keys" Evict adoptable storage CE and DE keys when possible Don't erase key from s_new_ce_keys on eviction Call fscrypt_destroy_volume_keys() under mCryptLock Fold read_and_install_user_ce_key() into fscrypt_unlock_user_key() Adding corpus for vold fuzzer Correct reserved blocks to segments Adding public volume mounts for clone user. Do not read ro.apex.updatable. Add vdc volume getStorageSize Revert "Introduce ro.crypto.uses_fs_ioc_add_encryption_key property" Use String8/16 c_str Use /data/misc/apexdata for the list of APEXes Revert "Use apexservice to get the list of apexes" Revert "fskeyring & userspace reboot: support CE keys" ... Conflicts: FsCrypt.cpp Change-Id: I69471ad719a544505913dc7a2b156b3e5d54f08f
-
- Feb 29, 2024
-
-
Android Build Coastguard Worker authored
Change-Id: I9441e80043792d0fcd79f1017e957f34c45c198c
-
- Feb 28, 2024
-
-
Eric Biggers authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2978556 Change-Id: I0c474c32b4a01997afbc10ae7dc78468ea484d94 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Eric Biggers authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2978556 Change-Id: If24e84ecff3eff052814ec5f275d464ab9ebf0e9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
- Feb 27, 2024
-
-
Eric Biggers authored
-
Eric Biggers authored
Since MANAGE_MISC_DIRS is hardcoded to 0, and it always has been, there is no need to have it in the code. Test: build Change-Id: I30a73e67999841271e07dbc3eeb1b8568529a7c3
-
- Feb 20, 2024
-
-
Android Build Coastguard Worker authored
Change-Id: I25519db9f5bf8462d903175ef959c656a9441d81
-
- Feb 19, 2024
-
-
Treehugger Robot authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2859125 Change-Id: Ic9b4a36e68e1228fb504d2e8068c076e2f708a88 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2859125 Change-Id: Ib3c5e4302d38e527d3c15e94b25991994ea9bdfc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
-
- Feb 02, 2024
-
-
Android Build Coastguard Worker authored
Change-Id: I108f106448d06c4ba49b486fe8138718f273ed90
-
- Feb 01, 2024
-
-
David Anderson authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2940229 Change-Id: Ib004cb63ef91f30a7df230f99c732dce9eccd6c6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
David Anderson authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2940229 Change-Id: Ifbecbd4442b970b87605b6c223e89efd11f5bcba Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
David Anderson authored
-
Android Build Coastguard Worker authored
Change-Id: I5fd9652c92a1b017f2e5dcc5871414cc3d0d044e
-
- Jan 31, 2024
-
-
David Anderson authored
This differs slightly from the previous API, which exists for idle maintenance, whereas this value is intended to be displayed to users. First, it returns remaining lifetime, rather than used lifetime. Second, it rounds up the returned value for usabilty purposes. This isn't an issue on Pixel (which reports at 1% granularity), but devices which report at 10% granularity should show 100% out-of-box, which is not possible to distinguish in the old API. Bug: 309886423 Test: StorageManager.getRemainingStorageLifetime Change-Id: Ic5f6ec9969667302ba8bad95b2765e2cc740bed4
-
Xin Li authored
am skip reason: Merged-In I8efef8efbc9f01e1177fbe3105513166ad90d22f with SHA-1 f428f9e6 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/system/vold/+/25972531 Change-Id: I9e95e86c1cc2e8a3c1f0c54357b747f4ee383d1b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
- Jan 24, 2024
-
-
Xin Li authored
Bug: 319669529 Merged-In: I8efef8efbc9f01e1177fbe3105513166ad90d22f Change-Id: If7ebdccc494c7edb5b1603eb3154ca508e14dc33
-
- Jan 20, 2024
-
-
Android Build Coastguard Worker authored
Change-Id: I1197d21969a02cab9a0d290fc29ed3a4938587bb
-
- Jan 19, 2024
-
-
Neil Fuller authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2901301 Change-Id: I430cf7e7004faa43cf0b258248b29803a12335d8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Neil Fuller authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2901301 Change-Id: I96fac82b8cbad9f471b0dbcb26ac6fbc54a51273 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Neil Fuller authored
-
Neil Fuller authored
Add time_offset=<UTC offset> to mount arguments for the vfat driver. This is not being release flagged as it's a fix for a regression but is a cosmetic fix that shouldn't affect anything besides reported file timestamps. Changes for issue 246256335 in Android U stopped Android syncing the current time zone UTC offset to the kernel because doing so is discouraged. It is discouraged because the current offset alone is not very useful - it tells the kernel nothing of DST or historic UTC offsets. Converting to and from local times are are best left to userspace where time zone rules information is available, and different users can use different time zones. However, because FAT32 is poorly designed WRT timestamps, the kernel FAT32 driver, vfat, does use the kernel offset when available and when it isn't given a fixed offset to use at volume mount time. This means that Android devices after the change from issue 246256335 displayed more obviously incorrect times. This change adds the argument necessary to vold when mounting a FAT32 volume to set a fixed UTC offset to adjust FAT32 local times to a UTC-like time ("UTC time" from now on). Userspace then uses the UTC offset for that UTC time, calculated using TZDB rules, to convert back to a local time. This is still prone to generating some incorrect times, e.g. due to DST or other historic offset changes, or a user time zone change on device after mounting the volume. FAT32 lacks the information about "what was the UTC offset at file time X?" (unlike exFAT) AND the vfat driver has no way to look up the time zone rules itself. This change is a reasonable "better than nothing" change to address times being obviously wrong after the change from issue 246256335, especially when a user copies a file from a desktop computer to USB / sd card storage and immediately plugs the device into an Android device. It does this without reverting to kernel UTC offset syncing, which is flawed (i.e. it would never work completely), discouraged, and more effort/code to improve, e.g. because userspace would have to schedule alarms for offset changes. Testing: 1) Obtain a USB FAT32 formatted USB storage device that can be plugged into a pixel device, e.g. with an OTG USB adapter. 2) On a desktop computer, mount the device and write some files / note times associated with existing files. These times will already be adjusted by this OS to be "local time" based on its own logic, but if it's working correctly that time will be exactly the local time value stored in the FAT32 volume itself. 3) On a rooted Android device where you can use adb via Wifi (adb tcpip / adb connect), leaving the USB port free for external USB devices.... a) $ adb root b) Insert the USB storage c) $ mount | grep 'fat' d) For the USB storage drive, observe the time_offset argument (or tz=UTC when time_offset == 0) reported (this would not be reported without this patch) e) ls -l /mnt/<mount location from (3c)> f) Confirm the local time displayed is as expected. e.g. the time should be the same as shown in (2), regardless of the device's time zone. 4) To observe the "fixed offset behavior" at mount time, alter the time zone setting on the device via Settings -> System -> Date & Time a) Repeat 3c-3e. b) The times shown will have changed by the difference between the original and new time zone chosen. c) Extract / re-insert the USB storage device. d) Repeat 3c-3e e) The times shown should match the times from (2) again 5) Confirm the write behavior: a) $ touch /mnt/<mount location from (3c)>/foobar b) $ ls -l /mnt/<mount location from (3c)> c) The time should match the device's displayed local time (status bar) d) Unmount the USB device and insert the USB device into a desktop computer e) Confirm the timestamp matches the Android device's local time when (5a) took place, e.g. using "ls -lT" on MacOS. Testing was done with numerous zones with positive, negative and zero offsets. Interesting zones like India (UTC+5:30), Kiribati (UTC+14), Wake Island (UTC-11), the various fixed offset zones like Etc/GMT+12, Etc/GMT-14 were tried. Note: Depending on the time zones being used on devices (Android and desktop) and when the files were written / testing took place during the year, you may see file times shifting by 1 hour from the "ls -l" step depending on whether they were written in summer or winter time. This is because the userspace code for rendering times knows about DST but the kernel driver is applying a fixed offset and does not. This is expected and illustrates the points at the top of this comment about FAT32 integration never being perfect. See https://www.google.com/search?q=fat32+dst for other examples. Bug: 319417938 Bug: 315058275 Bug: 246256335 Test: See above Change-Id: Ic7ce159d88db5d5cf5894bcc26ea60bd7c44917d
-
- Jan 12, 2024
-
-
Android Build Coastguard Worker authored
Change-Id: I8d24ab16d153a4cbc9d050299d61f0cecd86da72
-
- Jan 11, 2024
-
-
Treehugger Robot authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2901505 Change-Id: I4ca2dda97c9fa8acbfc6fc3cded226441b0f9976 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2901505 Change-Id: I82bbc9bad9f7bd4ba20226ab9113f2b398dccf86 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2901505 Change-Id: I110e19f98b191da52c353e979dfa4e00da270d7f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Treehugger Robot authored
-
- Jan 10, 2024
-
-
Tomasz Wasilczyk authored
It's removed in C++20 Bug: 175635923 Test: m MODULES-IN-system-vold Change-Id: Ief2875bfd3e2d2e5023ad4c0bb754a616fd42419
-
- Jan 06, 2024
-
-
Android Build Coastguard Worker authored
Change-Id: I31047769a65ac6fc649eb4db7c33e52670600ccd
-
- Jan 05, 2024
-
-
Eric Biggers authored
Merge "Remove userSerial param from vold methods that don't use it" into main am: 7730a494 am: d7b3c405 am: 19e70b24 Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2871777 Change-Id: I02c983c3affd82df57d5aa216fb786c438c3a05f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Eric Biggers authored
Merge "Remove userSerial param from vold methods that don't use it" into main am: 7730a494 am: d7b3c405 Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2871777 Change-Id: I61aba5960a5eb117ed72e3c97066db527a8490e8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Eric Biggers authored
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2871777 Change-Id: I7ed86185213bec08b4e626df05b356c4fc1358f8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-
Eric Biggers authored
-