Commit graph

5 commits

Author SHA1 Message Date
Priyanka Advani (xWF)
34e1162d09 Revert "16KB: zumapro: Move copy_efs_file_to_data script to gs-c..."
Revert submission 31155502-move_copy_efs_script

Reason for revert: Droidmonitor created revert due to b/390502519. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:31155502-move_copy_efs_script

Change-Id: Ic090ed513bffba5abcea6e56194af71c41e880b2
2025-01-16 16:50:37 -08:00
Vilas Bhat
571ff2a4b3 16KB: zumapro: Move copy_efs_file_to_data script to gs-common
Bug: 383151792
Flag: EXEMPT bugfix
Test: Enable16kbTest on Pixel 9 target
      Fingerprint and Phone Calls work in 16 KB mode
Change-Id: Iaf36d4f7d1b6b2de4d4e66d75335805c50193419
2025-01-16 13:46:37 -08:00
Juan Yescas
60dc676409 Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode
There are 4 partitions that are flashed at the factory and use F2FS fs with
4kb block size:

- /dev/block/by-name/efs
- /dev/block/by-name/efs_backup
- /dev/block/by-name/modem_userdata
- /dev/block/by-name/persist

These partitions can NOT be mounted by 16kb kernels because F2FS
expects BLOCK_SIZE == PAGE_SIZE.

In order to access the files in these partitions by 16kb kernels,
the dump.f2fs tool is used.

This change will perform these steps at boot time ONLY for 16kb mode. For
every partition (efs/efs_backup/modem_userdata/persist):

1. Use dump.f2fs to copy the content of the partition
to /data/vendor/copied/<partition name>.img.
2. If the copy was succesfull, rename /data/vendor/copied/<partition name>.img
to /data/vendor/copied/<partition name>
3. fsync the content of the directory /data/vendor/copied/<partition name>.

After the content of the partitions is in /data/vendor/copied,
bind-mount the partitions to the directory /mnt/vendor. See conf/fstab.efs.from_data.

Note: This change ONLY applies to 16kb kernels. This change does not modify
the original partitions.

Bug: 347015136
Bug: 362368691
Test: $ source build/envsetup.sh
      $ lunch [zumapro]-trunk_staging-userdebug
      $ m
      $ ./vendor/google/tools/flashall -w
Flag: EXEMPT bugfix
Change-Id: Idf46a2a3a4f0b2e91ee4a0322a0c469e055684c8
2024-10-07 22:46:49 +00:00
Kuen-Han Tsai
453a29320a usb: add disable_contanimant_detection
This patch adds the disable_contaminant_detection script, providing a
command-based method to bypass moisture detection.

Bug: 295127978
Test: disable moisture detection by 'setprop vendor.usb.contaminantdisable true'
Change-Id: I035d656401aedf11a9a5390504bec46b3c4e2634
Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
2024-02-02 17:54:52 +08:00
Robin Peng
dec234f475 init zumapro from zuma sha 4daedb8feb4d4
Bug: 272725898
Change-Id: I1e1ab5d15e7f4b2b59e28f2e52e07cd7e12f25b3
2023-03-31 15:10:16 +00:00