apk-mitm icon indicating copy to clipboard operation
apk-mitm copied to clipboard

Failed to encode patched APK file

Open cosmincc opened this issue 3 years ago • 2 comments

The tool decodes the resources of the base APKs, but it can't encode them back. This could be solved by using --no-res flag in apktool to skip the resources as in some cases (ie. Revolut) the resources are in a separate APK and that breaks the re-encoding of the base APK. Logs: encoding-aapt.failed.log encoding-aapt2.failed.log decoding.log

cosmincc avatar Apr 18 '22 19:04 cosmincc

It would be usefull to have some way to pass parameters to APKTool through apk-mitm. Currently we are not able to pass parameters like --no-res (same as -r). The use of the no resources option speeds up the process AND avoids errors like the apk-mitm brut.androlib.AndrolibException during the packaging process.

Is it possible to manually pass parameters to the apktool executable when starting an apk-mitm command?

CasparNuel avatar May 10 '22 13:05 CasparNuel

Indeed, I would love to pass the -r options to apktool.

jonathanklee avatar May 12 '22 13:05 jonathanklee