From 814a93dd86deabcc1ec0bd62b09143b6912c2dd9 Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Wed, 26 Oct 2016 15:13:32 +0200 Subject: temporary changes to get adb working --- BoardConfig.mk | 4 ++++ rootdir/init.target.rc | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index aee9508..8220354 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -56,5 +56,9 @@ BOARD_CHARGER_RES := device/samsung/i9300/res/charger # assert TARGET_OTA_ASSERT_DEVICE := m0,i9300,GT-I9300 +ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0 \ + ro.sys.usb.configfs=1 \ + ro.sys.usb.controller=12480000.hsotg + # inherit from the proprietary version -include vendor/samsung/i9300/BoardConfigVendor.mk diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc index 7713c71..2ede97a 100644 --- a/rootdir/init.target.rc +++ b/rootdir/init.target.rc @@ -33,6 +33,15 @@ on post-fs-data chmod 0644 /dev/icdr chown system system /dev/tzic + # always start adb + symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/c.1/ffs.adb + start adbd + #Add this 2 second wait/delay to calm things down after adbd restart and before we enable UDC. + wait /dev/socket/waiting + write /config/usb_gadget/g1/UDC "12480000.hsotg" + # workaround until suspend can properly be prevented + write /sys/power/wake_lock adb_lock + # make param block device link for SysScope symlink /dev/block/mmcblk1p4 /dev/block/param @@ -71,12 +80,9 @@ on boot # group system inet sdcard_rw gps # seclabel u:r:glgps:s0 - # always start adb - symlink /config/usb_gadget/g1/functions/ffs.adb /config/usb_gadget/g1/configs/c.1/ffs.adb - start adbd - #Add this 2 second wait/delay to calm things down after adbd restart and before we enable UDC. - wait /dev/socket/waiting - write /config/usb_gadget/g1/UDC "12480000.hsotg" + # start logd + # start logd + # start logd-reinit on property:dev.bootcomplete=1 -- cgit v1.1