Get Samsung warranty bit programmatically

1.8k views Asked by At

I would like to get, among other things, the status of the warranty bit on Samsung devices programmatically. Much like the information that is displayed in Odin mode.

I understand that the bit is not meant for polling, but I would like to know if there is any way to get it without having to create a container or during attestation.

Much like the KNOX Status Samsung app on GP https://play.google.com/store/apps/details?id=com.bryancandi.knoxcheck&hl=en

Thanks!

1

There are 1 answers

5
k1ll3r8e On BEST ANSWER

You can get the warranty state like this:

adb shell getprop ro.boot.warranty_bit
and
adb shell getprop ro.warranty_bit

If both return 1 the warranty_bit is set 0x1

Regards,
Sebastian