Created
June 30, 2014 13:58
-
-
Save b1lb0/d5fd3d5de87316541110 to your computer and use it in GitHub Desktop.
Android Aok decompile/recompile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code injection checklist | |
------------------------ | |
1) Decompilare il codice da iniettare da un Apk | |
2) Decompilare il codice della app da modificare | |
3) Copiare il codice dalla sorgente (DirDecompilato/smali/path_classe_java) alla app da modificare | |
4) Modiicare il manifest delle app destinazione per aggiungere l'activity e eventuali assets | |
5) Ricompilare la app modificata | |
6) Rifirmare la app modificata | |
7) ZipAlign della app modificata (passo necessario solo alla publicazione su play store) | |
Decompilazione e ricompilazione | |
------------------------------- | |
1. Decompile apk with apktool (https://code.google.com/p/android-apktool/) | |
/Users/tobia/Downloads/apktool-install-macosx-r05-ibot/apktool d ApkName | |
2. Change of AndroidManifest / assets / copy new smali class / change of resource or code (un bel casino da evitare) | |
3. Rebuild in apk | |
/Users/tobia/Downloads/apktool-install-macosx-r05-ibot/apktool b DirName | |
4. Signing dell' apk (necessario per provare l'apk sul telefono) | |
jarsigner -verbose -keystore /Users/tobia/Downloads/appsfuel.keystore Apk appsfuel | |
password: appsfuel123 | |
5. ZipAlign dell'apk (necessario per pubblicare l'apk sul play store) | |
zipalign 4 Source.apk Dest.apk | |
6. Finito |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment