Using adb with multiple devices with the same serial number
Maybe I can help you, I was able to solve this issue by changing the device ID/Serial:
adb shell
cd /sys/class/android_usb/android0/
echo -n xxx > iSerial
(the xxx is the device id you want)cat iSerial
(check the new device id)- Unplug usb cable and plug again, then the change worked.
To change each id, your PC should only be connected to one device via usb.
Same serial number on several android devices. Adb is useless. How can I change the serial number?
You need to populate /sys/class/android_usb/android0/iSerial
sysfs file with unique values for every device. Most vendors do it with custom init script, which would read the value from a persistent system property or a regular file and put it in sysfs on every power up.
How to use ADB Shell when Multiple Devices are connected? Fails with error: more than one device and emulator
Use the -s
option BEFORE the command to specify the device, for example:
adb -s 7f1c864e shell
For multiple Emulator, use the process's IP and port as the id, like:
adb -s 192.168.232.2:5555 <command>
See How to get the Android Emulator's IP address?
But if there is only a single Emulator, try:
adb -e <command>
See also http://developer.android.com/tools/help/adb.html#directingcommands
adb error: more than one device - android
I got it
C:\Users\MBH>adb devices -l
List of devices attached
0123456789ABCDEF device product:ZEN model:ZEN device:ZEN
0123456789ABCDEF device product:full_gs702c model:M757 device:gs702c
Then I could use the model number for shelling
C:\Users\MBH>adb -s model:M757 shell
shell@gs702c:/ $ ls
it works now
Android device does not show up in adb list
Looks like the installed driver was in bad state. Here is what I did to make it work:
- Delete the device from Device Manager.
- Rescan for hardware changes.
- List item "Slate 21" will show up with "Unknown driver" status.
- Click on "Update Driver" and select /extras/google/usb_driver
Device Manager will find the driver and warn you about installing it. Select "Yes."
This time the device got installed properly.
Note that I didn't have to modify winusb.inf file or update any other driver.
Hope this helps.
Related Topics
How to Start an Activity from Within a Fragment
How to Set Text to View from Drawer Header Layout in Navigation Drawer Without Inflating View
Adding Your Own SQLite Database to an Android Application
How to Tell If the Soft-Keyboard Is Shown
Replacing Default Phone App on Android 6 and 7 with Incallservice
Save Data and Change Orientation
How to Make APK Secure. Protecting from Decompile
Bulk Insertion on Android Device
Android Event for Internet Connectivity State Change
Startlescan with 128 Bit Uuids Doesn't Work on Native Android Ble Implementation
How to Reference an Asset in a Library Project
Android Studio: Duplicate Files Copied in APK Meta-Inf/Dependencies When Compile
How to Add Android Support V7 Libraries in Eclipse
Camera Intent Not Working with Samsung Galaxy S3
Replacing Glreadpixels with Egl_Khr_Image_Base for Faster Pixel Copy