Repository navigation
fix(build): drop Conscrypt to clear the Play 16 KB page size warning - #1712
Conversation
Play flagged lib/arm64-v8a/libconscrypt_jni.so as built with an NDK older than r28 (conscrypt-android 2.5.3 ships a clang 9 / NDK r21-era binary). Every other native library is built with NDK r25 or newer and all are already 16 KB LOAD-aligned. Conscrypt was added to bring TLS 1.3 to Android 9 and lower. minSdk is now 29, so it only ever ran on Android 10, which has TLS 1.3 in its platform provider. Remove the dependency, the provider install in WalletApplication and the -keep rules; keep -dontwarn org.conscrypt.** because OkHttp still refers to it optionally. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Final review complete — no blockers (commit ef958b9) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The Conscrypt removal is correct and limited to the dependency, provider initialization, and obsolete keep rules. The wallet minimum SDK is API 29, where the platform provider supplies TLS 1.3; retained dontwarn rules cover OkHttp's optional Conscrypt references, and CI reports successful check and build jobs for this exact head.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.2-sol (agent: phase2-reviewer, role: general); reviewer 3: gpt-6.2-sol (agent: phase2-reviewer, role: security-auditor); final verifier: gpt-6.2-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.2-sol(effort low) — This is a small, well-contained build and application-initialization change that removes an obsolete TLS provider and associated rules, with no direct changes to cryptography, funds movement, or core wallet logic. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 99% left, weekly 93% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.2-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.2-sol— general (completed, effort medium); agentphase2-reviewer,gpt-6.2-sol— security-auditor (completed, effort medium); agentphase2-reviewer
QA ✅ PASS — run 50, build 12000301 (12.0.3-qa01)Including the case the bundled Conscrypt actually existed for. Commit under test: The cost, measured rather than estimatedA second APK was built from the base commit alone —
TLS paths confirmedThree independent paths, on API 36 devices:
The case that matters: API 29, the app's minSdk floorA A real in-app HTTPS fetch succeeded at minSdk, with zero The 211 Not coveredCoinbase, Uphold and DashConnect. All three need linked-account credentials this environment does not hold. They are the three TLS paths this PR is not proven on, and they are the ones with the least common client stacks — worth someone with accounts running once before this merges. Build provenanceBuild: The SDK pin does not move — int36, the same pin 12.0.2 shipped with, and checked rather than assumed: APK: versionCode Run: QA run 50, testnet, 2026-11-19. Five Android 16 devices plus one at API 29. Unit tests on the merged tree: 5,007 passing, 0 failures. |
QA run 52 — carried forward unchanged, plus upgrade and unit-test coverageThis PR is in builds 12000303 and 12000304 at commit What run 52 adds for this PR specifically:
No new finding against this PR. How this was testedBuilds. Devices. Android 16 (API 36) emulators, testnet, release-signed builds. Platform protocol 14. Unit tests on 12000304: 4,779 tests across 330 classes, 0 failures, 0 errors, 1 skipped. Both SDK native libraries are byte-identical in size across the two builds, so differences between them come from the PRs and not from the SDK underneath. Full report: https://github.com/HashEngineering/dash-wallet-qa-report — run 52. |
QA run 56 — Conscrypt is gone; one observation alongside itVerifiedConscrypt is absent from the APK: 0 entries matching An observation, explicitly not a claim about PlayRunning the repo's own The other 12 of 16 are 2**14. Raw I am not claiming this means the Play warning persists. I measured ELF segment alignment in the APK; I did not see what Play Console reports, and I'm told it never flagged these. If the warning you were clearing named Conscrypt specifically, this PR may well be the complete fix and the above is unrelated to it. Recording it only because the two libraries come from the dashj BLS dependency rather than Conscrypt, so if a 16 KB page-size issue ever does surface, this PR isn't where to look — and a 16 KB-page device would be the thing that settles it either way. QA run 56, 2026-11-30. Build 12000305 (12.0.3-qa05), branch |
Correction — the alignment observation above was an artefact of the QA build machine. Disregard it.My earlier comment reported four 4 KB-aligned libraries in the 12000305 APK and said they came from the dashj BLS dependency. That attribution was wrong, and the libraries are not in any real build. Thanks to the reviewer who pushed back on it. What actually happened: this QA machine has a local build of
The shipped build's library is the published one and is correctly aligned. The pin So there is nothing here for this PR to fix, and nothing for Play to complain about. The Conscrypt removal result in my earlier comment stands unchanged: 0 conscrypt entries in the APK, no TLS trouble across six device streams. The real finding is about the QA environment, not the code — builds from this machine have been silently using a two-year-old local BLS library — and it's being cleaned up on our side. |
Issue
Play Console flagged 12.0.2 (versionCode 12000205): "Your app could crash on 16 KB devices", naming one library,
base/lib/arm64-v8a/libconscrypt_jni.so, as compiled with an NDK older than r28.Cause
org.conscrypt:conscrypt-android:2.5.3ships a prebuiltlibconscrypt_jni.sobuilt with clang 9.0.8 (around NDK r21). It was added in #1348 to bring TLS 1.3 to Android 9 and lower. Since minSdk was raised to 29, theSDK_INT <= Qguard only matches Android 10, which already has TLS 1.3 in its platform provider, so Conscrypt no longer does anything useful.Change
wallet/build.gradle: remove theconscrypt-androiddependency (it was the only path; nothing pulls it in transitively inprodReleaseRuntimeClasspath).WalletApplication.java: remove theSecurity.insertProviderAt(Conscrypt.newProvider(), 1)block and its imports.wallet/proguard.cfg: remove the Conscrypt-keeprules. Keep-dontwarn org.conscrypt.**and OkHttp's specific-dontwarnlines, since OkHttp still refers to Conscrypt optionally.Native libraries after the change (prod, arm64-v8a / x86_64)
All remaining libraries have 16 KB LOAD alignment (
p_align 0x4000) and were built with NDK r25 or newer:libdash_sdk_jni.so,libsdklib.solibdashjbls.so,libscrypt.so,libx11.so,libpthread.solibandroidx.graphics.path.so,libdatastore_shared_counter.souseLegacyPackagingis not set, so libs stay uncompressed and 16 KB zip-aligned (AGP 8.13, minSdk 29).Testing
:wallet:compile_testNet3DebugJavaWithJavacpasses;mergeProdDebugNativeLibsno longer containslibconscrypt_jni.so.:wallet:test_testNet3DebugUnitTest: 4668 tests, 1 failure (SendCoinsTaskRunnerBIP70Test, a gift-card race test), which passes when run alone (known full-suite flakiness, unrelated to TLS).🤖 Generated with Claude Code
Summary by CodeRabbit