New feature: speed reactive audio (Settings > Misc). Pick an MP3 and a dedicated volume; the always-on trip tracker shifts the clip's pitch and playback rate from min to max speed while you drive. Loop-with-speed is the default; a toggle enables layered overlap so speed changes never cut the clip off. Build script already compiles every module included in this commit.
2.3 KiB
MG Utility — Future features
Full custom keyboard remapper
Allow the user to map any physical head-unit key exposed to Android to an MG Utility action. This is now available at Settings > Misc > Key remapping.
Implemented scope
- Detect and display the Android key code, scan code, and device name for the next key press.
- Assign an action from a searchable action registry, including app navigation, vehicle readouts, soundboard events, charging automation, and user-defined intents.
- Support short press, long press, double press, and press-and-hold/repeat triggers.
- Provide per-key enable/disable, reset, and conflict detection when two mappings claim the same gesture.
- Export and import mappings as a versioned JSON file for backup and transfer between head units.
- Keep an always-available emergency reset gesture and a confirmation step before replacing an OEM mapping.
Platform and safety notes
- First determine whether the head unit exposes key events to a non-system application; some steering-wheel and hard keys may be consumed before an APK can observe them.
- Use an explicit foreground service only if background key capture is permitted and necessary. Do not request an Accessibility Service solely as a shortcut.
- Keep vehicle actions read-only by default. Any future write action must be separately reviewed, narrowly scoped, and confirmed in the UI.
- Record the source device and key code in every mapping so a stale mapping cannot be silently applied to a different hardware layout.
Widgetized home screen and launcher mode
The current home screen intentionally keeps the gauges and music player in a stable, glanceable layout. A later iteration can promote each of these panels to a widget contract with measured minimum/maximum sizes, then add an edit mode with drag, resize, snap-to-grid, and persistent layout areas similar to an Android launcher. The gauge widgets should continue to share one vehicle-data source so they do not multiply bus reads, while the music widget should use the same playback controller and state.
Launcher behavior is also deferred: first enumerate installed activities through the package manager, define an allow-list and safe presentation model, and only then add an optional launcher role. Opening arbitrary installed apps is deliberately not part of the current home-screen implementation.