unpack and pack with Apktool apk
- download Apktool tools
- Unpack br> apktool d xxx.apk-f
- Implant Code
Use Apktool to unpack the APK (hereinafter referred to as a),
use Apktool to unpack the APK with the code to be implanted (below The face is called B).
-copies the corresponding permissions and individual component declaration information from the androidmanifest.xml of B to a.
-Copy the corresponding Smali file of B to a.
-Copy the corresponding layout file of B to a.
-Copy the ID of the implant layout from the values/ids.xml of B to a.
-Copy the ID of the implant layout from the values/public.xml of B to a.
-Copy the Call of the corresponding method in B from B to a (note the method signature).
Hack Other People's apk is a kind of bullying behavior, this article is only for learning, do not mess.
- Package again
Apktool b xxx-o xxx-new.apk
- build keystore
Keytool-genkeypa Ir-alias-app.keystore-keyalg rsa-validity 100-keystore app.keystore
Input Password:
Return
to last enter Y li>
to sign the apk
Jarsigner-verbose-keystore app.keystore-signedjar xxx-new.apk xxx-new.apk $alias
- zipalign
Zipalign-f-V 4 xxx-new.apk xxx-new-new.apk
Use Apktool Unpack and package apk