diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-06-06 11:16:26 +0200 |
---|---|---|
committer | Joonas Kylmälä <joonas.kylmala@iki.fi> | 2019-06-12 16:49:32 -0400 |
commit | 2861eec7318349272b459f20eadd09c3855a0e91 (patch) | |
tree | 653b0cb9eb1716c171c3c939c07ccc05c170504f | |
parent | 0d68752cc3efd8757c4aeac3f2df0a5bcf131267 (diff) | |
download | device_samsung_i9300-2861eec7318349272b459f20eadd09c3855a0e91.tar.gz device_samsung_i9300-2861eec7318349272b459f20eadd09c3855a0e91.tar.bz2 device_samsung_i9300-2861eec7318349272b459f20eadd09c3855a0e91.zip |
HACK: Check in working ADB configuration
This goes in pair with the kernel configuration. Most of the
setup is done in the kernel through CONFIG_USB_FUNCTIONFS=y
The CONFIG_USB_FUNCTIONFS=y configuration should instead be
replaced by proper userspace setup.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | device.mk | 5 | ||||
-rw-r--r-- | init.smdk4x12.rc | 14 |
2 files changed, 19 insertions, 0 deletions
@@ -108,3 +108,8 @@ PRODUCT_COPY_FILES += \ ifeq ($(TARGET_BUILD_VARIANT),eng) PRODUCT_COPY_FILES += device/samsung/i9305/console.rc:system/etc/init/console.rc endif + +# ADB support +PRODUCT_PROPERTY_OVERRIDES += \ + persist.service.adb.enable=1 \ + persist.sys.usb.config=adb diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc index be1acf3..ab9ee5a 100644 --- a/init.smdk4x12.rc +++ b/init.smdk4x12.rc @@ -14,6 +14,15 @@ # limitations under the License. # +on boot + mkdir /dev/usb-ffs 0770 shell shell + mkdir /dev/usb-ffs/adb 0770 shell shell + mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 + setprop sys.usb.configfs 1 + setprop sys.usb.controller 12480000.hsotg + # Hack to make sure to get adbd at boot + start adbd + on fs mount_all /fstab.smdk4x12 @@ -33,3 +42,8 @@ on early-boot setprop debug.sf.no_hw_vsync 1 setprop hwc.drm.use_overlay_planes 1 + +on init + # Create mount-point for ConfigFS USB gadgets + # Add standard gadget entries + mount configfs none /config |