Board tree for Google Tensor G4 devices
Find a file
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
conf Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
dumpstate dumpstate: Use generic dc_mains for all parallel chargers 2024-09-25 23:24:05 +00:00
factory Modify path to add adbd in nnapi 2024-05-31 06:19:57 +00:00
fingerprint/fpc1540 Remove unused udfps make files 2023-05-15 10:32:38 +00:00
firmware init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
health Update health AIDL HAL to V3 2024-05-02 16:01:18 +08:00
modem init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
modem_ml Modem ML: Add TFLite config files 2024-03-04 11:29:11 +08:00
overlay Force EST loopback for hidden menu testing 2024-09-19 01:28:58 +00:00
overlay-factory init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
overlay-vendor/vendor/google/apps init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
pixelstats DisplayPort: add DisplayPort Max Resolution and FEC/DSC stats paths for zumapro devices 2024-07-23 22:36:33 +00:00
powerstats zumapro: avoid vector<const T> am: 678b37960e am: dccfd0f0b8 2024-09-16 20:05:54 +00:00
radio Enable log mask for b/333170735 2024-04-08 17:05:14 +08:00
rro_overlays init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
storage init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
telephony Use US geofence with better fidelity 2024-08-14 10:47:29 -07:00
usb usb: Remove project-specific file modification 2024-09-24 08:40:00 +00:00
widevine Move Widevine drm to gs-common 2023-04-21 17:43:37 +00:00
wifi wifi: convert WIFI_FEATURE_IMU_DETECTION to the equivalent soong variable 2023-06-27 12:00:40 +08:00
Android.bp Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
Android.mk init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
aosp_common.mk init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
BoardConfig-16k-common.mk 16kb: Set f2fs block size to 16384 for targets that only boot 16kb kernels 2024-09-11 23:55:31 +00:00
BoardConfig-common.mk Delete TARGET_CPU_VARIANT_RUNTIME. 2024-09-20 19:38:20 +00:00
CleanSpec.mk init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
compatibility_matrix.xml init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
component-overrides.xml init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
copy_efs_files_to_data.sh Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
default-permissions.xml [Pixel RR] Apply reviewed default permissions 2024-07-17 20:51:38 +08:00
device-common.mk Optional building Vendor Telephony proprietary by flag 2024-08-14 05:56:41 +00:00
device-shipping-common.mk init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
device.mk Copy files on efs/efs_backup/modem_userdata/persist partitions to /data in 16kb mode 2024-10-07 22:46:49 +00:00
device_framework_matrix_product.xml Merge "wifi: Upgrade vendor hal version" into main 2024-09-25 21:33:48 +00:00
disable_contaminant_detection.sh usb: add disable_contanimant_detection 2024-02-02 17:54:52 +08:00
factory_common.mk Enable thermal hal for factory ROM 2023-11-07 14:23:37 -08:00
init.hardware.wlc.rc.userdebug init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
manifest.xml Delete mapper4 manifest 2024-08-28 22:56:42 -07:00
manifest_media.xml Remove codec2 hidl fragments 2024-05-16 21:34:31 +00:00
manifest_media_aosp.xml Add media.c2 aidl fragments 2024-02-27 17:45:13 +00:00
media_codecs.xml init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
media_codecs_aosp_c2.xml update odd resolution support in vpx and av1 codecs 2024-04-01 04:12:02 +00:00
media_codecs_bo_c2.xml set the minimal resolution as 80x80 2024-09-20 16:36:00 -07:00
media_codecs_performance.xml init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
media_codecs_performance_c2.xml zumapro: update c2.exynos.hevc.encoder based on BD4A.240715.001 2024-07-15 04:56:30 +00:00
media_profiles.xml init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
NOTICE init zumapro from zuma sha 4daedb8feb4d4 2023-03-31 15:10:16 +00:00
OWNERS Add FSTAB_OWNERS and update OWNERS to include Android.bp 2024-08-09 16:22:59 +08:00
PREUPLOAD.cfg PREUPLOAD: Enforce jsonlint in preupload 2023-10-29 06:02:45 +00:00
task_profiles.json [task_profiles]Add MaxPerformance and PreferIdle to InputPolicy profile. 2024-10-01 11:42:43 +00:00
vendor.prop Update ro.soc.model 2024-02-21 04:29:04 +00:00