Common interfaces & sepolicies for tensor-based Google Pixel devices
Find a file
Vilas Bhat 23425fbc54 16KB: Move copy_efs_file_to_data script to gs-common
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 for the files in these partitions to be accessible to 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.

Test: Boot test and Enable16kbTest for Pixel 8 & Pixel 9 targets
      Fingerprint and Phone Calls work in 16KB mode
Bug: 383151792
Flag: EXEMPT bugfix
Change-Id: Ib67fd8678f8bd97bd50663657046c28137bd4435
2025-01-16 13:45:48 -08:00
16kb 16KB: Move copy_efs_file_to_data script to gs-common 2025-01-16 13:45:48 -08:00
aoc Revert "Set up access control rule for aocxd" 2024-12-29 19:41:00 -08:00
audio Support IAudioExtension AIDL v4 and v5 2024-12-10 04:15:21 +00:00
battery_mitigation sepolicy: remove irregular policy 2024-10-15 23:36:58 +00:00
bcmbt [BT] change # of copy file when crash 2024-07-17 03:23:38 +00:00
betterbug Apply flag RELEASE_PACKAGE_BETTER_BUG 2024-07-16 23:10:34 +00:00
bluetooth Merge "add sepolicy rules for bluetooth common hal dumpstate" into main 2024-10-29 08:34:45 +00:00
bootctrl bootctrl: fixed OOB read in BootControl 2024-08-28 12:44:34 -07:00
camera Move lyric sysconfig to vendor 2024-12-24 10:38:36 +09:00
check_current_prebuilt check_current_prebuilt: Move symlink file into out/pixel 2024-12-20 23:08:43 -08:00
chre Give ContextHub HAL access to AOC version 2024-11-13 21:07:38 +00:00
dauntless gsc: Change the criteria for building GSC targets 2024-11-18 18:10:31 +00:00
display display-dump: sepolicy for new secondary display dump 2024-12-26 22:16:12 -08:00
display_logbuffer dumpstate: add logbuffer support for display 2023-12-13 06:12:51 +00:00
dump_chip_info dump_chip_info: dump more tables from chip-info driver 2024-11-27 03:40:47 +00:00
edgetpu Revert "sepolicy: edgetpu: add debugfs contexts" 2024-12-24 01:42:39 -08:00
esim gs-common/esim: include sysprop setupwizard.feature.provisioning_profile_mode 2024-11-21 18:19:31 +00:00
euiccpixel_app Rename sysfs_gpu_uevent to sysfs_gpu 2024-12-25 00:20:24 -08:00
fingerprint Allow fingerprint HAL to access IGoodixFingerprintDaemon 2024-11-05 09:31:29 +00:00
gcam_app Remove bug comment 2024-11-12 18:40:13 +00:00
gear ban hal_dumpstate_default from execute_no_trans 2024-10-07 05:54:43 +00:00
gps dump_gps: collect gps logs in ascending order 2024-11-21 10:19:39 +00:00
gpu Add GPU team owners for mk files am: 1d82070ee9 am: 9747c1bb8d 2024-09-04 16:49:25 +00:00
gril GRIL sepolicy for aidl radioext v2.1 2024-11-19 23:27:20 +00:00
gs_watchdogd Explicitly set user root for the gs_watchdogd service. am: f25cb6895f 2024-08-30 09:29:18 +00:00
gsa dumpstate: gsa: Add GSA logs to dumpstate 2024-09-05 14:24:35 +00:00
gxp Add sepolicy for edgetpu_tachyon_service to report metrics 2024-11-21 06:39:00 +00:00
gyotaku_app [dump_gyotaku] Add collect odpm logs for dump_gyotaku. 2024-06-07 03:33:43 +00:00
input/gia Solve SEPolicy issue with the Troubleshooting Wizard 2024-12-19 23:39:24 -08:00
insmod insmod.sh: Support 'rmmod' directive 2024-10-18 15:10:16 -07:00
interrupts Disable redundant trace event for performance reasons 2024-12-19 22:59:37 +00:00
led create led dump 2023-02-13 12:48:47 +08:00
mailbox Introduce Pixel mailbox module 2024-11-13 07:52:03 +00:00
mediacodec mediacodec: add GPU access policy 2024-11-20 06:29:09 +00:00
misc_writer Sepolicy: allow vendor_misc_writer to get sota_prop 2023-06-29 20:47:51 +00:00
modem Merge "modem_uart: add modem uart log to bugreport" into main 2024-12-14 00:08:31 -08:00
mte Remove mitchp from OWNERS 2024-10-25 17:58:48 +00:00
nfc gs-common: nfc: st21nfc: Add rules for android.hardware.nfc-service.st 2024-09-04 06:20:49 +00:00
pcie dumpstate: Collect PCIe link statistics 2023-02-10 09:08:10 -06:00
performance sepolicy: update init.te for zram device 2024-12-16 01:32:02 -08:00
pixel_metrics gs-common: dumpstate: Add RT Runnable stats into bugreport 2023-11-13 17:53:18 +00:00
pixel_ril pixel_ril: make VINTF target level specify by device 2023-05-10 18:43:58 +08:00
pixelsupport Add SEPolicy domain for cavalry app 2024-03-28 09:43:36 +00:00
power Create power folder and align pm_freeze_timeout settings with p22 2024-06-27 02:36:28 +08:00
powerstats powerstats: sort frequencies in descending order 2023-12-25 15:04:50 +08:00
radio Move the sysfs_modem_state from a product folder to gs-common 2024-03-28 21:10:23 +00:00
ramdump_and_coredump RamdumpService: Update the SELinux policy for Flood Control to use Firebase Cloud Firestore. 2024-11-01 11:55:32 +08:00
recorder Recorder: add sepolicy for Google Recorder app 2024-06-04 14:57:11 +08:00
sensors sensors: Support registry dump on DEV device. 2024-07-30 20:08:40 +08:00
sepolicy Add Mali SELinux build flag for Pixel 2024-12-17 23:11:31 +00:00
soc Change bash script to C++ implementation 2023-07-19 13:20:59 +08:00
sota_app Add a factoryota-watch.mk file to include the OtaClient for wearable 2024-03-27 03:11:31 +00:00
storage storage: add missing bug_map 2024-12-06 12:16:14 -08:00
thermal thermal: allow thermal_hal to read sysfs_gpu 2024-04-29 05:37:09 +00:00
touch touch: Support SW_LID event from sensor HAL 2024-10-07 01:04:53 +00:00
trusty rpmb_dev: add rpmb_dev package 2024-03-13 17:49:16 +01:00
tts Updates TTS voice packs in gs-common 202412 2024-12-13 00:27:55 +00:00
umfw_stat dump_umfw_stat: Reduce timeout to 0.5 seconds 2024-04-25 16:43:16 +00:00
vibrator/flags Vibrator: Add enable_pwle_v2 2024-10-23 02:20:47 +00:00
widevine Add widevine SELinux permissions for L1 2024-11-08 17:04:21 +00:00
wireless_charger WLC: service: update AIDL manifest version to 1-2 2024-08-08 04:58:14 +00:00
wlan create wlan dump 2023-03-31 06:28:07 +08:00
Android.bp gs-common: add device_google_gs-common_license 2023-12-05 00:46:19 +08:00
device.mk Revert^2 "Add one variable to decide if need TTS voice packs" 2024-06-13 01:37:43 +00:00
FSTAB_OWNERS Add FSTAB_OWNERS and update OWNERS to include Android.bp 2024-08-02 11:39:01 +00:00
MK_OWNERS Add MK_OWNERS as owners file for makefile 2024-05-24 08:01:37 +00:00
NOTICE gs-common: add device_google_gs-common_license 2023-12-05 00:46:19 +08:00
OWNERS Add FSTAB_OWNERS and update OWNERS to include Android.bp 2024-08-02 11:39:01 +00:00
README.txt add owners to manage gs-common 2022-08-12 09:55:21 +08:00

Please refer to go/pixel-recycle to modularize your code in this space.