Fatih'sMG4 — ABRP telemetry for an MG4 EH32 on SWI69
A fork of malys/EVABRPUploader (itself a fork of Leon Kernan's ABRP_Uploader) carrying the changes that make it work on this car. History starts here: the tree is what matters, and the upstream projects are where the earlier work belongs. EVHardware is vendored rather than tracked as a submodule, so one clone builds. Telemetry. SOC, battery power and range read as unavailable on SWI69 because the vendor fallbacks were gated to SWI68 alone, while the property ids they use are the ones this car publishes — the gates now admit SWI69. Tyre pressure, the odometer and charge status come from the vendor block too, since the generic properties for all three are declared here and never publish. Tyre pressure is confirmed on the vehicle; the other two are not yet. Vehicle page. Every signal the car answers, in a table. One that it does not publish shows a dash: an unimplemented VHAL property returns zero, and "0 °C" would read as a measurement. Wi-Fi page. Joins a network the unit already has saved, so a phone hotspot does not need a trip into Settings on every drive. Tried on the upload tick and from a button, skipped while already associated. This leans on the unit being API 28 and the build being platform-signed — getConfiguredNetworks and enableNetwork are closed to ordinary apps from API 29 — and fails quietly where that does not hold. The OTA updater points at this repository. An APK from upstream is signed with a different key, which Android will not install over a platform-signed build. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<!-- DayNight, not a forced dark theme: the suite follows the vehicle's day/night
|
||||
setting. Dark is still the mode that matters - a light background filling the
|
||||
windscreen at night is glare - which is why the light palette was raised to
|
||||
the same 7:1 floor as the dark one rather than the other way round.
|
||||
Shared component styles live in styles_ev.xml. -->
|
||||
<style name="Theme.EVABRPUploader" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<item name="colorPrimary">@color/ev_accent</item>
|
||||
<item name="colorOnPrimary">@color/ev_on_accent</item>
|
||||
<item name="colorSurface">@color/ev_surface</item>
|
||||
<item name="colorSurfaceContainer">@color/ev_surface_raised</item>
|
||||
<item name="android:colorBackground">@color/ev_background</item>
|
||||
<item name="android:windowBackground">@color/ev_background</item>
|
||||
<item name="colorError">@color/ev_error</item>
|
||||
<item name="android:statusBarColor">@color/ev_background</item>
|
||||
<!-- Material3's "on surface" is a grey-mauve that is comfortable indoors and
|
||||
too weak in full sun: a hard contrast is imposed instead. -->
|
||||
<item name="colorOnSurface">@color/ev_text_primary</item>
|
||||
<item name="colorOnSurfaceVariant">@color/ev_text_secondary</item>
|
||||
<item name="colorOnBackground">@color/ev_text_primary</item>
|
||||
<item name="colorOutline">@color/ev_outline</item>
|
||||
<item name="android:textColorPrimary">@color/ev_text_primary</item>
|
||||
<item name="android:textColorSecondary">@color/ev_text_secondary</item>
|
||||
<item name="materialAlertDialogTheme">@style/ThemeOverlay.EV.Dialog</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user