Disable hard reset of Android
Please clarify precisely what you meant when you say "hard reset"? Are you referring to factory reset? Hardware reset button? Power-on reset? Or something else?
In what brand/model of devices do you want it?
device is zebra tc25. Android 7.0 OS. Work managed
hard reset by doing booting-in to safe boot then do factory reset.
I also tried disabling safe boot on feature control but didnt work, I can still go into safe boot or recovery mode.
So you are actually talking about safe mode and factory reset. Both are mainly handled with feature-control policy. Whether or not these 2 options are supported depends mainly on the firmware and the device agent (OEM specific agent for Android+ and generic agent for Android Enterprise). There is seldom any bugs for these features in MobiContol device agents, as the main function is to receive the request from server and pass it to the firmware that actually implement it. Many brands with Android+ device agent do not support them because the firmware engineers of the OEM brand do not implement the right codes in the firmware to support them, and the only option is usually to report the problem, file a feature request to the OEM manufacturer and wait to see if there will be any firmware upgrade that support them.
For Android Enterprise devices, Google original source codes should have standard API's and codes to support the two feature control options. So the chance of having them on Android Enterprise devices should be higher. However, OEM firmware engineers of individual brand can still choose not to include them for the devices they are working on. If so, you also can only file a feature request and wait
Zebra devices are a bit special, cos they have MX layer that allows many customizations. I searched from the web and found something mentioning about disabling safe mode and factory reset. You can check Zebra's document to see if such features are supported for your device and firmware/MX versions.