Decompiler - Xoom Q&A, Help & Troubleshooting

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

Related

[TOOL] Automated Smali and BakSmali

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

[Tutorial] How to add CRT TV off effect:

First off this is for people that know how to decompile/compile apk's..
What this is = Watch here
1: Decompile framework-res.apk using something like apk manager
2: Edit the file \res\values\bools.xml
3: Change value of bool name='config_animateScreenLights' from 'true' to 'false'
4: Compile framework-res.apk
5: Push new framework-res.apk to your phone with root explorer or adb push.
6: Profit...
~~~~~~~~~~~~~~~~~~
How to change the statusbar color:
1: Decompile SystemUI.apk
2: Edit the file \smali\com\android\systemui\statusbar\Clock.smali
3: Search for the line with ->setTextColor comment it and the line above out with a # infront of the two lines.
4: Compile the SystemUI.apk
5: Decompile framework-res.apk and edit the file \res\values\styles.xml
6: Find the style name 'TextAppearance.StatusBar' and change the textColor item to the color you want
7: Compile framework-res.apk
8: Profit More.
These guides will work with about any 2.3 rom out. Thanks to various sources for help on finding these..
(Will add more to this later)
do you have the compiled version of the CRT TV effect?
I will post a version later as the one I got is tweaked and would more and likely cause you guys bootloops.
I decompiled framework but I don't have a values folder in res. Am I missing something? Thanks!
dubntz said:
I decompiled framework but I don't have a values folder in res. Am I missing something? Thanks!
Click to expand...
Click to collapse
are you sure you "decompiled"? or just extracted?
I used APK Manager. Does that not decompile it?
c19932 said:
are you sure you "decompiled"? or just extracted?
Click to expand...
Click to collapse
Going to update my guide so people know to decompile and not extract
I used APK Manager. Does that not decompile it?
Click to expand...
Click to collapse
if you used the decompile option it should have.
Yeah, I just extracted and did not decompile it. Now that I did it right I see the file. Thanks for the help! Much appreciated!
I'm a little curious. Chris mentioned they left the screen-off animation disabled because of issues they were having. Have you experienced any issues at all?
tweezit said:
1: Decompile framework-res.apk using something like apk manager
2: Edit the file \res\values\bools.xml
3: Change value of bool name='config_animateScreenLights' from 'true' to 'false'
4: Compile framework-res.apk
5: Push new framework-res.apk to your phone with root explorer or adb push.
6: Profit...
Click to expand...
Click to collapse
What would you suggest to look into if the setting is already set to false?
Have you got this to work for Cm7 yet?
Sent from my LG-P999 using XDA App
Thanks! Now I gotta reflash 2.3 so I can try to get the status bar vanilla.
MWBehr said:
I'm a little curious. Chris mentioned they left the screen-off animation disabled because of issues they were having. Have you experienced any issues at all?
Click to expand...
Click to collapse
Yes on some roms you will get wake lag bad & others it will work fine.. On the 2.3 leak it will go to a black screen for a while. (that's due to 2.2.2 drivers though from what I can tell.)
Have you got it to work on cm7?
Is it possible to clarify what framework-res.apk is referred this tutorial?
I read these posts and seems like it has not mentioned so far. However, in my case (i am running MoDaCo Fr16 CR) after decompiling framework-res.apk i cannot see that config inside res->values->bool.xml.
Maybe i'm missing something
Thanks in advance.
name="config_annoy_dianne"
lol, just thought that was amusing. let's not annoy dianne.
anyways,trying this now on bionix.
i'm no expert at decompiling etc. just figured it out today lol. i'm pretty positive i did it correctly using apktool. however, after copying the compiled apk back to phone, it just hangs at a black screen on reboot. maybe i did it right and it's just not compatible with bionix? i did read on the apktool site that it won't be signed after recompiling. is this why it won't work? anybody successful here?
crazythunder said:
name="config_annoy_dianne"
lol, just thought that was amusing. let's not annoy dianne.
anyways,trying this now on bionix.
Click to expand...
Click to collapse
Bionix? For the g2x?
Sent from my HTC Vision using XDA Premium App
drewtang said:
Bionix? For the g2x?
Sent from my HTC Vision using XDA Premium App
Click to expand...
Click to collapse
shhhh, it's a secret.
crazythunder said:
shhhh, it's a secret.
Click to expand...
Click to collapse
Ahhhhhhh I WANTS IT.

[Q] Framework-res.apk

I'm somewhat new to hacking and modding. And I'm reading a lot, as well as playing with my phone a lot. I happened to extract the framework-res file to my sd card.
What are all the things I could customize with playing with that file?
Sent from my PG06100 using XDA App
Enraged21 said:
I'm somewhat new to hacking and modding. And I'm reading a lot, as well as playing with my phone a lot. I happened to extract the framework-res file to my sd card.
What are all the things I could customize with playing with that file?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
Anything you want. The easiest thing is editing the png so you change the system appearance. But you don't have to extract it to SD, you have to send it to your PC, decompile it (for .9.png's and xml, if just png you can extract the folder, then put the edited png's back in the apk with 7zip and push), and do whatever you want.
You will need to look for info about decompiling and pushing if you don't know yet.
So is that how themeing works?
Sent from my PG06100 using XDA App
Enraged21 said:
So is that how themeing works?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
Yeah, explained fast and in a general way.
Lol thanks man!
Sent from my PG06100 using XDA App
Could you send me any links?
Sent from my PG06100 using XDA App
How exactly do I pull the framework file, then decompile it?
Sent from my PG06100 using XDA App
Bump
Sent from my PG06100 using XDA App
Enraged21 said:
How exactly do I pull the framework file, then decompile it?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
I saw you, I just haven't time to write. Look for a tutorial about pulling and also APK Manager for decompiling. You will need adb
Can I edit the font from this file?
I want to change my rom again but keep the font that I usually use. How would I do that?
________
Evo SHIFT
Evervolv ROM
x99 kernel
Enraged21 said:
Can I edit the font from this file?
I want to change my rom again but keep the font that I usually use. How would I do that?
________
Evo SHIFT
Evervolv ROM
x99 kernel
Click to expand...
Click to collapse
Fonts are not in framework. They are in system/fonts, so you can go to the zip of your current ROM in the PC, open it, go to system/fonts and copy them. Then paste them into the zip of the new ROM or flash it, then push the fonts. (If you can, it will be easier doing it before flashing, with WinRAR or 7zip in computer)
1111111st
congratz man, you got the 1111111 Thread!
http://forum.xda-developers.com/showthread.php?t=1111111
just wanted you to see
Enraged21 said:
I'm somewhat new to hacking and modding. And I'm reading a lot, as well as playing with my phone a lot. I happened to extract the framework-res file to my sd card.
What are all the things I could customize with playing with that file?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
You could upload the file you extracted to the uot kitchen (google it, i cannot provide links).
The site allows to create a theme for your phone and to package it in a flashable .zip
(•.•) said:
congratz man, you got the 1111111 Thread!
http://forum.xda-developers.com/showthread.php?t=1111111
just wanted you to see
Click to expand...
Click to collapse
Haha, sweet!
Evo SHIFT
mordekainen said:
You could upload the file you extracted to the uot kitchen (google it, i cannot provide links).
The site allows to create a theme for your phone and to package it in a flashable .zip
Click to expand...
Click to collapse
Yeah I found out about that website a while ago.
But I can never get the colors right to match my theme.
Evo SHIFT
Theming Help
Try this thread:
http://forum.xda-developers.com/showthread.php?t=821638
Enraged21 said:
So is that how themeing works?
Sent from my PG06100 using XDA App
Click to expand...
Click to collapse
APK Manager
Sorry for double posting but here is the thread for APK Manager:
http://forum.xda-developers.com/showthread.php?t=695701
Enraged21 said:
Yeah I found out about that website a while ago.
But I can never get the colors right to match my theme.
Evo SHIFT
Click to expand...
Click to collapse
For matching the colors you can use any app that lets you choose a custom color. I used widgetsoid, chose a custom color that matched my theme and wrote down the hex value. You can then use the hex value in the uot kitchen.
Sent from my LG Optimus One
Well, I took a snapshot of my homescreen. Uploaded it to a color extractor, and pulled the hex value through there. Used that hex value with UOT kitchen, and the colors still weren't the same after I flashed it...
Evo SHIFT
Evervolv
Can anyone guide on adding crt effect in services.jar?
Sent from my Desire S using XDA App

[Q] Theming help

Ok so I just have a quick question about theming. How do I change the text color on the lockscreen? I'm pretty sure I have to edit one of the .xml files, but which one and how? And do I have to actually decompile the .apk to edit it or can I just pull it using 7zip and edit it that way? I already have edited the actual .pngs for the lockscreen, so if anyone can help me out with this it would be great. Oh and this is with the stock deodexed rom.
I'm not sure where its located but it will be an xml file and you will need to decompile wherever it lays. Try androidpolicy.jar and look in there..
Sent from my SPH-D700 using xda premium
travmofosho said:
I'm not sure where its located but it will be an xml file and you will need to decompile wherever it lays. Try androidpolicy.jar and look in there..
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
So it's not actually in the lockscreen .apk? I will look in the androidpolicy.jar. Also how would I go about decompiling it?

Softkey icons

I know that the softkeys can be changed to display words instead of the icons. I have found some images that have them as such but can't seem to get to work when using the custom framework maker. Am I missing something or does anyone have text image files that will work.
Tybo611 said:
I know that the softkeys can be changed to display words instead of the icons. I have found some images that have them as such but can't seem to get to work when using the custom framework maker. Am I missing something or does anyone have text image files that will work.
Click to expand...
Click to collapse
are the imgs u have to replace them pngs? easiest way is to rightclick framework-res.apk and open with 7zip. then drang new pngs over ones in assests folder.
then try and drag that new eddited apk into framework maker. to make a package to flash.
not sure if tb101s themer has to be editted for ec09 but ive been having trouble with 5.5 and ec09
im in chat right now if u want a hand to hold
http://forum.xda-developers.com/showpost.php?p=10422177&postcount=1
ciscogee said:
are the imgs u have to replace them pngs? easiest way is to rightclick framework-res.apk and open with 7zip. then drang new pngs over ones in assests folder.
then try and drag that new eddited apk into framework maker. to make a package to flash.
not sure if tb101s themer has to be editted for ec09 but ive been having trouble with 5.5 and ec09
im in chat right now if u want a hand to hold
http://forum.xda-developers.com/showpost.php?p=10422177&postcount=1
Click to expand...
Click to collapse
won't that create a 7zip file? that was the only problem i had with the themer, everything worked to remove the ticker history and weather. no fc's..yet.
Well the softkeys have to be alighned. Open existing PNGs in paint or whatever and alighn new ones and save. Then run themer.
Sent from my SCH-I400 using xda premium
thank you, checked the sizeds and they were different. now stuck at the decomling stage in themer.
Your making it way more difficult than it should be lol.
Look for older soft keys posts in our theme section.
There are easier ways in there. No decompile needed for softkey.
Sent from my SCH-I400 using xda premium
ciscogee said:
Your making it way more difficult than it should be lol.
Look for older soft keys posts in our theme section.
There are easier ways in there. No decompile needed for softkey.
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
Thanks you for your help. Finally got the text softkeys working.
huge thanks to ciscogee for his help, and trailblazer for the themer. screen shot is attached
CISCO! is your computer unpacked finally?
pattielipp said:
CISCO! is your computer unpacked finally?
Click to expand...
Click to collapse
no i wish. been a bumby road past month. trying to grab it in next couple weeks. just using phone and gf laptop. no cygwin no linux, minor apk editting when i can.

Categories

Resources