Merge "Merge 24Q3 (ab/11976889) to aosp-main-future" into aosp-main-future

This commit is contained in:
Xin Li 2024-06-20 20:22:34 +00:00 committed by Android (Google) Code Review
commit ff902d4fd9
211 changed files with 1848 additions and 150 deletions

View file

@ -14,11 +14,14 @@ on default_storage_mode
# F2FS
write /dev/sys/fs/by-name/userdata/data_io_flag 8
write /dev/sys/fs/by-name/userdata/node_io_flag 8
write /dev/sys/fs/by-name/userdata/max_io_bytes 524288
write /dev/sys/fs/by-name/userdata/min_hot_blocks 0
# Block
write /dev/sys/block/by-name/rootdisk/queue/iostats 1
write /dev/sys/block/by-name/rootdisk/queue/nr_requests 128
write /dev/sys/block/by-name/rootdisk/queue/rq_affinity 2
write /dev/sys/block/by-name/zoned_device/queue/rq_affinity 2
# UFS
write /dev/sys/block/bootdevice/clkgate_enable 1
@ -35,7 +38,7 @@ on init
# Block
write /dev/sys/block/by-name/rootdisk/queue/iostats 0
write /sys/sys/block/by-name/rootdisk/queue/nr_requests 256
write /dev/sys/block/by-name/rootdisk/queue/nr_requests 256
# UFS
write /dev/sys/block/bootdevice/clkgate_enable 0

View file

@ -0,0 +1,2 @@
# Userdata Exp block device.
type userdata_exp_block_device, dev_type;

1
storage/sepolicy/e2fs.te Normal file
View file

@ -0,0 +1 @@
allow e2fs userdata_exp_block_device:blk_file rw_file_perms;

View file

@ -3,3 +3,4 @@
/dev/sg[0-9] u:object_r:sg_device:s0
/data/vendor/storage(/.*)? u:object_r:dump_storage_data_file:s0
/vendor/bin/sg_read_buffer u:object_r:sg_util_exec:s0
/dev/block/by-name/userdata_exp.* u:object_r:userdata_exp_block_device:s0

1
storage/sepolicy/fsck.te Normal file
View file

@ -0,0 +1 @@
allow fsck userdata_exp_block_device:blk_file rw_file_perms;

View file

@ -1,4 +1,8 @@
allow vold sysfs_scsi_devices_0000:file rw_file_perms;
# Access userdata_exp block device.
allow vold userdata_exp_block_device:blk_file rw_file_perms;
allowxperm vold userdata_exp_block_device:blk_file ioctl BLKSECDISCARD;
dontaudit vold dumpstate:fifo_file rw_file_perms;
dontaudit vold dumpstate:fd use ;