Blog

Releases, security explainers and what we are building in Switzerland.

Back to Blog
Guides12 September 2024

Enabling Stellar Protect as device-owner

Since Android SDK 34 came out it is required that Stellar Protect is device-owner of the device this allows the wiping-mechanism to work properly.

Stellar Protect open on two Stellar Phones, showing the Remote Wipe and detection switches

Since Android SDK 34 came out it is required that Stellar Protect is device-owner of the device this allows the wiping-mechanism to work properly. This is because Google changed the permissions of the wipe API since the SDK 34 came out.

If Stellar Protect does not give you alert about this, then you do not need to follow this guide. This means, Stellar Protect has the required permissions. So nothing is required from your part.

  • For StellarOS or Stellar Phone users, you DO not need to follow this guide.

This can be done in a few steps, and takes around 10 minutes.

Setup

You need a computer and a USB-cable before you can follow the steps below.
You can also watch this video: YouTube video player

  • Turn your phone on.
  • Connect your phone with a USB to your computer.
  • Enable developer mode:
  • Navigate to the Settings → About phone section.
  • Tap the Build Number option seven times until you see the “You are now a developer!” message

On some devices, these sections might be located or named differently. For more details, please refer to the Android documentation.

  • A alert on your computer might show up: Please allow the USB-connection.
  • Install the Stellar Security for Android app on the device via the app installation package from Stellar Center or using other suitable methods of installation (for example .apk).

For this scenario to work correctly, do not launch the app before running the ADB command described in step 7.

  • Install ADB on your computer.
  • Connect the device to the computer using a USB cable.
    The system will show a dialog asking whether to allow the device debugging on the computer. Click OK.
  • Start ADB and run the following command:
adb shell dpm set-device-owner stellar.phone.protect/com.stellar.phone.protect.AdminReceiver