How to restrict users from flashing ROM in Android devices?

Description

Flashing ROM in Android devices refers to replacing the existing ROM with a custom ROM, which in effect replaces the stock OS in the device with a customized verison of the OS. Replacing the stock OS in the devices causes problems such as device warranty going void, the device being less secure etc.,

Steps

To prevent flashing, a combination of two restrictions needs to be pushed to the managed Android devices, as explained below:

  1. Click on Device Management and select Profiles.
  2. Click on Create Profiles and select Android Profile, to create a new profile.
  3. Click on Restrictions, select Security and restrict Developer Mode.
  4. Select Sync and Storage, restrict USB.
  5. Publish and distribute this profile to managed Android devices.