[BUG]: libwebcrypto.so isn't 16 KB page aligned
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
調査の方向性
Start with mobile/pubspec.lock to trace the webcrypto, webpush_encryption, and unifiedpush versions, then inspect .github/workflows/android-release.yaml for the Android build checks. Check libwebcrypto.so with readelf -lW and test loading or push decryption on the 16 KB Android emulator. Done means its PT_LOAD alignment is at least 0x4000 and CI checks every .so.
索引モデルが issue の本文から書いたものです。
説明
Context
Android devices with 16 KB memory pages (some Android 15+ devices, and the 16 KB emulator images) can only load native libraries whose ELF LOAD segments are aligned to at least 16 KB.
Checking a release APK built from main (arm64-v8a):
| Library | LOAD alignment |
|---|---|
| libapp.so, libflutter.so | 64 KB |
| libdartjni.so, libdatastore_shared_counter.so, libsqlcipher.so | 16 KB |
| libwebcrypto.so | 4 KB |
The zip alignment (zipalign -c -P 16) passes; only libwebcrypto.so fails. It comes from webcrypto 0.6.0, pulled in by unifiedpush → webpush_encryption, so it is new with push notifications (#204).
What to do
- Find out when
libwebcrypto.sois loaded (at start-up, or only when a push message is decrypted) and what happens on a 16 KB device: crash, or notifications silently failing. - Try
webcrypto 0.6.1(the latest) and check its alignment; otherwise look at a newerwebpush_encryption/unifiedpush, or report it upstream. - Add an alignment check for every
.soto CI, so this can't come back unnoticed.
Where to look
mobile/pubspec.lock (webcrypto, webpush_encryption), .github/workflows/android-release.yaml.
Good to know
To check a library: read the p_align of its PT_LOAD program headers (readelf -lW lib.so); it must be 0x4000 or more. Test on the "16 KB page size" Android emulator image.
- 主要言語
- Dart
- スター
- 9
- フォーク
- 5
- 平均マージ
- 49分
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandLineCoding/Elephant のほかの issue
-
area: mobile chore good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
CommandLineCoding/Elephant#247 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CommandLineCoding/Elephant#245 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CommandLineCoding/Elephant#183 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile difficulty: medium enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
CommandLineCoding/Elephant#249 ·
メンテナーはふだん 1 日以内に返信
-
area: mobile chore difficulty: medium testing
難易度 4/5 3〜5日 初心者へのやさしさ 66/100
CommandLineCoding/Elephant#248 ·
メンテナーはふだん 1 日以内に返信
CommandLineCoding/Elephant の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
livekit/client-sdk-flutter#1281 ·
メンテナーはふだん 4 日以内に返信
-
android bug priority: P1 qa
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GHRik/bielik_oneclick_launcher#55 ·
メンテナーはふだん 1 日以内に返信
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
carp demo apps enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
carp-dk/carp.sensing-flutter#670 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100