Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,657 Members 43,216 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] APKTool for Newbie & Noobs

Tip us?
 
F4uzan
Old
#1  
F4uzan's Avatar
Recognized Contributor - OP
Thanks Meter 1,448
Posts: 2,666
Join Date: Jul 2012
Location: Bandung, Indonesia
Default [GUIDE] APKTool for Newbie & Noobs

Hi guys !

Bored to the death today, really. So I decided to make another guide.

So, here's APKTool Guide & SignAPK Guide for Newbies !


1. Download APKTool, you can download it here.
Also, download APKTool depencies for your OS :

Windows
Mac OSX
Linux

2. Extract files you've download to the same folder.

For Linux, extract it to /usr/local/bin. Correct the permission by adding executable permission.

3. Now, open CMD (Command Prompt). Press Windows Key + R, type cmd.exe

For Linux, just open Terminal Emulator -.-

4. Change directory to where APKTool is placed. Type these :

Code:
cd apktool directory

for example : cd C:\apktool
For Linux, just type apktool

5. Now you can freely decompile APKs, BUT ! for System APK (like SystemUI), you have to install the framework.
Extract the framework-res.apk from your ROM, and type these :

Code:
apktool.exe if framework-res.apk
for Linux :

Code:
apktool if framework-res.apk
6. Now, enjoy decompiling APK. If you're done with modifying APK, type these :

Code:
apktool b apk name

for example :

apktool b SystemUI
Happy Modding !
| F4uzan | Optima Team
------------------------------------



The Following 5 Users Say Thank You to F4uzan For This Useful Post: [ Click to Expand ]
 
F4uzan
Old
(Last edited by F4uzan; 5th May 2014 at 02:22 PM.)
#2  
F4uzan's Avatar
Recognized Contributor - OP
Thanks Meter 1,448
Posts: 2,666
Join Date: Jul 2012
Location: Bandung, Indonesia
SignAPK Guide for Newbies

1. Download signapk.jar and testkey.zip, you need Java for your OS if you don't have it yet.

2. Place signapk.jar in the same folder as APKTool, so you can instantly sign modded APK after modding it. Also extract testkey.zip in the same folder.

3. Type these :

Code:
java -jar signapk.jar testkey.x509.pem testkey.pk8 original_apkname.apk signed_apkname.apk
4. Congrats ! You can now install the APK normally or via adb.
Attached Files
File Type: jar signapk.jar - [Click for QR Code] (8.9 KB, 21 views)
File Type: zip testkey.zip - [Click for QR Code] (2.3 KB, 22 views)
 
george brown
Old
(Last edited by george brown; 4th May 2014 at 10:52 AM.)
#3  
george brown's Avatar
Senior Member
Thanks Meter 23
Posts: 166
Join Date: Sep 2011
Ooh, I think I've seen a lot of your moddings out there (if I'm not wrong). :thumbup::thumbup::thumbup:

Sent from my LG-P705 using Tapatalk
The Following User Says Thank You to george brown For This Useful Post: [ Click to Expand ]
 
skyinfo
Old
#4  
skyinfo's Avatar
Senior Member
Thanks Meter 398
Posts: 303
Join Date: Sep 2013
Location: Kottayam, Kerala-INDIA
Thanks! It's really friendly! Will give it a shot when you post the signing guide!!
Keep up the good work!!!

Sent from my LG-E610 using Tapatalk
LG Optimus L5 E612
ROM: CyanogenMod 11 Beta 9.4 by PecanCM
Kernel: SKernel Beta 0.6.1
Android: KitKat 4.4.4 [KTU84Q]
Recovery: TWRP 2.8.0.0

If anybody helped you, remember to thank them!


Connect with Optima Team on Facebook || XDA
The Following User Says Thank You to skyinfo For This Useful Post: [ Click to Expand ]
 
F4uzan
Old
#5  
F4uzan's Avatar
Recognized Contributor - OP
Thanks Meter 1,448
Posts: 2,666
Join Date: Jul 2012
Location: Bandung, Indonesia
Added SignAPK guide on the second post.

Thanks for reading the tutorial.
| F4uzan | Optima Team
------------------------------------



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes