Back to Misura

Install Misura.

Plug your Android phone into your computer with USB. Paste these instructions into your coding agent. It does the computer work and tells you exactly when you need to tap, sign in or add credentials.

Give this to your agent.

Your agent checks your phone, sets up Shizuku, helps you connect your AI, and tests that Misura works. One question at a time.

Read the full setup instructions
# Set up Misura for me

Get Misura working on the Android phone I plug into this computer:
https://github.com/tareksadi91/misura-phone

Do the computer work yourself. Ask one question at a time, only when you need a choice, a sign-in, credentials or a tap on the phone. Explain the next action in plain language. Do not hand me a long checklist to carry out myself.

Read the repository's current README, setup code and scripts first. They take precedence over version examples below. Keep a short progress checklist, check what already works, and resume without repeating completed steps. Never call setup complete just because an APK installed.

If repository access is denied, help me sign in or obtain access before proceeding. Do not treat an access problem as a failed phone installation.

## 1. Check the computer and phone

- Detect the host OS, available Java/Android SDK/adb tools and physical USB devices. Read required SDK and Java versions from the build files. Reuse existing tools; install adb first if needed to connect the phone, and defer large SDK downloads until compatibility is checked. A terminal build needs the installed SDK's location (`ANDROID_HOME` or `sdk.dir` in `misura-app/local.properties`); find it rather than asking me.
- If there is one authorized physical phone, use it. Ask which phone only if the target is ambiguous. Do not select an emulator by accident. Target every device command explicitly.
- Skip Developer options/debugging setup when the selected USB phone already reports device. If it reports unauthorized, try the computer-trust dialog first. Guide only the missing steps.
- If no phone appears, check that it is unlocked and the USB cable supports data. Ask its brand/model if it cannot be detected before adb is authorized. Do not assume Developer options or USB debugging is already enabled.
- Walk me through enabling Developer options, one phone action at a time. Use the correct menu path for my model. The common Android route is Settings → About phone → Build number (sometimes under Software information). Tell me to tap Build number seven times, enter my phone PIN on the phone if asked, and look for the developer-mode confirmation. Never ask for my PIN in chat. Some brands use a software/OS version entry instead, so do not send me a generic list of conflicting paths.
- Then guide me back to Developer options, often under Settings → System, and have me turn on USB debugging. Leave OEM unlocking alone; it is not needed for these steps.
- With the phone unlocked and connected, have me approve the Allow USB debugging? dialog for this computer. Explain the computer-trust choice. Reconnect the cable if the dialog does not appear, then diagnose the actual connection issue if needed. Check adb again and do not proceed until the selected phone reports device rather than unauthorized or offline.
- Check Android version against the app's minimum SDK. Current checked source requires Android 14 or newer, but the release's build files are authoritative. Check compatibility before downloading a full SDK or asking for credentials.
- Do not root the phone, unlock its bootloader, wipe/reset it, or uninstall existing apps/data as part of normal setup. Historical device experiments are not installation instructions.

## 2. Help me choose my AI

- Ask whether I already have AI credentials and which provider they are for. Ask for the provider name, never the secret in chat.
- Inspect what the current release actually supports. Prefer a supported provider I already use. If I have no credentials, recommend one documented, tested route, explain its usage costs, and walk me through account/key creation one step at a time. Account sign-in and enabling billing remain my choices.
- Do not infer provider support from marketing copy. If the release only supports Vertex service-account credentials, follow that setup; a Gemini API key is not interchangeable. A chat subscription is not automatically an API credential.

## 3. Install Misura and Shizuku

- Use a documented compatible APK release if provided; otherwise build from the repository's Gradle wrapper. Install on the selected device without erasing existing data. Verify the installed package/version.
- Check whether Shizuku is already installed and working. Use the build recommended by the Misura release; do not replace a working installation with a different signing key without asking.
- The currently documented tested fork is thedjchi/Shizuku v13.7.0-thedjchi:
  https://github.com/thedjchi/Shizuku/releases/tag/v13.7.0-thedjchi
  Its APK asset is shizuku-v13.7.0-thedjchi.apk. Check release origin and package identity before installing. Do not use an APK mirror or invent a download URL.
- Open Shizuku, then prefer its documented computer/ADB start route while the phone is connected. Read the installed build's actual start command and verify its path before running it.
- Important version difference: the tested fork's Starter.kt uses `adb shell` followed by its installed nativeLibraryDir/libshizuku.so. The path varies with installation: take the directory of the `base.apk` path from `pm path`, then `lib/<abi>/libshizuku.so`, with `<abi>` from the package's `primaryCpuAbi` (`arm64-v8a` → `arm64`, `armeabi-v7a` → `arm`). Paths contain `==`; do not parse them greedily. Newer Android may list only `legacyNativeLibraryDir`. Check the file exists; do not hardcode another phone's path. Older upstream instructions use start.sh, so do not blindly substitute that command for this fork.
- Verify Shizuku is running. In Misura settings, use Connect Shizuku and guide me through its authorization if needed. Running Shizuku and authorizing Misura are separate checks.
- If the installed build cannot start over USB, follow that build's wireless-debugging pairing flow. Give one exact tap at a time and verify pairing/start before continuing. Do not make me figure out which instructions apply.

## 4. Finish phone setup

- Put credentials on the phone yourself so I don't type them on it, when the release documents an adb import for it (currently `scripts/push-secret.sh` for a Vertex service-account file, Gemini/OpenAI/Anthropic API keys and Exa/Tavily/Context.dev search keys; close Misura settings first). Prefer a key file I downloaded: ask me for its path. Otherwise ask me to copy the key, then pipe the clipboard straight into the import script and clear the clipboard afterwards. Never read, print, echo or paste a secret into this conversation, never pass it as a command-line argument on the computer, and never add it to source control or capture a secret-entry screen. For a credential the release cannot import, have me enter it in the app's local settings. Check the selected provider and search service in settings afterwards. Reuse working saved credentials rather than asking for them again.
- Open Misura's settings and explain the access needed for the features being enabled. Use the release's documented adb grants where supported. When Android needs an on-phone decision, open the right screen, tell me exactly what to tap, and verify the result.
- Check app control/accessibility, notification access, Shizuku authorization and voice/alerts as applicable. Keep other accessibility services enabled. Contacts/calendar access is optional; explain what needs it. If I decline a permission, report the affected feature accurately.
- If Android blocks a permission behind Allow restricted settings, guide me to that app's setting. Do not turn off unrelated device protections to get past a blocker.
- Open Misura directly so it can be tested before changing my default launcher.

## 5. Prove it works and hand over

- Verify a real model request succeeds; a locally saved key is not proof of account access, billing or a working model.
- Run a harmless task through Misura itself that also exercises app control, such as checking whether auto-rotate is enabled in Settings without changing it. Compare against a read-only device check and require evidence of actual app-control steps, not just a correct model answer. Do not substitute your own terminal answer and call it a Misura test.
- If the phone has a vendor side/action key, have me press and release it once on Misura home, check that Hold to talk disappears, then have me hold it and say a harmless request. If Hold to talk stays, that key is not supported; say so.
- Confirm Shizuku is running and authorized, the requested phone permissions are active, credentials work, and the task succeeds. Diagnose the exact failed stage and continue where possible; do not report a green setup if a required check is still failing.
- After the task succeeds, offer to make Misura the default home screen. If I prefer to try it first, keep my current launcher.
- If the release documents a tested phone-only restart or start-on-boot flow, guide its one-time pairing/setup. Verify the settings and explain what still needs a manual restart; do not assume a successful USB start makes it survive reboot.
- Give me a short handoff: what is ready, anything I chose to skip, how to open Misura, and the installed Shizuku build's restart/recovery steps. Non-root Shizuku may need starting again after reboot. Do not assume a watchdog or start-on-boot option fixes that on every phone, and do not reboot my phone just to test it without asking.

References for you to consult when needed:
- Current Misura setup: https://github.com/tareksadi91/misura-phone#run-it-yourself
- Shizuku manual: https://shizuku.rikka.app/guide/setup/
- Tested fork's starter: https://github.com/thedjchi/Shizuku/blob/v13.7.0-thedjchi/manager/src/main/java/moe/shizuku/manager/starter/Starter.kt
- Android USB debugging: https://developer.android.com/tools/adb#Enabling
- Enabling Developer options: https://developer.android.com/studio/debug/dev-options#enable
Never enabled Developer options?

Your agent will guide you. On most Android phones, it goes like this:

  1. Open Settings → About phone. Find Build number, sometimes under Software information.
  2. Tap Build number seven times. Enter your phone PIN on the phone if asked. You should see a developer-mode confirmation.
  3. Go back to Settings and open Developer options, often under System.
  4. Turn on USB debugging. Leave OEM unlocking alone.
  5. Connect your phone to your computer, keep it unlocked, and tap Allow when it asks to allow USB debugging from this computer.

Menu names vary by brand. Your agent will find the right path for your phone and check the connection before continuing.

Prefer manual setup?

Follow the repository’s current instructions for prerequisites, building and phone setup.

Open the setup guide