Category filter

Grant Permissions for Hexnode Apps using Android Debug Bridge (ADB)

Android Debug Bridge (ADB) is a command-line tool that allows a computer to communicate with a connected Android device. It empowers administrators to execute various actions on Android devices, such as installing apps, granting app permissions, and more. This article will walk you through the steps to automatically grant several permissions for the Hexnode apps using Android Debug Bridge.

ADB commands to grant permissions for Hexnode UEM app

Follow the below series of steps to install the Hexnode UEM app, make the app a Device Owner, and later grant the necessary app permissions via ADB:

  1. Navigate to Settings > About phone > Software information on the Android device. Next, tap on the Build number seven times to turn on Developer mode.
  2. Then, head on to Settings > Developer options and enable USB debugging.
  3. Now, install ADB on your computer and download the Hexnode UEM app to the ADB folder.
  4. Next, open Command Prompt and navigate to the ADB folder. Enter the below command to start the ADB server:
  5. Now, you can connect your Android device to the computer. Execute the below command to install the Hexnode UEM app on the device:
  6. Next, enter the following command to make Hexnode UEM the device owner:
    Note:

    • In case you need to set the Hexnode UEM app as the Device Admin, make use of the below command:

  7. Once the Hexnode agent app is installed on the device, IT can use ADB commands to grant the following permissions for the Hexnode UEM app:
    • Enable Usage Access
    • Enable Draw Over Apps
    • Write System Settings
    • Notification Access
    • Allow App Installation
    • Disable Battery Optimization
    • Manage All files from Android 11

Once the user completes the enrollment, the Hexnode UEM app will be automatically ready for action with all the necessary permissions. However, the users will still have to manually grant permissions for App logs and activate the password token.

Note:

  • You can use the same set of ADB commands to allow permissions for the Hexnode For Work app. In that case, make sure to use the package identifier of the Hexnode For Work app (com.hexnode.mdm.work) instead of com.hexnode.hexnodemdm. For instance, in order to grant the Write System Settings permission, you may use the below command:

  • Enrolling Devices