Currently we're using android-management-api on 100+ devices that are all under the same policy with a KIOSK mode app pushed to them. Most of the time the devices remain in the KIOSK mode, but from time to time we switch the pinning off, or apply and update, by changing to FORCE_INSTALLED and increasing minVersionCode.
ISSUE- Last week the app UNPINNING just stopped working all of a sudden(Was working fine for some months). No policy updates that we are pushing are being applied, tried deleting a policy (can't because the devices are using it), disabling the app(nothing happens). From the looks of it, we're stuck with devices that are pinned in one app and cannot be unpinned anymore.
I've read that applying policy update manually could help - but can't do it because of the pinned kiosk. Restarting device doesn't help.
Only solution i can come up with right now is using adb to factory re-install all of them, but manually re-installing 100+ devices isn't a solution.