Docs: The Android version string no longer lags behind

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-11-02 09:24:33 +01:00
1 parent 32b67c0c55
commit f1a76fde80
1 file changed
+4 -5
+4 -5
View File
@@ -26,11 +26,10 @@ Verify after every install, not just when something looks odd:
A second, independent check is worth it when a result is surprising: grep the log for a symbol that
exists only on the branch under test (a renamed class or log tag, say).
The version string itself can also lie. The Android build regenerates `git-version.cpp` but does not
always recompile it, so the APK can carry the previous build's string while containing current code.
When the version matters:
find android/.cxx -name git-version.cpp.o -delete
The version string in the app's UI used to lie as well: Ninja regenerated `git-version.cpp` but didn't
recompile it, so the APK could carry an older commit's string. That's fixed (the file is now declared
as a `BYPRODUCTS` of the generating step in `Core/CMakeLists.txt`), so on a build directory that has
been reconfigured since, the string matches the commit the APK was built from.
## Forcing an activity recreate without touching the device