APKTool for Honeycomb - Acer Iconia A500

I have gotten a couple requests for a copy of the APKTool that I have been using to decompile/recompile the Honeycomb jars and apks. It is a hodge podge of files found around the net..so I can't say exactly where the thanks should lie.
Simply unzip the folder and use it for your working folder. I place mine on the desktop, but you can place it wherever.
http://bit.ly/zeXpQ2

I apologize...I missed an important file. I have fixed the zip and it should now work correctly. Just redownload...

Thank u my good sir
Sent from my A500 using Tapatalk

Related

how do i deoxed single apks?

iv been looking but cant figure it out, no one gives instructions on how to use there deodex tools
Download AvaboxV2 Here
Unzip the download somewhere, open up the 'De-odexer' and view the readme.
I think you just put the apk and odex file inside the "de-odexer" folder and double-click the ''deodexall.bat" or "deall.bat", something along those lines.
Can't check right now since I'm on my phone
i down loaded an used but its not creating a Classes.dex
DubsideWICKED said:
i down loaded an used but its not creating a Classes.dex
Click to expand...
Click to collapse
AvaboxV2 won't do that, it will take both the APPNAME.apk & APPNAME.odex files and make it into a single de-odexed APPNAME.apk
If you want the classes.dex file check out smali tools I believe that should do it for you. It may decompile as out.dex, if it does just rename it back to classes.dex
Edit: instructions for it are HERE
I think apk manager will let you deodex files as well.... I think....
theimpaler747 said:
I think apk manager will let you deodex files as well.... I think....
Click to expand...
Click to collapse
if it does i have never seen it
i thought when u de-odexed a file that it created a classes dex. im still having problemswith all methods mentioned
attach the apk and the odex files in a zip so I can download them. when I have time I'll see if I can get the classes.dex file for you and let you know what I did to get it
kyouko said:
attach the apk and the odex files in a zip so I can download them. when I have time I'll see if I can get the classes.dex file for you and let you know what I did to get it
Click to expand...
Click to collapse
i think its the systemUI he is trying to deodex everything i have tried to deodex it errors out.
however i have circumvented it and i am excited
ya im tryin to do what kyle said. i just wanna edit the signal bars. is it possible to make a odex file for a apk.

Editing XML's

Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
willjohnson said:
Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
Click to expand...
Click to collapse
i wondered this too as i was learning how to theme, first you have to decompile the .apk i was advised to use notepad++ on windows, use apktool located in your tools folder of sdk to decompile and then open your xmls in notepad++ then after you're done editing use the command window to use apktool build > the directory of ur decompiled .apk
Funnyface19 said:
i wondered this too as i was learning how to theme, first you have to decompile the .apk i was advised to use notepad++ on windows, use apktool located in your tools folder of sdk to decompile and then open your xmls in notepad++ then after you're done editing use the command window to use apktool build > the directory of ur decompiled .apk
Click to expand...
Click to collapse
This is the best advice. I just started using apktool myself.
willjohnson said:
Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
Click to expand...
Click to collapse
You can't just pull them with 7zip, you have to decompile the apk the xml files are in and then you can simply use notepad++ or any xml editor to edit them.
Use APK Manager to decompile and recompile.
Sent from my DROIDX using XDA App
willjohnson said:
Sorry if this is the wrong place for this post. I have spent the last 2 hours looking for an answer to this. What is the easiest and best way to edit xml files to change font color in the theme i am working on. I cannot find a method that works. I have tried a few of the big name xml editors out there and they wont even open the files. I would like to be able to open and edit them on my computer. I used 7zip to pull the individual xml's i wanna exit out and into their own folder. Now i just need a way to edit them, then use 7zip to put them back into the Framework.res apk. Thanks in advance for any help.
Click to expand...
Click to collapse
You can also use apkmanager. This makes editing xml's and any images a breeze...
http://forum.xda-developers.com/showthread.php?t=695701
Wow, put up a post, go to bed, wake up and all my answers are here. Thanks a lot guys for the info and quick responses. I think i can figure it out with all the info you have supplied. Thanks again
Apkmanager ended up being my favorite method. But use version 4.8, I had issues with 4.9 not compiling apk's properly.
Apkmanager lets you pull apk's, extract, compile, zipalign, sign, and push them back to your device.
I have been trying the apk manager and have not been able to get it to work. I pull the framework-res.apk from my theme with 7zip. Then put in the folder for modding in the manager folder. Then decompile. Edit in the projects folder as per instructions for apk manager. Then when i am done i recompile, sign and put into the theme again with 7zip. I get an error everytime with recompiling it, but it lets me continue to the end anyway, so i tried it out and it made my phone bootloop on install. So i had to sbf and start over. I get the same errors everytime, has to do with the .9 patch files i think. Too many errors to list in other words.
Read the log file. All the pngs with problems that have issues are listed at the beginning. Also, if there are extra pngs that are not used by the framework then remove them.
Tip. Open the log.txt clear it and save. When done and you get it to compile, don't sign it (its a system apk and does not require it. Then after it is successfully compiled. Unzip it, delete the meta folder and android.manifest file.
Copy the meta folder and android.maifest from the original apk and drop them into the newly compiled apk, and then tada...
Working framework.
FYI: The pngs with issues, just decompile the original framework and use those same pngs to correct your .9.pngs. (.9.pngs use the border for formatting, so duplicate the border in the ones you goofed up).
Sent from my DROIDX using XDA App

[GUIDE]Deodex An Application

Hey Guys,
This is a small tutorial for those who want to Deodex a Single Application manually.
Deodex And Odex:
The APKs or JARs of Android contain certain .odex files whose supposed function is to save space. These ‘odex’ files are actually collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application. On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.It will make your faster theoretically even though it would be too small to notice.When deodexing the .odex file is changed to classes.dex file. Deodexing also allows us to theme and install mods.Many of the Stock Roms and CyanogenMod 7 roms are now odexed and to theme them or to add mods we need to have it deodexed. So lets learn how!!
Deodexing:
Preparation:
Hope you have Java Development Kit installed on your computer to run the scripts.Get it from: here.Select you OS from the list and download the suitable package.(We would need the full thing and not the Demo versions.)
Download the Attached .zip File
Extract its Contents to a Folder.(Extracting to a New Folder in the Desktop is Preferred for Ease)
We will name this Folder with the Extracted Contents as Deodex(or any name that you like)
Procedure And Explanations:
First of all copy the Application file that you need to Deodex.A Android Application file is the .apk file found in the system/app directory.Copy the .apk file and the .odex file of the application that you want to Deodex and paste in the Deodex folder(Folder to which the attachment's contents was extracted)
Now go to your system/framework directory and you can see a lot of .jar and .odex files in this folder and copy all its contents to the folder to which the attachment's contents was extracted.
Before doing anything more backup your rom and the application file(If anything goes wrong you can use it then)
To Deodex a application you need to specify its "BOOTCLASSPATH" files. BOOTCLASSPATH are files that contain the classes for an application or in simple language BOOTCLASSPATH files are those files that are required by a android application to run properly. They are actually those files that we have copied from the system/framework directory to our Deodex folder. There are mainly 5 BOOTCLASSPATH files for every android rom.They are: android.policy.jar , core.jar , bouncycastle.jar , ext.jar , framework.jar
All apps are dependent on these files but some apps are dependent on some other BOOTCLASSPATH files.So sometimes the problem is that we actually dont know to which of these files is a particular app dependent to.So we will have to specify all the BOOTCLASSPATH files or the .jar files in the system/framework directory.So problem solved!! Now enough with the theory class,lets proceed to the practical classes!!!!!
Open Command Prompt.
As an example we will Deodex Settings.apk
Type in this command in Command Prompt:
Code:
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:
com.android.location.provider.jar:com.google.android.maps.jar:sonyericsson.suquashi.jar:
core.jar:corej-unit.jar:ext.jar:framework.jar:ime.jar:input.jar:java.awt.jar:javax.obex.jar:monkey.jar:pm.jar:
:services.jar:sqlite-jdbc.jar:svc.jar -x Settings.odex
Here:
-Xmx says the heap memory needed.In the above command it is given to 1024m. Sometimes deodexing may have errors due to the low heap memory.So set it to 1024m itself.
-jar baksmali.jar says the program to run baksmali.jar file.
-c says that the following files are the BOOTCLASSPATH files of the application we are deodexing.
-x says the name of the application that we are deodexing.It should end with .odex extension.
Note:
When you specify the .jar files just add all those .jar file names in the system/framework folder(only add the .jar files and not the .odex files).Ensure that you have added the .jar extension at the end of each file. Separate the .jar files with colon " : " symbol.
If you have made no spelling errors and have done everything mentioned you will get a folder named "out".
Now we have to smali the out folder into classes.dex file.
So again type in the Command Prompt:
Code:
java -Xmx1024m -jar smali.jar out -o classes.dex
Here:
-o says what the output file should me named to.Dont rename the classes.dex file into anything else.
Now you will have a file in our Deodex folder(Folder to which the attachment's contents was extracted) called "classes.dex".
Finalizing:
Now open the application's .apk file(which you were trying to deodex) with WinRar.
Move the classes.dex file that you got to this .apk file.(Just drag and drop it to the .apk file opened with WinRar.)
Now you will have a deodexed .apk file.
Note: After deodexing you will have to delete the .odex file of the particular application which you had deodexed.
I will make a guide to Odex back a Deodexed application soon!
Hope this guide helps you....
For any doubts or questions please post it here in this forum and I will try to attend to it.........
Re: Deodex A Single Application
Thanks bro..
Good tut..
sent from my phone using hands and brain...
thanks
Re: Deodex A Single Application
Good tut...
But quite long
Sent from my W8 using xda app-developers app
hey...nice tutorial and nice explanation :good:
thanks
Re: Deodex A Single Application
But helpful too...
sent from my phone using hands and brain...
Gogeta said:
Good tut...
But quite long
Sent from my W8 using xda app-developers app
Click to expand...
Click to collapse
I made it long so that everyone understands.Even those who are very new to android
i'm stucked when i try to deodex settings.odex..
any suggestions???
Hidzrie said:
i'm stucked when i try to deodex settings.odex..
any suggestions???
Click to expand...
Click to collapse
you must deodex
settings.apk + settings.odex.....
i've already follow exactly like the tutorial above but cmd just stucked...
in 'out' folder there are \com\android\settings\ folder and these files were in it and nothing more:
AccessibilitySettings$1.smali
AccessibilitySettings$2.smali
AccessibilitySettings$3.smali
AccessibilitySettings$4.smali
AccessibilitySettings$5.smali
AccessibilitySettings$6.smali
AccessibilitySettings.smali
please anyone help..
Credit/thanks: http://forum.xda-developers.com/showthread.php?t=1208320 ?
Hidzrie said:
i've already follow exactly like the tutorial above but cmd just stucked...
in 'out' folder there are \com\android\settings\ folder and these files were in it and nothing more:
AccessibilitySettings$1.smali
AccessibilitySettings$2.smali
AccessibilitySettings$3.smali
AccessibilitySettings$4.smali
AccessibilitySettings$5.smali
AccessibilitySettings$6.smali
AccessibilitySettings.smali
please anyone help..
Click to expand...
Click to collapse
follow the highlighted lines and try again and deodexing takes time according to your computer's ram.so be patient.if you still cant do it then just upload the system=>framework folder and the app you want to deodex and its odex file and Private Message me the links. I will check whats the problem.
L_S said:
Credit/thanks: http://forum.xda-developers.com/showthread.php?t=1208320 ?
Click to expand...
Click to collapse
this can be found in the android sources site but it not so easy to understand for beginners so i made it a little easier to understand and i didnt refer that guide because all is clearly written in the android sources site.
i understood why some of you are making mistakes when trying to deodex a apk or jar file.
its because you are copying exactly the same bootclasspath files that i specified in the guide.
it varies depending on your device and your rom. So I have made some changes in my guide.some lines are highlighted in red.
follow those lines.
Hidzrie said:
i'm stucked when i try to deodex settings.odex..
any suggestions???
Click to expand...
Click to collapse
Specify your device and rom that you use. Are you sure that you followed what i told itself? Try it once more as I have made some more changes in the guide to help you guys.
Still if you cant do it then just copy your framework folder and the apk and .odex file that you want to deodex and pm me. I will try to deodex it.
fotak-x said:
you must deodex
settings.apk + settings.odex.....
Click to expand...
Click to collapse
no fotak we dont need to deodex settings.apk. We only need to deodex the .odex file but we will have to keep the apk file also in the same folder.
Leon1234 said:
Specify your device and rom that you use. Are you sure that you followed what i told itself? Try it once more as I have made some more changes in the guide to help you guys.
Still if you cant do it then just copy your framework folder and the apk and .odex file that you want to deodex and pm me. I will try to deodex it.
Click to expand...
Click to collapse
I'm using samsung gt-s5830i.. Rom simplicity v4..
I've tried like many times..still wont work..
Hidzrie said:
I'm using samsung gt-s5830i.. Rom simplicity v4..
I've tried like many times..still wont work..
Click to expand...
Click to collapse
dont worry,we can figure it our!
what error are you getting in command prompt?
can you give the lines that come up in command prompt?
Leon1234 said:
dont worry,we can figure it our!
what error are you getting in command prompt?
can you give the lines that come up in command prompt?
Click to expand...
Click to collapse
There are no error appear on cmd..
After I insert a command to deodex settings.odex and press enter, it just like nothing happen...
There are no error appear on cmd..
After I insert a command to deodex settings.odex and press enter, it just like nothing happen...
Click to expand...
Click to collapse
you will have to wait for some time when deodexing depending on the ram of your device.
what is the ram of your computer?
and do you have java 7?

[Q] How to change the Androidmanifest.xml.file to make it install in sd card?

Hello guys,
I have been trying to change the manifest file to make it installable in sd card.. Everytime i change the file..and recomplile it is giving me parse Error..
This is what i done:---
1.) Extracted the Apk file with es file explorer..
2.) went to Androidmanifest.xml and edited like "" <manifest :androidinstalllocation="prefexternal">
3.Recompiled it..
Then parse error .. what am i doing wrong..please correct me..
Thanks in Advance
Sent from my GT-S5360 using Tapatalk 2
the "E" in preferExternal needs to be a capital letter
its perfer not pref
so it looks like this
android:installLocation="preferExternal"
you can also try changing it to to "auto"
This will install it on internal unless it is full but allows the app to be movable to sd card via system settings
also you will need to resign the app else you wont be able to install it
marcussmith2626 said:
the "E" in preferExternal needs to be a capital letter
its perfer not pref
so it looks like this
android:installLocation="preferExternal"
you can also try changing it to to "auto"
This will install it on internal unless it is full but allows the app to be movable to sd card via system settings
also you will need to resign the app else you wont be able to install it
Click to expand...
Click to collapse
Thanks.But i'm still getting a Parse error..Do i need to Use apktool or I can do it in my phone..?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
Thanks.But i'm still getting a Parse error..Do i need to Use apktool or I can do it in my phone..?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
to edit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to edit an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
marcussmith2626 said:
to exit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to exit apk an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
Click to expand...
Click to collapse
Thanks dude..will try
Sent from my GT-S5360 using Tapatalk 2
marcussmith2626 said:
to edit any xml file you MUST decompile the apk - this means using a decompiler like apktool (there is apktool for mobile)
you cant simply unzip an apk to edit an xml file
you said you recompiled the apk - what you meant was you rezipped the apk which you cannot do
you can only unzip and rezip and apk if you just change a png image - you cannot edit xmls this way
Click to expand...
Click to collapse
Once I was trying to port a Armv7 game to v6..i changed the lib files and reziped..and it worked.. So changing lib files differs from editing xml files..it needs Apktool right?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
Once I was trying to port a Armv7 game to v6..i changed the lib files and reziped..and it worked.. So changing lib files differs from editing xml files..it needs Apktool right?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
marcussmith2626 said:
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
Click to expand...
Click to collapse
Thanks again
Sent from my GT-S5360 using Tapatalk 2
marcussmith2626 said:
lib files are different - you are not actually editing them - they are precompiled files
xmls need to be decompiled to edit then - you will notice if its not decompiled you might be able to see the first few lines and the rest will be all symbols and unreadable
you MUST decompile an apk to edit xml and smali files
Click to expand...
Click to collapse
The Apktool is asking For data..,where do i get it..?
Sent from my GT-S5360 using Tapatalk 2
shyamSGY said:
The Apktool is asking For data..,where do i get it..?
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
if its apktool for mobile follow the instructions from the thread
you point the app to folder on your sd card
load the framework-res.apk
see
http://forum.xda-developers.com/showthread.php?t=2488697
or
http://forum.xda-developers.com/showthread.php?t=2388135
marcussmith2626 said:
if its apktool for mobile follow the instructions from the thread
you point the app to folder on your sd card
load the framework-res.apk
see
http://forum.xda-developers.com/showthread.php?t=2488697
or
http://forum.xda-developers.com/showthread.php?t=2388135
Click to expand...
Click to collapse
Thanks it worked..
Sent from my GT-S5360

Fix for Sprint and 3rd party lollipop roms

I don't know the first thing about Android development, especially making flashable zips, but what I DO know is that I was just able to update my profile and prl on my n5 running the January 9th nighty of cm12. Here's how I did it:
1 extract the zip I'm adding here to your internal storage.
2 copy the extracted folder to your system/app/ folder. As a folder, not just the apk.
3 go through the subfolders until you get to the lib folder, then copy the two files inside to system/lib/
4 set the proper permission for all the files and folders involved.
Now let me be clear, I know this is overly complicated, my hope is that someone can respond to this this thread and post a flashable zip that would make this much much easier. Also I don't know if this will work with any other rom, just the one I have right now.
bray424 said:
I don't know the first thing about Android development, especially making flashable zips, but what I DO know is that I was just able to update my profile and prl on my n5 running the January 9th nighty of cm12. Here's how I did it:
1 extract the zip I'm adding here to your internal storage.
2 copy the extracted folder to your system/app/ folder. As a folder, not just the apk.
3 go through the subfolders until you get to the lib folder, then copy the two files inside to system/lib/
4 set the proper permission for all the files and folders involved.
Now let me be clear, I know this is overly complicated, my hope is that someone can respond to this this thread and post a flashable zip that would make this much much easier. Also I don't know if this will work with any other rom, just the one I have right now.
Click to expand...
Click to collapse
Pretty sure there was already a few "Sprint fix" zips around lol.
Well now I feel dumb. But happy too because either way I won't have to worry about it anymore.
Sent from my Nexus 5 using XDA Free mobile app

Categories

Resources