Repository navigation
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
.srsrule-sets from localgeoip.db/geosite.dbforsing-box 1.14(which deprecated direct string paths inroute.rule_set), with safe empty fallbacks if individual category codes are missing. - Formatted network interface addresses with strict
/prefixCIDRs and stripped interface zones inlibbox, preventing panic when updating default network interfaces. - Declared
FOREGROUND_SERVICE_TYPE_SPECIAL_USEsub-types on Android 14+ (API 34+) and initialized active underlying network handles early to eliminate startup race conditions. - Fixed persistent
cache/neko.loglogging and rotation.
- Automatically compiles and caches binary
- Android 9 (API 28) / TV Box Crash Fix (#18):
- Fixed crash on launch where
uwu_banner_nav.xmlreferenced a Material 3 Color State List (?android:textColorPrimaryInverse) as a background, which API 28'sLayoutInflaterattempted to parse as aStateListDrawable. - Extracted assets through native Android
AssetManagerdirectly in Kotlin, eliminatingasset: no current JVMcrashes from Go'sasset.Open.
- Fixed crash on launch where
- Pure Black (AMOLED / Pitch Black) Theme Crash Fix:
- Fixed
Theme.apply()callingcontext.setTheme()which wiped the Activity's base Material 3 theme (Theme.Material3Expressive.DayNight.NoActionBar) and threwIllegalStateException: You need to use a Theme.AppCompat theme. Replaced withtheme.applyStyle(R.style.Theme_SagerNet_True_Black, true)overlay.
- Fixed
- Subscription Import & Node Grid Crash Fix:
- Guarded
ProxyEntity.displayName()anddisplayAddress()with fallbacks against uninitialized or corrupted beans during subscription imports. - Added safe bean filtering (
safeList) inProfilesViewModelto prevent crashes when rendering ComposeLazyVerticalGrid. - Added Activity lifecycle checks (
isFinishing || isDestroyed) and message length truncation to preventWindowManager$BadTokenExceptioninGroupInterfaceAdapter.
- Guarded
- URLTest 3-Second Crash Fix:
- Extracted Geo databases on main process startup so standalone
TestBoxcan access Geo assets before VPN background service starts. - Refactored
TestInstance.ktwith structured coroutines (withContext(Dispatchers.IO)) andfinally { close() }, removing unhandled coroutines that bypassed caller try-catch blocks and triggeredCrashHandler. - Added
defer recover()inside Go'sDialContextandUrlTestto guard against dial panics during network timeouts.
- Extracted Geo databases on main process startup so standalone
🎨 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.
- Rebuilt Subscriptions / Groups (
- 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.
- Dynamically calculates luminance on custom theme colors (
- 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) andNkBe(nkbe.top).
⚡ Performance & Battery Optimization
- Background Render Throttling & GC Elimination:
- Replaced per-frame
RadialGradientallocation inBlobViewwith cached gradients translated viaMatrix.setTranslate(), completely eliminating memory churn. - Automatically paused
BlobViewanimators,StatsBarauto-blur, andSnowflakesViewthread when the Activity is stopped or the dock is hidden.
- Replaced per-frame
- Core Loop Throttle:
- Fixed CPU spin in
TrafficLooperwhen proxy core is uninitialized, and throttled stats query polling during screen-off states.
- Fixed CPU spin in
- Node List Debouncing:
- Added
90mscoalesced reloading inProfilesViewModelduring batch testing or bulk imports.
- Added
- Quick Settings Tile (
TileService):- Resolved
State.Idlecrashes and added auto-selection of the first available profile when connecting directly from quick settings without a preselected node.
- Resolved
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 from1.6.0-UwU/1.6.1-UwUworks seamlessly).