String buildTags = android.os.Build.TAGS;
This code is for getting build.prop
located in /system/build.prop
. As you can see, you get android.os.Build.TAGS
, which means you get the value of ro.build.tags
inside build.prop
. here is the build.java code
For your second question, I cannot make sure that it will work, because my line is ro.build.tags
release-keys
in my root device.
source share