Files
mg-utility/docs/settings-navigation.md
bonzi dcbd41d37b feat: automatic settings/trip backup that survives uninstall, mic and camera tests
Dev build 0.4.1.24. Also includes previously uncommitted work in the tree.
2026-11-03 18:49:53 +00:00

6.6 KiB
Raw Permalink Blame History

Settings navigation

SettingsActivity contains seven tabs. Switching tabs resets the content scroll position to the top after layout. Refreshing the same tab (including returning from another page or changing a picker value) retains its scroll offset, clamped to the available content height. Theme-driven view rebuilds retain that offset too.

Existing preference stores, keys, defaults, and feature callbacks are unchanged. Brightness scheduling and music display controls remain grouped inline on Dashboard; there are no separate brightness or music-display activities. All internal activity destinations below are registered in AndroidManifest.xml. OEM destinations depend on the software installed on the head unit.

Tab → group → setting → destination

Vehicle
  Vehicle settings → VehicleSettingsActivity (capability-gated startup profile)
    Vehicle power / Turn off car → confirmation → guarded OEM power-off request
  Default drive mode → VehicleSettingsActivity (current value shown in hub)
  Default recovery level → VehicleSettingsActivity (current value shown in hub)

Driving
  Performance
    0–100 tester → SpeedTestActivity
  Trip tracking
    Trip reports → TripsActivity
    Arrival areas → ArrivalGeofenceActivity
    Drive log sample interval → inline single-choice dialog
  Maps
    Map tile cache storage → preset selector / custom MB dialog
    Map cache current use → read-only usage summary

Charging
  Charging management
    Charging automation → ChargingActivity
    Energy dashboard → EnergyActivity
  Vehicle charging
    Vehicle charging settings → OEM ChargeManagementActivity

Audio
  Sound and volume
    Soundboard → SoundboardActivity
    Speed reactive audio → SpeedAudioActivity
    Adaptive audio leveling → AdaptiveAudioLevelingActivity
    Liquid Sound Balance → LiquidSoundBalanceActivity
  Assistant
    Hermes agent assistant → HermesSettingsActivity

Dashboard
  Theme
    Font size → inline slider
    Theme → CustomThemeEditorActivity
  Navigation
    Page animations → inline toggle
  Panels
    App Drawer → inline toggle
    App drawer opacity → inline slider
    Control panel → inline toggle
    Configure control panel → ControlPanelSettingsActivity
    Widgets Panel → inline toggle
  Camping mode
    Camping mode settings → CampingModeSettingsActivity
  Brightness schedule
    Automatic brightness → inline toggle; rearms BrightnessScheduler
    Peak brightness time → time picker; rearms BrightnessScheduler
    Dark brightness time → time picker; rearms BrightnessScheduler
    Peak brightness → inline percentage slider; rearms BrightnessScheduler
    Dark brightness → inline percentage slider; rearms BrightnessScheduler
    Transition duration → inline minutes slider; rearms BrightnessScheduler
  Music player
    Music Player → inline toggle / notification-access permission prompt
  Music visualizer
    Music Visualizer → inline toggle
    Visualizer framerate → single-choice dialog
    Visualizer effect → single-choice dialog
    Visualizer opacity → inline slider

Apps
  Pinned apps
    Reorder → inline toggle enabling drag-and-drop ordering
    Pinned app tile → launch configured app/activity
    Edit / remove pin → existing tile controls and dialogs
    Add New → pin editor with app/activity pickers (outside reorder mode)

System
  Setup
    Run setup wizard → SetupWizardActivity (review mode)
  Diagnostics
    Debug console → DebugActivity
  Keys and launcher
    Key remapping → KeyRemappingActivity
    Official SAIC launcher → OEM home activity; generic home intent fallback
    Change Launcher → Android home settings; default-app settings fallback
  OEM and system tools
    Engineer mode → OEM EngineeringModeActivity
    SAIC vehicle settings → OEM VehicleSettingsActivity
    System settings → OEM SettingsActivity
  Software updates
    Software updates → UpdateActivity
  Plugins
    Plugin marketplace → PluginMarketplaceActivity
  Transfer
    Included settings → informational dialog listing ConfigStore sections
    Export settings → Android create-document picker; JSON export
    Import settings → Android open-document picker; JSON import
  Reset
    Reset settings → confirmation dialog; reset preferences and recreate hub

External destinations

Entry Component or intent
Vehicle charging settings com.saicmotor.hmi.vehiclesettings/com.saicmotor.hmi.vehiclesettings.chargemanagement.ui.ChargeManagementActivity
Official SAIC launcher com.saicmotor.hmi.launcher/com.saicmotor.hmi.launcher.ui.MainActivity; fallback ACTION_MAIN + CATEGORY_HOME
Change Launcher Settings.ACTION_HOME_SETTINGS; fallback Settings.ACTION_MANAGE_DEFAULT_APPS_SETTINGS
Engineer mode com.saicmotor.hmi.engmode/com.saicmotor.hmi.engmode.home.ui.EngineeringModeActivity
SAIC vehicle settings com.saicmotor.hmi.vehiclesettings/com.saicmotor.hmi.vehiclesettings.vehicleconfig.ui.VehicleSettingsActivity
System settings com.saicmotor.hmi.systemsettings/com.saicmotor.hmi.systemsettings.SettingsActivity
Music Player permission Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS

Entry points and migration

The original Driving tab is split into Vehicle and Driving. Charging stays together. Misc is split into Audio and System. Appearance becomes Dashboard. Apps retains its pinned-app tools. Config is incorporated into System, with the old export section list available through Included settings instead of repeated rows.

EXTRA_CATEGORY remains an integer intent extra with zero-based tab order: Vehicle (0), Driving (1), Charging (2), Audio (3), Dashboard (4), Apps (5), System (6). The control panel's automatic-brightness settings shortcut uses SettingsActivity.CATEGORY_DASHBOARD rather than the old Appearance index (3). Vehicle default summary rows intentionally share the same destination; editing remains centralized in the capability-gated vehicle settings page.

Manual navigation checks

On a head unit or emulator, scroll down Dashboard, switch to System, and confirm System starts at the top; repeat between other tabs. Scroll to brightness or visualizer controls, change a picker, and confirm the same-tab refresh preserves position. Return from a child page and from notification access, and verify the same behavior. Change theme/font size, then verify the rebuilt tab and controls. Check the control panel brightness shortcut lands on Dashboard. Exercise pinned app editing and reordering, and verify settings still export/import as before. Diagnostic upload and reset require explicit confirmation; cancel them during navigation-only checks.