Secure Rent

Install the app you need on your Android phone.

Staff App

For shop staff. Sign in with your SecureRent account to download.

Staff sign in

Phone Agent

Goes on a phone you are renting out. Staff only.

Download · 5.3 MB

Version 1.2.0 · build 1500051 · Updated 2026-09-21

Do not just install this app. Downloading and installing it the normal way leaves the lock inactive — the phone will look enrolled but cannot actually be locked. Android only grants the required control during first-time setup, so the phone must be set up using the steps below.

Setting up a rental phone

Two ways to do this — pick whichever suits the phone in front of you.

Takes about 10 minutes. You need the setup QR code below and a Wi-Fi connection.

Device Owner setup QR code

Setup QR code — scan this at step 5
save as an image

  1. Factory reset the phone.
    Settings → System → Reset options → Erase all data. If it is a brand-new phone, skip this.
  2. Stop at the Welcome screen. Do not sign in to a Google account and do not tap Start.
  3. Tap the same spot on the screen 6 times.
    A QR code scanner opens. If nothing happens, tap a little faster in one place.
  4. Connect to Wi-Fi if asked — the phone downloads the app during setup.
  5. Scan the setup QR code above — open this page on another phone or computer and point the camera at it.
    The phone installs the agent and locks itself to it automatically. This takes a few minutes.
  6. Finish the normal setup screens.
  7. Open the agent app and sign in with your staff account. The phone now appears under Stock → New Registrations in the staff app, ready to be given a name, price and rental.

If the phone never opens a QR scanner at step 3, or shows a warning about an untrusted app during setup, some phone makers hide or block this step entirely — switch to the USB cable tab instead. It reaches the same end result on every Android phone.

Takes about 15–20 minutes the first time. You need a laptop, a USB cable, and the phone plugged into the laptop. Use this whenever the QR method above does not work, or if you just prefer it — it works the same way on every Android phone, because it does not depend on that phone's setup wizard at all.

  1. Install ADB on your laptop (one-time setup, skip if already installed).
    Download “SDK Platform-Tools” for your operating system from developer.android.com/tools/releases/platform-tools and unzip it somewhere easy to find, e.g. your Desktop. That folder now contains a program called adb — everything below is run from inside it.
  2. Save the agent APK and the helper tool into that same folder.
    Use the Download button above for the APK — save it as securerent-agent.apk. Then download setup-phone.bat and setup-phone.ps1 and save both into the same platform-tools folder from step 1 (all three files side by side).
  3. Factory reset the phone.
    Settings → System → Reset options → Erase all data. If it is a brand-new phone, skip this.
  4. Go through setup, but skip Wi-Fi and skip signing in to a Google account. Connect Wi-Fi only after finishing every step below.
    This matters: if any account gets added at this stage, a later command refuses to run and you have to factory reset and start over.
  5. Turn on Developer options.
    Settings → About phone → tap Build number 7 times quickly, until it says “You are now a developer”.
  6. Turn on USB debugging.
    Settings → System → Developer options → USB debugging → on. On Xiaomi/Redmi phones, also turn on Install via USB and USB debugging (Security settings) in the same screen.
  7. Plug the phone into the laptop with a USB cable. A popup appears on the phone asking to allow USB debugging — tick “Always allow from this computer” and tap Allow.
  8. Double-click setup-phone.bat (in the folder from the step above). A black window opens and walks you through the rest:
    • It checks it can find adb and the APK, and tells you plainly if either is missing.
    • It shows which phone it found (model and serial) and asks you to type YES to confirm before doing anything — nothing happens to the phone until you confirm.
    • If more than one phone is plugged in, it lists all of them and asks you to connect only one at a time, rather than guessing which to use.
    • It installs the app and sets it as Device Owner, printing a plain-English success or failure message for each step.
    If Windows shows a blue “Windows protected your PC” screen, click More info then Run anyway — this is Windows' standard warning for any script that isn't from the Microsoft Store, not a sign anything is wrong.
  9. Connect the phone to Wi-Fi now (Settings → Wi-Fi).
  10. Open the agent app and sign in with your staff account. The phone now appears under Stock → New Registrations in the staff app, ready to be given a name, price and rental.

The phone stops responding to adb the moment the script finishes successfully — permanently, on purpose, since that is part of the same lock that stops the renter removing the app. Never run this against a phone or emulator you still need to develop on.

Prefer to type the commands yourself?

The script above just runs these three commands for you, in a terminal opened in the platform-tools folder from step 1:

adb devices
Confirms the laptop can see the phone. It should list one device marked device — if it says unauthorized, look at the phone screen for the popup from step 6 and tap Allow.
adb shell settings put global package_verifier_enable 0
adb install -r securerent-agent.apk
adb shell dpm set-device-owner com.andplock.lockapp/.LockDeviceAdminReceiver
The last command should print Success: Device owner set to package com.andplock.lockapp. If it instead says Not allowed to set the device owner because there are already several users, an account was added during setup — factory reset and redo from step 4, making sure to skip Wi-Fi and the Google account completely.

How to tell it worked (either method): the agent app shows “Device Owner active — rental lock enabled”. If it says “Not provisioned”, the setup step did not take — factory reset and start again.

Once set up, the renter cannot factory reset the phone, unlock the bootloader, or remove the app. That protection only exists because it was installed this way. There is no way to convert an already-set-up phone — it must be reset.

Technical details

APK SHA-256 (changes every release)
deb5ec51f77b235465adf1942853af22cf422470a64afeb909699a54505f09f4

Signing certificate checksum, embedded in the QR
ODirF07KWp8BkwAwVF_SuVraiBuUofYf7D-fgqEEzGI

If something goes wrong

“App not installed”
An older copy signed with a different key is still on the phone. Uninstall it first, then install again.

The 6-tap scanner will not open
Either the phone is past the Welcome screen or was already set up — factory reset and try again, since the scanner only exists during first-time setup. Some phone makers hide or disable this scanner entirely; if it still will not open after a fresh reset, use the USB cable tab above instead. It reaches the same result on every phone.

Agent says “Not provisioned”
The QR step did not take effect. The app is installed but has no control over the phone. Factory reset and redo the setup.

Setup QR code fails to scan or download
Check the phone has Wi-Fi during setup, and that your manager regenerated the QR code for this version of the app — a QR made for an older build will be rejected.

Sign-in fails
Confirm the phone has internet, and that you are using the right account for this environment. Test and live systems use separate logins.