Functions

Copy lib into out_dir then add this lib into apk file

Adds given lib and all reletad libs into APK

Adds given lib and all reletad libs into APK. Uses readelf, aapt tools

Aligns APK on 4-byte memory boundary. Uses zipalign build tools

Attach logger to device with filter that passes only Rust Stdout or Stderr. Runsadb logcat RustStdoutStderr:D '*:S' command

Helper function that allows to return environment argument with specified tool

Compiles rust code for android with macroquad engine

Returns current android target. Runs adb shell getprop ro.product.cpu.abi command

Moving AndroidManifest.xml file into directory to write files to archive

Allows to extract files from generated APK to use that to generate .aab

Resolves native library using search paths

Allows to generate aab from archive with files extracted from apk or set of archives to specified storage

Generates keystore with default configuration. You can manage configuration with options

Generates minimal AndroidManifest with given changes

Generates minimal unsigned aab

Generates unaligned APK with given manifest_path, assets and res. Uses aapt build tool

Allows to generate archive from files extracted from APK

Return all files in directory with .so ending

Installs given APK in emulator or connected device. Runs adb install -r ... command

Replace libgcc file with unwind. libgcc was removed in ndk versions >=23. This is workaround for gcc not found issue.

Read file and deserializes AndroidManifest.xml into AndroidManifest

List all linked shared libraries

Update needed_libs hashset with given lib and all related libs. Note: libc++ is not a system lib. If you use libc++_shared.so, it must be included in your APK. https://developer.android.com/ndk/guides/cpp-support

Function to delete files

Saves given manifest in new AndroidManifest.xml file

Search dylibs in given deps_dir

Signs APK with given key. Uses apksigner build tool

Starts installed APK or AAB on emulator or connected device. Runs adb shell am start ... command

Writing files into archive