Blogs


How to Enable Device Owner (Owner Mode) for Localtonet Mobile App

Important: Before you begin, do not install any apps or sign in to your Google account (or any other accounts) on your device. The device must be freshly reset and set up as new, without any personal accounts or extra applications installed. Proceed directly to these steps as soon as the device starts after a factory reset.
Warning: This process may wipe all user data from your device. Back up your important data before proceeding!


Requirements:
  • An Android device (preferably factory reset or freshly set up)
  • A computer (Windows, macOS, or Linux)
  • ADB (Android Debug Bridge) installed on your computer
  • Localtonet mobile app already installed on your device

1. Enable Developer Options and USB Debugging

  1. Go to Settings > About phone on your Android device.
  2. Tap Build number 7 times until you see "You are now a developer!".
  3. Go to Settings > System > Developer options.
  4. Enable USB debugging.
USB Debugging Enabled on Android

2. Connect Your Device to the Computer

  • Use a USB cable to connect your Android device to your computer.
  • Allow USB debugging when prompted on your device screen.
Android device USB connection
Connect your Android device to your computer and allow USB debugging

Click Allow.

3. Set Localtonet as Device Owner Using ADB

Open a Command Prompt or Terminal window on your computer and run:

adb shell dpm set-device-owner com.localtonet.localtonetapp/.MyDeviceAdminReceiver
    
  • com.localtonet.localtonetapp is the package name for Localtonet app.
  • .MyDeviceAdminReceiver is the Device Admin receiver class.

If successful, you should see:

Success: Device owner set to package ComponentInfo{com.localtonet.localtonetapp/com.localtonet.localtonetapp.MyDeviceAdminReceiver}
    

4. Troubleshooting

  • If you get a "Not allowed to set the device owner" error, perform a factory reset, install Localtonet, and try again before setting up other accounts.
  • If another Device Owner is already set, you must remove it first.

Note: This feature works only on Version 9.2 and above.

Localtonet securely bridges your localhost to the internet through a versatile and scalable tunneling platform — offering a rich suite of features including advanced port forwarding, HTTP/HTTPS tunneling, mobile proxy support, file server access, UDP game tunneling, virtual host management, and more — all tailored for developers, gamers, testers, and networking professionals who need powerful tools for secure and flexible connectivity