How to sign apk programmatically with "apksig library" in Android studio

264 Views Asked by At

Some days ago, I learned java then jumped to Android studio :) and I am working on an app, as feature of this project, select and sign other apk and out signed apk, I saw some good libraries like "apksig" also jarsigner source, but unfortunately there is no any example how to do this process in android studio, I spent 3 days in searching and digging in source code,The difficulty lies in how to pass the parameters like "x509 cert" and "private key" in the required form and some other stuffs. maybe I can get help by simply example to sign demo apk by this library or any other way. Thanks

0

There are 0 best solutions below