Marcelo Marcelo - 7 months ago 98
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?


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