• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Guide] How-To Properly Decompile and Recompile apk's with apktool

Hi to all
I tried your tutorial and everythig wont fine until the compile process.
I want to edit the "systemui.apk"
I made my changes but when I want to recompile (apktool b SystemUI SystemUI-new.apk) it says "could not find sources" and then many errors like "invalid ressource directory name".
I'm on stock rom
Any Help?
By the way I'm on Samsung Galaxy Note 2
Thank you for help
 
Hi to all
I tried your tutorial and everythig wont fine until the compile process.
I want to edit the "systemui.apk"
I made my changes but when I want to recompile (apktool b SystemUI SystemUI-new.apk) it says "could not find sources" and then many errors like "invalid ressource directory name".
I'm on stock rom
Any Help?
By the way I'm on Samsung Galaxy Note 2
Thank you for help
did you install the framework using apktool?

"apktool if framework-res.apk"

EDIT: just noticed it said galaxy, you may also need to install any/all other apk's found in your system/framework folder for the device, using the same method.. ie:

"apktool if RES_cappuccino.apk" etc..
 
I am a total noob, have had my first android for less than 2 months. So far I have rooted, installed a custom ROM, played aroundwith editing the rom, and now want to learn what makes tha apks tick. I have dl's and unziped the apk tools to "c:\android\apktools" and my cmd copy below should explain the rest. Any help is appreciated.

-->
-->
-->

c:\Program Files (x86)\Android\android-sdk\platform-tools>adb pull sdcard/framework-res.apk c:\android\framework-res.apk
647 KB/s (5476276 bytes in 8.257s)

c:\Program Files (x86)\Android\android-sdk\platform-tools>cd c:\android

c:\android>cd apktool

c:\android\apktool>apltool if framework-res.apk
'apltool' is not recognized as an internal or external command,
operable program or batch file.

c:\android\apktool>

<---
<---
<---


PS, i have the Virgin Mobile Venture
 
I am a total noob, have had my first android for less than 2 months. So far I have rooted, installed a custom ROM, played aroundwith editing the rom, and now want to learn what makes tha apks tick. I have dl's and unziped the apk tools to "c:\android\apktools" and my cmd copy below should explain the rest. Any help is appreciated.

-->
-->
-->

c:\Program Files (x86)\Android\android-sdk\platform-tools>adb pull sdcard/framework-res.apk c:\android\framework-res.apk
647 KB/s (5476276 bytes in 8.257s)

c:\Program Files (x86)\Android\android-sdk\platform-tools>cd c:\android

c:\android>cd apktool

c:\android\apktool>apltool if framework-res.apk
'apltool' is not recognized as an internal or external command,
operable program or batch file.

c:\android\apktool>

<---
<---
<---


PS, i have the Virgin Mobile Venture

lol you typed 'apLtool' not apKtool

or you may need to install java jdk still?
 
C:\Users\Family>cd c:/android/apktool
c:\android\apktool>apktool if framework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
c:\android\apktool>


there's the actual issue, not the apk vs apl issue, sorry
 
C:\Users\Family>cd c:/android/apktool
c:\android\apktool>apktool if framework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.
c:\android\apktool>


there's the actual issue, not the apk vs apl issue, sorry
lol yeah sounds like a java issue... did you install the jdk? and register it on oracle.com? you have to do that also i believe..
 
1.png

how to fix this one? NOOB HERE.
 
Just started using one click apk. I've been using easy apk cause it was easy. Lol. But i came across one click and it's even easier. Plus it didn't error out as easily as apk toolkit and the other main ones.
 
Just started using one click apk. I've been using easy apk cause it was easy. Lol. But i came across one click and it's even easier. Plus it didn't error out as easily as apk toolkit and the other main ones.
nothing works as good as the old apktool jar file with some good old cmd typing in terminal lol
 
I can't do all that. Lol. Too many commands and what not. Lol
it's super easy man!!! always type 'apktool' first.. then for decompiling it's 'd'... for recompiling it's 'b'... then you type name of apk ie: 'settings.apk'... then you type the directory you would like to create whether it a folder for an apk: 'settings'.. or whether it's a new apk: 'settings2.apk'

and to install any framework you type 'if' then the name of framework app ie: 'framework-res.apk, or RES_cappuccino.apk'

so it's like this...


apktool if framework-res.apk

apktool d settings.apk settings

apktool b settings settings2.apk

easy as pie bro...
 
For those not used to the style of commands it can be confusing, but it becomes second nature very fast
agreed!!! i used to be terrified of cmd prompts and anything without color lol but now it's what i prefer over anything!!! at least this way i know whats happenning and i learn how to fix it myself etc.. trial and error baby!!!! hahaha
 
Back
Top Bottom