diff options
author | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-10-26 15:13:32 +0200 |
---|---|---|
committer | Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de> | 2016-10-26 15:13:32 +0200 |
commit | 814a93dd86deabcc1ec0bd62b09143b6912c2dd9 (patch) | |
tree | 6a837fc4bf414041572932d00dc883790ea66efe | |
parent | d43af1e61c6e97b158936cdb550aa50be5edb969 (diff) | |
download | device_samsung_i9300-814a93dd86deabcc1ec0bd62b09143b6912c2dd9.zip device_samsung_i9300-814a93dd86deabcc1ec0bd62b09143b6912c2dd9.tar.gz device_samsung_i9300-814a93dd86deabcc1ec0bd62b09143b6912c2dd9.tar.bz2 |
temporary changes to get adb workingreplicant-6.0-mainline
-rw-r--r-- | BoardConfig.mk | 4 | ||||
-rw-r--r-- | 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 |