RM02 native replacement — source and reproduction notes

Purpose: replace the LGPL full AAR that references missing SDL/HID symbols. This is a test candidate, not release approval.

Provenance
Publisher repository: https://github.com/jamaismagic/ffmpeg-kit
Publisher source tag: ffmpeg-kit-android-full-2026-02-27T04-53-39
See publisher-release.json and source-commits.json. The root repository snapshot was locally committed from the publisher tarball; its local commit identifies that snapshot, not an upstream commit. Nested dependency commits identify fetched upstream sources. publisher-wrapper-classes.jar is unchanged from ffmpeg-kit-lts-full-16kb:6.1.4; native code is rebuilt from the matching source tag. The AAR manifest minSdk is corrected from 23 to 24 to match the actual native build; the app already requires 24. Its original AAR SHA256 is 6da5bf6bf92b0d3ce7c718a3a007f596de54654090bfed6805e8c090aea5f893.

Build environment
Linux x86_64; Android NDK r27d (27.3.13750724); API24; bash, git, make, Python3, autoconf, automake, libtool, pkg-config, nasm, yasm, CMake, gettext, gperf, texinfo and Perl. Host tools were installed in a user-space conda environment. Use NDK from https://developer.android.com/ndk/downloads/revision_history. Toolchain binaries are not included.

1. Extract this archive into a fresh directory.
2. Run python3 init_snapshots.py to initialize local Git baselines. The upstream build resets selected tracked files with git checkout. Do not fetch/replace the supplied snapshots with newer revisions.
3. Set ANDROID_NDK_ROOT to the NDK r27d directory and ANDROID_SDK_ROOT to the Android SDK directory. Make CMake available on PATH (or the SDK CMake directory).
4. For conda pkg-config, use a wrapper invoking the real pkg-config with --dont-define-prefix. Otherwise dependency prefixes can be rewritten incorrectly. Place that wrapper first on PATH.
5. From source run exactly:
   ./android.sh --lts --api-level=24 --disable-arm-v7a --enable-lame --enable-opus --enable-android-zlib --enable-android-media-codec --no-archive
   This disables only the non-NEON ARM variant and builds ARMv7 NEON, ARM64, x86 and x86_64. Do not omit --no-archive: the publisher's archive workflow also invokes a publishing task, which is not authorized or needed.
6. From the archive root run:
   python3 verify_linkage.py source/android/libs "$ANDROID_NDK_ROOT"
   python3 package_aar.py ffmpeg-kit-rm-lgpl-rm2.aar

Build adjustments supplied in these sources
- Removed environment dumps from logs.
- libiconv removes stale objects, forces rebuilding, installs library targets and skips HTML manual generation.
- Opus fails on cleanup errors, removes stale compiled objects and forces a full make rebuild across architectures.
- FFmpeg removes stale compiled objects after upstream distclean and copies per-architecture config evidence outside the source directory.
- SDL/GPL are disabled by the supplied selection of components.

The build was resumed after host-tool and cross-architecture cleanup failures. All shipped native outputs must pass the supplied symbol/dependency check. Packaging reuses only the matching Java wrapper and AAR manifest/proguard metadata; none of the defective publisher native libraries is copied.

Licensing/distribution
See notices and original source licences. This archive supplies source snapshots and build modifications for engineering review. It is not an assertion that the complete application's distribution/relinking obligations have been satisfied. Compliance must verify the release distribution mechanism, final app inventory and signed AAB. Android system libraries are not redistributed here.

Verification boundary
No Android emulator or physical device execution occurred in this build environment. Device tests and final AAB ZIP alignment/signature/manifest verification remain required. Static ELF alignment and symbol checks are reported separately.
