Identify WiFi Mac, Product Model, Serial Number using ADB

If you are looking for the device information of your Android device such as, product model, manufacturer, serial number or WiFi mac address etc, we will show how this can be obtained using following adb shell commands

First connect your android device/mobile over USB/Ethernet and check if that device is connected as

$ sudo adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
B2NGAA8831702707 device

Check the Mac Address of the WiFi

$ adb shell cat /sys/class/net/wlan0/address
6c:c4:d5:6f:84:dc 

Check Android Device Model using adb shell

$ adb shell getprop ro.product.model
Nokia 7 plus 

Check Android Device Manufacturer using adb shell

$ adb shell getprop ro.product.manufacturer
HMD Global 

Check Android Device Serial Number using adb shell

$ adb shell getprop ro.serialno
B2NGAA8831702707

Example shell script to extract device mac address using adb,

get_device_mac() {
    echo -n "getting device mac is ....."
    $ADB_PATH shell cat /sys/class/net/wlan0/address
    DEV_MAC=`$ADB_PATH shell cat /sys/class/net/wlan0/address`
    DEV_MAC=$(echo $DEV_MAC|tr -d '\n'|tr -d '\r') #cleaup \r \n output from adb
    echo "$DEV_MAC"
}

If you are looking for getting this information programatically, refer to “Identify Android API version, Device, Build Information programmatically

How to get mac address of android p... x
How to get mac address of android phone programmatically - find mac address android

1 thought on “Identify WiFi Mac, Product Model, Serial Number using ADB”

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development & Build Development, Debugging and Performance Tools Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web design and development Website Hosting Wordpress Yocto Embedded Linux