mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 18:19:03 +00:00
Move chmod of /dev/diag earlier for sensors access
openat(AT_FDCWD, "/dev/diag", O_RDWR) = -1 EACCES (Permission denied)
denied { dac_override } for pid=772 comm="sensors.qcom" capability=1
scontext=u:r:sensors:s0 tcontext=u:r:sensors:s0 tclass=capability
Bug: 62955057
Test: build and flash. Denial no longer occurs
Change-Id: I960ff4eeb5afe194751541958a4af33f487e3d3c
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
on init
|
||||
chmod 666 /dev/diag
|
||||
|
||||
on post-fs-data
|
||||
# Modem logging collection
|
||||
mkdir /data/vendor/radio 0777 radio radio
|
||||
@@ -22,9 +25,6 @@ on post-fs-data
|
||||
mkdir /data/vendor/wifi 0777 system system
|
||||
mkdir /data/vendor/wifi/cnss_diag 0777 system system
|
||||
|
||||
on boot
|
||||
chmod 666 /dev/diag
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=diag && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/configs/b.1/strings/0x409/configuration "diag"
|
||||
rm /config/usb_gadget/g1/configs/b.1/f1
|
||||
|
||||
Reference in New Issue
Block a user