summaryrefslogtreecommitdiffstats
path: root/recipes/adbd/files
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-08 16:19:06 +0200
committerSamuli Piippo <samuli.piippo@theqtcompany.com>2015-12-09 08:35:06 +0000
commiteb72bbdd06b1b60c443e444527e3d7c6d2b53dfd (patch)
tree8b7e86a1acd47e5699d1a4fd72ffee03d9bb2816 /recipes/adbd/files
parent6c4d41f4797779cade64bad60c0b6315697b9b22 (diff)
downloadmeta-boot2qt-eb72bbdd06b1b60c443e444527e3d7c6d2b53dfd.tar.gz
adb: make sure serial number is max 32 characters
Windows adb cannot handle devices which have longer serial, so limit it to 32 characters. Remove the -linux- part of the hostname to make it a bit shorter. Change-Id: I3f6f811a9ecd8a273576fdef268d5a343edc531e Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'recipes/adbd/files')
-rwxr-xr-xrecipes/adbd/files/adb-init2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/adbd/files/adb-init b/recipes/adbd/files/adb-init
index d8920b8..5f47fd0 100755
--- a/recipes/adbd/files/adb-init
+++ b/recipes/adbd/files/adb-init
@@ -11,7 +11,7 @@ fi
11case "$1" in 11case "$1" in
12start) 12start)
13 if [ "$USE_ETHERNET" = "no" ]; then 13 if [ "$USE_ETHERNET" = "no" ]; then
14 modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL} 14 modprobe g_ffs idVendor=${VENDOR} idProduct=${PRODUCT} iSerialNumber=${SERIAL:0:32}
15 mkdir -p /dev/usb-ffs 15 mkdir -p /dev/usb-ffs
16 chmod 770 /dev/usb-ffs 16 chmod 770 /dev/usb-ffs
17 mkdir -p /dev/usb-ffs/adb 17 mkdir -p /dev/usb-ffs/adb