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>
26 lines
1.0 KiB
Prolog
26 lines
1.0 KiB
Prolog
# EVABRPUploader — R8 keep rules.
|
|
#
|
|
# CarPropertyAdapter reaches the car through reflection only (android.car is not on the
|
|
# compile classpath), so R8 cannot see those uses. Anything it reflects on must be kept
|
|
# by name or the release build fails silently at runtime, on a vehicle.
|
|
|
|
# Reflected via Class.forName in CarPropertyAdapter.
|
|
-keep class android.car.** { *; }
|
|
|
|
# The adapter itself: it defines the dynamic-proxy callback interfaces the framework
|
|
# invokes back into, which R8 cannot trace.
|
|
-keep class com.evsuite.abrp.CarPropertyAdapter { *; }
|
|
-keep interface com.evsuite.abrp.CarPropertyAdapter$* { *; }
|
|
|
|
# Components named from the manifest.
|
|
-keep class com.evsuite.abrp.AbrpUploadService { *; }
|
|
-keep class com.evsuite.abrp.BootReceiver { *; }
|
|
|
|
# EncryptedSharedPreferences (androidx.security) pulls Tink in via reflection.
|
|
-keep class com.google.crypto.tink.** { *; }
|
|
-dontwarn com.google.crypto.tink.**
|
|
|
|
# Readable crash stack traces from a release build.
|
|
-keepattributes SourceFile, LineNumberTable
|
|
-renamesourcefileattribute SourceFile
|