I am playing around with the com.samsung.knox.example.gettingstarted app. I gained the developer license from the KNOX portal to do so.
I installed two versions (under different application IDs) of the app on my Samsung device with Android 13:
- First app calls
restrictionPolicy.allowSafeMode(false) restrictionPolicy.isSafeModeAllowed()returnsfalse(as expected)- Second app calls
restrictionPolicy.allowSafeMode(true) restrictionPolicy.isSafeModeAllowed()returnsfalse(I assumedtrue)
Questions
- Is that common behavior of the KNOX API across all restrictions?
- Where's that behavior documented?
KNOX Tech Support told me "the stronger policy will take precedent". Example
In my case
restrictionPolicy.allowSafeMode(false)is the stronger policy among two.