Commit graph

2647 commits

Author SHA1 Message Date
Kelvin Zhang
d45d697ded Enable copy efs files support on pgagnotic target
pgagnotic targets might boot into 16KB directly(w/o dev options),
in which case it would need copy efs files support to be enabled.

Test: boot device with dev option disabled, check efs
Bug: 346275905
Change-Id: If18bfa0b0646da8008c6d92bec094b236273cbfc
2024-06-11 16:25:52 -07:00
Kelvin Zhang
d3ce2b9873 Restore permission of efs/efs_backup/modem_userdata after mount
Test: Boot device, erase EFS, check selinux labels
Bug: 345803836
Change-Id: Ia511731e001d74409b40b087432e3535ca5cfc8f
2024-06-11 09:13:27 -07:00
Kelvin Zhang
e3ed1eabdf Use dump.f2fs to extract files from efs partitions
Previously, we rely on mount points to copy files out of
efs partitions. Switch over to dump.f2fs to read directly
from block device without mounting. This allows us to copy
files out of efs partition in both 4K and 16K mode.

Test: Boot dev option enabled ext4 device
Bug: 340965747
Change-Id: I9d3f3d5200adc31f13298488b5be068b0fe7c7f4
2024-06-04 10:02:36 -07:00
Kelvin Zhang
5978809ae7 Only copy EFS files if /data is on ext4
This reduces the amount of computation needed on critical
boot path for F2FS devices. Boot time is expected to improve
with this patch.

Bug: 341216848
Test: boot device with ext4 and f2fs
Change-Id: I7311a22a7bf9773d3909656d98cc578a43cb9477
2024-05-30 16:08:24 -07:00
Sungtak Lee
ba614b35b9 Merge "Remove codec2 hidl fragments" into main 2024-05-17 06:25:28 +00:00
Sungtak Lee
629eabc6c5 Remove codec2 hidl fragments
Bug: 321808716
Change-Id: Iaf80f2c61cb3d9f1b1761e33ecf92ccc27ad3423
2024-05-16 21:31:54 +00:00
Jerry Huang
80cb09b4c4 Merge "zuma: update performance point based on AP3A.240513.001" into main 2024-05-16 06:34:42 +00:00
Kelvin Zhang
ab17b46c51 Merge "Allow devices to pick ext4 as default fs at build time" into main 2024-05-15 06:08:46 +00:00
Treehugger Robot
1f3594dafe Merge "Split zuma fstab into two files" into main 2024-05-14 23:05:08 +00:00
Kelvin Zhang
5a679bbf76 Allow devices to pick ext4 as default fs at build time
Products using 16KB kernel may wish to boot into 16KB mode
directly. To do this, these targets would need to use ext4
as their default fs type for /data and /metadata . Add
a build time flag which would install ext4 fstabs.

Test: th
Bug: 339337171
Change-Id: I53de1599bbff583b45ca2bf6d3e3efb83957913e
2024-05-14 15:42:14 -07:00
Kelvin Zhang
c542bcfd03 Split zuma fstab into two files
Common fstab entries(everything but /metadata and /data) are
moved to a separate fstab file.
This allows us to create an ext4 variant of the same fstab later.

Test: device boots
Bug: 339337171
Change-Id: I3129551c98b14473c776f2cf3dee1b81fc0c84b3
2024-05-14 10:03:27 -07:00
Jerry Huang
f6025c54da zuma: update performance point based on AP3A.240513.001
Bug: 335350051
Test: CtsMediaDecoderTestCases android.media.decoder.cts.VideoDecoderPerfTest
Change-Id: I54a234ec6f3b1ed59087aacb0e2855477492584e
2024-05-14 09:25:51 +00:00
Joerg Wagner
b15e00e8f5 Merge "Use 2024-03-01 deqp levels for GLES and Vulkan" into main 2024-05-14 08:55:11 +00:00
Treehugger Robot
fe169c6406 Merge "Set default pin amount for home app" into main 2024-05-13 22:59:01 +00:00
Edgar Arriaga
f8a1670819 Set default pin amount for home app
Bug: 288900050
Test: dumpsys pinner
Flag: EXEMPT refactor

Change-Id: I86a1bd0a82513e8b45247b6fc12d4cd7a552d7db
2024-05-13 19:55:06 +00:00
Pawan Wagh
213da03c2b Use lzo-rle for 16kb page kernel
Test: Checked zram compression with 4KB and 16KB kernel
======== Using 4KB kernel================
$ adb shell getconf PAGE_SIZE
4096
$ adb shell cat  /sys/block/zram0/comp_algorithm
[lz77eh] zstd deflate lz4 lzo-rle lzo
======== Using 16KB kernel================
$ adb root
restarting adbd as root
$ adb shell cat  /sys/block/zram0/comp_algorithm
lz77eh zstd deflate lz4 [lzo-rle] lzo
$ adb shell getconf PAGE_SIZE
16384

Bug: 316158358
Change-Id: I068cf4f9ab9a1fdc36f141a1de6f4ea293db9d6f
2024-05-10 01:13:39 +00:00
Shiyong Li
0f9fe30938 Merge "Add sepolicy for power_state node" into 24D1-dev am: eaa2a2ee8c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27056931

Change-Id: Ib3a211c40b3ce8fbade8ceb2c72b99ef2277191c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 05:21:44 +00:00
Shiyong Li
eaa2a2ee8c Merge "Add sepolicy for power_state node" into 24D1-dev 2024-05-09 05:16:16 +00:00
Jörg Wagner
76717decdc Use 2024-03-01 deqp levels for GLES and Vulkan
Bug: 327589279
Change-Id: If76465a473a582a7c5f2502872876b3a682eacc0
2024-05-08 18:46:13 +00:00
Treehugger Robot
fbf479dae5 Merge changes from topic "revert-27206172-revert-26822004-SXUPLCUANW-MLEHIGOHIM" into main
* changes:
  Reland: Copy persist partition files to /data on boot
  Reland: Copy files on EFS partition to /data on boot
2024-05-08 16:13:27 +00:00
Treehugger Robot
b41d97bc37 Merge "Update IDisplay to V11-V12" into main 2024-05-08 10:02:13 +00:00
Leo Chen
388bdee3f5 Update IDisplay to V11-V12
V12 is not frozen yet. We should still allow V11 for `next` build.

Test: trigger test build
Bug: 309897479
Bug: 303162192
Change-Id: I14582a51cde66698013b275ec1d668f858ad7cba
Signed-off-by: Leo Chen <yinchiuan@google.com>
2024-05-08 08:48:46 +00:00
Kelvin Zhang
4bc3f5a338 Reland: Copy persist partition files to /data on boot
Since /persisit was previously mounted during eraly-init stage,
this CL delays the /persist mount to post-fs-data stage.
Actions which depends on the /persist partition are also moved.

Bug: 319335586
Change-Id: I6bcc775f16331905c6896f3a2ec5bbea9e20744f
2024-05-07 21:31:13 -07:00
Kelvin Zhang
b08f8dbf23 Reland: Copy files on EFS partition to /data on boot
During boot, this CL adds the following sequence of actions:

1. mount original efs partitions(most likely f2fs) on /mnt/vendor/efs
2. copy files in /mnt/vendor/efs to /data/vendor/copied/efs.img
3. fsync all the files in /data/vendor/copied/efs.img
4. rename /data/vendor/copied/efs.img to /data/vendor/copied/efs
5. bind-mount /data/vendor/copied/efs to /mnt/vendor/efs
6. repeat 1-5 for efs_backup and modem_userdata

The original EFS partitions are mounted and only used for file
copying, no destructive action done on original efs partitions.

Test: reformat /data as ext4, boot the device
Bug: 319335586
Change-Id: Ide78be316778acfc5c582c4a7b78853796cf4c1e
2024-05-07 21:31:13 -07:00
Pechetty Sravani
4053a85fe7 Revert "Copy files on EFS partition to /data on boot"
Revert submission 26822004

Reason for revert: Potential culprit for b/339099720- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:26822004

Change-Id: Ie9598a3b3b56c8ce26f475079798c44314696f44
2024-05-07 07:19:37 +00:00
Pechetty Sravani
327973016e Revert "Copy persist partition files to /data on boot"
Revert submission 26822004

Reason for revert: Potential culprit for b/339099720- verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:26822004

Change-Id: I744fccbf1aacd817ca1a0c6f4a121393307c8797
2024-05-07 07:19:37 +00:00
Kelvin Zhang
62b3d171c7 Copy persist partition files to /data on boot
Since /persisit was previously mounted during eraly-init stage,
this CL delays the /persist mount to post-fs-data stage.
Actions which depends on the /persist partition are also moved.

Bug: 319335586
Change-Id: I0e70f672b9a5f4b05b95dd30b0a74bb8f91f399a
2024-05-06 15:27:46 -07:00
Kelvin Zhang
7251274bee Copy files on EFS partition to /data on boot
During boot, this CL adds the following sequence of actions:

1. mount original efs partitions(most likely f2fs) on /mnt/vendor/efs
2. copy files in /mnt/vendor/efs to /data/vendor/copied/efs.img
3. fsync all the files in /data/vendor/copied/efs.img
4. rename /data/vendor/copied/efs.img to /data/vendor/copied/efs
5. bind-mount /data/vendor/copied/efs to /mnt/vendor/efs
6. repeat 1-5 for efs_backup and modem_userdata

The original EFS partitions are mounted and only used for file
copying, no destructive action done on original efs partitions.

Test: reformat /data as ext4, boot the device
Bug: 319335586
Change-Id: I4c4024b4cad18199226f5644f98254b2230574d6
2024-05-06 15:27:46 -07:00
Kelvin Zhang
39eccba58f Support booting on ext4 for zuma devices
When a user opts into 16K developer option, we would need to convert the
/data and /metadata partition into ext4. Add necessary fstab entries for
ext4 so that zuma devices can boot on ext4.

This CL does not automatically switch existing devices to ext4, the
newly added fstab entries are intentionally marked as "non-formattable",
so that we don't accidentally format a wiped device as ext4. This CL
merely allows the device to boot if the /data partition is already
formatted as ext4.

Test: adb shell cmd recovery wipe ext4 , make sure device boots
Bug: 293313353
Change-Id: I3a2a2e9d09cdea884f58b509a06c6829938dc369
2024-05-06 09:05:09 -07:00
Jaegeuk Kim
76caf6b954 Adjust the fstab option for ZUFS
Bug: 336319772
Change-Id: Ic3088e693d4dd9f784215da27a5c4b6c47759ef2
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2024-05-03 09:58:17 -07:00
Spade Lee
736faaf9d3 pixelstats: zuma: add all logbuffer paths am: 17b87611d9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27101371

Change-Id: I05911df01e73efd658b4a45f325ff2254ddc1e6b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-03 05:24:16 +00:00
Treehugger Robot
104dda15e3 Merge "Update USES_LASSEN_MODEM soong config settings for aosp projects." into main am: fca2c9d122 am: 646464efa7
Original change: https://android-review.googlesource.com/c/device/google/zuma/+/3037358

Change-Id: I2520734af8b8bacbd30d07064f6bc71f2b8cd020
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-29 09:59:33 +00:00
Treehugger Robot
646464efa7 Merge "Update USES_LASSEN_MODEM soong config settings for aosp projects." into main am: fca2c9d122
Original change: https://android-review.googlesource.com/c/device/google/zuma/+/3037358

Change-Id: I34b248f1d76b8b90079f775a9c6c76bf3265fea5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-29 09:42:17 +00:00
Treehugger Robot
fca2c9d122 Merge "Update USES_LASSEN_MODEM soong config settings for aosp projects." into main 2024-04-29 09:25:56 +00:00
Herbert Xue
34b4efdcc8 Update USES_LASSEN_MODEM soong config settings for aosp projects.
Add the flag "use_lassen_modem" for bp to do the same checking like
"USES_LASSEN_MODEM" in mk.

Bug: 330654744
Test: 1. lunch aosp_cheetah-trunk_staging-userdebug
      2. m RilConfigService
Change-Id: I4ef0fe469e98fa6315896bbe8c422f741e207664
2024-04-29 16:26:24 +08:00
Qian-Hao Huang
52494655a6 zuma: Change the path of prebuilt fips140.ko
Placing the fips140.ko at the same level as other kernel modules makes
it easier for automation tools to handle all of them.

Bug: 331791671
Change-Id: Id6d978afbd18f98f2a07d418c405699885c05bf0
Signed-off-by: Qian-Hao Huang <qhhuang@google.com>
2024-04-29 06:49:55 +00:00
Spade Lee
17b87611d9 pixelstats: zuma: add all logbuffer paths
Bug: 335934710
Change-Id: I79f65bc1069402a721bf75f97d6973c066a002a9
Signed-off-by: Spade Lee <spadelee@google.com>
2024-04-29 01:39:04 +00:00
Enzo Liao
b823c7afcb [automerger skipped] Merge "Apply common SELinux policies related to ramdumps and coredumps to zuma." into 24D1-dev am: b149c66beb -s ours
am skip reason: Merged-In I9f0d29ef69dc88cb8e876e37aac09ed7331c79b7 with SHA-1 f8c54e9912 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27046269

Change-Id: Ifa42ada09fb3d458c02ab9e9f4e3e582b9bc2969
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 08:31:23 +00:00
Enzo Liao
1f246cdd5a [automerger skipped] Apply common SELinux policies related to ramdumps and coredumps to zuma. am: 54d3a9babc -s ours
am skip reason: Merged-In I9f0d29ef69dc88cb8e876e37aac09ed7331c79b7 with SHA-1 f8c54e9912 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27046269

Change-Id: I19412558e18de4d9c4ea4db61abefb24250ab092
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 08:31:15 +00:00
Enzo Liao
b149c66beb Merge "Apply common SELinux policies related to ramdumps and coredumps to zuma." into 24D1-dev 2024-04-25 08:22:07 +00:00
Spade Lee
6efbf8b937 [automerger skipped] pixelstats: zuma: add history validation path am: e5daed552d -s ours
am skip reason: Merged-In Ia134e6b6b8dc0c9db35bcf36bed700b67466f353 with SHA-1 a4b4967c03 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27095803

Change-Id: I9dd62a738903955b528b09043c52f6c4d6375b26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 08:20:31 +00:00
Chungro Lee
40688b57ec [automerger skipped] pixelstats: move learning/model load path to sysfs am: b9d89f2a98 -s ours
am skip reason: Merged-In I91039ce3a8ee4630a76113ef7ae6be3bc6908f64 with SHA-1 c0f9207cf5 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/27095802

Change-Id: I467d0bf7a406567daacc4331ad5ff246e3142279
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-25 08:20:29 +00:00
Spade Lee
e5daed552d pixelstats: zuma: add history validation path
Bug: 329174074
Signed-off-by: Spade Lee <spadelee@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a4b4967c038aad263bc75f9248a7850355af62a1)
Merged-In: Ia134e6b6b8dc0c9db35bcf36bed700b67466f353
Change-Id: Ia134e6b6b8dc0c9db35bcf36bed700b67466f353
2024-04-25 06:11:11 +00:00
Chungro Lee
b9d89f2a98 pixelstats: move learning/model load path to sysfs
Reporting learning(relaxation) and model loading once a day
 * learning and model loading path moved from uevent to
   sysfs collector.

Bug: 329124192
Signed-off-by: Chungro Lee <chungro@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c0f9207cf5ad3b04ac4c64c844ab85c4a6803aab)
Merged-In: I91039ce3a8ee4630a76113ef7ae6be3bc6908f64
Change-Id: I91039ce3a8ee4630a76113ef7ae6be3bc6908f64
2024-04-25 06:11:02 +00:00
Sungtak Lee
6e58e58324 Merge "Reapply "Enable AIDL media.c2"" into main 2024-04-23 19:58:23 +00:00
Sungtak Lee
bfc4292c11 Reapply "Enable AIDL media.c2"
This reverts commit 4f00775b4e.

Bug: 321808716
Change-Id: I5f0b50b5e55924ea7c25f3bcfeabc0a4d5b32ffa
2024-04-23 08:50:23 +00:00
Kevin Ying
52be8e937c Add sepolicy for power_state node
Bug: 329703995
Test: manual - use camera
Change-Id: If9f14980e15a3b936bf2117f066e734ee122d72d
Signed-off-by: Kevin Ying <kevinying@google.com>
2024-04-22 22:20:42 +00:00
Enzo Liao
54d3a9babc Apply common SELinux policies related to ramdumps and coredumps to zuma.
Refer: ag/26620507

Bug: 298102808
Design: go/sys-software-logging
Test: Manual
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f8c54e99126678b4147885dbcddf7f0a25f1f3a3)
Merged-In: I9f0d29ef69dc88cb8e876e37aac09ed7331c79b7
Change-Id: I9f0d29ef69dc88cb8e876e37aac09ed7331c79b7
2024-04-22 03:02:41 +00:00
Kelvin Zhang
bb210c9c43 Move EFS/persist mount to a separate fstab
Next CLs in this stack will make changes to persist/efs mount process
This CL will first move relevant code to a separate file for easier
review.

To support booting under 16K page size, we need to copy files on
persist partition(F2FS, which does not support 16K page size)
to data partition(which will would be EXT4 for dev option enabled
devices).

Bug: 319335586
Change-Id: I2750eb8b53431037cecc972448799409345f5ca3
2024-04-19 20:22:56 -07:00
Priyanka Advani
831f38051d Merge "Revert "Enable AIDL media.c2"" into main 2024-04-19 21:40:43 +00:00