FORUMS
Remove All Ads from XDA

[[Guide]] Apktool Mobile (Setup/Decompile-Recompile/Theme/Sign)

195 posts
Thanks Meter: 231
 
Post Reply Email Thread
Yo guys! Here I come up with a brief tutorial for using Apktool Mobile! Let's begin!

Requirements:

1.A rooted device
2.Apktool 4.4 : https://storage.googleapis.com/googl...l4.4_armhf.zip
3.A deodexed app of your phone.

How to deodex? Watch my video tutorial here: https://www.youtube.com/watch?v=n0sfERSqLgA

4.Root explorer and Busybox
5.Brain.apk
6.Patience.jar

How to setup apktool?

1.) Unzip apktool4.4_armhf.zip using root explorer.
2.) Navigate to sdcard0/speedsoftware/extracted/apktool4.4_armhf/apktool folder and install apktool 4.4
3.) Open apktool app,grant root access. Now goto settings and select apktool version 1.5.2. Come back.
4.) Navigate to storage/sdcard0/speedsoftware/apktool4.4armhf folder.
5.) Long press on apktool folder and select Set as apktool data folder.
6.) Navigate to system/framework
7.) Click on framework-res.apk and select import as framework.
8.) In the same folder find twframework-res.apk(for samsung devices) or mediatek-res.apk, click on it->import as framework
9.) Now navigate to system/app, find systemui.apk->click on it and select
10.) Import as framework.
11.) Done.

How to theme SystemUI?


1.) Using root explorer, create a folder named 'A' in apktool folder.
2.) Copy SystemUI.apk to that folder.
3.) Open apktool app, navigate to that A folder, click on SystemUI.apk and select decompile all. Wait till it gets decompiled.
4.) After it gets decompiled, you will get a folder named SystemUI_src
5.) Now minimize apktool, go to root explorer, navigate to SystemUI_src folder, and do any type of modifications you want.
For example, colour the battery icons using Picsay Pro and save with the original name.
6.) After you are done, open apktool app, click on SystemUI_src folder, recompile. Wait till it gets recompiled. Now you will get an app named SystemUI_src.apk. That's your modded apk.

How to Sign SystemUI/Any System app?

1.) Using root explorer, goto A folder, and extract SystemUI.apk and SystemUI_src.apk one by one.
2.) Now navigate to sdcard0/speedsoftware/extracted/SystemUI folder.
3.) Copy Androimanifest.xml and Meta-inf folder from there. Press back and open SystemUI_src folder. Paste those two files there. Click replace when you see the popup.
4.) Come back. Long press on SystemUI_src folder and select zip this folder. Then select goto zip once its finished. Rename the SystemUI_src.zip to SystemUI.apk.
5.) Done. Now you can your push own modified UI to system/app!
Good luck!

Regards,
Aniruddha B.Pathak.
HIT THANKS IF I HELPED YOU!!

Thanks to @Ibuprophen for providing me the updated link to apktool.
The Following 31 Users Say Thank You to Aniruddha_Pathak For This Useful Post: [ View ] Gift Aniruddha_Pathak Ad-Free
 
 
7th March 2015, 08:15 AM |#2  
arun.negi004's Avatar
Member
Flag Kotdwara
Thanks Meter: 83
 
More
Nice guide
KeeP it up ..

Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???
7th March 2015, 12:26 PM |#3  
OP Senior Member
Flag Pune
Thanks Meter: 231
 
More
Talking
Quote:
Originally Posted by arun.negi004

KeeP it up ..

Thanks for the guide ...... I have apk tool 4.6 can i use it in same way???

Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6
The Following 2 Users Say Thank You to Aniruddha_Pathak For This Useful Post: [ View ] Gift Aniruddha_Pathak Ad-Free
7th March 2015, 03:42 PM |#4  
arun.negi004's Avatar
Member
Flag Kotdwara
Thanks Meter: 83
 
More
Ok thanks BRO
Quote:
Originally Posted by Aniruddha_Pathak

Thanks for the compliment
Of course you can but I personally recommend 4.4 as it has more options is quite faster
Still go ahead with 4.6


Ok i also have 4.4 version :3
But why this step secting apk tool version 1.5.2
7th March 2015, 03:47 PM |#5  
OP Senior Member
Flag Pune
Thanks Meter: 231
 
More
Smile Ahh...thats for smali
Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem
The Following 2 Users Say Thank You to Aniruddha_Pathak For This Useful Post: [ View ] Gift Aniruddha_Pathak Ad-Free
8th March 2015, 10:33 AM |#6  
arun.negi004's Avatar
Member
Flag Kotdwara
Thanks Meter: 83
 
More
Thumbs up Thanks...
Quote:
Originally Posted by Aniruddha_Pathak

Apktool when set to 2.0 gives errors sometimes while recompiling if you edit smali files hence, set it to 1.5.2 so that you won't face any problem

Ok thanks BRO for help..
9th March 2015, 03:57 AM |#7  
Member
Thanks Meter: 54
 
Donate to Me
More
I m getting this error while recompiling system ui..
Quote:

[Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 160)
... 4 more



---------- Post added at 08:27 AM ---------- Previous post was at 08:17 AM ----------

Does it needs system deodexed?
9th March 2015, 06:33 PM |#8  
OP Senior Member
Flag Pune
Thanks Meter: 231
 
More
Tutorial Follow the guide again
Setup apktool again, then follow the guide carefully
The Following 2 Users Say Thank You to Aniruddha_Pathak For This Useful Post: [ View ] Gift Aniruddha_Pathak Ad-Free
11th March 2015, 03:18 AM |#9  
Wolf Tatoo's Avatar
Member
Thanks Meter: 12
 
More
Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!
11th March 2015, 07:07 AM |#10  
OP Senior Member
Flag Pune
Thanks Meter: 231
 
More
Info 2 Older version would work faster
Quote:
Originally Posted by Wolf Tatoo

Hi! I'm on a rooted kk tablet running ApkTool mobile v5.
Is this version stable and bugfree? or should I install an older one (e.g. v4.4)
An other question,what should I do to have a signed and/or working app after:
Decompiling>>Adding files>> ??
Because when I add files to the apk and try to compile, errors, errors,...errors!!

1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.
The Following 3 Users Say Thank You to Aniruddha_Pathak For This Useful Post: [ View ] Gift Aniruddha_Pathak Ad-Free
11th March 2015, 04:49 PM |#11  
Wolf Tatoo's Avatar
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by Aniruddha_Pathak

1. I would recommend older version of apktool as it would work faster on your tab.
2. Install busybox if its not already installed.
3. If you are replacing a png, then keep in mind that you must replace those pngs with "SAME NAME" as they were before in the SystemUI.
4. Donot touch .9.pngs if you don't know how to play with them.

Thanks for replying.
I already know how to replace pngs inside an apk,and I know that .9.PNG are not. png. But what I can't do is to successfully compile and sign the app after adding-not just replacing-new files to the existing ones inside_let's say package/res/drawable_apk.
Post Reply Subscribe to Thread

Tags
apktool, apktool mobile, deodex, sign apk

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes