Commit graph

13 commits

Author SHA1 Message Date
Randall Huang
1ffd592ab0 storage: move storage related device type to common folder
Bug: 364225000
Test: forrest build
Change-Id: I7d1652ff0415d557a57d7eb99f9c2a9470f471ab
Signed-off-by: Randall Huang <huangrandall@google.com>
2024-09-04 12:47:11 +08:00
Randall Huang
2baf9fb7c5 Storage: fix build breakage of storage firmware upgrade sepolicy
Bug: 361093041
Test: local build
Change-Id: I12a3f2822b2a547031ce29522597ed4a31a69b06
Signed-off-by: Randall Huang <huangrandall@google.com>
2024-09-03 06:11:57 +08:00
Will McVicker
37bba82cfb Move haptics sepolicy to gs101-sepolicy
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
2023-09-29 09:16:22 -07:00
Roy Luo
5e130ea7c3 Revert "Update the cs40l26a i2c device node sepolicy labeling"
Revert submission 24855741-gs101-i2c-bus-fixes

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_main&target=bluejay-trunk_food-userdebug&lkgb=10876543&lkbb=10876988&fkbb=10876587, bug b/302549624.

Reverted changes: /q/submissionid:24855741-gs101-i2c-bus-fixes

Change-Id: I1450fd464d661edbb7b3dc45bccc46f1e4d3a4bc
BUG: 302549624
2023-09-28 18:00:06 +00:00
Will McVicker
ccdd975a88 Update the cs40l26a i2c device node sepolicy labeling
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
2023-09-18 15:37:54 -07:00
Tai Kuo
4fda2b1233 Add more CS40L26 i2c paths
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
2023-09-04 17:54:36 +08:00
Leo Liou
5431c78f3c bluejay: move ffu selinux rule into BOARD_VENDOR_SEPOLICY_DIRS
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>
2023-07-18 13:02:39 +08:00
Ted Wang
b5b80403a1 Add sepolicy for aidl bt extension hal
Bug: 280970790
Bug: 282685427
Test: make sepolicy and manual test
Change-Id: I54de5dce02eb8ba01a90b1f14389a36114d9e8b0
2023-05-15 12:40:51 +00:00
Leo Liou
ca6ca14a45 bluejay: add sepolicy for ufs_firmware_update process
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>
2023-03-31 13:25:05 +08:00
chungkai
97bad77bfa genfs_contexts: fix path for i2c peripheral device
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
2022-04-14 04:00:32 +00:00
chungkai
97b7cebd49 genfs_contexts: fix path for i2c peripheral device
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
2022-03-31 09:08:39 +00:00
Tai Kuo
a3e65a0674 Remove CS40L26 common rules
Bug: 220651401
Test: full build.
Test: Check normal and audio-coupled haptics function
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I4b87df352a066e50d1dd5e23b7b0cb06216fc78b
2022-02-21 16:42:27 +08:00
Robin Peng
ad04f387e5 Move bluejay source code into bluejay device folders
from: 9419ce002ef9160ace967918f3568c88b5731d0f

Bug: 206553389
Change-Id: If4e8b2b04ecc6804b20ef7eebadcea565eb7c3e2
2021-11-16 22:06:17 +08:00