Help
Setting up AtlayaSwitch: enable Shizuku, install the app, choose the target profile.
1. ⚠ Important first: the security trade-off of Shizuku and ADB
Shizuku and ADB are a real compromise on GrapheneOS. Shizuku can only be started through Android's debugging service (adbd). That is why Developer options and USB debugging have to stay on permanently, and Wireless debugging briefly after every restart. That is more attack surface than a device without it – if you chose GrapheneOS for exactly that reason, weigh this app carefully.
What AtlayaSwitch does about it: after Shizuku has started, the app switches Wireless debugging off again by itself, so no debugging access stays open on the network.
What it cannot do: switch USB debugging off. With USB and Wireless debugging off, Android stops adbd – and Shizuku with it. The icon tap can then no longer switch.
Biggest remaining risk: a computer authorised once with “Always allow” stays a standing key. Only authorise your own, secured computer, use “Revoke USB debugging authorisations” if unsure, and enable GrapheneOS Auto reboot.
2. What AtlayaSwitch is for: the decoy profile first, more only if you decide so
AtlayaSwitch is the first level of a graduated protection for situations where someone wants to see your unlocked phone – a check, coercion, theft. One tap on the app icon and the device switches instantly, with no visible menu, into a decoy profile (e.g. “Away”). Whoever looks at the device afterwards sees an ordinary, unremarkable profile – and at first nothing that hints at further profiles.
The core idea is a response that fits the situation: you don't have to take the hardest step at once. You can first show only the decoy profile. Only if you yourself decide that the situation demands it do you go one level further (see “Escalation”). This graduated response is the main function of the app.
The basis is three separate GrapheneOS profiles: “Owner” (system profile with Developer options and Shizuku), “Personal” (your everyday profile) and the decoy profile. AtlayaSwitch only switches to the decoy profile. The way back stays the normal, password-protected GrapheneOS user switch.
3. The decoy profile: what belongs in it – and what doesn't
The decoy profile is the only thing a third party gets to see. It should be believable but unremarkable – the way the phone of someone with nothing to hide looks. A completely empty profile looks suspicious and raises more questions than it answers.
What belongs in it:
- a few harmless everyday photos and a short, unremarkable contact list
- everyday apps unrelated to your real accounts: camera, maps (preferably FOSS such as OrganicMaps or OsmAnd – no Google services, GrapheneOS is deliberately de-googled), weather, notes with mundane content, music or podcasts, a browser with some neutral history and bookmarks
- settings that fit a normally used device (wallpaper, ringtone, a few calendar entries)
What does not belong in it:
- real accounts, logins or chats of your main identity; password managers, authenticators, banking apps
- real private photos, documents or contacts that could endanger you or others
- AtlayaSwitch itself and Shizuku – they would give away the hidden switching mechanism (the app warns about this and removes itself from the target profile with one tap on request)
- anything that hints at further profiles: notes, shortcuts, names, a slip of paper with the duress PIN
- sync or backups shared with your real profile
No lock in the decoy profile: for the switch to stay a single tap, the decoy profile should have no PIN of its own. Whoever lands there then has full access to everything in it – so there must be nothing in it that not everyone may see.
What someone sees in it: at first only the content of the decoy profile, nothing of your other profiles. A closer look can reveal more: Android's user-switch display can list further profiles, and device-wide settings such as saved Wi-Fi networks or paired Bluetooth devices can show revealing names across profiles. So check what is reachable from the decoy profile.
4. Escalation: decoy profile first, then – only if you decide – the duress PIN
The response should fit the situation. Three levels:
- Normal state: you use “Personal” or “Owner”, the device is locked.
- Show the decoy profile: you are told to unlock or show the device. One tap – the decoy profile appears. Often that settles the situation. In “Switch + end session” mode (the default) the previous profile is also ended: its apps are closed and GrapheneOS removes its keys from memory, the data is “at rest” again.
- Duress PIN as the last level – only if you decide so: if someone notices that further profiles exist and demands access, you can give them the GrapheneOS duress PIN (duress password) as the supposed unlock code. If they enter it, GrapheneOS destroys the encryption, the data becomes irrecoverably unreadable – and you are protected because nobody can get at it any more.
Important: AtlayaSwitch does not trigger the duress PIN and does not replace it. It is a separate GrapheneOS feature that you set up yourself (availability and details depend on your GrapheneOS version, see the GrapheneOS documentation). Whether and when you escalate is yours alone to decide – there is no automatism.
Keep in mind: the destruction is final. Keep backups of your data in a safe, separate place. Also consider the legal situation in your country: in some jurisdictions, refusing or destroying data toward authorities can have consequences. This is not legal advice.
5. Setup at a glance (in this order)
- Have three GrapheneOS profiles: “Owner” (already there), “Personal” and the decoy profile (e.g. “Away”).
- Fill the decoy profile believably (see above) and leave it without a lock of its own.
- Set up the duress PIN in GrapheneOS and memorise it – the last level, independent of AtlayaSwitch.
- In the “Owner” profile: unlock Developer options, switch on USB debugging and wireless debugging, install and start Shizuku.
- Install AtlayaSwitch in “Owner” and “Personal” – not in the decoy profile.
- Open AtlayaSwitch once (Settings via App info), confirm the Shizuku permission and choose the target profile.
- Choose the behaviour (“Switch only” or “Switch + end session”) and optionally enable the Quick Settings tile.
- Test it once in peace – including the way back via the normal user switch.
After that: Shizuku has to be restarted after every reboot of the phone (see below).
6. Install and start Shizuku
AtlayaSwitch guides you through this step itself: Settings shows a banner that detects whether Shizuku is missing or just not running, and displays the matching button depending on the profile – “Install Shizuku” (jumps to the Play Store listing), “Switch profile” (opens Android's multi-user overview if not currently in the “Owner” profile), “Open Shizuku” or “Open Developer options”.
Steps without a PC (also after every reboot): In the “Owner” profile, switch on USB debugging in Developer options (it stays on permanently, no cable needed for that) and switch on wireless debugging. Then tap “Start via wireless debugging” in Shizuku (the first time a one-time pairing via pairing code, entirely on the device). AtlayaSwitch then switches wireless debugging off again by itself.
Do not switch USB debugging off: Android ends Shizuku as soon as the debugging service stops completely. If you want it stricter, start Shizuku over USB from a PC instead (the command is shown in the Shizuku app under “View command”) and you don't need wireless debugging at all.
The service then keeps running system-wide and is detected automatically in the other profiles. Without root it does not survive a device reboot, though. Two taps remain unavoidable (Android's security model): the profile switch itself and the final confirmation in the install dialog.
7. Install AtlayaSwitch
Download the APK from the download page and install it in the desired profiles (usually "Owner" and "Personal", not the target profile itself). Android will ask for confirmation for APKs from outside the Play Store ("allow installation from unknown sources").
8. Choose the target profile
Open AtlayaSwitch on first launch: confirm the Shizuku permission, tap the desired profile (e.g. "Away") -> "Target profile saved". After that, tapping the app icon switches straight there.
9. Changing settings later
AtlayaSwitch deliberately has no menu of its own. To change the target profile or switch behavior ("Switch only" or "Switch + end session"): Android Settings → Apps → AtlayaSwitch → App info → "Settings". The language can also be switched there in the top right (German/English/French/Italian/Spanish), and a "?" button opens an explanation of why three profiles make sense.
10. How the app behaves in use
What happens when you tap the app icon:
- The app opens without any visible interface (transparent, not in the recent-apps list) and closes itself afterwards.
- Two taps in quick succession are caught (a short lockout) so nothing is triggered twice.
- If no target profile has been chosen yet, Settings opens.
- If Shizuku isn't running (e.g. after a reboot), Android's normal user switcher opens quietly – no error message, so nothing looks revealing. You then pick the target profile by hand.
- Otherwise the app switches straight to the target profile through the privileged service – without a picker, without a password prompt in the target profile. In “Switch + end session” mode it waits until the switch is confirmed and then ends the previous profile (from “Owner” Android refuses to stop the system user, in which case it quietly just switches).
- If the option is on, it also switches wireless debugging off if it is still on.
The Quick Settings tile (optional, off by default) triggers the same switch, even from the lock screen. It never shows a message and opens nothing if Shizuku is missing. Icon and name are deliberately neutral (“Profile”).
The way back never goes through AtlayaSwitch, only through the regular GrapheneOS user switch (long-press the power button, choose the profile, PIN or fingerprint). That keeps your real profile protected by its own lock.
The app stores only locally: target profile, switch mode, language and toggles. There is no account, no server and no analytics. The only network connection is the optional update check (manual or – if switched on – when Settings opens).
11. Security: what is protected – and what is not
What the app protects and limits:
- No root. The privileged part runs through Shizuku with shell rights and only executes the few commands it needs (switch profile, end profile, list profiles, check and remove its own app in the target profile). It only acts on the app itself and accepts only valid profile IDs.
- No background services, no autostart, no account, no analytics, no server. Network access only for the optional update check; links are only opened from its own domain.
- Wireless debugging switches itself off again after Shizuku has started (default), so no debugging access stays open on the network.
- A forged or unauthorised trigger leads, at worst, only into the unimportant decoy profile.
- The app warns if it is itself installed in the target profile and removes itself there with one tap on request.
- The way back to your real profiles stays behind the normal GrapheneOS lock.
What it cannot do – honestly:
- It needs Developer options, USB debugging and, after every reboot, briefly wireless debugging. That is more attack surface than a device without – a real trade-off. USB debugging has to stay on because Shizuku ends otherwise.
- After a reboot Shizuku isn't running until you restart it. Until then the app doesn't switch by itself (quiet fallback to the user switcher).
- On close inspection the decoy profile can be recognised as “not the main profile”. AtlayaSwitch is not a lock but part of a graduated approach.
- Any app in the same profile can start the switch (the icon has to be launchable). In “end session” mode that also ends the source profile.
- If the decoy profile has no lock, anyone there has full access to its content.
- The app does not replace the duress PIN and does not trigger it.
Can a stranger's computer just connect over ADB?
Not without more: USB debugging requires a cable and a computer confirmed on the device itself (RSA key) – an unknown computer plugged in first gets a confirmation dialog on screen, no connection without tapping it. Wireless debugging additionally requires either the same one-time pairing code (shown on the phone, entered on the other device) or an already-authorised key on the same network. A stranger on the same Wi-Fi can't just get in through that.
The real risk isn't a stranger, but an already authorised computer: once confirmed with "always allow", its key becomes a standing master key – every future connection from that computer goes through without any further confirmation, even on a locked screen (as long as the profile has been unlocked once since the last reboot). A compromised computer of your own (or its ADB key file) would therefore mean standing access with no PIN needed.
What limits this: only ever authorise your own, secured computer; "Revoke USB debugging authorisations" in Developer options revokes all of them at once if needed; GrapheneOS' own "Auto reboot" feature (Settings → Security) automatically returns the device to the "Before First Unlock" state after some hours of inactivity – at that point even an authorised computer can't get in without the real PIN. "Switch + end session" mode reinforces this further: an ended profile stays encrypted until it's unlocked again – including against ADB.