device_phh_treble/files/adbd.rc
Pierre-Hugues Husson 82aeb3d402 Fix adbd on devices with integrity check
Some devices (Like Samsung Galaxy J6) has integrity check.
This means that all files outside of /system are signed by the OEM.
Since we replaced /sbin/adbd, that's an issue.
Workaround this by creating a new service, called adbd_system, which
will called instead of /sbin/adbd when needed
2018-12-03 22:06:32 +01:00

9 lines
225 B
Plaintext

service adbd_system /system/bin/adbd --root_seclabel=u:r:su:s0
class core
socket adbd stream 660 system system
disabled
seclabel u:r:adbd:s0
on property:sys.usb.state=adb && property:sys.phh.five=true
start adbd_system