Everytime I used smali or baksmali, I always had to go to the XDA post that described the correct usage...so I made simple batch files to speed up the process and figured I should share with the community.
Extract the .zip below, run the "smali.bat" or "baksmali.bat" batch files, and follow the instructions...they should be self explanatory.
This is obviously for Windows...don't ask for other versions, I'm not a programmer. These are the latest smali and baksmali versions (v1.2.6 released 12/23/2010) as well.
AutoSmali v1.0 | Download
(Hope this post is in the right forum?)
Any chance this will work with framework-res.apk? I've been using apktool for it but dread having to build it twenty times before getting a usable one.
xHausx said:
Any chance this will work with framework-res.apk? I've been using apktool for it but dread having to build it twenty times before getting a usable one.
Click to expand...
Click to collapse
not sure what you mean?...this is just an automated script for decompiling/compiling the .dex files (usually within .jar files)
what exactly are looking to do with an .apk? sign it?
this is pretty cool ... thanks
Hey!
Thanks for this! Really helps alot!
But can you make it compatible with v1.2.7? http://code.google.com/p/smali/downloads/list
Thanks!
xHausx said:
Any chance this will work with framework-res.apk? I've been using apktool for it but dread having to build it twenty times before getting a usable one.
Click to expand...
Click to collapse
hmmm...weird, i had the same issue , then i found the correct cobination of framework files for aptool, that now it builds as easy as one two three.
Did you makes sure you used the original meta-inf folder from the original apk, pm me if you ever need help.
Nice work. .:thumbs up:.
for this to work for the newer versions of smali/baksmali
just change .bat to .txt and edit the place where it says 'smali-1.2.x.jar' to the new version.
that should work.
i still dont know how the hell to do anything with a .smali file but i atleast know how to do that!
hit thanks if that helped
link down
schmittx said:
AutoSmali v1.0 | Download
Click to expand...
Click to collapse
dead link. try:
http://www.mediafire.com/?d5ruxexq15d1pje
Related
Honestly, I do not know how much interest there will be in this, but throughout my own exploration and experimentation with Android and the Epic 4G I feel like sharing my finds with the community.
I kanged this tool from HERE so thanks to Daneshm90 among other people who are thanked in the tool itself. All I really did was add a few BOOTCLASSPATHS to the *APK.bat files to get it to deodex all the apks, and update smali/baksmali to version 1.2.6 (newest as of 3/25/11).
Basically this is a one click tool to deodex stock, odexed system/framework and system/app folders on a windows machine. I tested on the ACS Untouched Stock EC05 ROM and got clean runs where everything became deodexed.
Tips: I found it best to do system/framework first in one run, then leave the output in deodexed_JAR, and THEN process system/app as many of the files in the app folder have dependencies on the jars.
After processing system/framework you will have framework-res.apk and twframework-res.apk which do not need deodexing.
In early testing, I found certain files leftover after a run processed on the next run. This stopped after updating smali/baksmali. I doubt I'll be of much help if you run into problems, you are doing EVERYTHING at your own risk. I barely understand the details here, I just ported it to work on our phone, so good luck!
Deodexed 2.3a Download
Thanks for this!
Good tool for those that want stock with.a theme.
Sent From My Evo Killer!
Mind if I throw this in the EPIC 4G cookbook?
amosher13 said:
Honestly, I do not know how much interest there will be in this, but throughout my own exploration and experimentation with Android and the Epic 4G I feel like sharing my finds with the community.
I kanged this tool from HERE so thanks to Daneshm90 among other people who are thanked in the tool itself. All I really did was add a few BOOTCLASSPATHS to the *APK.bat files to get it to deodex all the apks, and update smali/baksmali to version 1.2.6 (newest as of 3/25/11).
Basically this is a one click tool to deodex stock, odexed system/framework and system/app folders on a windows machine. I tested on the ACS Untouched Stock EC05 ROM and got clean runs where everything became deodexed.
Tips: I found it best to do system/framework first in one run, then leave the output in deodexed_JAR, and THEN process system/app as many of the files in the app folder have dependencies on the jars.
After processing system/framework you will have framework-res.apk and twframework-res.apk which do not need deodexing.
In early testing, I found certain files leftover after a run processed on the next run. This stopped after updating smali/baksmali. I doubt I'll be of much help if you run into problems, you are doing EVERYTHING at your own risk. I barely understand the details here, I just ported it to work on our phone, so good luck!
Deodexed 2.3a Download
Click to expand...
Click to collapse
This is awesome...... GREAT WORK.....
Okay so this sounds interesting and all...But how does one use it??
tphillips said:
Mind if I throw this in the EPIC 4G cookbook?
Click to expand...
Click to collapse
Go right ahead!
sent from my mind to yours
youngpro83 said:
Okay so this sounds interesting and all...But how does one use it??
Click to expand...
Click to collapse
Just take an odexed frame work, put it in the folder and run deoall.bat, then repeat for app. Pretty much it, if you don't know the point then you probably don't need it, lol
sent from my mind to yours
Thanks dude
Thanks bro good work
Anyone give this a shot yet?
blazinazn said:
Anyone give this a shot yet?
Click to expand...
Click to collapse
Yea I tried using it to deodex my eco5 stock rom, and it ran clean and gave output, but the output wouldn't boot.. I ended up going a diff route which included using a tool made for another phone and doing some by hand...
Sent from my SPH-D700 using XDA App
Hello, I want to decompile my framework-res apk so I can possibly add a battery that displays percentages. Is there any program out that will let me do this?
Sent from my Xoom using XDA Premium App
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
No offense taken. I am in the process of teaching myself these things so Google and xda are my best friends. Thanks for the reply
Sent from my Xoom using XDA Premium App
Kcarpenter said:
Your looking for Smali/BakSmali.
No offense intended here, but the fact that you are asking tells me that you are going to need a lot of research in doing this. It's not necessarily decompiled into the most readable source code. But it's that way with most decompiling, and you probably realize that.
Also, since we don't have source code for HoneyComb, the current Smali/Baksmali implementation doesn't work well/at all for some files.
Good Luck.
Click to expand...
Click to collapse
Is it possible to read the Stat sys battery XML? I've been reading on how to decompile the files but no real help with this really
Sent from my Xoom using XDA Premium App
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
zone23 said:
I use apk_manager_4.9 it may be the woosie way but it works for me. Try this thread: http://forum.xda-developers.com/showthread.php?t=695701
Click to expand...
Click to collapse
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
I will offer to help you out.
1. Install latest SDK from http://Developer.google.com & Eclipse.
2. Search for apktool and unzip files into the SDK folder under platform_a DB
3. Buddy fix apktool with attached files. You will need to rename these files to Apktool, etc..
4. Copy framework-res.apk, systemui.apk, settings.apk, and launcher2.apk from \system + copy the odex
5. Run apktool d framework-res.apk (do this for each apk)
6. Look in the Res/drawing folders for images to mod.
Now you have the .9.png files with marks & the decompiled XML for reference.
Use Photoshop to modify the files.
Use draw9patch to compile any .9.png files
This is really important. Use 7zip or any other zip app that allows you to open and view an apk as a zip without actually unzipping it. Just copy the new photo files in and add them to an update.zip (you can download this from XDA Xoom Development thread) or use a DB to push the updated files to the Xoom.
Theaming is a subject but that's the basics. I can't upload files for newapktools.zip right now but will edit this when I get home later. Alternativly, maybe someone can post the patched up Xoom compatible apktool files. They are also in XDA theaming thread if you search.
Hth
Sent from my Xoom using XDA Premium App
nbeebe24 said:
Thank you, I have previously viewed that thread. There aren't really any clear cut instructions on setting it up properly. Are you able to edit the XML files contained in the drawable folder? That is all I'm interested in. I can't seem to successfully decompile the framework-res apk. Thanks again
Sent from my Xoom using XDA Premium App
Click to expand...
Click to collapse
Yes I can you need Java JDK installed:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Eventually you will need Eclipse and I use Gimp because its free and doesn't break any .png files.
http://www.eclipse.org/downloads/
IDE for JAVA Develpoers search youtube for a video on how to set it up for android.
http://www.youtube.com/watch?v=ZoWVeXizfbo
I use Notepad++ to edit XML
http://notepad-plus-plus.org/download
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
nbeebe24 said:
Thank you very much for that! I edited the images I want to use, I waes just trying to add the respective values into the XML. Is it possible to add a battery with 1% increments as of now?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
zone23 said:
I have no idea all I know is on the EVO you had to edit the services.jar for that and it is beyond my capabilities. Sorry.
Click to expand...
Click to collapse
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Hey nbeebe24, check out my post over here: http://forum.xda-developers.com/showthread.php?t=1063657
This should help you decompile/recompile framework-res.apk for your mod. I look forward to seeing your results
nbeebe24 said:
I'll pay money if someone can link me to the decompiled battery_stat_sys and battery_charge_sys XML's
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
you tryed this tool
Code:
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://ragotnicolas.free.fr/Android/ax10mk.rar
http://forum.xda-developers.com/showthread.php?t=928864
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
Sorry, but it's a bit more complicated than just opening the .apk in 7-zip or winrar. You need to decompile the .apk... the easiest way is to use a program called apk manager. Search on XDA, and you will find it.
Then, in the decompiled folder, you will have a /drawable/ folder. You need to re-code the stat_sys_battery.xml to include all the pngs, as well as the zzz_stat_sys_battery_1.xml.
In addition to the 100 pngs you already have, you will also need some charging animation icons and a stat_sys_battery_unknown.png icon that all match your battery icon theme.
After redoing the 3 xmls in the drawable folder, and replacing all the necessary pngs, you then need to recompile and sign your apk with the new files.
I've attached a sample of the 3 xmls for you to use as a reference.
If you are looking to get a battery mod the quick and easy way, then I have a bunch in a thread HERE. If you are looking to learn how to do it yourself (Which I highly recommend for the learning experience it will provide), then search around and look for some guides on compiling and decompiling to help you on your way. You can also download any of the battery mods from the thread I linked to, and decompile them for examples of a working framework-apk that has been modded.
Keep in mind, when experimenting with this, you ABOSLUTELY WILL cause your phone to not be able to boot up. Make sure you have a nandroid backup ready.
Good luck.
Thank you!
Wow, this is gonna take a bit longer than i though B)
Btw, i was using one of your mods, but i found that it wasnt smooth enough + the icon didnt have enough detail
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
go to first link on my sign download a batt mod open framework and use it...
lalitsehgal21 said:
go to first link on my sign download a batt mod open framework and use it...
Click to expand...
Click to collapse
Thanks, but no thanks B)
I think will try to learn how to do it my self
Guys sorry for this dumb quesiton but have been googling all day and no answers.
Im using xUltimate to Deodex my apk's from the original rom of my provider.
The thing is, the output i get is .jar not .apk.
Is that normal?
Thanks!
PS: Im using xUltimate 2.3
WeeDv2 said:
Guys sorry for this dumb quesiton but have been googling all day and no answers.
Im using xUltimate to Deodex my apk's from the original rom of my provider.
The thing is, the output i get is .jar not .apk.
Is that normal?
Thanks!
PS: Im using xUltimate 2.3
Click to expand...
Click to collapse
Here are 2 very useful links from my personal android dev bookmarks. Hope this may help you
http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
http://forum.xda-developers.com/showthread.php?t=633246
thanks for the links i got the xUltimate from the first one, but still is normal to output Jar files instead of APK files?
should i just rename them from jar to apk?
The kitchen does a better job deodexing, it gives me .apk and not .jar
Nice
Didact74's Multi-Tool v2.0
Hello everyone, I have been away from the scene for a little while due to an unGodly work schedule. Since work is slowing just a tad, I figured I would ease back in by trying to finalize my MULTI-Tool that I started a while back. I know there have been a few others who have dropped similar programs recently but I couldn't bare to just throw this thing away, so here it is.
A few things this program will do.....
Pull Files
Push Files
Deodex Files
Odex Files
Pull BootClassPath Info
Pull and set Framework files
Pull Partition Info
Pull Partition Images
Reboot Functions
Logcat Functions
And several variations of each of the above.
Right now its in a BETA stage because I am sure some issues will surface due to the fact that I cant test everything this can do myself without geting side tracked. Give it a whirl, post some feedback, and offer up some ideas that I can add to it if you want. Its a simple Batch File, no fancy GUI or anything yet. Maybe down the road....
A few things to keep in mind.....
This tool is meant for intermediate level developers who are comfortable
reading, writing, and making basic changes to thier phone. There is a lot
of stuff in this program and I have not been able to fully test all the
different possible scenarios. I ask that you have a working backup of your
phone before using this program. I highly doubt you will need it, but I
have to CMA!
Additionally, I ask you read each mini-tutorial at the start of each option
screen. It will give you some direction on how to proceed. If you come
across any issues or problems please let me know and I will do my best to
resolve them.
I am not a programmer! I know just enough JAVA, C++, and batch
script to scrape by. I am absolutley certain there are more efficient ways
to write the code in this program. Feel free to do so if you like.
ENJOY!
XDA:DevDB Information
Didact74's Multi-Tool, Tool/Utility for the Verizon Samsung Galaxy S 5
Contributors
Didact74
Version Information
Status: Beta
Created 2014-07-08
Last Updated 2014-07-26
Change Log
Initial Release
v2.0.0
Pull Files
Push Files
Deodex Files
Odex Files
Pull BootClassPath Info
Pull and set Framework files
Pull Partition Info
Pull Partition Images
Reboot Functions
Logcat Functions
v2.0.1
Added APKTool v2.0
Added baksmali v2.0.3
Added smali v2.0.2
Fixed Compiling Batch errors associated with older APKTool
v2.0.2
Fixed some diectory errors
Fixed some Odexing errors
v2.0.3
Home screen is streamlined
Added the option to deodex entire Odexed Rom from the Deodex menu
Added more efficient Deodex code
Didact74 said:
I see a few downloaders....lol. Hopefully a few will get some use out of it. I got a few PMs asking if they can use it for other devices. I know it works for the S5 and the Xoom, other than that I dont know. Its pretty universal I would assume, but let me know what you find out. Dont be worried about posting up your questions here.....it will help others if you do.
Click to expand...
Click to collapse
Where is the download link?
Misterxtc said:
Where is the download link?
Click to expand...
Click to collapse
See screenshot....
Didact74 said:
See screenshot....
Click to expand...
Click to collapse
Thanks, that looks great. I'll definitely give it a try. I was searching for another multi-tool this morning and it looks like I found a gem here.
Didact74 said:
Hello everyone, I have been away from the scene for a little while due to an unGodly work schedule.
Click to expand...
Click to collapse
welcome back didact!! it has been forever since i have seen you in these parts! did u get yourself an s5?
BeansTown106 said:
welcome back didact!! it has been forever since i have seen you in these parts! did u get yourself an s5?
Click to expand...
Click to collapse
Thanks Beans! Yes, work was nice enough to give me a choice of Android or Apple.....so here i am .
I am hoping to get into some modding in the coming weeks.
Recompiling doesn't work for me. I copied the decompiled framework-res.apk and the deodexed file to the load/framework folder and I get a file not found error. I also tried systemui and it said it compiled but there was no compiled file to be found.
Misterxtc said:
Recompiling doesn't work for me. I copied the decompiled framework-res.apk and the deodexed file to the load/framework folder and I get a file not found error. I also tried systemui and it said it compiled but there was no compiled file to be found.
Click to expand...
Click to collapse
Okay.....i will check in the morning and try to replicate the error. Thank you.
Didact74 said:
Okay.....i will check in the morning and try to replicate the error. Thank you.
Click to expand...
Click to collapse
Ok, I'm running Windows 8.1 if that matters.
I cant test Win8, I am running Win 7 x64 so I will need other feedback for that one.
I fixed an issue with the Batch picking out an .apk in the Framework folder so that should resolve part that issue. Originally I set all framwork folders up to recognize .jar files only, not remembering there are two .apks (framework-res.apk and twframework-res.apk) that reside in the framework folder as well. I have fixed that issue. The other part of that problem is I was not able to recompile framework-res with my version of apktool. All the other files I tried decompile and recompile with no issues. Not sure if there is a known issue recompiling some files in KitKat or not. If there are I will need to find out what they are and build them in to the program.
I was able to decompile and recompile SystemUI with no issues so I am having an issue duplicating that error. When recompiling and decompiling there are several options to choose from. Single files, entire directory, certain folders, etc. When you are performing these functions, which option are you selecting in the menu?
Have you tried any other features?
Didact74 said:
The other part of that problem is I was not able to recompile framework-res with my version of apktool. All the other files I tried decompile and recompile with no issues. Not sure if there is a known issue recompiling some files in KitKat or not. If there are I will need to find out what they are and build them in to the program.
Click to expand...
Click to collapse
What version of apktool did you use? I know that I was not able to use 1.5.2 on my kitkat (S3) framework-res and had to switch to a 2.0+ version to get it to work
CNexus said:
What version of apktool did you use? I know that I was not able to use 1.5.2 on my kitkat (S3) framework-res and had to switch to a 2.0+ version to get it to work
Click to expand...
Click to collapse
I am indeed using 1.5.2. This should be a simple fix then. I will locate 2.0 and add it to the setup.
Thank you sir!
Okay v2.0.1 is up with updated APKTool.
Compiling should be error free now....hopefully
Awesome work
v2.0.2 is up.
I had to post a download link in the changelog thread because the DEV Database is having an issue with uploads right now for some reason. See post #2 for the download link. I will change it back when the site is fixed.
v2.0.3 is now ready.
The downloads tab is now working again so I will be removing the hyperlink from page 2. Just download from the tab at the top of the first post again.
Updating changelog now.....
The legend is back! Nice to see you around again buddy
sbreen94 said:
The legend is back! Nice to see you around again buddy
Click to expand...
Click to collapse
LOL, the legend of never having time to do anything maybe.
Thanks though!
Didact74 said:
LOL, the legend of never having time to do anything maybe.
Thanks though!
Click to expand...
Click to collapse
Haha I feel your pain on that one. I would like an extension on the number of hours in the day