Skip to content

Register App as Device Owner

Martin Offermann edited this page Apr 13, 2024 · 2 revisions

To register the app as a device owner, (which is needed to gather security- and network logs) follow these steps:

Steps

  1. Install ADB:

    • Ensure that ADB is installed on your computer. If not, you can download and install it from the Android developer site.
  2. Enable USB Debugging:

    • Go to Settings > System > About phone and tap on Build number seven times to enable Developer options.
    • Return to Settings > System > Advanced > Developer options and enable USB debugging.
  3. Remove All Accounts:

    • Go to Settings > Accounts and remove all accounts. This is important as Android does not allow setting device owner mode if any accounts (especially Google accounts) are present.
  4. Connect Device:

    • Connect your device to your computer via USB.
  5. Execute ADB Command:

    • Open a terminal or command prompt on your computer.
    • Run the following ADB command:
    adb dpm set-device-owner "de.swiftbird.elasticandroid/.AppDeviceAdminReceiver"

Important Notes:

  • The step to remove all accounts is important; the adb command will fail if this step is skipped and accounts are present.
  • If removing the accounts doesn't work you may need to perform a factory reset.
Clone this wiki locally