How To Use ADB: All Commands and Options. Discussion in 'Android Hacks and Help' started by alquimista, Dec 5. Adb -s [my serial number] shell adb: permission denied. Change things up, added or removed the [ ] on either end of the serial number, tried the super user (su) command. A unique number will be assigned to every device by the manufacturer. This id is known as Serial number. You can check your device Serial number by navigating to Settings -> About the phone -> Phone Status. Note: Similarly, a unique number is assigned to SIM slot it is known as IMEI number. The app is NOT GOING TO CHANGE THE ID PERMANENTLY.
Now change the value to any name after “=” as you want your device pretend to be. For example if you want your device pretend to be Galaxy S5(model SM-G900), the lines should be followings: ro.product.model=SM-G900 ro.product.manufacturer=Samsung. You can set any name or number here though. Not showing up in the initial list, does show up if I click find, as MTP device with Samsung drivers, and device with serial number with ADB drivers. Doesn't work from there however. ADB debugging is enabled. Edit: PTP mode solves the connectivity issue, but image is garbled and squished. Know Your Android Tools: What Is ADB & How Do You Use It? By Frank Bozzo; 6/18/14 11:41 AM. You should see it list your device by its serial number with the word 'device' next to it. If you do, ADB is properly configured and communicating with your device. Change YouTube's Default Quality to Get High-Resolution Videos Every Time. Get/set imei number with adb for android phones [duplicate] Ask Question -1. This question already has an answer here. Get second imei number through adb shell. How can I get the IMEI on Lollipop and upper with ADB? Hot Network Questions. Can time exist without change?
Anyone who has rooted their Android device has likely used a tool called Android Debug Bridge, better known as ADB, at some point during the process. For most, that is their only interaction with the ADB, but to be a true Android power user, you need to really know the tools at your disposal.
Delving deeper into what ADB is and what it can do will help you to be more confident when modifying your device, as well as assist you in troubleshooting and fixing issues that you might experience along the way.
What Is ADB?
ADB is a versatile command line tool that allows you to communicate with your device and accomplish a host of different tasks from your computer, such as transferring data, recording the screen's output to a video file, and running powerful shell commands.
ADB is, as the name suggests, used primarily as a debug tool for Android developers. It is included in the Android SDK, or Software Development Kit.
How to Install ADB
If you only need ADB, downloading the entire Android SDK is overkill. Thankfully, it is possible to download and install the specific tools that we need in just a few easy steps, on all major operating systems.
Installing ADB on Windows
Getting ADB to work on Windows has always been a bit of an annoying task. Thankfully, XDA forums user Snoop05 created an installer that massively simplifies the process, by installing ADB and Fastboot (another useful tool), installing necessary device drivers, and adding these tools to your system PATH (allowing them to be run from any folder via the command line) into a 15-second operation.
Simply download and run the installer. You will be asked if you want to install ADB and Fastboot—type 'Y' and press enter. It will then ask if you want to install ADB system-wide—again, type 'Y' and press enter.
Active2 years, 5 months ago
I bought a lot (500+) cheap China tablet with AllWinner processor and Android 4.0.3. All tablets expose the same serial number. I can't deploy my application simultaneously on several devices (with a USB hub) using ADB.EXE because it can't distinguish them.
I'm thinking about a pre-deploy process that change the internal serial number, is it possible? Where is the serial number stored?
Note: tablets are rooted
Seraphim's
Seraphim'sSeraphim's7,2711515 gold badges7070 silver badges118118 bronze badges
3 Answers
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.Alex P.Alex P.
22.2k1414 gold badges7575 silver badges127127 bronze badges
Try editing
/data/misc/wifi/serialno
then reboot, it worked as a permanent solution for meThe location of this number may differ between android versions
The serial number should be stored in a file with only the serial number inside and no
n
moumou
build number etc by editing the 'build.prop' file in /system. The serial number can be changed by adding the property 'ro.serialno=' to build.prop file
Jianfei ChenJianfei Chen