Skip to content

Phoshdroid 0.0.6-alpha

Choose a tag to compare

@zweck zweck released this 10 May 15:05
· 552 commits to main since this release

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 via Application.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 empty XLORIE_WIDTH/XLORIE_HEIGHT to start.sh.
  • start.sh refuses an empty mode=. If the launcher couldn't determine dims, fall back to 1080x2004 with a logged warning, instead of letting phoc inherit wlroots' 1024x768 default 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.