본문 바로가기
Hack/Mobile

Android Anti-Repacking Bypass

by Becoming a Hacker 2022. 11. 2.
반응형

Create jks key (mac)

$ keytool -genkey -v -keystore ~/aos.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload -storetype JKS

 

apktool Decompile Command

$ apktool d -r --only-main-classes test3.apk

 

apktool Compile Command

$ apktool b -r --only-main-classes base -o new_base.apk

 

APK Sign Command

$ zipalign -f -v 4 ./dis.apk ./aligend.apk
$ apksigner sign -v --out ./signed.apk --ks ./aos.jks ./aligend.apk

댓글