[BUG]: libwebcrypto.so isn't 16 KB page aligned
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 52/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Dart
- Sterne
- 9
- Forks
- 5
- Ø Merge
- 49 Min.
- Gemergte PRs (30 T.)
- 34
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CommandLineCoding/Elephant
-
area: mobile chore good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
CommandLineCoding/Elephant#247 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: mobile bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
CommandLineCoding/Elephant#245 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: mobile enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
CommandLineCoding/Elephant#183 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: mobile difficulty: medium enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 56/100
CommandLineCoding/Elephant#249 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: mobile chore difficulty: medium testing
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 66/100
CommandLineCoding/Elephant#248 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in CommandLineCoding/Elephant
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
livekit/client-sdk-flutter#1281 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
android bug priority: P1 qa
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
GHRik/bielik_oneclick_launcher#55 ·
Maintainer antworten meist innerhalb von 1 Tag
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
carp demo apps enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
carp-dk/carp.sensing-flutter#670 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100