std.android.apk_builder
APK-Datei aus Manifest, Ressourcen und kompilierter .so-Bibliothek zusammenstellen. Nutzt intern std.android.zip_writer und std.android.manifest_gen zur Erzeugung eines signierten oder unsignierten APK-Pakets.
→ std.android · std.android.zip_writer · std.android.manifest_gen
Typen
ApkBuilder (class)
| Feld | Typ |
|---|---|
zw | ZipWriter |
Funktionen
| Signatur | Sichtbarkeit | Beschreibung |
|---|---|---|
AddAxmlManifest(axmlBuf: int64, axmlLen: int64): int64 | pub | Add the compiled AXML manifest. MUST come first in the archive so the Android package manager can read it without scanning further. |
AddDexStub(dexBuf: int64, dexLen: int64): int64 | pub | Add the classes.dex stub. |
AddSharedLib(arch: int64, libName: pchar, soBuf: int64, soLen: int64): int64 | pub | Add a native library at lib/<arch>/lib<name>.so. |
AddResource(archivePath: pchar, buf: int64, len: int64): int64 | pub | Add an arbitrary resource at the caller-supplied archive path. |
Finalize(): void | pub | Finish the archive. Returns the buffer pointer; GetLen returns size. Caller must still sign the resulting APK before `adb install` succeeds. |
GetBuf(): int64 | pub | — |
GetLen(): int64 | pub | — |
Signaturen automatisch aus std/android/apk_builder.lyx erzeugt (Stand 2026-08-02, lyxc 1.0.21A). Beschreibungen stammen aus den Quellkommentaren und sind teilweise unvollständig.
