Adb Change Device Serial Number

Posted on  by 

  1. Adb Change Device Serial Number Location
  2. Adb Change Device Serial Number Mac

Xiaomi DuoKan E-reader ADB commands list. Contribute to epodegrid/epd106-ADB development by creating an account on GitHub. 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 devicename='NEWNAME' cd /sys/class/androidusb/android0/ echo -n.

Change

Android Debug Bridge (adb) is a versatile command-line tool, included in the Android Studio, that lets you communicate with a device.

It can be used to grant certain privileges which would otherwise require a rooted device. Start by listing the connected devices and their serial number by executing the adb devices shell command, then to grant a privilege:

Adb change device serial number location
  • modify secure system settings:
    adb -s <serial number> shell pm grant com.llamalab.automate android.permission.WRITE_SECURE_SETTINGS
  • change system display settings:
    adb -s <serial number> shell pm grant com.llamalab.automate android.permission.CHANGE_CONFIGURATION
  • limit number of running processes:
    adb -s <serial number> shell pm grant com.llamalab.automate android.permission.SET_PROCESS_LIMIT
  • intercept volume key long press:
    adb -s <serial number> shell pm grant com.llamalab.automate android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER
  • read sensitive log data:
    adb -s <serial number> shell pm grant com.llamalab.automate android.permission.READ_LOGS
  • write sms:
    adb -s <serial number> shell appops set com.llamalab.automate WRITE_SMS allow

Some manufacturers require additional steps before the above commands can be executed:

Xiaomi

  • System SettingsSecurity settingsUSB debugging → choose Allow granting permissions

When the commands has been executed the app may have to be restarted, e.g. by using the “Force close” button in system App setting, before taking full affect.

Connecting over TCP/IP

Adb Change Device Serial Number

Adb Change Device Serial Number Location

By default an Android device only allow a ADB host, e.g. a PC, to connection through USB. To make a device accept connections over TCP/IP, e.g. Wi-Fi, execute the shell command adb tcpip 5555, then disconnect the USB cable. This has to be repeated after every device reboot.

Adb Change Device Serial Number Mac

Warning! When a new ADB host connects, the user has to authorize it. Never confirm/grant access when an unknown device tries to connect!

Coments are closed