• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import init.${ro.hardware}.usb.rc
2
3on init
4    mount debugfs /sys/kernel/debug /sys/kernel/debug
5    # switch USB to peripheral
6    write /sys/kernel/debug/hisi_inno_phy/role "peripheral"
7
8on fs
9    mount_all /vendor/etc/fstab.${ro.hardware}
10    swapon_all /vendor/etc/fstab.${ro.hardware}
11
12on boot
13    setprop service.adb.tcp.port 5555
14