It is possible to call these methods with JavaObject. I didn't succeed with becoming a device owner with the dpm tool. It seems that this tool doesn't support receivers that are implemented as inner classes (which is the case with the Administrator library).
This is the command that you should run to make it a device owner:
adb shell dpm set-device-owner <your package name>/anywheresoftware.b4a.objects.AdminManager$AdminReceiver
I figured it may be possible with JavaObject - yet not as simple as one would hope.
I use JavaObject calls with another API that was written in java it it works (rather) well.
When (and if) you get time, may you post an example of this usage, since I am not proficient with java calls and code.
This is all (it seems) beyond my level of understanding. Once defined, it often becomes clear(er).
There are other ways to kiosk, as we have explored... Just expanding our horizons with what Android has introduced as simpler approaches.
I wonder thou, if notifications are blocked, if my app will receive (the notification) that a new update needs to be installed?
Coding for everyone and every possible condition is VERY complicated. No???
Thanks