Skip to content

1.6.2-UwU

Latest

Choose a tag to compare

@github-actions github-actions released this 24 Nov 15:26
· 16 commits to UwU since this release
88de90d

MikuBox for Android 1.6.2-UwU

A major stability, runtime hardening, and visual completion release building upon 1.6.1-UwU. This release completely resolves critical VPN startup failures, crashes on Android 9/TV boxes, pure black (AMOLED) mode crashes, subscription import crashes, and URLTest panics. In addition, all remaining secondary pages and network tools have been rebuilt in pure Jetpack Compose + Material 3 Expressive with WCAG contrast protection and major power-efficiency optimizations.


What's New

🚨 Critical Crash & Stability Fixes

  • VPN Startup Hardening (sing-box 1.14 & libbox):
    • Automatically compiles and caches binary .srs rule-sets from local geoip.db / geosite.db for sing-box 1.14 (which deprecated direct string paths in route.rule_set), with safe empty fallbacks if individual category codes are missing.
    • Formatted network interface addresses with strict /prefix CIDRs and stripped interface zones in libbox, preventing panic when updating default network interfaces.
    • Declared FOREGROUND_SERVICE_TYPE_SPECIAL_USE sub-types on Android 14+ (API 34+) and initialized active underlying network handles early to eliminate startup race conditions.
    • Fixed persistent cache/neko.log logging and rotation.
  • Android 9 (API 28) / TV Box Crash Fix (#18):
    • Fixed crash on launch where uwu_banner_nav.xml referenced a Material 3 Color State List (?android:textColorPrimaryInverse) as a background, which API 28's LayoutInflater attempted to parse as a StateListDrawable.
    • Extracted assets through native Android AssetManager directly in Kotlin, eliminating asset: no current JVM crashes from Go's asset.Open.
  • Pure Black (AMOLED / Pitch Black) Theme Crash Fix:
    • Fixed Theme.apply() calling context.setTheme() which wiped the Activity's base Material 3 theme (Theme.Material3Expressive.DayNight.NoActionBar) and threw IllegalStateException: You need to use a Theme.AppCompat theme. Replaced with theme.applyStyle(R.style.Theme_SagerNet_True_Black, true) overlay.
  • Subscription Import & Node Grid Crash Fix:
    • Guarded ProxyEntity.displayName() and displayAddress() with fallbacks against uninitialized or corrupted beans during subscription imports.
    • Added safe bean filtering (safeList) in ProfilesViewModel to prevent crashes when rendering Compose LazyVerticalGrid.
    • Added Activity lifecycle checks (isFinishing || isDestroyed) and message length truncation to prevent WindowManager$BadTokenException in GroupInterfaceAdapter.
  • URLTest 3-Second Crash Fix:
    • Extracted Geo databases on main process startup so standalone TestBox can access Geo assets before VPN background service starts.
    • Refactored TestInstance.kt with structured coroutines (withContext(Dispatchers.IO)) and finally { close() }, removing unhandled coroutines that bypassed caller try-catch blocks and triggered CrashHandler.
    • Added defer recover() inside Go's DialContext and UrlTest to guard against dial panics during network timeouts.

🎨 Full Secondary Pages Compose M3E Migration & WCAG Contrast

  • All Secondary Pages Migrated to Compose M3E:
    • Rebuilt Subscriptions / Groups (GroupScreen), Routing (RouteScreen), Tools & Backup (ToolsScreen), Logcat (LogcatScreen), and About (AboutScreen) in pure Compose M3E with Soft Panel Hero and floating dock clearance.
    • Rebuilt all network tools (StunActivity, SpeedTestActivity, HostnameFinder, HostToIP, ProxySettings, HostChecker), Routing Assets (AssetsActivity), Split Tunneling / App Selector (AppSelectorScreen), and Dashboard WebView in pure Compose M3E.
    • Purged over 60 obsolete legacy XML layouts, ViewBindings, and menu files.
  • Smart WCAG Contrast Protection:
    • Dynamically calculates luminance on custom theme colors (mikuContrastColor & rememberMikuHeroPalette) to switch between dark ink (#0E1B18) and pure white text, completely eliminating unreadable white text on bright accent backgrounds.
  • Enhanced About Screen & Dual Author Links:
    • Added rich Miku showcase banner with glowing avatar and tonal personality tags.
    • Split maintainers into separate clickable cards/pills: HatsuneMikuUwU (GitHub) and NkBe (nkbe.top).

⚡ Performance & Battery Optimization

  • Background Render Throttling & GC Elimination:
    • Replaced per-frame RadialGradient allocation in BlobView with cached gradients translated via Matrix.setTranslate(), completely eliminating memory churn.
    • Automatically paused BlobView animators, StatsBar auto-blur, and SnowflakesView thread when the Activity is stopped or the dock is hidden.
  • Core Loop Throttle:
    • Fixed CPU spin in TrafficLooper when proxy core is uninitialized, and throttled stats query polling during screen-off states.
  • Node List Debouncing:
    • Added 90ms coalesced reloading in ProfilesViewModel during batch testing or bulk imports.
  • Quick Settings Tile (TileService):
    • Resolved State.Idle crashes and added auto-selection of the first available profile when connecting directly from quick settings without a preselected node.

Downloads

  • arm64-v8a — Recommended for modern Android phones, tablets, and TV boxes (MikuBox-1.6.2-UwU-arm64-v8a.apk)
  • armeabi-v7a — Legacy 32-bit ARM devices (MikuBox-1.6.2-UwU-armeabi-v7a.apk)
  • x86_64 / x86 — Emulators and Chromebooks

Note: Android package ID remains top.uwu.mikubox (upgrading directly from 1.6.0-UwU / 1.6.1-UwU works seamlessly).