How To Decompile / Recompile .apk Using Android Phone [ No Pc Required ]


Senior Member
Jan 17, 2013
Saw many guides to Decompile-Recompile apk using PC , but this guide will teach how to Decompile-Recompile using android :D

Credits - Me , Apktool , and A Indonesian Group :p

Things We Need -

1. Android Smartphone ( Rooted )
2. Apktool For Android ( download below )
3. xml editing Application

Here we Go with A step by Step tutorial on How To Decompile / Recompile .apk Using Android Phone -

Step 1. First Download From - Here .

Step 2. Download Xml editor from - Here

Step 3. Extract The To (android phone ) Sd Card > Here . ( Extract it in Root of Sd card , not in any folder )

Step 4. Now Open Apktool Folder on Sd Card > Apktool and Install Apktool.apk from the directory .

Step 5. Copy Framework_Res.apk from your Phone root and Paste it in Sd Card > Apktool > Here ( with root explorer / es file explorer )

Step 6. Open Apktool App and Go to Sd Card > Apktool and Select Framework_Res.apk and Select import as Framework . It will start installing Framework ( need for Recompiling - Decompiling )

Step 7. Copy any .apk you want to decompile and paste it to Sd Card > Apktool > Here ( with root explorer / es file explorer )

Step 8. Now Open Apktool App , Go to Sd Card > Apktool and select the .apk you pasted in Step no. 7. Now select Decompile All ( The process will decompile the apk ).

Step 9. Now the file will be saved with the name Apkname_src ( Apkname = name of the apk you have decompiled ).

Step 10. Do all the editing you want to do with .apk file with xml editor .

Step 11. Now Open apktool app then again go to Sd Card > Apktool and select Apkname_src and select recompile .

Step 12. Now Open the orignal .Apk and Open Sd Card > Apktool > Apkname_src > Build > Apk > Here and copy all the content and paste it in The Orignal.apk and you are done :)

Feel free to Reply if you face any problem :)

Original Posted - BY ME Here


Senior Member
Jan 17, 2013
your Step: 12 is not so clear..
please redefine it... waiting for your Reply.
You must use any file explorer or PC for that .. Open the apk ( change made ) you have made by decompiling and then recompiling , Also open the apk that is orignal ( no change made ) . Copy paste the content of apk ( change made ) to apk ( no change made ) and you will get your final apk ..

Yes its little bit confusing :p


Senior Member
Jul 21, 2014
I know it's confusing but when you learn to edit the apks, it's easier to understand

Thanks for the post I'm looking for it

Enviado desde mi LG-E425g mediante Tapatalk


New member
Nov 3, 2014

Can someone explain me how to get that file? "Framework_Res.apk". I searched it using Root Explorer and I got no results! Is that file in the apk I will decompile and recompile?


May 5, 2011
I ran into an error pop up while trying to attempt this.
Everything is installed and setup properly. I copied
to the apktool directory and then went into the Apktool app.
Upon selecting decompile all it returns a failed pop up stating:
|: Baksmaling...
Can't create the output directory /apktool-techdroider/

I click ok and back out to root explorer to see if there is a new src folder inside the apktool directory and there is not.

Not sure what I may have done wrong or what else I can possibly do using this method. :silly:

Asap responses would be extremely appreciated as I am currently in the middle of an Internship competition (lasts 4 days) and simply decompiling/recompiling and checking the resulting md5sum before/after is one of the questions.


Senior Member
Dec 27, 2010
Importing the framework gave me the following error:

ERROR: object '' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: object '' from LD_PRELOAD cannot be preloaded: ignored.
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(
at brut.androlib.res.decoder.ARSCDecoder.decode(
at brut.androlib.res.AndrolibResources.installFramework(
at brut.androlib.Androlib.installFramework(
at brut.apktool.Main.cmdInstallFramework(
at brut.apktool.Main.main(
Caused by: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(
at brut.androlib.res.decoder.ARSCDecoder.readPackage(
at brut.androlib.res.decoder.ARSCDecoder.readTable(
at brut.androlib.res.decoder.ARSCDecoder.decode(
... 5 more

Any ideas? I've tried importing multiple times.
Last edited:


Senior Member
Feb 9, 2013
On installing framework .res I get immediate finish! Msg then the details in the pop up box say no such file or directory.
Of course I'm running mm 601 with custom rom and kernel. Does this apk tool version even work on android 6?