# How to enroll a device in non-Android Enterprise as device owner

A device must be enrolled in an MDM solution to securely manage it. Android devices can be enrolled to Hexnode in either device/profile owner or as device admin. Usually, devices deployed through **Hexnode UEM** app will be enrolled as device admin. And those devices with **Hexnode for Work** app installed will be device/profile owner enrolled. But with Hexnode, you can also enroll in device owner with Hexnode UEM app.

Devices running Android 5.0 or later can be enrolled in non-Android Enterprise Device Owner via ADB.

 Notes:- MDM device owner enrollment is available for Android 5.0+ devices.
- Remove all accounts added to the device prior to enrollment.
- MDM app device owner enrollment is not available in Android Go devices.

 

How to enroll a device in non–Android Enterprise device owner via ADB?
----------------------------------------------------------------------

1. In the device, go to **Settings** > **System** > **About phone** and tap on the build number 7 times.
2. Go to **Settings** > **Developer Options** and enable **USB Debugging**.
3. Install ADB on your computer and download [Hexnode UEM](https://downloads.hexnode.com/HexnodeMDM.apk) to the ADB folder.
4. Open Command Prompt, navigate to the ADB folder and start ADB server with the following command: adb command to start server
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    adb start-server
    
       1
    
    
    
      adb start-server
5. Connect the Android device to the computer, and use this ADB command to get Hexnode UEM installed: adb command to install Hexnode UEM apk
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    adb install HexnodeMDM.apk
    
       1
    
    
    
      adb install HexnodeMDM.apk
6. Type in the following command to make Hexnode UEM the device owner: adb command to make Hexnode UEM the device owner
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    adb shell dpm set-device-owner com.hexnode.hexnodemdm/com.hexnode.mdm.receivers.HexnodeDeviceAdminReceiver 
    
       1
    
    
    
      adb shell dpm set-device-owner com.hexnode.hexnodemdm/com.hexnode.mdm.receivers.HexnodeDeviceAdminReceiver
7. Open the Hexnode UEM app in the device and either scan the QR code or type in the server name.
8. Follow the on-screen instructions.

 Notes:- Like normal Android Enterprise Device Owner, the blocklisted app will be hidden on the device.
- Silent app installation for store apps is not supported on MDM Device Owner enrolled devices.