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
Related
Hi guys, I want make the battery mod for my ROM, just want to know what files I need modify.
Thanks.
Sent from my SGH-T989 using XDA
bourdier said:
Hi guys, I want make the battery mod for my ROM, just want to know what files I need modify.
Thanks.
Sent from my SGH-T989 using XDA
Click to expand...
Click to collapse
They'll be under /system/framework/framework-res.apk
You'll have to edit 1 or 2 things depending on where you're coming from. If your ROM already has a 1% battery mod (meaning it shows the percentage already), all you have to do is edit the image files it displays. They'll be under res > drawable-hdpi. I think there's ~206 relevant images for battery. If you don't already have a 1% battery mod (doesn't show percentage already), you'll have to also edit 2 xml files. They'll be under res > drawable and they're called stat_sys_battery.xml an stat_sys_battery_charge.xml
Good luck!
Actually my Ron don't have have the % ...
thanks, I'll tray...
Sent from my SGH-T989 using XDA
Just use UOT Kitchen. You pick the mod you want, then upload systemui.apk, framework-res.apk, and twframework-res.apk. Hit submit and it makes a flashable .zip for you.
Towle said:
Just use UOT Kitchen. You pick the mod you want, then upload systemui.apk, framework-res.apk, and twframework-res.apk. Hit submit and it makes a flashable .zip for you.
Click to expand...
Click to collapse
The easier way if you both A) are interested in using one of their pre made designs and not making a custom design and more importantly, B) not using any kind of mod or theme on your ROM. if you are using any kind of mod or theme, flashing that zip will override your theme because you're replacing the files that contain a large portion of your theme or mod
It's done, I made my custom design or not custom, take one from UOT but can't use any file from my actual ROM because always get error....
Here is the my screenshot.
{
"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 SGH-T989 using XDA
Sorry, wrong address
http://db.tt/aY2WKHfW
Hope work now.
Sent from my SGH-T989 using XDA
Guys, could you direct me on putting such wallpaper like in the screenshot i posted below? Curious to do it. Thanks.
{
"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"
}
Im curious too.
Sent from my GT-I8150 using xda premium
First thing that came in mind was to edit the settings.apk file. Remember that this is only my theory, As I changed the wallpaper on my expanded-notification-bar with this method, do at your own risk.
decompress it, look for wallpaper value in the xml files, then look for a file with a same name on the res folder, rename your wallpaper-file to match the name of the black background file.
Don't recompile or anything, open up your original settings.apk using 7zip, overwrite the black-background file with your new-wallpaper file, put it back on your phone.
Sorry if it is unclear, I'm Nowhere near my PC
Have a good day!
Sent from my GT-I8150 using XDA
reidzeibel said:
First thing that came in mind was to edit the settings.apk file. Remember that this is only my theory, As I changed the wallpaper on my expanded-notification-bar with this method, do at your own risk.
decompress it, look for wallpaper value in the xml files, then look for a file with a same name on the res folder, rename your wallpaper-file to match the name of the black background file.
Don't recompile or anything, open up your original settings.apk using 7zip, overwrite the black-background file with your new-wallpaper file, put it back on your phone.
Sorry if it is unclear, I'm Nowhere near my PC
Have a good day!
Sent from my GT-I8150 using XDA
Click to expand...
Click to collapse
Shouldn't i look into framework-res for the wallpaper?
Btw, I saw a tutorial in XDA for Samsung Epic 4G but the regarding files are in res/values/styles.xml. But I have no idea what is the name for it in our Samsung Wonder.
HELP!
could you gave me the background wallpaper? thats really cool man!
oops, my bad. After looking at the framework-res files, it MIGHT be the menu_background.png, haven't tested it yet,though, had no spare time, sorry, and good luck
Sent from my GT-I8150 using XDA
SyzwnFrzRdz said:
Shouldn't i look into framework-res for the wallpaper?
Btw, I saw a tutorial in XDA for Samsung Epic 4G but the regarding files are in res/values/styles.xml. But I have no idea what is the name for it in our Samsung Wonder.
HELP!
Click to expand...
Click to collapse
The file name are same, but you need to decompile your framework-res.apk with apktool, not just extract it by using 7zip or winrar.
If you're extract framework-res.apk with 7zip or winrar, you are not able to get the values folder and the styles.xml inside.
Guys, I ask this because i have tried 1000 ways and I could not recompile the frameworks after making changes to bools and arrays.
Please, someone would do for me?
Its for the latest build of Quarx.
I followed this tutorial but the problem is that i can't never rebuild. Damn!!
http://forum.xda-developers.com/showthread.php?t=1364757
{
"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"
}
Thanks in advance!:highfive:
_______________________________
Edit.
Framework here.
framework-res.apk
posst the framework...
Sent from my MB525 using xda premium
looking forward to it , it means we can disable our capacitive buttons and use this on screen buttons ....... at the moment it seems to be awesome ......
lets see if it can be integrated and works flawless......
yes, please post your framework-res.apk here. I dont have quarx build downloaded yet. It shud be done without a problem and will upload u a update.zip for it.
I'd be interested to see this in action too.. can you please modify this file? It's the framework from http://quarx2k.ru/cm9-nightly-defy+/CM9-NIGHTLY-120710-Defy+.zip ... thank you
https://dl.dropbox.com/u/18827417/framework-res.apk
Type in command line "java -jar apktool.jar -if framework.res", then decompile it. Edit the files and before compile it, extract the archive "resources.arsc" that is inside the original "framework-res.apk" and copy it to "framework-res" folder. Then try to compile it. This should help. I´ve not tested the new "framework-res.apk" file, but at least I can compile it.
jassi32 said:
looking forward to it , it means we can disable our capacitive buttons and use this on screen buttons ....... at the moment it seems to be awesome ......
lets see if it can be integrated and works flawless......
Click to expand...
Click to collapse
It works perfect!, There was a guy who changes the frame for this, but stopped ..
Favaron said:
Type in command line "java -jar apktool.jar -if framework.res", then decompile it. Edit the files and before compile it, extract the archive "resources.arsc" that is inside the original "framework-res.apk" and copy it to "framework-res" folder. Then try to compile it. This should help. I´ve not tested the new "framework-res.apk" file, but at least I can compile it.
Click to expand...
Click to collapse
I tried that way too and it works, but apparently not successfully recompiled .. all are in folders without compiling. for example values and the files .xml either.
@pabloltg : I left for office today, will reach home @ 4 pm and will upload you the framework. (Obviously if somebody has not done it already )
brajesh.sharma87 said:
@pabloltg : I left for office today, will reach home @ 4 pm and will upload you the framework. (Obviously if somebody has not done it already )
Click to expand...
Click to collapse
Many thanks mate!
I trying today too, but not lucky.
May be i should wipe my laptop.xD
Navigation Bar: http://forum.xda-developers.com/showthread.php?t=1495002
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
Hello there. I'm using SlimBean ROM, and.. as the developer was banned and the new releases are unofficial, the "OTA" updates are useless, and I want to remove them.
{
"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"
}
There, when you press it
it crashes. so yeah I'd like to remove that OTA, I saw a tutorial but idk if that would be useful in this case, as it was to ADD options, and I'd just like to remove this one. thanks
Phenomzye said:
Hello there. I'm using SlimBean ROM, and.. as the developer was banned and the new releases are unofficial, the "OTA" updates are useless, and I want to remove them.
View attachment 2158715
There, when you press it
View attachment 2158716
it crashes. so yeah I'd like to remove that OTA, I saw a tutorial but idk if that would be useful in this case, as it was to ADD options, and I'd just like to remove this one. thanks
Click to expand...
Click to collapse
Decompile settings.apk
Navigate to res>xml>settings_header.xml
And remove the one that is related to OTA
Then recompile
Also if u want before recompiling u can remove its icon from inside drawables folder and remove its strings from res>values>strings.xml
Sent from my LT18i
Sahaab said:
Decompile settings.apk
Navigate to res>xml>settings_header.xml
And remove the one that is related to OTA
Then recompile
Also if u want before recompiling u can remove its icon from inside drawables folder and remove its strings from res>values>strings.xml
Sent from my LT18i
Click to expand...
Click to collapse
Okay, I have tried decompiling APKs before without success, idk, the programs like apktool just won't work on my PC or anything. I'm gonna try again, but just in case, can you try doing it?
apk: View attachment Settings.rar
Phenomzye said:
Okay, I have tried decompiling APKs before without success, idk, the programs like apktool just won't work on my PC or anything. I'm gonna try again, but just in case, can you try doing it?
apk: View attachment 2158879
Click to expand...
Click to collapse
It is a small thing but I hardly have time
But PM me later and I will see if I can
Sent from my LT18i