r/XDA_developers • u/North-Tip3852 • 2d ago
[GUIDE] Xperia E4g → dedicated single-app "Walkman" kiosk, no root (+ the suspend-freeze cause explained)
I converted my Xperia E4g (E2003, 4.4.4) into a dedicated, kiosk-style music player — boots straight into the Walkman app, Home always returns to it, ~100 apps hidden — all on STOCK firmware with NO root. Two findings might save others some time.
### The suspend-freeze cause (the important one)
I first rooted with Magisk (v22.1, last KitKat build). magiskboot can't read Sony's ELF boot, so I converted ELF → ANDROID!, patched, flashed via fastboot. Rooted fine — but then it froze (black screen, green LED) on every screen-off on battery. last_kmsg showed the hang right after the display suspend path (mt_usb_disable → primary_display_suspend end → mt_pwm_shutdown → hang).
A/B test nailed it:
- Magisk-patched ANDROID! boot via fastboot → freezes
- UNPATCHED stock kernel, also ANDROID! via fastboot → STILL freezes
- Stock ELF (SIN) via flashmode → stable
So it's not Magisk/root — it's the boot image FORMAT. Sony's bootloader passes different params loading a native ELF vs a converted ANDROID! image, and the MTK suspend path depends on them. Full stock FTF (native ELF) via flashmode fixed suspend for good. Bootloader stays unlocked, so re-rooting is still possible.
### Everything else, no root
- Kiosk: a ~30-line HOME launcher forwarding to com.sonyericsson.music (KitKat has no screen pinning). Source + manual build (javac → d8 → aapt → zipalign → apksigner) in the repo.
- Hiding apps: `pm disable` is denied to shell (uid 2000 SecurityException), but `pm block <pkg>` IS allowed and hides them. Blocked ~100 user apps, kept the system skeleton.
- Updating the Walkman app without root: newer Sony "Music" APKs carry the exact same signing cert as the system app (verified by X.509 SHA-256), so `adb install -r` overlays it. 8.5 → 9.1.2 works; 9.4.15 installs but crashes inflating its modern nav drawer on KitKat. `adb install -r -d` to revert.
Write-up + launcher source + build steps + a "dead ends" section (KingRoot, locked MTK BROM, no fastboot recovery…):
https://github.com/projectsuha/xperia-e4g-walkman-kiosk
Happy to compare notes with anyone on other MT6732 Xperias.



