Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Android ADB commands to get the device or emulator properties

#You should use adb shell getprop command and grep specific info about your current device, For additional information you can read documentation: Android Debug Bridge documentation
#I added some examples below:

language - adb shell getprop | grep language

[persist.sys.language]: [en]

[ro.product.locale.language]: [en]

boot complete ( device ready after reset) - adb shell getprop | grep boot_completed

[sys.boot_completed]: [1]

device model - adb shell getprop | grep model

[ro.product.model]: [Nexus 4]

sdk version - adb shell getprop | grep sdk

[ro.build.version.sdk]: [22]

time zone - adb shell getprop | grep timezone

[persist.sys.timezone]: [Asia/China]

serial number - adb shell getprop | grep serialno

[ro.boot.serialno]: [1234567]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Android #ADB #commands #device #emulator #properties
ADD COMMENT
Topic
Name
3+4 =