how do you install apktool on windows for noobs? i dont understand the instructions on apktools website so i was wondering if you guys could help.
Any help is appreciated.
----edit----
sorry i wasn't more descriptive. so i think i am supposed to download apktool install windows and the apktool file itself. on the apktool download page it says to unpack into windows directory. so im asking, do i download both files and move them to c: windows\ apktool (new folder created). how do i unpack them in the first place. i tried winrar and it gave back errors. Please help.
please? 46 view anyone? im sure some of you have apktool on windows 7
Took me 2 sec to find it.
[UTIL][15.05.11] Apktool v1.4.1 - a tool for reengineering apk files
Don't know if that is what you are looking for or not.
Also here, took the same amount of time to find it.
Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
BeenAndroidized said:
Took me 2 sec to find it.
[UTIL][15.05.11] Apktool v1.4.1 - a tool for reengineering apk files
Don't know if that is what you are looking for or not.
Click to expand...
Click to collapse
Thanks, but thats not what im looking for. know about that. it doesn't have instructions on the thread of how to install it on the thread. i have it downloaded. both the install windows file and the apktool file. now how do i install them? They are tar.bz2 files which windows can't do anything with so i dont know how to install it. please help
Download the tar extractor.
Here is one http://www.7-zip.org/
http://code.google.com/p/android-apktool/
Requirements
•JRE 1.6 (Java Runtime Environment)
•aapt command in a PATH
•basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful
Installation for noobs
•Windows:
1.Download apktool-install-windows-* file
2.Download apktool-* file
3.Unpack both to your Windows directory
•Linux:
1.Download apktool-install-linux-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
•Mac OS X:
1.Download apktool-install-macos-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
Installation of framework files
•See FrameworkFiles
Usage
•Open terminal/command line and type "apktool <enter>". Then you should see usage help.
Discuss it: Google Groups or XDA
ldrifta said:
http://code.google.com/p/android-apktool/
Requirements
•JRE 1.6 (Java Runtime Environment)
•aapt command in a PATH
•basic knowledge of what is SDK, aapt, PATH, smali and Google search engine may be useful
Installation for noobs
•Windows:
1.Download apktool-install-windows-* file
2.Download apktool-* file
3.Unpack both to your Windows directory
•Linux:
1.Download apktool-install-linux-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
•Mac OS X:
1.Download apktool-install-macos-* file
2.Download apktool-* file
3.Unpack both to /usr/local/bin directory (you must have root permissions)
Installation of framework files
•See FrameworkFiles
Usage
•Open terminal/command line and type "apktool <enter>". Then you should see usage help.
Discuss it: Google Groups or XDA
Click to expand...
Click to collapse
so do i download the files and extract them with 7zip to c:\windows\apktool\?
not sure if you need 7zip. think you can just extract it to rood of C: drive.. the link i put on last post is where i got those directions from... just try it, if it dont work than i will look more into it for you
windows cant do anything with the tar.bz2 files so you need a third party program. i tried extracting with 7zip and winrar but it gives back an error so it doesnt extract.
I think your answer lies here
http://forum.xda-developers.com/showthread.php?t=1466100
Before following this guide, install the Java development kit (JDK)
The first thing that you want to do is install the Android Development Kit. This allows you to use adb (android debug bridge) and also other tools to mod images and apks. After installimg, add the platform-tools folder inside the android sdk folder (make it if not there) to your path (Google how to add a folder to path on windows).
Android Development Kit/SDK: http://developer.android.com/sdk/index.html
I have the sdk in c:/android-sdk/ and that is how it will be referenced to in this tutorial.
Now you should get the apktool.jar and the windows files for the latest version and put it in platform-tools in the sdk folder (make sure to extract the windows files and not just put the archive).
Apktool: http://code.google.com/p/android-apktool/downloads/list
Now open up the sdk manager and install all of the 4.0 stuff and tools.
Now you need to download and extract the latest cm9 version for the epic 4g. Copy the /system/framework/framework-res.apk from cm9 (or whatever rom you are modding) to the platform-tools folder even if you are modding another apk. Also copy the apk you are modding.
Now open up cmd and run these commands:
cd c:/android-sdk/platform-tools/
apktool if framework-res.apk
apktool d apkyouaredecompiling.apk
Now you can mod the apk's files found in its own folder in platform-tools.
After you finish modding, open cmd and run these commands.
cd c:/android-sdk/platform-tools/
apktool b apkyouaremodding.apk
Now your apk should be in the platform-tools folder.
You can do this with .jar files too...
Great job marcusant YAY for two guides being release today lol
Nice job marcusant, everything was explained very well.
Sent from my CM9 Samurai Epic 4G using xda premium
Okay So Alot Of People Asking On How To Decompile/Compile .APK ITS EASY!! You Are Just Too Lazy To Read And Learn it the Proper way
No Offense The First Thing You Need to Do is Download Boudz-Filezzz.zip in Attachments you will find aapkt apktool.jar and apktool.bat and baksmaali
Okay So Extract
The First Thing To DO is :
--First Get framework-res.apk From System/Framework/Framework-res.apk,And SystemUI From System/App/SystemUI.apk And TWframework-res.apk From System/Framework/TWFramework-res.apk And Place With The File You Extracted..
--Next Press Shift+Alt and Right Click on An the white space in the File (Boudz-Filezz)
and Press open Command Prompt
Now Type ::
Code:
apktool if framework-res.apk
Now it Will Install the Framework
Next is To Install SystemUI,its the same just replace framework-res.apk with SystemUI.apk (IT IS IMPORTANT TO MENTION THE APK)
Code:
apktool if SystemUI.apk
And
apktool if twframework-res.apk
Click to expand...
Click to collapse
Okay Now We Installed The Files Now I Want To Decompile SystemUI.apk For Example With Half Of Ace i Users Fail in..
open Command Prompt by Pressing Shift+Alt and Right Click on An the white space in the File (if its open no need)
And Type
Code:
apktool d SystemUI.apk Test
Okay So Lemme explain The Code apktool is the file and D stands For Decompile And SystemUI.apk Which is the apkname And Test Is the Folder that the SystemUI.apk will be Decompiled To.
That Wasn't Bad Wasn't it?
Now Edit Something in test folder (Decomplied SystemUI.apk) Change Some 9.PNG From Some ROM TO your SystemUI and Xml is Also readable edit some codes ... :silly::silly:
Now After Doing That we Need To Compile It Back to An APK this is Easy... just Type in Command Prompt
Code:
apktool b test
Okay So apktool is the file itself and B Stands For Compile And Test is the Folder that i Want to Compile it To a APK so press enter and Open the test>systemUI>dist SystemUI.apk Thats It You Successively Modded A SystemUI Okay So I Wont Provide Any Credits Because i Wrote all This myself and Didn't Need any help all was done by me Please If I Helped You In This Tutorial Dont Forget To Hit The Thanks Button
Boudz-FILEZZ:[URL="http://www.mediafire.com/?qq3zf5yw1mwy5o8"]http://www.mediafire.com/?qq3zf5yw1mwy5o8[/URL]
I always get an error
Hello
I want to keep things simple and very easy. I will write a 5 step guide for setting up apktool and start modifying your app's or any other android framework. This guide will be strictly for windows users, since setting up and using apktool in windows is the easiest.
So lets begin -
What you need before you learn how to use apktool -
A computer running windows
A working internet connection for downloading the following -
JAVA SDK and JRE
Android SDK
Apktool core tool
Sign apk tool
Basic command prompt commands and path knowledge
A good linux format code editing program like NotePad ++ [Get it from HERE]
STEP 1 - Install JAVA - Go HERE
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just go to the above website and download java SDK and JRE.
We mostly use only SDK libraries but JRE is required when you want to modify games or apps like whatsapp. So its best if we install both.
install them in any directory for example C:\ drive and you are good to go to next step 2.
STEP 2 - Install Android SDK- Go HERE
Just go to the above website and download the SDK.
Install it in an easy path. For example - C:\android
The short path will be useful when you are using adb for logcat purposes, since typing in a long path every-time you want to access the adb executable file is painful.
So once you installed the SDK move on to next step 3
STEP 3 - Download Apktool - Go HERE
For downloading apktool related files, you need to go HERE
Download latest apktool version, currenlty 1.5.2
Download the batch file and aapt.exe
Create a folder anywhere in the pc and put all the apktool.jar, aapt.exe and the batch script in that folder. [see screenshot]
This will be the operating folder for you now.
Next move to next step 4
STEP 4 - Using apktool for decompiling anything
Open command prompt
navigate to the folder where you placed apktool.jar, batch script and the aapt.exe [see screenshot]
For this guide i am using a simple framework-res.apk for reference.
Once you are in the folder via cmd prompt, you need to install the file using the " IF " command
type the following command -
Code:
[B]apktool if [I]name-of-the-app[/I] .apk[/B]
For example, once the command is executed correctly, it will look like this -
Code:
[B]apktool if framework-res.apk[/B]
Once the app is installed you need to decompile it.
For decompiling use the command "d". The "d" stands for decompile.
Code:
[B]apktool d [I]name-of-the-app[/I] .apk[/B]
For example -
Code:
[B]apktool d [I]framework-res.apk[/I][/B]
After the app is correctly decompiled, a new folder will be created in the same folder where you placed your app. This contains all the xml's and smali files which can be edited for different mod's.
For example, here's how it will look once the app is decompiled -
Then after you are finished with your modding, you need to recompile your app for using it.
To recompile the app use the following command " B ". The "b" simply means recompile.
Code:
[B]apktool b [I]name-of-the-app-folder[/I][/B]
NOTE - While recompiling the app, you just need to type the name of the folder the app's files contains.
For example -
Code:
[B]apktool b [I]framework-res[/I][/B]
framework-res is the name of the folder
The final modded app will be in the dist folder located inside the original app folder created by apktool.
For example -
Congrats ! If everything went well, you successfully created a modified app !
Now the most important step is below in step 5
NOTE - You MUST follow the step 5. Or else the app wont work and when you try to push it into system, the rom will be stuck in bootloop XD
Click to expand...
Click to collapse
STEP 5 - Signing the apk
to sign an apk download the "sign-apk.rar" from below attachements
extract it to any place.
open a new command prompt and change into the sign-apk directory using cmd
move the modified-unsigned apk into this folder [see screenshot] -
then type the following command -
Code:
[B]java -jar signapk.jar certificate.pem key.pk8 [I]path-of-the-folder-contaning-the-apk .apk path-of-the-new-signed-apk .apk[/I][/B]
For example -
Code:
[B]java -jar signapk.jar certificate.pem key.pk8 [I]framework-res.apk framework-res-signed.apk[/I][/B]
Once compiled, the signed apk will be found in the same folder.
This is FINAL APK.
Simply rename it to the original apk and push it into the system ! DONE !
If you have any errors or problems related to apktool, post them here, I will try to solve them.
STEP 1 : Rooting MAC
If you have a mac, apk manager doesn't work on macs. So, you must use apktool. To set up apktool, you must have root mode enabled on your mac. To do that, simply follow these steps:
Open system preferences
Open accounts
Go to login options
Hit join next to network account server
Select open directory utility
Click the lock at the bottom of the window that pops up and enter an admin password
Then, go to the top bar on your mac, hit edit, and select enable root mode
STEP 2 : SETTING UP APKTOOL
Once you have root mode enabled, you're ready to set up apktool :
From the apktool website, download apktool-latest-version.tar.bz2 and apktool-install-macosx-latest-version.tar.bz2
Next, open terminal type :
Code:
[B]su
tar -C /usr/local/bin -xvf <zipped file name>
tar -C /usr/local/bin -xvf <zipped file name> (for the second file)[/B]
Now to confirm it worked, type "apktool" no quotes
You should get a help menu for apktool
If you got it, you're good to go to next step.
STEP 3 : USING APKTOOL
Now, once you have it set up, you're ready to go! After typing apktool, you'll see the help menu which'll give you the commands available for apktool, but I'll go over the basic ones here.
For installing frameworks or apps
Code:
apktool if
This command will decompile the apk
Code:
apktool d "apk path here"
This command will build an apk from a previously decompiled one
Code:
apktool b "decompiled apk path here"
----------------------------------------------------------
Download the apktool.java file along with other files, as shown above. Extract them to the desktop.
Now open terminal and type line by line :
Note : "android" in all the below commands is my username. So it changes according to your pc name
We are giving root permissions for the 3 files that you extracted above.
Code:
chown -R android:android '/home/android/Desktop/apktool.jar'
press enter
Code:
chown -R android:android '/home/android/Desktop/aapt'
press enter
Code:
chown -R android:android '/home/android/Desktop/apktool'
press enter
Next make all 3 files executable by doing the same thing one at a time pressing enter in between each one:
Code:
sudo chmod +x '/home/android/Desktop/apktool.jar'
after the first it will ask you for your password type it, you shouldnt need it after that for the rest
Code:
sudo chmod +x '/home/android/Desktop/aapt'
Code:
sudo chmod +x '/home/android/Desktop/apktool'
now we need to move all three files to bin folder to do it type this command and enter your password:
Code:
gksudo nautilus
a new window should pop up on the left click on "filesystem/usr/local/bin, then drag all three folders into the bin folder and close it.
APKTOOL is now ready and make your modifications on a linux distro easily
for decompiling - compiling apk, use apk multi tool, waaay simpler. (and stable).
Thanx will read it
Sent from my GT-S5570 using xda app-developers app
dzeig said:
for decompiling - compiling apk, use apk multi tool, waaay simpler. (and stable).
Click to expand...
Click to collapse
yea its easier but i prefer apktool simply...
Any tuto for Mac? :s Dunno how to access use folder to put the apktool in mac
Sent from my GT-S5570 using xda app-developers app
The Alchemist said:
yea its easier but i prefer apktool simply...
Click to expand...
Click to collapse
You really rock! You wrote a while awesome thread just cause one Guy mentioned he couldn't get it up and running and he didn't even ask for help.... you are awesome..,
Sent from my GT-S5570 using Tapatalk 2
Big thanks to this Guy named Alchemist will try install windows here and try It
Sent from my GT-S5570 using xda app-developers app
gabrielking9 said:
Any tuto for Mac? :s Dunno how to access use folder to put the apktool in mac
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
will write that first thing tomo morning...but why not dual boot windows ? can that be done in mac ? i dont know since i never used mac...
The Alchemist said:
will write that first thing tomo morning...but why not dual boot windows ? can that be done in mac ? i dont know since i never used mac...
Click to expand...
Click to collapse
Yeah it can but my father... but I can with parallels app without him discover I just need found one cracked :x
Sent from my GT-S5570 using xda app-developers app
gabrielking9 said:
Yeah it can but my father... but I can with parallels app without him discover I just need found one cracked :x
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
lol u r installing windows...not watching porn XD...just tell him i need it for studies or watever...
mac tutorial updated
Hey i am stuck at the part
" tar -C /usr/local/bin -xvf <zipped file name> "
What i need to do? I have the "apktool-install-macosx-r05-ibot.tar.bz2" file and the folder "apktool-install-macosx-r05-ibot" which one should i put in it? and i need put it with directory For example: /user/gabriel/desktop/apktool-install-macosx-r05-ibot ??? and i need put this "><" ??????
i think the u need to put the contents of that tar file in bin folder and not the zip..
and could u unquote my post ? its a bit annoying to scroll down..
The Alchemist said:
i think the u need to put the contents of that tar file in bin folder and not the zip..
and could u unquote my post ? its a bit annoying to scroll down..
Click to expand...
Click to collapse
Done!
I need to put this " < >" ????
1st try with <> if it doesnt work, just remove and execute..
sorry i am not able to remember bcoz i just checked my frnds laptop at the office when he was working...so i had to hurry things up..
Having this problem
tar: could not chdir to '/usr/local/bin'
gabrielking9 said:
having this problem
Code:
tar: could not chdir to '/user/local/bin'
Sorry i made a big mistake lol
Click to expand...
Click to collapse
are u rooted ? and did u try with <> removed and unremoved ?
EDIT: Tried some solutions and did not worked :/ dunno why i am stuck on this part
Thanks, this tutorial is really simple
thnx
PRInCEI7 said:
Hi .. I will donate money to anyone who helps me
.. I want to edit amazon fire 7 9gen system the TabletSettings.odex and TabletSettings.apk but the problem is
The modification does not accept.. Is there a way .
Click to expand...
Click to collapse
You can use APKTOOL:
https://ibotpeaches.github.io/Apktool/
Before nothing, you need to extract framework-res.apk and SystemUI.apk and then install them as frameworks:
Code:
apktool if framework-res.apk
Code:
apktool if SystemUI.apk
And then extract it:
Code:
apktool d TabletSettings.apk
Now edit whatever you want and when you finish repack it:
Code:
apktool b TabletSettings
Then go to dist and extract the apk.
Now go to original and copy all folders and files to unpacked apk from dist (overwrite all files)
And finally, repack unpacked dist apk with WinRar (extension .zip and then rename to .apk).
Now install the apk to the tablet:
Code:
adb reboot recovery
Code:
adb push TabletSettings.apk /sdcard
Code:
adb shell
Code:
mount system
Code:
mv /sdcard/TabletSettings.apk /system/priv-app/TabletSettings/TabletSettings.apk
Code:
chmod 664 /system/priv-app/TabletSettings/TabletSettings.apk
And reboot to system.
BTW: What modifications you want to do?
Rortiz2 said:
You can use APKTOOL:
https://ibotpeaches.github.io/Apktool/
Before nothing, you need to extract framework-res.apk and SystemUI.apk and then install them as frameworks:
Code:
apktool if framework-res.apk
Code:
apktool if SystemUI.apk
And then extract it:
Code:
apktool d TabletSettings.apk
Now edit whatever you want and when you finish repack it:
Code:
apktool b TabletSettings
Then go to dist and extract the apk.
Now go to original and copy all folders and files to unpacked apk from dist (overwrite all files)
And finally, repack unpacked dist apk with WinRar (extension .zip and then rename to .apk).
Now install the apk to the tablet:
Code:
adb reboot recovery
Code:
adb push TabletSettings.apk /sdcard
Code:
adb shell
Code:
mount system
Code:
mv /sdcard/TabletSettings.apk /system/priv-app/TabletSettings/TabletSettings.apk
Code:
chmod 664 /system/priv-app/TabletSettings/TabletSettings.apk
And reboot to system.
BTW: What modifications you want to do?
Click to expand...
Click to collapse
thanks for replying
Unfortunately this method does not work
I imagine because of a odex file
I want to add the language to the system
All devices accept except this type AMAZON FIRE 7 9gen does not accept
@PRInCEI7
@Rortiz2
You would first need to de-odex the rom, however this as far i know is not possible at the moment.
A few years ago at the time of the HDX devices amazon introduced a customised odex format.
ggow said:
@PRInCEI7
@Rortiz2
You would first need to de-odex the rom, however this as far i know is not possible at the moment.
A few years ago at the time of the HDX devices amazon introduced a customised odex format.
Click to expand...
Click to collapse
I have a tool for deodex the ROM but IDK if it will work. I'll give it a try.
Thanks for the info.
Rortiz2 said:
I have a tool for deodex the ROM but IDK if it will work. I'll give it a try.
Thanks for the info.
Click to expand...
Click to collapse
That's my point it won't work. There is no way to do what you want with any tool.
@Rortiz2 @ggow
I found this
When I root the device
Directly the application com.amazon.kindle.otter.oobe.apk stops working
When I change any file or put any file inside /System/priv-app/
When removing the root or flashing file too boot.img stock
Directly deletes any file or modification from this folder and returns the primary file ...
Why returns the original file when flashing a boot.img file
When I return flash boot.img root file returns my file .
@DragonFire1024
Do you have an idea to solve the problem
ggow said:
@PRInCEI7
@Rortiz2
You would first need to de-odex the rom, however this as far i know is not possible at the moment.
A few years ago at the time of the HDX devices amazon introduced a customised odex format.
Click to expand...
Click to collapse
You can use superr's tool to deodex if you have twrp. It requires rebuilding the firmware.
Sent from my Motorola Droid Razr M using XDA Labs
---------- Post added at 10:29 AM ---------- Previous post was at 10:26 AM ----------
PRInCEI7 said:
@DragonFire1024
Do you have an idea to solve the problem
Click to expand...
Click to collapse
If you are unlocked you can use superr's tool to deodex the firmware .bin package and rebuild it then flash in twrp. Requires Linux https://forum.xda-developers.com/ap...chen-superr-s-kitchen-v1-1-50-v2-1-6-t3597434
Sent from my Motorola Droid Razr M using XDA Labs
thx