Creating an MDM and want to ensure the device cannot be factory reset. Is there anyway to either disable the factory reset functionality or either have recovery mode as a whole unaccesssible or password protected?
Third party recoveries such as twrp dont seem to be the answer as they come with more customizability and options. Theres also an option in the Android Management API that allows to set "factoryResetDisabled": true, but that seems to only be for the option in settings menu, not recovery (I have not tested this atm, if someone can confirm or deny this that would be helpful)