Stack Overflow archive
1 scoreaccepted

Programmatically accessing the KNOX counter

score
1
question views
2.5K
license
CC BY-SA 3.0

I just decompiled KNOX Status. It looks like all the app is doing is getting the system property ro.boot.warranty_bit. I'm not sure if this still works and I don't have a Samsung at the moment to test.

In terminal run:

bash
adb shell getprop ro.boot.warranty_bit

If the result is 0, then the warranty should be valid. You can use this class to get the system property in an Android app.

Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.