We want to block the user from formatting the device. So we have created a custom policy with following options.
"factoryResetDisabled": true,
"safeBootDisabled": true,
This does not work when Policy is enrolled, as when we went to boot-loader menu we were able to successfully format the device. Also the custom policy were removed from the device. Is there any approach via which the factory reset is blocked from Boot loader as well?