Skip to content

Native Library Update

Jugg supports updating already produced native library / .so files by writing them into the APK, re-signing it, and installing the updated APK.

Supported Capabilities

ScenarioCurrent supportEffect path
Updating existing jniLibs/**/*.so or lib/<abi>/*.so artifactsSupportedWrite into the target APK and re-sign the APK
Multi-ABI native library updatesSupported per target APK ownershipEach target APK gets its own native library artifact update

TIP

If the change touches C/C++ source, CMake, NDK, ABI, packaging rules, or native source sets, run the matching Gradle build or Sync first so the new .so artifact becomes an input Jugg can update.

How Native Library Update Takes Effect

text
detect native library / .so artifact changes
  -> map them to the target APK
  -> write them into the APK during deployment
  -> re-sign the APK
  -> install the updated APK

Native library update modifies APK contents and requires re-signing. Jugg places existing .so artifacts into the right APK; Gradle/NDK still owns producing .so artifacts from C/C++ source.