Enabling Device Owner Mode using Android Debug Bridge (ADB) (2024)

  1. Last updated
  2. Save as PDF

Introduction

Android Debug Bridge (adb) is a command line tool that allows forcommunication between a computer and aconnected Android device. It facilitates a variety of device actions, such as installing and debugging apps, and it provides access to commands that are not traditionally available to a connected device.

On Android 5.0 (Lollipop) devices Meraki cannot enable Device Owner Mode without using ADB.For enrolling devices on Android 6.0+ this method can be used as well, though using an over-the-air enrollment through device setup is recommended for higher versions. For enrollment instructions and general info regarding Android Enterprise, see our deployment guide here.

Note: Enabling Android Enterprise's kiosk mode requires both Device Owner enrollment andAndroid 6.0+.

Enabling Device Owner Mode viaADB

  1. First, download,install and configure the Android Debug Bridge (ADB) binary
  2. Download the latest Android SM app from https://dl.meraki.net/androidsm/AndroidSM.apk
  3. On a computer run the following command to initialize ADB:
    • adb start-server
  1. With a new (or factory reset) Lollipop Android device, go through the setup wizard WITHOUT adding a Google account. If you accidently added an account, simply remove the account from the Settings app once you finish the setup wizard.
  2. Once the setup wizard is done and you’re on your device’s home screen
    • Go to Settings
    • Go to “About device” (Might be named slightly different)
    • Click the “Build number” field 7 times. This will turn on “Developer options”
    • Go back to Settings
    • Go to “Developer options”
    • Scroll down and enable “USB debugging”
  3. Plug thedevice intocomputer
    • Your device might prompt you with a trust dialog. Click accept.
  4. On a computer run the following command to install the latest Android SM app you downloaded onto your device:
    • adb install AndroidSM.apk
      • ADB commands must be run in the same directory where the ADBbinary was installed.
      • You must be in the directory of your AndroidSM.apk file, or you must specify the full explicit path for the APK.
      • Depending on hardware, this process may appear to hang after the transfer of the APK is complete. Wait until the process ends withSuccess.
  5. Once installed, run the following command to set Systems Manager as the device owner of the device:
    • adb shell dpm set-device-owner com.meraki.sm/.DeviceAdmin
  6. Repeat these steps for all devices. If there are large number of devices a simple script can be used to cycle through the devices and applythose commands.
  7. Once the previous steps have been completed: Open the SM app on the device, click enroll and then login with either your Merakimanaged owner account or your Google Domain account.
Enabling Device Owner Mode using Android Debug Bridge (ADB) (2024)

FAQs

Enabling Device Owner Mode using Android Debug Bridge (ADB)? ›

Go to Settings > About Device, and tap on the Build Number for 7 times to enable Developer mode. Now, navigate back to Settings and select Developer Options . Then enable USB debugging. Click Allow to confirm the USB Debugging pop-up appearing on the device.

How do I activate a device owner? ›

Go to Settings > About Device, and tap on the Build Number for 7 times to enable Developer mode. Now, navigate back to Settings and select Developer Options . Then enable USB debugging. Click Allow to confirm the USB Debugging pop-up appearing on the device.

How to enable debugging mode in Android using adb? ›

Enable adb debugging on your device

To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. On Android 4.2 (API level 17) and higher, the Developer options screen is hidden by default. To make it visible, enable Developer options.

Is there any adb command to enable Developer options? ›

To use ADB, we must enable USB debugging in the Developer options on the phone by the following steps: Go to Settings > About phone > Navigate to Build number > tap on it 6 times to enable Developer options (a message You are now a developer! will be appeared).

How do I enable device owner on Android? ›

Enabling Device Owner Mode via ADB
  1. Go to Settings.
  2. Go to “About device” (Might be named slightly different)
  3. Click the “Build number” field 7 times. This will turn on “Developer options”
  4. Go back to Settings.
  5. Go to “Developer options”
  6. Scroll down and enable “USB debugging”
Jun 7, 2022

What is Android device owner mode? ›

Device Owner mode provides the ability to install, configure, and manage applications on devices remotely. Administrators can push necessary business applications, control updates, and restrict access to unauthorized apps.

How to use Android Debug Bridge? ›

Debug with ADB commands
  1. Find your emulator device ID. Run C:\>adb devices . ...
  2. Find the package you want to debug. Run adb shell pm list packages . ...
  3. Set the app to debug at startup (note the -w) ...
  4. Start the app in the emulator. ...
  5. Connect Android Studio Debugger. ...
  6. Point to source code and set breakpoints.
Oct 26, 2022

What is ADB debugging mode? ›

Android Debug Bridge (ADB) lets you connect your development workstation directly to your Android device so you can install packages and evaluate your changes.

What is device owner mode? ›

Device owner–The device is set up as work-only and you have full control of the device. This mode gives you the most control over the data and apps on a device, and is best for organizations that have high security requirements.

How do I set my app as device owner? ›

Configuring the app in device owner mode on Android 5-6
  1. Reset the device to factory settings. ...
  2. Delete all accounts on your device in the Settings → Accounts section.
  3. Delete all screen lock protection you may have.
  4. Enable the developer mode: ...
  5. Enable the USB debugging option in the Settings → Developer options section.

How to remotely enable USB debugging Android? ›

Open the Developer Options screen on your Android. See Configure On-Device Developer Options. Select Enable USB Debugging.

How to enable ADB debugging without developer mode? ›

First, make sure the Chromebook is not in developer mode⁠ . Then go to settings and turn on Linux (if you haven't done so before). Once Linux is available open the Linux settings and you'll find a new option 'Develop Android apps', open that option. Toggle enable ADB debugging and the computer will restart.

How do I enable root access in ADB? ›

To allow root access, open the Developer options in the settings. There, press Root access. In the pop-up menu, select either ADB only or Apps and ADB. A window with "Allow root access?" might pop up and explains the security tradeoffs of enabling root access.

How do I enable root via ADB? ›

To install Adb-Root-Enabler, you must have Magisk installed on your Android device. If you don't have it, you can find installation instructions for Magisk here. Follow the steps below to install Adb-Root-Enabler: Download the latest release from the following link: Adb-Root-Enabler-1.2-mtp.

How to force ADB on Android? ›

Select Settings > Security and set Enable ADB to On.

What happens if I activate device administrator? ›

Introduced in Android 3.0. Specifies how many times a user can enter the wrong password before the device wipes its data. The Device Administration API also allows administrators to remotely reset the device to factory defaults. This secures data in case the device is lost or stolen.

What does device owner mean? ›

Device Owner mode is specifically designed for enterprise or education settings where many devices must be managed centrally. When a device is set up as a device owner, it means that the organization has full control over the device and can enforce policies, install and remove apps, and configure settings remotely.

How do I open device administrator? ›

Go to Settings > Security. Tap Device administrators.

Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5850

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.