Repository navigation
Phoshdroid 0.0.6-alpha
APK withdrawn (2026-11-27). Phoshdroid is now Omdroid:
install v0.0.18-alpha or later.
Display-size handling: recalibrate on every foregrounding.
What's new
- Process-level
DisplayShiftMonitor. Hooked viaApplication.ActivityLifecycleCallbacks; fires once on the 0→1 transition of started activities. Catches a return-to-foreground for any activity in the app, including MainActivity (the X11 surface). Fold, unfold, attach an external display, leave Phoshdroid, come back — the proot session is killed and restarted at the new dimensions automatically. - Three-tier dim derivation in LauncherActivity:
WindowManager.currentWindowMetrics→resources.displayMetrics→ persisted SharedPrefs. Fixes a Pixel 9 Pro Fold edge case where both window-manager calls returned 0 because the activity came up while the device was in Doze, propagating an emptyXLORIE_WIDTH/XLORIE_HEIGHTto start.sh. start.shrefuses an empty mode=. If the launcher couldn't determine dims, fall back to1080x2004with a logged warning, instead of letting phoc inherit wlroots'1024x768default and stranding the user at a tiny resolution.
Caveats
- A fold while Phoshdroid is foreground doesn't trigger recalibration (no internal hook today). Background → foreground is the trigger.
- Recalibration restarts proot, so phosh cold-boots again (~2-3 min on a Fold).
Install
Obtainium auto-updates from 0.0.5-alpha.
Manual:
adb install -r phoshdroid-0.0.6-alpha.apk
Tested on Android 16 / Pixel 9 Pro Fold.