Marcelo Marcelo - 1 year ago 201
Android Question

"adb shell getprop" returning empty string

I'm trying to get from the device (running android L) the country and the language with the following commands:

adb shell getprop
adb shell getprop persist.sys.language

But both return a empty string.

When I try another getprop command, like:

adb shell getprop ro.product.model

It returns the correct value.

Anyone knows what is happening?

Answer Source

Found the solution:

Android has changed this prop name in the last versions. You can use now:

adb shell getprop ro.product.locale


adb shell getprop persist.sys.locale
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download