[Guide] Decompile with Apk Tool [Easy Way]

Search This thread

TrojanHorses

Senior Member
Jun 18, 2013
286
45
I'm getting this error when I recompile

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Chito>cd..

C:\Users>cd..

C:\>cd android/apktool

C:\android\apktool>apktool b hyperion hyperion-res-new.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
 

Juhan Jufri

Senior Member
May 28, 2012
1,019
413
23
Singapore
Hey could someone help me pls? I'm facing this error. Already installed java jdk and I had put the sdk folder in c/ android folder. I did not install jre yet

Sent from a Galaxy containing a Note by Samsung
 

Attachments

  • 1376911513939.jpg
    1376911513939.jpg
    87.7 KB · Views: 77

TrojanHorses

Senior Member
Jun 18, 2013
286
45
Hey there, Good day.
Can someone point out to me what went wrong with my process (decompiled hyperion-res.apk)
I used autoapktool, But I also used apktool before. both yield common results.

Here is the log
[*] C:\AutoAPKTool2.0.4\_INPUT_APK\hyperion-res.apk
decompiling C:\AutoAPKTool2.0.4\_INPUT_APK\hyperion-res.apk...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Chito\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a0
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a2
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a5
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a6
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a0
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a2
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a4
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a5
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x020200a6
I: Decoding values*/* XMLs...
I: Done.

EDIT: solved, silly me, I just forgot to install frameworks :/
 
Last edited:

NHK

Senior Member
Jun 16, 2013
299
162
Code:
Your cmd will probly look like this..

C:\users\yourname>

so type in

cd.. [COLOR="Red"](Yes include the '..' and press enter after you type each command.)[/COLOR]

this will get you to back directory so now you will see

C:\users>

so type again

cd..

you should now see this:

C:\>

now type in:

cd 'apktoo'l/'directory'

for me it looks like:

cd android/apktool

now you should see:

C:/android/apktool>

and you are in the apktool directory

This method is too long, you can only go to apktool directory and press shift+right click then press on open cmd as admin :D
 

Talmax

New member
Oct 28, 2013
1
0
PLZ Help

I did everything to convert a program to make it works in GB, but no use.. I just can't do it..

Can Anyone help me Plzzz :crying:

The program is FitNotes.apk it is working in JB
I want to install it in GB

As I've read I need to change the Api version
something like this:
android:minSdkVersion="8"
android:targetSdkVersion="15"

But once I decompile the apk file I can't recompile it againe :crying:
 

Attachments

  • FitNotes.rar
    630.7 KB · Views: 6

adamka13

Senior Member
Jan 13, 2012
378
104
Balatonboglar
Hy the method is really great but i can't recomplie my sytemui apk after modding....
newest apktool and java... :/
Screen attached....
Any solution what did i wrong ?
 

Attachments

  • error.png
    error.png
    27.2 KB · Views: 58

vmancini3

Senior Member
Jan 26, 2013
991
740
Hy the method is really great but i can't recomplie my sytemui apk after modding....
newest apktool and java... :/
Screen attached....
Any solution what did i wrong ?

Seems like it doesn't like the way you're typing in the systemui directory name...I think it's case sensitive! Its either that, or it looks like it can't find the apktool.yml file, which should be there unless there were issues when you decompiled! Make sure you installed the frameworks from the same ROM that the SystemUI came from!

Sent from my SCH-I535 NOT using that garbage called TapaTalk 4!
 
  • Like
Reactions: adamka13

Top Liked Posts

  • There are no posts matching your filters.
  • 177


    ## Due to exams I won't be able to reply on questions, there are however many experienced developers active on this thread like @SpaceCaker & @K.A. ##

    I have seen a lot of guides on how to decompile with Apk Tool, but none are noob friendly, so I thought I would post this.

    What You Need:

    ApkTool
    Java JDK/JRE 32 bit
    Super Basic Cmd/terminal knowledge (My 5 year old brother can handle this)



    Download Apk Tool Here: (Must be this one)

    Mega

    First you need to extract that zip folder to anywhere you choose, preferably on root of c/drive E.g: C:/android/apktool extracting the files to 'apktool' folder.

    Now copy the apk you would like to mod into your Apk Tool folder.

    f6f8ecf510f10ce4c2c308a5f8a0ea7b.jpg



    Command Prompt:

    Open up your Command Prompt by going to:
    Start -> run -> type : Cmd

    32013a151ec069c5099725789edc10ac.jpg


    Code:
    Your cmd will probly look like this..
    
    C:\users\yourname>
    
    so type in
    
    cd.. [COLOR="Red"](Yes include the '..' and press enter after you type each command.)[/COLOR]
    
    this will get you to back directory so now you will see
    
    C:\users>
    
    so type again
    
    cd..
    
    you should now see this:
    
    C:\>
    
    now type in:
    
    cd 'apktoo'l/'directory'
    
    for me it looks like:
    
    cd android/apktool
    
    now you should see:
    
    C:/android/apktool>
    
    and you are in the apktool directory

    dd6f52dd0a63e9cfec11257816610e7e.jpg



    Installing Framework:

    Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:

    apktool if framework-res.apk

    Remember: Devices like HTC / Samsung / Huawei have other frameworks that are used in their apps too, sometimes you need to install them too.

    This will install the devices framework to your system. (need to do this)

    0469af0a4f59683b5afd65bbaa517560.jpg


    Decompiling:

    Now to decompile the apk you want to edit, type this:

    apktool d framework-res.apk framework1

    or

    apktool d music.apk music

    music.apk is the apk your decompiling
    music is the folder you're creating for the decompiled apk

    Now go about your business :victory:

    66f044a6c2f13780fcc0fc4b7cb664dc.jpg


    3b486e7ae9e032f8eb4bab257abafe7f.jpg



    Recompiling/Finished Product:


    Now to recompile your new apk type this:

    apktool b music music-new.apk

    or

    apktool b framework1 framework-res-new.apk

    framework1 is the folder with your edited files
    framework-res-new.apk is your new apk file

    131ce3032fc2e7ca4371de574ebec108.jpg


    16f0361f73797450f7af2457791b36fd.jpg



    We are NOT done just yet, we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature

    use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk

    Your new modded APK is now ready, Congrats! :highfive:

    If you get Java errors see here.
    If you recompile fine but doesn't install " App couldn't not be installed " see here.
    Good Luck Guys! :fingers-crossed:

    11
    Fix a corrupted Java Jre ( Development package )

    • Download JavaRa




    • Run with Administrator permissions

    • Click Remove Java Runtime

    ex5FCGf.png


    • Click on Additional Tasks

    CKCvO2t.png


    • Select the following and click Run

    HkBLp3U.png


    ( Remove Startup Entry, Remove Outdated JRE Firefox Extensions, Clean JRE Temp Files. )

    • Re-install from here:



    Note that JavaRA might have updated and has onscreen instructions to help you fix your JRE.

    4
    AFAIK, for systemUI, you need to replace resources.arsc, classes.dex and the res folder..
    Nicely done, btw..
    3
    Has the APK been signed? If not, see Here.
    3
    can u share your apktool stuff ?



    Sent from my ST25i using xda premium
    The aapt file, the apktool jar and apktool file? That only, right?

    ---------- Post added at 11:57 PM ---------- Previous post was at 11:53 PM ----------

    http://www.mediafire.com/?b4au2n8pz1e153p
    This is the 3 files i put..in C:\Windows...
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone