Preventnetworkhacking
|
8b5bbf9456
|
fix: remove trailing whitespace from android-bridge
|
2026-02-27 20:56:12 -08:00 |
|
Preventnetworkhacking
|
a5348b60c0
|
fix(android): Address CodeRabbit HIGH and MEDIUM severity issues
HIGH severity fixes:
- SettingsRepository: Add IOException handling for DataStore corruption
- BootReceiver: Remove double pendingResult.finish() call
- ShareHandler: Add text/uri-list MIME type routing
- ZeroClawTileService: Add API 34+ PendingIntent overload for startActivityAndCollapse
- proguard-rules.pro: Remove dangerous Kotlin Intrinsics null check stripping
MEDIUM severity fixes:
- SettingsScreen: Refresh isOptimized state on lifecycle resume
- HeartbeatWorker: Enforce 15-min minimum, use UPDATE policy for config changes
- ZeroClawApp: Add settings change listener to update heartbeat schedule
Formatting:
- Remove trailing whitespace from all Kotlin files
Also adds PR_DESCRIPTION_UPDATE.md with required sections:
- Validation Evidence
- Security Impact
- Privacy and Data Hygiene
- Rollback Plan
|
2026-02-27 11:46:38 -08:00 |
|
Preventnetworkhacking
|
c1f255af96
|
perf(android): aggressive binary size optimization
Target: <10MB APK for arm64-v8a
Rust optimizations (Cargo.toml):
- opt-level = 'z' (size over speed)
- LTO enabled (dead code elimination)
- panic = 'abort' (no unwinding)
- strip = true (remove symbols)
- Minimal tokio/serde features
Android optimizations (build.gradle.kts):
- Split APKs by ABI (users get only their arch)
- Remove material-icons-extended (-5MB)
- Remove unused serialization (-300KB)
- Remove debug symbols in release
ProGuard (proguard-rules.pro):
- Strip Log.v/d/i in release
- Remove Kotlin null checks
- Aggressive repackaging
- 5 optimization passes
Added SIZE.md with optimization strategy.
Expected sizes:
- Native lib: <3MB per ABI
- APK (arm64): <10MB
- APK (universal): <20MB
|
2026-02-26 22:10:43 -08:00 |
|
Preventnetworkhacking
|
b2462585b7
|
feat(android): add Android client foundation
Initial Android client implementation for ZeroClaw:
Structure:
- clients/android/ - Self-contained Android project
- Kotlin/Jetpack Compose UI
- Material 3 with dynamic theming
Components:
- MainActivity with chat UI scaffold
- ZeroClawService (foreground service)
- ZeroClawBridge (JNI stub for Rust FFI)
- BootReceiver (auto-start on boot)
- Theme with ZeroClaw brand colors
Technical:
- Target SDK 34, Min SDK 26
- arm64-v8a, armeabi-v7a, x86_64 ABIs
- WorkManager ready for background tasks
- Android Keystore ready for secrets
TODO:
- UniFFI bindings generation
- Cargo NDK build integration
- Native library loading
- Config persistence (DataStore)
Part of Android ownership initiative - Phase 1
|
2026-02-26 20:52:43 -08:00 |
|