[Resolved]Decompile framework_res to extract icons? - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

I just found some icons that are in a HOX theme and I'd like to get them on my phone....I d/l the theme but have no idea how to decompile the framework_res to gain access to the icons. I've never done anything like this before so any help would be appreciated. Thanks

Just extract the contents. You can get to the icons easily that way. I used root explorer to do that, but you might be able to use another file manager.
Sent from my SAMSUNG-SGH-I747 using xda premium

If you are not adding new icons or changing any XML files you can just drag and drop icons/PNG files from one .apk to another with 7zip
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

Just to clarify....I am wanting to extract the icons from the update I d/l so that I could take some of them out and put them on my phone manually since the framework_res being decompiled is for the HOX. I was able to decompile it via APKtool....took a little figuring out but I was able to work it out and decompile it but one problem......I was not able to find said icons. I found all others but not the one's I was after The icons I wanted were these 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"
}
I wanted the v3 one's
Here is the update I d/l
http://www.mediafire.com/?tumimia8v9403wk
So after having no luck with the framework_res file, I decided to try to decompile the SystemUI apk....for some reason APKtool keeps erroring out on me when trying to do that one, not sure why. Anybody know another way to decompile these things?
And just a FYI, this update is a flashable zip for the HOX, i'm not sure if that changes how things are done but someone above said just unzip the file and I should be able to access, drap and drop the icons easily.....not so much. If it were that easy I'd have done that before I asked about decompiling since that was the first thing I tried

What kind of error on decompiling? Bad magic error?

mrhaley30705 said:
What kind of error on decompiling? Bad magic error?
Click to expand...
Click to collapse
Just for comparisons sake.....
When I decompiled the framework_res, it said "decompiling apk" and once that was done it just went back to the command prompt
When I attempted to decompile the systemui, it said "decomiling apk" and then right under it said "test", after a few seconds it said something like can't find system file, read log (option 23). I read the log and it was just general blabber, nothing specific to the issue.
However, I was reading a tutorial on apktool this morning and they had theirs setup a little differently than I had mine so I set it up like theirs and during the process I ended up in the "projects" folder and guess what was there? The systemui folder. So I went in there and sure enough it had decompiled. Weird....but the icons I was after still weren't there either.
Turns out the icons are not a part of the update I d/l, it's a seperate d/l, which I have now as well as access to the icons
Thanks guys for the help though

Related

Need help editing a clock widgit: Can anyone help?

I don't mind donating to someone who can help either, but, basically, here's my theme/setup:
{
"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"
}
What I want to do, is change the color of the inside of the boxes behind the numbers to red, and leave the rims around them black/gray.
Is there anyway to edit the apk to do this? If so, could anoyne guide me through it? I would love help, because I think that that would just put my setup towards perfect for me.
well, usually what I do in this situation is first copy the apk to a working directory. Then extract the apk in the working directory, and look in one of the drawable folders for the image. Edit the image to your liking. Then when you are done, replace the original image inside the untouched apk you kept in your working directory. You should then be able to either push that apk back onto the phone, install it, or package it in the rom and reflash.
elegantai said:
well, usually what I do in this situation is first copy the apk to a working directory. Then extract the apk in the working directory, and look in one of the drawable folders for the image. Edit the image to your liking. Then when you are done, replace the original image inside the untouched apk you kept in your working directory. You should then be able to either push that apk back onto the phone, install it, or package it in the rom and reflash.
Click to expand...
Click to collapse
Ya know, I've been looking for the Apk file in my phone, and I have no idea where it's at (using sdk tools to search through my phone), because I was thinking just with common sense, that what you said would be the way to go about it.
here's the dev. site:
http://www.davidgoemans.com/mainsite/node/13
It looks like there's no apk to dload to the computer first... is there anyway you can help me with where to look on my phone for the file?
It is probably in /system/framework
Either com.htc.resources.apk
or
framework-res.apk
Well, I went ahead and found it, but, now it's not letting me install the apk for some reason. It's saiying that it's replacing the old digiclock even though I removed that one.
Here's the apk file I created. All I did was rename it to a zip, replace the files, and rename it back to apk.
Can anyone help?
Ok, I got it. I ended up getting the apk manager 4.8 from here, and it took seconds to run through that.
Here's the updated clock.
Looks very good
elegantai said:
Looks very good
Click to expand...
Click to collapse
Hey, thanks!

How to change smileys

Hi guys can you help me change my smileys, the default android smileys looked like shrek for me and it's kinda annoying hehehe thanks in advaced
j3yps said:
Hi guys can you help me change my smileys, the default android smileys looked like shrek for me and it's kinda annoying hehehe thanks in advaced
Click to expand...
Click to collapse
there in the framework-res.apk and easy to replace, if you find some emoticons you like i can replace them for you
can u tell the method in PLAIN ENGLISH please?
Same as the guy above..oh and if it's not too much to ask, can you pls give us a step by step guide on how to do this.
1. Extract your framework-res.apk. you will find it in /system/framework/.
2. download and install 7zip, on your pc.. its a free program.
3. on your pc, right click on your extracted framework-res.apk, find the 7zip contex menu, and click on open archive (DONT EXTRACT IT)
4. A box will open, now navigate to the \res\drawable-hdpi-v4\ folder, inside there you will find the emoticons, they have names like "emo_im_cool.png" and "emo_im_crying.png". find some suitable replacement emoticons, and rename them to the match the file names in the folder.
5. just drag and drop your new emoticons in the folder, and replace the existing ones.
6. close 7zip. now download the update.zip template i've attached at the bottom, unzip it and copy your modified framework to the framework folder inside the zip, go back to the root of the zip and zip it back up.
7. copy the update.zip to the root of your sd card and flash it from recovery
I found an easier solution, will post it IF succesful
But what if you just want to replace the text instead of the image?
I'm using the gingerbread keyboard and it has this smiley button, but how can i change them?
I created a guide here
http://forum.xda-developers.com/showthread.php?p=11094721#post11094721
uot kitchen only has 2 diff smiley sets and there crap
Do you know any other sources with more choice of smileys?
I tried AndroHero's method and it works ti only have a few questions
1. why did the image showed up like this? is there a specific setup that i should do?
{
"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"
}
2. can i put an image size that i want or i should use a 30x30 image only?
Anybody?....

[Q] Can this be themed without altering anything else on my phone? (With Pic)

Running a deodexed 2.2 rom with a custom theme that I love and don't want to part with, but one thing I would love to change are the white boxes that come up in apps. (Whats shown here on the bottom)
{
"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"
}
Is there a transparent or black theme that I could change those to without altering anything else?
From searching this forum I found many transparent staus/notification bars but no transparent menus yet.
The two files you need to edit are menu_background_fill_parent_width.9.png and menu_background.9.png. Both are in framework-res in the drawable-hdpi folder. Be warned if you make em black you will need to invert the text also or it'll be black on black and useless.
N-Forced said:
The two files you need to edit are menu_background_fill_parent_width.9.png and menu_background.9.png. Both are in framework-res in the drawable-hdpi folder. Be warned if you make em black you will need to invert the text also or it'll be black on black and useless.
Click to expand...
Click to collapse
Thanks so much man.
Ok I found the files in question through the framework.apk through root explorer but I don't think me going in and editing the .png image will work on it's own right? I can't just extract the image, change it, and plug it back in and have it work right?
Ok searching some more looks like I will need Ninjamorph to just change out the .png files. Lets see how this goes. Thanks again!
Hand76 said:
Thanks so much man.
Ok I found the files in question through the framework.apk through root explorer but I don't think me going in and editing the .png image will work on it's own right? I can't just extract the image, change it, and plug it back in and have it work right?
Is this something I would need metamorph for?
Click to expand...
Click to collapse
Thats exactly what you do.
Put the framework-res.apk on your desktop
Extract it
Go to those images and edit them
Drop your edited images back into their proper path in the actual .apk itself
adb push that apk back into system/framework.
Reboot. Set perms with root explorer on that modded apk and reboot again.
Done
Ok thanks Wild, I just edited my last post and I am guessing I can eliminate some of that (connecting to the PC) if I just use Ninjamorph.
Well after following the Ninjamorph directions to a T. I got stuck in boot loops and never got to seee how teh finished product came out.
Will probably just try tomorrow on my computer doing it the other way.
Anyway thanks for the help guys and have a nice night.

Smali/baksmali help. Can't find file

I'm looking for some possible advice for adding extended toggles to an ics rom. Another thread may be better, but I thought I'd start on home turf.
What I'm looking for is statusbarservice.smali in any of the new ics systemui classes.Dex files. Either I am not following the directions correctly, or the classes.dex file for our new systemui is dif than before.
When I baksmali the classes.dex from systemui I look in smali/com/android/systemui/* and do not find the "status" folder that a lot of the "how to" tutorials direct you to, to add the necessary code to direct systemui to the quick panel settings. So long story long...anyone want to help me find the appropriate smali file to edit to get us some extended toggles? I can't find StatusBarService.smali in any of the new systemui apks. There are some similar smali files in other folders but I'm not sure where to start. When I open up the classes.dex files from other Samsung phones that have been modded(like the Note) I find the appropriate files. Any ideas/help? Thx in advance
Sent from my SPH-D710 using xda premium
check here http://forum.xda-developers.com/showthread.php?t=1612483
Madflapjack said:
check here http://forum.xda-developers.com/showthread.php?t=1612483
Click to expand...
Click to collapse
Thx, we got the Smali/baksmali thing down, it was just a matter of looking for a file that does not exist on our phone on ICS. Have figured out there's a new set of files that need to be modded, that was the issue. Its dif than the other GS2's and standard toggle mods, so its gonna be interesting the get working...
Sent from my SPH-D710 using xda premium
I know ICS is different so it's no surprise that you're running across something like that. The best suggestion I have is to search for that .smali file by name with whatever file browser you're using.
KCRic said:
I know ICS is different so it's no surprise that you're running across something like that. The best suggestion I have is to search for that .smali file by name with whatever file browser you're using.
Click to expand...
Click to collapse
Thx, after much time tracking down code(look at initial post date lol) we have toggles for ICS. Mods can delete if they want.
{
"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"
}
Sent from my SPH-D710 using xda premium
help me
sleshepic said:
Thx, after much time tracking down code(look at initial post date lol) we have toggles for ICS. Mods can delete if they want.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Finally, how to made it? I can't find StatusBarService.smali in smali/com/android/systemui/statusbar. My phone is ICS 4.0.3

[Q] [REQUEST] How to apply a different navbar to a CM11 theme engine?

You see, I am now using an android L theme on the new theme engine on PA BETA 1 but these navbar playstation icons bother me quite a bit. I much prefer the ones I use with softkeyz (no it doesn't work changing with it), the so called alternate android L's navbar.
Can it be themed manually or something? These ones to be more precise:
{
"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"
}
Anyone has a clue? Someone with experience on themes or knows how to do it.
I was exactly searching for this !
I got it! Had to edit the theme by decompiling and recompiling it back with the navbar icons I wanted. It is not that hard though.
rogeriorp said:
I got it! Had to edit the theme by decompiling and recompiling it back with the navbar icons I wanted. It is not that hard though.
Click to expand...
Click to collapse
so easy...change your theme apk file to zip format by renaming it.open with win rar and unzip it.you have some extracted folders and follow this:
assets<overlays<com.android.systemui<res<drawable-xxhdpi.in this folder looking for these PNG files like ic_sysbar_home,ic_sysbar_menu and etc. these are the themed ones for soft keyz.change them as you wish and remember your modification should respect the orginal png file size.anfter that surf back to the root of themed folders and rezip and sign it with some thing like signer app. done!:good:
ali.sbi said:
so easy...change your theme apk file to zip format by renaming it.open with win rar and unzip it.you have some extracted folders and follow this:
assets<overlays<com.android.systemui<res<drawable-xxhdpi.in this folder looking for these PNG files like ic_sysbar_home,ic_sysbar_menu and etc. these are the themed ones for soft keyz.change them as you wish and remember your modification should respect the orginal png file size.anfter that surf back to the root of themed folders and rezip and sign it with some thing like signer app. done!:good:
Click to expand...
Click to collapse
Exactly.

Categories

Resources