adb got two same serial numbers when connected to two smart phones

后端 未结 7 1328
心在旅途
心在旅途 2020-11-27 16:57

I have two smart phones (ZTEV788d, system Android 2.3.6) connected to a computer (Ubuntu 11.10) at the same time, using co

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 17:38

    if your device is rooted try this way
    to change serial number your devices , first connect one of them to your pc then type this in cmd

    adb devices
    

    this shows your device id (serial number).

    List of devices attached
    P753A12D    device
    

    pick some new name ,for example NAME1
    then type this commands

    adb shell
    su 
    device_name="NEW_NAME"
    cd /sys/class/android_usb/android0/
    echo -n $device_name > iSerial
    cat iSerial
    

    exit exit from root
    exit exit from shell


    START
    now unplug the usb cable and run this commands

    adb kill-server
    

    connect your device again and type

    adb devices
    

    now you can see changes

    List of devices attached
    New_NAME    device
    

    END

    note : if it did not work first time
    disconnect your phone and do this parts of my guide from START to END again.

提交回复
热议问题