Build conscrypt-android with NDK r29: r27d binaries trigger a Play Console 16 KB advisory
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 43/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start by reading #1517 and tracing the Android native build and release configuration that selects the NDK for the published artifacts. Check whether NDK r29 is supported by the project’s build and release tooling, then build the Android artifacts and inspect their NDK identifiers. Done means the published native libraries use r29 and the Play Console advisory is cleared; the issue does not name build files or tests.
索引モデルが issue の本文から書いたものです。
説明
Summary
Google Play Console shows a "Technical quality" advisory for apps shipping conscrypt-android, because the published libconscrypt_jni.so binaries are built with NDK r27d and Play's checker requires r28 or higher.
Since r29 is a supported NDK release (per the same policy used to pick r27d in #1517), building the Android artifacts with r29 would clear the advisory without departing from the "only supported toolchains" rule.
What Play Console reports
For an app shipping Conscrypt 2.5.3:
Your app could crash on 16 KB devices
Your app is compiled for 16 KB devices, but some of its libraries were compiled
using an older Android NDK version that can still cause crashes. The following
libraries in your app may be affected:
base/lib/arm64-v8a/libconscrypt_jni.so
To fix this issue, choose one of the following:
- Upgrade to NDK r28 or higher to resolve this automatically.
- Recompile your libraries and manually enable linker flags if you can't upgrade.
If your code relies on the PAGE_SIZE macro, you must replace all instances.
Play keys this off the NDK identifier in .note.android.ident, not off segment alignment.
What the published artifacts contain
Checked with readelf on jni/arm64-v8a/libconscrypt_jni.so from each Maven Central AAR:
| Version | .note.android.ident |
LOAD p_align | PT_GNU_RELRO |
|---|---|---|---|
| 2.5.3 | r21d | 0x4000 | start 0x1ecc20, memsz 0x163e0, end 0x203000 — not 16 KB aligned, not a suffix of its LOAD |
| 2.6.0 | r27d | 0x4000 | 16 KB aligned suffix |
| 2.6.3 | r27d | 0x4000 | start 0x2a3870, memsz 0x18790, end 0x2bc000 — 16 KB aligned suffix |
| 2.7.0 | r27d | 0x4000 | 16 KB aligned suffix |
| 2.8.0 | r27d | 0x4000 | 16 KB aligned suffix |
So 2.6.x genuinely fixed the RELRO defect that Android Studio's "All ELF Alignment Problems" check reports against 2.5.3 (the figures in the last comments of #1413 match the 2.5.3 row above exactly). That part is resolved and we are upgrading because of it.
The remaining gap is only the toolchain identifier: r27d is correct and 16 KB safe, but Play's check compares the number against r28 and reports the advisory anyway.
Why r29 rather than r28
In #1517, @juergw explained the move from r28 back to r27:
We decided that we don't want to use an unsupported toolchain to generate these binaries, because unsupported tools may contain unfixed bugs. Therefore, we decided to use the oldest tool that is still supported, which is v27.
That reasoning rules out r28, which is not in the supported set. It does not rule out r29, which is listed as supported alongside r27d and r30beta1. Building with r29 would satisfy both constraints at once: a supported toolchain, and an identifier that Play's r28-or-higher comparison accepts.
If there is a reason r29 is unsuitable (API level floor, BoringSSL compatibility, release tooling), it would be useful to have that stated here, since every app shipping Conscrypt currently inherits a Play advisory it cannot resolve on its own.
Impact on app developers
The advisory is not a release blocker today, but it appears on every upload and cannot be cleared by any action on the app side, since no published Conscrypt release uses r28 or higher. The practical options for an app are to ignore it indefinitely, exclude Conscrypt (which changes TLS behaviour on older API levels), or maintain a private build — all of which are worse than Conscrypt shipping an r29 binary.
Environment
org.conscrypt:conscrypt-android, Maven Central releases 2.5.3 through 2.8.0- Android app, minSdk 26, arm64-v8a / armeabi-v7a / x86 / x86_64
- Related: #1212, #1413 (16 KB alignment), #1517 (NDK r28 to r27 revert)
- 主要言語
- Java
- スター
- 1.4k
- フォーク
- 332
- 平均マージ
- 2日 56分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/conscrypt のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 3/5 半日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 49/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
google/conscrypt の issue をすべて見る
似ている issue
-
beginner difficulty: easy documentation good first issue hacktoberfest help wanted observability size/S up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
dmitriy-iliyov/spring-transactional-outbox#82 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
RamazanKara/nightjar#264 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
netty/netty#18628 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
apache/flink-agents#1500 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
sylvainmetayer/planning-equipes#495 ·
メンテナーはふだん 1 日以内に返信