-
Notifications
You must be signed in to change notification settings - Fork 0
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:
-
Install ADB:
- Ensure that ADB is installed on your computer. If not, you can download and install it from the Android developer site.
-
Enable USB Debugging:
- Go to
Settings
>System
>About phone
and tap onBuild number
seven times to enable Developer options. - Return to
Settings
>System
>Advanced
>Developer options
and enableUSB debugging
.
- Go to
-
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.
- Go to
-
Connect Device:
- Connect your device to your computer via USB.
-
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"
- 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.