Merge "storage: turn off pixel storage debugging code on user builds" into main

This commit is contained in:
Randall Huang 2023-08-10 02:11:30 +00:00 committed by Android (Google) Code Review
commit 047b170bb8
3 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ package {
cc_binary {
name: "dump_storage",
srcs: ["dump_storage.cpp"],
init_rc: ["init.storage.rc"],
cflags: [
"-Wall",
"-Wextra",

2
storage/init.storage.rc Normal file
View File

@ -0,0 +1,2 @@
on property:ro.build.type=userdebug
write /dev/sys/block/bootdevice/pixel/enable_pixel_ufs_logging 1

View File

@ -1 +1,2 @@
/vendor/bin/dump/dump_storage u:object_r:dump_storage_exec:s0
/sys/devices/platform/[0-9]+\.ufs/pixel/enable_pixel_ufs_logging u:object_r:sysfs_scsi_devices_0000:s0