The i2c-7/7-0043 label is shared with both i2c-7/i2c-cs40l25a and
i2c-7/i2c-cs40l26a nodes. To make it clear that these all are related,
let's move i2c-7/i2c-cs40l26a to gs101-sepolicy and have all the gs101
vibrator policy labels together.
Test: build on b3 and verify i2c nodes on r4
Bug: 291606723
Change-Id: I58be5961120c0ec5597a947c5ab6caa52aeb7bce
This change needs to be merged with the corresponding kernel change that
sets the i2c bus aliases correctly to match the existing v5.10 bus
probe ordering.
To verify the sepolicy labeling doesn't change, run the below commands
and diff the stdout on builds with and without the changes. For extra
credit, verify the nodes are labeled the same when upgrading the kernel
to v6.1 (with the correct i2c aliases to match the existing policy):
acpm_bus_array=("acpm_mfd_bus@17500000" "acpm_mfd_bus@17510000")
for bus in ${acpm_bus_array[@]}; do
adb shell ls -ZR /sys/devices/platform/${bus}/i2c-*;
done
bus_array=("10960000" "10970000" "10d50000" "10900000")
for bus in ${bus_array[@]}; do
adb shell ls -ZR /sys/devices/platform/${bus}.hsi2c/i2c-*;
done
Test: verify on b3
Bug: 291606723
Change-Id: I36e41d7e2379b731c2092a679dc4e4042e0d3651
Sometimes the I2C will not be in the usual allowlist, need to
enumerate possible paths to prevent unexpected vibrator behaviors.
Bug: 284969808
Test: full build
Test: Check normal and audio-coupled haptics function
Change-Id: I84772c484022b47cc6db79ecd96b327279f7dfbc
The ffu selinux rule don't work because it's not included by
BOARD_VENDOR_SEPOLICY_DIRS. Move it to bluejay folder and fix the
not working problem.
Bug: 273305600
Test: local build and test on B3
Change-Id: I7c9034b72b237508ecd9893fe86dee51d47c3c88
Signed-off-by: Leo Liou <leoliou@google.com>
Allow the script to access the specified partition and sysfs.
Bug: 273305212
Test: full build and test ffu flow
Change-Id: I6f86606ebf0da631d1d2c1a433a9d200d6cac51c
Signed-off-by: Leo Liou <leoliou@google.com>
paths are changed when we enable parallel module loading and
reorder the initializtaion of devices.
Test: without avc denial on B3 when booting
Bug: 22754176
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I5153ec42d996390ae8167c67f35402afe65105cd
paths are changed when we enable parallel module loading and
reorder the initializtaion of devices.
Test: without avc denial on B3 when booting
Bug: 227541760
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I38c8baaa221e7552d2cdabe2169e937ec0d548ea
Bug: 220651401
Test: full build.
Test: Check normal and audio-coupled haptics function
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I4b87df352a066e50d1dd5e23b7b0cb06216fc78b