S666LN: sepolicy: add primary_dvchg to file_contexts

12-21 04:34:44.772   889   889 W android.hardwar: type=1400 audit(0.0:374): avc:  denied  { open } for  path="/sys/devices/platform/soc/11eb3000.i2c/i2c-9/9-006a/power_supply/primary_dvchg/type" dev="sysfs" ino=50321 scontext=u:r:hal_health_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

also reduce spams in log

Signed-off-by: KimelaZX <mmikailrei@gmail.com>
This commit is contained in:
KimelaZX
2025-12-21 04:47:00 +00:00
parent 02469540a0
commit 61e0c3afe1

View File

@@ -5,6 +5,7 @@
# BatteryInfo
/sys/devices/platform/soc/1101a000.i2c/i2c-6/6-006b/power_supply/charger(/.*)? u:object_r:sysfs_batteryinfo:s0
/sys/devices/platform/soc/11eb3000.i2c/i2c-9/9-006a/power_supply/primary_dvchg(/.*)? u:object_r:sysfs_batteryinfo:s0
/sys/devices/platform/odm/odm:tran_auto_test/power_supply/tran-auto-test(/.*)? u:object_r:sysfs_batteryinfo:s0
# Camera