Open rob-X1 opened 11 months ago
Good point, didnt know that, thank you!
Will change it to an non-system depdency!
So, currently Im using the com.android.apksigner.ApkSignerTool
as interface with the signer, which is basically using it as CLI. The dependency only has the internal signer code, without the CLI interface, so I need to refactor the code a bit (thecom.android.apksig.ApkSigner
interface is not super trivial)
You can use the original ApkSigner source code to see what parameter causes what code to be executed: https://android.googlesource.com/platform/tools/apksig/+/refs/heads/main/src/apksigner/java/com/android/apksigner/ApkSignerTool.java
pom.xml contains the system dependency
which makes building uber-apk-signer unnecessary complicated. Google releases the library version of apksigner in it's maven repository: https://mvnrepository.com/artifact/com.android.tools.build/apksig?repo=google
So you only have to add
and then use the dependency
You can then directly
com.android.apksig.ApkSigner
andcom.android.apksig.ApkVerifier
within your code.