Decompile and Recompile Apk

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 19

In this tutorial i will teach how to decompile/recompile apk using Apk Multi Tools.

I will try my best to a complete guide, And easy to understand.If you don't know
what is decompile/recompile,Search that on Google.com.

Okay lets begin.

Requirement.

1. PC/laptop/netbook
2. JDK (Java Development Kit) download here
3. APK Multi Tool download here
4. Apk files that you want to decompile and recompile.
5.Software text editor (Notepad++ recommended) link to download Notepad++ : here
6.Enable usb debugging.
7.Flashable zip download here (Thanks To Cleverior)
8.Usb Cable

How to enable Usb Debugging ?

Go to settings, About Phone, Then tap on BUILD NUMBER 7 times, And it will say you have
enable developer options, Go to developer options and check USB DEBUGGING . done.

We gonna begin with the installation of Java.

Download Java Development Kit from the link given.

Scroll down until you see these ,check the Accept License Agreement .
After that , Download the Java for Windows depending on your system types. If you using Windows
32 Bit , You must download Windowsx86 , If you running Windows 64 bit. Download the
Windowsx64 files.

***NOTE***
If you don't know what Windows are u running, Check it by right click on My
Computer and select Properties . and the red one is what your system types is.

Download and install it on your PC/Netbook/Laptop. DONE

Now, Download Apk Multi Tool and extract it.

Go to extracted folders and MOVE/COPY APK-Multi-Tool-Stable-RELEASE folder to C:/ like this


We are ready to go MISSION 1.

==== MISSION 1 Installing Framework-res.apk ====

1. Go to the folder APK-Multi-Tool-Stable-RELEASE.


2.Connect your Galaxy V or other devices to PC using usb cable.
3.Open Setup.bat
4.Press 2 to install framework-res.apk

5.Press 9 to pull Depencies from phone


6.Press any ke to continue .....
7. Press any ke to continue ..... (again) and wait until the pulling process is complete.
8. If done, Press any key to continue (2x).
9.Still in the "APK MULTI-TOOL SETUP DEPENDENCY FILES"
10.Now press 1 to install framework-res.apk
11. A new windows will pop up like this and type in "apktool if framework-res.apk"
without ( " ) and enter.

12. After complete, Close that.Now in APK MULTI-TOOL SETUP DEPEDENCY FILES menu
choose 4 to install SystemUI.apk .
13.A new window will pop up and type in "apktool if SystemUI.apk" without quotes (") and enter.

after complete, Simply close that window.

14.Still in APK MULTI-TOOL SETUP DEPEDENCY FILES menu , choose 7 to install mediatek-
res.apk.
15.The new window will pop up same like before, Now type in "apktool if mediatek-
res.apk" without (")

16. After complete, Close, And Close APK MULTI-TOOL SETUP DEPEDENCY FILES Menu.

Mission Complete, Congratulations , You have succesfully complete these steps,

****NOTE****

THIS STEP IS ONLY DONE ONCE, IF YOU WANT TO DECOMPILE ANOTHER APK, YOU
DON'T NEED TO DO THIS STEP ANYMORE,IF YOU ALREADY DO THIS , YOU CAN SKIP
THIS STEP.

Now lets go the MISSION 2,

==== MISSION 2 Compile APK ====


1. Copy your apk files that you want decompile/compile/edit to INSIDE the folder place-apk-
here-for-modding

2.Open Script.bat

.
3.Now you need to set your current project , Type 27 and enter.

4.Now choose your apk files that you put inside the folder place-apk-here-for-modding .
if you put just one apk. You can simply press 1 and enter
5. In this tutorial i will be use SystemUi.apk for example.
6.When your current project is set, You can simply press 9 and enter to decompile an
apk files.

This is a decompiling process screen.

7.After decompiling process is done, You will be inform by this word : ""SystemUI.apk
has finished decompiling. Would you like to open the projects\SystemUI.apk folder to begin
editing?(Y)es or (N)o? . Choose Yes and enter. like this picture.

8.Now you have succesfully decompile. You can see it on projects folder.

Now you can edit your SystemApk files until you feel satisfied :p. Minimize Setup.bat .
9.Once you have complete your editing work.Open Setup.bat again.
10.Now its time to recompile it. press 11 and enter .
11 . While recompile process, You will be noticed by this message
Aside from the signatures, would you like to copy over any additional files that
you didn't modify from the original apk in order to ensure least # of errors (y/n)

Simply press Y and enter

12.Again , still recompile process , you will be noticed by this message.

"In the APK Multi-Tools folder u'll find a keep folder. Within it, delete everything you have
modified and leave files that you haven't. If you have modified any xml, then delete
resources.arsc from that folder as well. Once done then press enter on this script."
STOP ! , Do not type anything, Simply go to your
Apktool folder, find the keep folder , Inside the keep
folder you need to delete what are you edit/make
changes. If you edit .xml files you need to delete
resource.arsc and the .xml files that you edit. If you
edit a smali files, You need to delete classes.dex and
the smali file that you edit.When you have succesfully
delete what are you edit in the keep folders, simply
press any key on the script
13.After recompile process is complete, Check on folder modified-system-apk-files-here will be
have a apk file that you just edit. Name System_apkname.apk , Now you need to remove
"System_" by rename it.

Before Rename Example.


After rename example. just remove "System_"

14.Now extract the flashable zip file and place Apk that you modified into the system
directory according to the original place.

15.Make a zip again and flash it via CWM/TWRP recovery. And you're done.
Congratulations ! You have succesfully decompile and recompile a system apk apps .

If you misunderstanding and get stucks on step above, Leave a comment below
and i will reply ASAP! , Also you can post on our Facebook Page.

CREDITS :

Allah and Muhammad.


Developer APK MultiTools
HiTech
Cleverior.
Source link : here
This is a complete guide on how to Decompile and Recompile apk using ApkTools (PC)
, I hope you understand and don't forget to share if you liked it because Sharing Will
Improve Your Knowledge. Also like us on Facebook page. Thanks for reading and see
you soon on upcoming tutorials ! Bye :D
iuuyu

Share This:
Facebook
Twitter
Google+
Stumble
Digg
Related Posts:
[RECOVERY][TWRP][UPDATED] TWRP 3.0.0-0 For Samsung Galaxy V
SM-G313HZHelloo.. what's up guys... I'm so sorry. Long time no post.. hehe :D Today
i'm gonna share custom recovery (again) for Samsung Galaxy V SM Read More

[LAUNCHER MOD] TW LAUNCHER WITH THEMEHello everyone, happy


weekend , First of all I want to sorry for you guys if my post doesnt look nice like before,
It is because Im blogging using my Read More

[ROM][STABLE]Cyanogenmod 11 For Galaxy VCyanogenMod is a free,


community built, aftermarket firmware distribution of Android 4.4.4 (KK), which is
designed to increase performance and reliabRead More

[RECOVERY][KST2015] TWRP RECOVERYHello , we meet again, So , In


previous post I post a CWM Recovery for KST2015 Kernel Version, But in this post Im
gonna share about TWRP Recovery, Th Read More

[RECOVERY][KST2015] CWM RECOVERYHello everyone long time no


see, Today I got my examination break for a weeks , So I wanted to share with you guys
a lot of new things for Galaxy V. S Read More
Newer PostOlder PostHome

10 comments:
1.

Harga Hp Baru11 July 2015 at 12:29

Thanks for information...

Reply

Replies
1.

Hyekal HiTech13 July 2015 at 08:42


Welcome and Goodluck^_^
Reply

2.

Anonymous30 December 2015 at 13:17

your grammar... lolz.... but anyway, I understood it... thanx

Reply

3.

Anonymous11 February 2016 at 07:08

didnt work every time i get an error

Reply

4.

royorbs31 May 2016 at 13:43

doesn't look like anyones looking at this thread anymore, but i got farther using this then
i had with others to mod systemuiapk but got this error Java(TM) SE Runtime
Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Client VM (build 25.91-b14, mixed mode)
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:54)
at
brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java
:540)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:76)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:68)
at brut.androlib.Androlib.getResTable(Androlib.java:51)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:191)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:116)
at brut.apktool.Main.cmdDecode(Main.java:148)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:43)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:100)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more

any help would be appreciated

Reply

Replies

1.

Anonymous25 July 2016 at 21:11

I got this error with the version of apktool.jar that was included in the zip file at the top. I
downloaded the newest apktool.jar from here (https://ibotpeaches.github.io/Apktool/)
and copied it over the one in folder named "other" and I got past the error. Good luck!
Reply

5.

Je Mon4 October 2016 at 15:05

How to make a flashable zip?

Reply

6.

tools13 October 2016 at 09:40

there is very nice job you perform

Reply

7.

Tanveer Ahmad24 January 2017 at 06:00

Thanks for sharingAndroid Multi Tool apk app for android Latest apk
Reply

8.

Tanveer Ahmad24 January 2017 at 06:01

Very Nice Post....

Reply

Search

Popular Posts

[TUTORIAL] How to disable signature check using Lucky Patcher

Hello Vivaltorians , I know you all maybe bored if I always post about SystemUI , In this
post I wanna give a simple tutorial on how to Disa...

[RECOVERY][TWRP][UPDATED] TWRP 3.0.0-0 For Samsung Galaxy V SM-G313HZ

Helloo.. what's up guys... I'm so sorry. Long time no post.. hehe :D Today i'm gonna
share custom recovery (again)...

[TUTORIAL] How To Root Samsung Galaxy V No PC

Hello vivaltorians , Are you tired to root your Galaxy V using PC? , Or you don't have a
PC ? So this guide is correctly for you. Many p...

[RECOVERY] TWRP Recovery 2.8.5.0 for Samsung Galaxy V SM-G313HZ

In this time i wanna share the latest version of TWRP recovery. That is TWRP 2.8.5.0.
FYI, this TWRP is for Samsung Galaxy V SM-G313HZ. ...

[COMPLETE GUIDE] How To Decompile/Recompile Apk using ApkMultiTools.

In this tutorial i will teach how to decompile/recompile apk using Apk Multi Tools. I will
try my best to a complete guide, And easy to unde...

[TUTORIAL] How to swap your RAM using Zram For Galaxy V

Hello guys , Today I wanna give a tutorial on How To Swap Your RAM using Zram
Script/Compcache on your Galaxy V. Maybe you guys getting bore...

[SYSTEMUI MOD] S6 SystemUI by Irshal

Hello bro's and sistah , Wanted to have a Samsung Galaxy S6 SystemUI on your
Galaxy V? So today I wanna share that UI and make your drea...

[CUSTOM ROM] HiTech ROM V2 For Samsung Galaxy V

Before we begin we need to you to show your support of their hardworking to make
this ROM, Please Press the THANKS button on this XDA Thre...

Tutorial : How to Install Stock Firmware/Fix Bootloop/Unroot


IN THIS TUTORIAL IM GONNA TEACH YOU HOW TO FLASH/INSTALL STOCKROM
ON YOUR SAMSUNG GALAXY V. Requirements : Laptop/PC/Netbook Usb ...

[GUIDE] How to root and install CWM for Galaxy V SM-G313HZ

In this thread, i would like to share tutorial about How to install CWM Recovery and
rooting Samsung Galaxy V SM-G313HZ . Require...

Blog Archive
2017 (1)
2016 (10)
2015 (77)
o November (3)
o September (3)
o August (6)
o July (16)
o June (13)
o May (6)
o April (9)
o March (21)
[SYSTEMUI MOD] Facebook UI v2
[TUTORIAL] [APP] How To Enable Init.d on Stock ROM...
[SYSTEMUI MOD] Facebook UI V1
[KERNEL]How To Install Custom Kernel On Vivalto
About Author.
[GUIDE] How To Enable Hidden Quick Settings Tiles....
[ROM][DEV] Cyanogenmod 11 For Galaxy V
[HOW TO] DIsable Signature Check on Galaxy V
[UPDATE] Nemoid ROM v1.3
[TUTORIAL]How to mount your game data to your Ext ...
[COMPLETE GUIDE] How To Decompile/Recompile Apk us...
[GUIDE] How to Reverse Tethering On Galaxy V
[GUIDE] Enable micro SD Card writing on Galaxy V
[UPDATE] Nemoid ROM v1.2
[UPDATE] Nemoid ROM v1.1
[ROM] Nemoid ROM v1 for Galaxy V SM-G313HZ
[RECOVERY] TWRP Recovery 2.8.5.0 for Samsung Galax...
[GUIDE] How to root and install CWM for Galaxy V S...
Tutorial : How to Install Stock Firmware/Fix Bootl...
OFFICIAL LINKS FOR GALAXY V
Introducing of Samsung Galaxy V

Don't Miss Our Post!

Android HiTech!. Powered by Blogger.

Translate

Powered by Translate

About Me

Hyekal HiTech
View my complete profile

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy