Commit Graph

14 Commits

Author SHA1 Message Date
6b611b1d09 Fix icon loading for third-party apps with file:// URL scheme
- Add file:// URL handling to AssetFilesInterface in kernel.cpp
- Update home.lua to use file:// prefix for absolute filesystem paths
- Add file:// URL handling to desktop file interface for consistency

This fixes RmlUi stripping the leading slash from absolute paths
when resolving img src URLs relative to the document base.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 17:01:31 +01:00
cb86d52705 Add sandbox API integration for RmlUi Lua state
- Register sandbox APIs (timer, JSON, crypto, VFS) into RmlUi's Lua state
- Add switchAppSandbox() function for context switching between apps
- Update goHome() to reset sandbox context when returning home
- Fix icon loading for third-party apps (handle full paths vs relative)
- Mirror changes between Android service (kernel.cpp) and desktop designer

This enables third-party apps to use sandbox APIs when running in RmlUi.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 15:49:35 +01:00
984e8715d7 Fix desktop designer click handling and add goHome API
Designer click handling:
- Fix DPI scaling in MouseButtonCallback and CursorPosCallback
- Scale coordinates from window space to framebuffer/RmlUi context
- Remove window resizing in ResizeToPhone (caused DPI mismatches)

Test framework:
- Fix SendMouseDown to use MOUSEEVENTF_MOVE before button down
- Remove double-scaling in ScaleToPhysical (WindowController handles it)
- All 5 UI navigation tests now pass

Kernel API:
- Add goHome() Lua function to return to home screen
- Stops any running third-party apps before navigating

Test app:
- Update sandbox-test to use goHome() instead of goBack()

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 14:52:15 +01:00
d6b7504408 implement third-party app launching from home screen 2026-01-19 13:50:05 +01:00
bb31dcee00 fix remaining logger includes in Android source
Update kernel.cpp and apps/*.cpp to use core library logger.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 12:30:55 +01:00
60d1a75838 integrate AppManager and UpdateService into kernel with Lua API registration 2026-01-18 22:38:02 +01:00
c8ee7defe8 work in progress 2026-01-16 12:43:06 +01:00
77a9579025 save state 2026-01-16 08:15:28 +01:00
4d5b4c2455 add data model 2026-01-14 14:47:57 +01:00
c101d647dd add touch events handling 2026-01-08 22:35:59 +01:00
1074a1e59a integrate RMLUI library 2026-01-03 12:17:19 +01:00
16dd10f9a6 support multiple listeners based on pid 2026-01-02 15:01:16 +01:00
3a410775b5 async tasks 2025-12-31 16:12:43 +01:00
f3a69571a2 more refactoring 2025-12-30 19:05:02 +01:00