“adb shell getprop” – Gets an Android system property, or lists them all

As we have seen in our another post “commands to Identify Product Model, Serial Number ( Device Information of Android )” we had used getprop command after we accessed shell using adb command.

“getprop” command helps us to know / identify more information about the device as well as what are the run time properties set by this Android device which are accessed by all the applications. Applications make certain decisions based on the these properties which we access using adb shell getprop command.

As described by getprop help,


Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )

   


$ getprop --help                                                                                                                                                                              
usage: getprop [-TZ] [NAME [DEFAULT]]

Gets an Android system property, or lists them all.

-T	Show property types instead of values
-Z	Show property contexts instead of values

Now, we will just show getprop commands output on our Android mobile as,

$ adb shell getprop | grep "ro.product.vendor"
[ro.product.vendor.brand]: [Nokia]
[ro.product.vendor.device]: [B2N_sprout]
[ro.product.vendor.manufacturer]: [HMD Global]
[ro.product.vendor.model]: [Nokia 7 plus]
[ro.product.vendor.name]: [Onyx_00WW]

If you just gave “adb shell getprop” it will list all the properties of device, in above command using grep, we just filtered some properties for simple demo.

lynxbee_ezoic

Leave a Comment

Android Android Build system Android Commands Android Java Applications 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 Audio, Video, Images NDK / Middleware / HAL OS 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 / Bitbake / Openembedded