pmaports/device/device-samsung-golden/downstream/init-usb-hook.sh
Minecrell 281504d6af
device-samsung-golden: split downstream kernel into separate package (!833)
Prepare for mainline by moving the downstream-specific files
into a separate downstream package.
2019-12-30 19:19:40 +01:00

7 lines
442 B
Bash

#!/bin/sh
# Enable usb, pulled from TWRP sources
cat /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/serial_number > /sys/devices/virtual/android_usb/android0/iSerial
cat /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
cat /sys/devices/platform/ab8505-i2c.0/ab8500-usb.0/boot_time_device > /sys/devices/platform/ab8505-i2c.0/ab8500-usb.0/boot_time_device