With Android Auto I don't think that is even a "thing" ... I've certainly never seen it. That said, I've always configured my navigation apps with my car details.
I've used AA for many years and would be lost without it, literally
Anyway, that being said, and for those that don't know you set your car type in the Maps, Settings, Your Vehicles config setting and choose an "Engine Type" of "Electric" and "Plugs and adaptors" as appropriate for country, in our case Type 2, CCS2 and Wall socket.
Google have also released a set of APIs that can be queried for a whole bunch of relevant data such as SoC, energy consumption etc. These are not just for Android Automotive but also for Android Auto.
I'm not sure what integration the MG4 provides but will do a bit of digging and might start a dedicated thread on the topic.
AI spiel...
Android Auto and Android Automotive utilize APIs like CarInfoManager and CarPropertyManager to access and manage vehicle-specific data. These APIs allow developers to access car information like manufacturer, model, fuel capacity, and vehicle properties like engine temperature, gear, and ignition state. The CarPropertyManager is the primary API for accessing sensor data and other car properties.
Key aspects of Android Auto and Android Automotive APIs:
- CarInfoManager:
Provides access to basic vehicle information.
- Methods: getDriverSeat(), getEvBatteryCapacity(), getEvConnectorTypes(), getEvPortLocation(), getFuelCapacity(), getFuelDoorLocation(), getFuelTypes(), getManufacturer(), getModel(), getModelYear(), getModelYearInInteger(), getVehicleId().
- Functionality: Accessing car sensor data, managing vehicle properties, and interacting with the car's hardware.
- android.car package:
Provides a wide range of classes and interfaces for interacting with the car system, including CarPropertyManager, CarInfoManager, and classes related to vehicle properties and areas.
- android.car.hardware package:
Focuses on API for monitoring car sensor data.
- Car App API level:
The Android Developers Car App Library uses its own API levels to indicate which library features are supported by the vehicle's template host. The getCarAppApiLevel() method retrieves the highest Car App API level supported.
How these APIs are used:
- Apps built for Android Auto:
Can use these APIs to display relevant information to the driver, such as fuel levels, vehicle speed, or battery status.
- Apps built for Android Automotive:
Can leverage these APIs to create more deeply integrated in-vehicle experiences, potentially controlling car settings or accessing real-time vehicle data.
- Developing custom car apps:
Developers can use these APIs to build custom apps that integrate with the vehicle's system, potentially offering new functionalities or features.
In summary, the Android Auto and Android Automotive APIs, particularly CarInfoManager and CarPropertyManager, provide developers with the tools to access and manage vehicle data and interact with the car's hardware, enabling the creation of driver-optimized apps and in-vehicle experiences.