Fix critical version code formula bug

Changed formula from (major*100000 + minor*1000 + patch) to the correct
(major*10000 + minor*100 + patch) to match UpdateManager.smali implementation.

Updated all examples:
- 14.5.0 = 140500 (0x224D4) not 145000
- Corrected hex values throughout documentation

This bug would have prevented OTA updates from working correctly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
ssfdre38
2026-02-24 22:32:41 -08:00
parent b9191a0e86
commit 0daa89e935
2 changed files with 10 additions and 10 deletions

View File

@@ -115,7 +115,7 @@ private static final int CURRENT_VERSION_CODE = 150000;
**Version Code Formula:**
```
versionCode = (major * 100000) + (minor * 1000) + patch
versionCode = (major * 10000) + (minor * 100) + patch
Examples:
15.0.0 → 150000