On a phone the first dozen apps in the drawer kept coming back without an icon. Icons are now drawn from the LauncherActivityInfo objects apps.json was built from (falling back to resolveActivity), failures are logged under "ultra" with the reason, and the page asks again for any icon that came back empty, up to three times with backoff. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
ultra launcher
An Android home screen written as an ultra app (LPython compiled to WebAssembly, Elm-style). The home starts blank with a clock: long-press it to add apps (the drawer opens in a pick mode) or widgets, and long-press anything on it to move or remove it. Swipe down for the drawer with every app and a search (Enter opens the first match); long-press an app there to put it on the home screen, and swipe up to close it. The panel under the clock has a Windows button that opens Recents. The layout is saved in localStorage.
Install
Get the APK from the launcher-latest release, which CI rebuilds on every push to main. Open it once, press Home, and pick ultra Home as the default. Builds are signed with the committed android/app/debug.keystore, so each one installs over the last.
The Windows button uses an accessibility service (RecentsService, which only performs the Recents action). Enable it once under Settings → Accessibility; on Android 13+ a sideloaded APK may first need App info → ⋮ → Allow restricted settings.
Layout
web/is the UI:app.pyis the ultra app andapp.wasmits committed build, withindex.html,style.cssand theultra.js/ui.cssruntime the build copies in.apps.jsonandwidgets.jsonare demo data for desktop browsers.android/is a small native shell (Java, no dependencies) that servesweb/to a transparent WebView over the wallpaper. It answersapps.jsonfromLauncherAppsandwidgets.jsonfrom the installed widget providers, hands icons to the page through thewindow.Androidbridge, and draws realAppWidgetHostViews over the slots the page reports.- The ultra framework comes from the
ultraconda package on prefix.dev/nandi-testing, which pixi installs. tests/e2e.cjsis a Playwright test of the browser demo.
Build
pixi run build # web/app.py -> web/app.wasm
pixi run install-playwright && pixi run test
cd android && ./gradlew assembleDebug # needs JDK 17 and the Android SDK
pixi run serve serves web/ on http://localhost:8000. In a desktop browser the launcher runs against the demo JSON files, shows a toast instead of launching, and draws widgets as labelled placeholders. Click the bar at the top to open the drawer.
Every push to ultra's main publishes a new ultra package. To pick it up, run pixi update ultra, rebuild, and commit the rebuilt web/ files.