build: use repo-local MG4 signing tools

This commit is contained in:
TCFDONMEZ
2026-10-05 20:24:06 +03:00
parent 90982580af
commit 7366ba0480
3 changed files with 22 additions and 1 deletions
+7
View File
@@ -24,6 +24,13 @@ mise.local.toml
*.apk *.apk
*.idsig *.idsig
# Local MG4 platform-signing material. Keep the working copies inside this
# checkout for self-contained release builds, but never publish private keys.
/tools/platform.pk8
/tools/platform.x509.pem
/tools/platform.key
/tools/platform.p12
# Build dirs of the vendored EVHardware library. # Build dirs of the vendored EVHardware library.
/EVHardware/build /EVHardware/build
/EVHardware/.gradle /EVHardware/.gradle
+2 -1
View File
@@ -70,7 +70,8 @@ The version comes from the **asset filename**, not the git tag. The tag can stay
```bash ```bash
BT=~/Android/Sdk/build-tools/35.0.0 BT=~/Android/Sdk/build-tools/35.0.0
KEYS=~/Desktop/Coding/MG/DriveHub_Kamera/tools # Local copies from DriveHub_Kamera/tools; private and gitignored.
KEYS="$PWD/tools"
"$BT/zipalign" -f 4 \ "$BT/zipalign" -f 4 \
app/build/outputs/apk/unstable/debug/app-unstable-debug.apk aligned.apk app/build/outputs/apk/unstable/debug/app-unstable-debug.apk aligned.apk
+13
View File
@@ -0,0 +1,13 @@
# Local MG4 signing tools
Place the two DriveHub platform-signing files in this directory:
- `platform.pk8`
- `platform.x509.pem`
They sign the unstable vehicle APK described in `../OTA.md`. The expected
certificate SHA-256 is
`c8a2e9bccf597c2fb6dc66bee293fc13f2fc47ec77bc6b2b0d52c11f51192ab8`.
The signing files are intentionally ignored by Git. Do not publish the private
key; release APKs remain reproducible locally from this checkout.