A utility app to convert apkm files to apks on Android.
Objectives:
To use the app, open an apkm file using UnApkm from your favourite file manager. You will be prompted for a save location.
UnApkm for Android is available via JitPack.
// Top level build file
repositories {
maven { url "https://jitpack.io" }
}
// Add to dependencies section
dependencies {
implementation 'com.github.MuntashirAkon:unapkm-android:1.2'
}
See the example module for a working example.
// You can also use InputStream but make sure that it's not a PipedInputStream or a pipe created by
// ParcelFileDescriptor#createPipe().
ParcelFileDescriptor inputPdf = ...;
OutputStream outputStream = ...;
// Service connection is handled automatically in the constructor, be sure to run it in a worker thread
UnApkm unApkm = new UnApkm(MainActivity.this, UN_APKM_PKG);
// Decrypt the APKM file
unApkm.decryptFile(descriptor, outputStream);