summaryrefslogtreecommitdiff
path: root/usb/android.hardware.usb@1.2-service.redfin.rc
blob: 5e5077fda1213a7faf5d7064a53cc4b543442cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
service vendor.usb-hal-1-2 /vendor/bin/hw/android.hardware.usb@1.2-service.redfin
    class hal
    user system
    group system shell mtp

service init-gadgethal-sh /vendor/bin/init.gadgethal.sh
    class hal
    user root
    disabled
    oneshot

on boot
    chown root system /sys/class/typec/port0/power_role
    chown root system /sys/class/typec/port0/data_role
    chown root system /sys/class/typec/port0/port_type
    chmod 664 /sys/class/typec/port0/power_role
    chmod 664 /sys/class/typec/port0/data_role
    chmod 664 /sys/class/typec/port0/port_type