r/androidroot • • 1d ago

News / Method SecondSpace: a PIN-routed second Android user for One UI (KernelSU + LSPosed)

I built SecondSpace, a root module + SystemUI hook that gives Samsung One UI a real second Android user (like MIUI's Second Space), reached by typing its own PIN on the main lock screen.

How it works: - The companion LSPosed hook watches the One UI keyguard PIN entry. - If the PIN matches Space 2's PIN, stock verification is skipped (so no failed attempt is recorded against the main space) and the root daemon switches to the second user. - Typing the main PIN inside Space 2 switches back to user 0. - The second user is a normal Android user, so apps/data are isolated.

Requirements: - Samsung device on One UI 8 / Android 16 (developed and tested on a Galaxy S21 Ultra SM-G998B whose identity is spoofed to a Galaxy S22 SM-S901B under UN1CA) - KernelSU (or compatible root) + LSPosed/Zygisk - The module zip and companion APK from the release

Repo (source, install steps, docs): https://github.com/abdurr1/second-space Release v1.9.0: https://github.com/abdurr1/second-space/releases/tag/v1.9.0

It handles upgrades in place, never deletes a user it did not create, and validates the hook heartbeat by boot id, user and version so a stale hook can't be mistaken for a live one. Feedback and bug reports are welcome.

7 Upvotes

8 comments sorted by

1

u/No_Order8720 1d ago

does this work on temp root?

3

u/ome_Rush1514 1d ago

It needs a persistent root manager (KernelSU Next / Magisk / APatch) that survives reboots

2

u/No_Lynx_9098 18h ago

how did you get permanent root working on one ui 8 ?

1

u/ome_Rush1514 9h ago

Not on stock One UI 8 with a locked bootloader. This S21 Ultra (SM-G998B) runs UN1CA, a One UI 8 / Android 16 port, with the bootloader unlocked: KernelSU Next v3.3.0 patched into init_boot, plus Zygisk Next and Vector. So "permanent" just means the patched boot image and KSU survive reboots — no temp-root trick in the loop.

1

u/Original_Thing8770 [Mod] Redmi note 8 pro, Kernel root; Pixel 9a, TimerRoot (temp) 18h ago

I can confirm it works on Stock-Like ROMs (AOSP, lineageOS, PixelOS) as well

1

u/ome_Rush1514 9h ago

That's a useful data point — thanks for testing it. The daemon/module side is plain Android multi-user, so AOSP-family ROMs are the sane baseline; only the keyguard routing is One UI-specific. If you paste your ROM/build and the ssctl status output I'll add a row to the compatibility table in the README.

1

u/Itz_Raj69_ 18h ago

This is wonderful. Thank you!

1

u/ome_Rush1514 9h ago

Thanks! If you try it, ssctl status (users, recorded space id, mirrors, hook heartbeat) is the quickest way to tell whether a problem is the module or the hook — happy to help if a PIN doesn't route.