[Q] MORPH: getting bootloops with cyrcle battery (selfmaid theme) - Nexus One Themes and Apps

Hi,
I'm working on a theme for the nigtlies for myself (is going to be released later).
It is based on a GalaS theme with lots of elements of nextheme, some sense stuff, basically a mix of what i like from every theme i once applied for different roms...
My problem:
I'm getting bootloops after i changed the battery png's to cyrcle battery even though same number of pictures....
Does anybody know what i need to do to add the cyrcle battery style to my morph? Do i need another xml file which basically tells the ui that now it is a cycle battery?
Any help is appreciated..
i'm kind of lost here...

You should make sure you are saving them with the exact name of the stock icon files. They need to be a png 32 file with a transparent bg. Also make sure the name of the theme zip file is the same as your xml file.
As long as its the same number of files with the same name you should be good. Search in the morph sticky at the top of the forum and tear a couple of battery morphs apart and compare.

Well i tried that, no luck so far. Gonna compare some battery morphs later on.
tr.slate said:
You should make sure you are saving them with the exact name of the stock icon files. They need to be a png 32 file with a transparent bg. Also make sure the name of the theme zip file is the same as your xml file.
As long as its the same number of files with the same name you should be good. Search in the morph sticky at the top of the forum and tear a couple of battery morphs apart and compare.
Click to expand...
Click to collapse
Sent from my Nexus One using XDA App

Related

[WORKING/DOWNLOAD] Services.jar for Centered Text for Circle Battery w/Black Themes!

I have made the Battery Percent in the middle again in CM-5.0.6 so far its working and i havent had any issues yet but i am still testing with it...
Services.jar is from CM-5.0.6 with moditfications made by me with the help from:
david1171 - Pointing me in the right file paths
sn0wmis3r - His theme Inspired me and pointed out the cc3.jar doesnt work with the percent icons. lol
brandenk - Created the battery icons.
enomther - Who made the guide to manually make text black to white
Cyanogen - The creator of CM
UPDATE 4/30/2010 - My custom made Services.jar is now able to be downloaded. I know it works for what i have with my theme. anyones elses theme i do not know about. This is not a update.zip nor a morph themed install. this is unzipped to services.jar. I made my own custom CM-5.0.6 the day after it was release and have been working on it since then till it was finished on 04/21/2010 and working.
How to use my services.jar:
If you bake your own Cyanogenmod-5.0.6-N1 Rom like i do, and also theme them with the circle battery and would like to have it centered plus running as a Black Themed base this is for you.
1. Download and unzip CM-5.0.6-N1 to its own folder.
2. Make the changes to the files that you need to do to make your theme black and with circle battery.
3. Unzip the services.jar into the /system/framework/ folder
4. repackage it up as a store only zip with the name of the zip not containing any spaces at all. (example: CM-5.0.6-N1-Themed.zip Not CM 5.0.6 N1 Theme.zip)
5. then sign your newly made custom rom of CM.
You are then ready to flash it to your phone.
NOTE: I am not responsible for your mistakes. do a nano backup before anything to your phone always.
If your wanting this into a morph well then you need to download this services.zip and extract the classes.dex file from the services.jar and place it where it needs to go.
I'll be working on a morph as soon as i can i have other projects i am helping with other on and i am busy with personal work crap as well lol...
again this is set for a black theme with white text and a centered percent numbers with the circle battery.
I can help you make the morph for the battery if you'd like. Just pm me the images and the services.jar with only the battery placement configurations?
I'm looking for the circle battery aswell
Sweet alright well i know sn0wmis3r will be updating his black matte morph soon as well. I will be making my own over the week. If i need help I will take you up on your offer Papichulo06 :-D
Thank you!
What color? I'm using the blue one found here: http://forum.xda-developers.com/showthread.php?t=652450
Same as found in this thread on post 4
http://forum.xda-developers.com/showpost.php?p=6029657&postcount=4
Just wanted to let you know, the Kspec morph is currently working on my N1 running CM 5.0.6. I used the Lite 1.1 version.
Are we talking about the same thing or am I missing something?
Dunno I havent seen what his icons are and if it shows the battery percent in center or not. i'll look into that later and find out what battery icon he has.
What exactly did you edit to get it to change?
I accomplished it by going in and using PSPad's text diff feature to see what was different in 5.0.5.3 com/android/server/status/StatusBarIcon.smali to the one in 5.0.6, and changed pretty much every difference, and I got it working (or well, I just copied the 5.0.5.3 one to 5.0.6, but when I did it for the different versions of the trackball successions services.jar, then I did it that way, only changing certain things).
Copied kinda like what you did only made sure i did not change pswitch and some other numbers. I dont use the trackball successions i dont believe (unless that built into 5.0.6 then i do) but so far my trackball works fine lights up with no issues. even on the live default wallpaper on cm-5.0.6 it works fine. I used Notepad++ and just used the clone to make one side one document and the other side the one i am messing with (basically the same thing but i just like notepad++ more). I'll up the services.jar file this weekend for sure.
With Pix now
can you share your wallpaper?
Wallpaper is fireworks Live Wallpaper in market. it will allow you to select different types of backgrounds with fireworks going on. :-D
Re: [WORKING] Circle Battery w/Percent in Middle CM-5.0.6 w/PIX
thx, and the dock that is rear the icons???
dock comes with helixlaunch2 also in market :-D got to love free stuff thats AWESOME!
the dock image comes with helixlauncher? i Have the helix2 that works with 5.0.6 and i dont know how to show it :S Thx for all
okay with helix 0.7 go to the config part and under the shortcuts advanced only you will see "Show Dock" that should put the dock on there for you. :-D
Do you have the newest version from HelixLauncher2 from Market? This has the dock.
This appears to be the battery I created for my Kspec themes located at http://alldroid.org/forums/911-Themes.
brandenk said:
This appears to be the battery I created for my Kspec themes located at http://alldroid.org/forums/911-Themes.
Click to expand...
Click to collapse
Well then you need to have credit too. So thank you and also put it in the main post. :-D

Replacing Icons in framework-res.apk

I've been opening up framework-res.apk as a zip file and changing around icons for my status bar with other themes. I just replaced the signal bars icons and the 3G icons, repackaged the framework into a zip file, and applied it via rom manager. No Icon change. I've been able to replace several before, any ideas why it wouldn't work now? I reopened the file and verified the icons had been changed.
The icons you are looking for are in com.htc.resources.apk
If you have something specifically you want changed I can tell you where it is located and what the filename is. I am building some theme tutorial videos because I had a hard time finding all of this information. I want to make it easier for others. I remember all the way back in June when I got frustrated finding what files went where. I am making a list to help others out, let me know what you are looking for.
[email protected] said:
The icons you are looking for are in com.htc.resources.apk
If you have something specifically you want changed I can tell you where it is located and what the filename is. I am building some theme tutorial videos because I had a hard time finding all of this information. I want to make it easier for others. I remember all the way back in June when I got frustrated finding what files went where. I am making a list to help others out, let me know what you are looking for.
Click to expand...
Click to collapse
Subscribed!
Sent from my ADR6300 using XDA App
subscribed as well, a video with some info would be great. I am definitely no developer, but not afraid to mess around a bit. I was also interested in making similar changes as OP.
In fact I am using Jerick's smooth sense mod with white letter mod by squintz, and a couple of the icons were coming up out of order. I was not cool enough to be able to repair the info that points to an icon so I found the icons in framework-res.apk and changed the names of them so that I would get the correct icon in status bar. But obvously that is not the correct fix. However this is where the icons OP is talking about. So if I can make a name change to a png can't you also replace that png. I believe that the apk has to be signed correctly after manipulating?
Anyways any basic info about doing such would be greatly appreciated
spjoneser said:
subscribed as well, a video with some info would be great. I am definitely no developer, but not afraid to mess around a bit. I was also interested in making similar changes as OP.
In fact I am using Jerick's smooth sense mod with white letter mod by squintz, and a couple of the icons were coming up out of order. I was not cool enough to be able to repair the info that points to an icon so I found the icons in framework-res.apk and changed the names of them so that I would get the correct icon in status bar. But obvously that is not the correct fix. However this is where the icons OP is talking about. So if I can make a name change to a png can't you also replace that png. I believe that the apk has to be signed correctly after manipulating?
Anyways any basic info about doing such would be greatly appreciated
Click to expand...
Click to collapse
You don't need to resign the apk unless you completely extract it. Then good luck trying to get a system apk to work. Just open the archive and replace needed imgs then update the archive and you're done. All depends on what os your using. Linux makes it easy to edit apks without extracting. In win you have to rename to .zip then do line I said then rename back to .apk
Sent from my ADR6300 using XDA App
Which files specifically are the signal meter? I just want to change those ones back to the stock icons.
jskolm said:
Which files specifically are the signal meter? I just want to change those ones back to the stock icons.
Click to expand...
Click to collapse
I can tell you later (i dont have the dump on hand) but the signal meter pngs are located in com.htc.resources.apk under /res/drawlablehdpi/ thay have a name like sys_status_cdma1 or something like that. I think if you get that far the images might jump out at you. If you want the exact ones I can tell you when I get back from work.
[email protected] said:
I can tell you later (i dont have the dump on hand) but the signal meter pngs are located in com.htc.resources.apk under /res/drawlablehdpi/ thay have a name like sys_status_cdma1 or something like that. I think if you get that far the images might jump out at you. If you want the exact ones I can tell you when I get back from work.
Click to expand...
Click to collapse
Found them. Thanks for the direction. I was looking through the folders and I couldn't find them, because they are transparent backgrounds, so the white on white blended right in. I changed out the signals for the ones I wanted and everything looks like its working now.
Thanks for your help!

how to mod your battery for percentage?

im running steelh and i have the blue epic style battery. how can i get the battery percentage into that without using different icons? i tired the online kitchen but my phone is stuck in a bootloop.
anybody? the kitchen just gives me errors.
ive used the online kitchen before with no issues, but id like to know how to this manually.
Sent from my panty-dropper.
ericwgarza1 said:
ive used the online kitchen before with no issues, but id like to know how to this manually.
Sent from my panty-dropper.
Click to expand...
Click to collapse
i cannot get it to work no matter what i do. can any dev help out here? i want the blue epic style battery with percentage. aside from the png's what files do you need to get this working on a sense rom? all of this hassle is making me want to go back to cm6, at least on that we can use the settings to accomplish alot of things we cannot on sense roms.
can you add the battery percentage mod into a rom that doesn't by default come with it? i heard about needing a modded services.jar file? or do i have to go with a different rom here for what i need? the online kitchen will simply not work for me.
The battery mods are accomplished by editing xmls and pngs in framework-res.apk
SteelH said:
The battery mods are accomplished by editing xmls and pngs in framework-res.apk
Click to expand...
Click to collapse
i have the png's but i have no clue how to mod xml files. im pretty good at Frankensteining themes together but for the life of me i cannot get this to work.
A couple of things: are you using a deodexed or odexed rom? Are you trying to add the circle battery to your existing theme or are you just trying to add the battery period?
I made a "dummy" flash file a while back that "prepped" odex roms before flashing the battery percentage mods.
You can also decompile the framework you want and transfer over the pngs and xmls for the battery mod into your existing framework.
Decompiling would be the best route as you would have to recompile it with the new xmls added to the resource list.
I would/could help but I won't flash anything on my evo right now since I currently have it hooked up to debug an app. Just send me the framework file from your phone and the battery mod you want and I can take a look at them and hopefully recompile it for you.
lovethyEVO said:
A couple of things: are you using a deodexed or odexed rom? Are you trying to add the circle battery to your existing theme or are you just trying to add the battery period?
I made a "dummy" flash file a while back that "prepped" odex roms before flashing the battery percentage mods.
You can also decompile the framework you want and transfer over the pngs and xmls for the battery mod into your existing framework.
Decompiling would be the best route as you would have to recompile it with the new xmls added to the resource list.
I would/could help but I won't flash anything on my evo right now since I currently have it hooked up to debug an app. Just send me the framework file from your phone and the battery mod you want and I can take a look at them and hopefully recompile it for you.
Click to expand...
Click to collapse
its the steelh deodexed rom. i have alot of themes going on and i do not want to loose them. i just want the battery with the percentage in it. ive attached what you may need, thank you.
I'll take a look at them now.
Give me some time.
lovethyEVO said:
I'll take a look at them now.
Give me some time.
Click to expand...
Click to collapse
thanks for taking the time!
Found a clue about the problem.
The online kitchen I believe has a disclaimer about .9pngs in the framework.
Basically if some .9s are not edited correctly it can cause an error in the decompile/compile process.
The framework you gave me throws an error when trying to compile. I have seen this error many times before and it always results in the changed files (xml and pngs) not being inserted into the newly compiled framework.
I decompiled/compiled three times, same error and the changed files were not inserted into the compiled apk.
Your problem lies in the framework and the tools ability to properly process the .9s.
Also, the epic zip you gave me does not have any xml files to tell the framework what png to display and it has 80 more pngs for the battery charge animation.
This is not something I want to spend more time on right now but the info I'm giving will hopefully get you in the right direction.
I think the two .xmls that needs to be edited are:
stat_sys_battery.xml
stat_sys_battery_charge.xml
Decompile a framework-res that already has the mod included and you should get an idea of what to do.
Someoneplease let me know if I'm wrong. Thanks!
ericwgarza1 said:
I think the two .xmls that needs to be edited are:
stat_sys_battery.xml
stat_sys_battery_charge.xml
Decompile a framework-res that already has the mod included and you should get an idea of what to do.
Someoneplease let me know if I'm wrong. Thanks!
Click to expand...
Click to collapse
There are actually 3 xmls needed for the battery mod.
The op stated he has a theme going and he doesn't want to lose it. The only way to incorporate the battery mod and keep his theme is to add the battery to his existing framework.
As I explained above, .9s are special pngs and if they are not edited correctly will cause the decompile/compile tool to throw an error. Themers will edit .9s and although they will show properly on the phone the tool used to decompile/compile the apks will notice if the .9s are incorrect.
What the online kitchen does and what I did manually are the same thing and more than likely with the same tools. The epic pngs the op supplied did not have any xmls and so im surprised the online kitchen was able to produce an apk.
If I spent more time on it I could probably figure it out but I am already occupied with another time consuming task.
What is the other .xml named?
I'd like to personally (for learning purposes) add the battery percentage to a stock framework-res.apk manually. Thanks!
Try this. I give no guarantees at all since I manually inserted the xmls and pngs. Also since there are 80 more pngs for the charge animation there's no way of telling how it will look.
lovethyEVO said:
There are actually 3 xmls needed for the battery mod.
The op stated he has a theme going and he doesn't want to lose it. The only way to incorporate the battery mod and keep his theme is to add the battery to his existing framework.
As I explained above, .9s are special pngs and if they are not edited correctly will cause the decompile/compile tool to throw an error. Themers will edit .9s and although they will show properly on the phone the tool used to decompile/compile the apks will notice if the .9s are incorrect.
What the online kitchen does and what I did manually are the same thing and more than likely with the same tools. The epic pngs the op supplied did not have any xmls and so im surprised the online kitchen was able to produce an apk.
If I spent more time on it I could probably figure it out but I am already occupied with another time consuming task.
Click to expand...
Click to collapse
Good explanation thank you. I think I have the similar problem I unzipped my framework and changed my battery and it worked. The only problem is I can only use the six charging animations. A little research last night and I realized I needed to edit the xml. Decompiling my framework would not work and I think your explanation helps me understand why.
ericwgarza1 said:
What is the other .xml named?
I'd like to personally (for learning purposes) add the battery percentage to a stock framework-res.apk manually. Thanks!
Click to expand...
Click to collapse
maybe public.xml

[THEMES][MODS] NOVA'S Themes and MODs for TAB : 28DEC

-Nova's Themes and MODs for Galaxy TAB : 28DEC
Closed For business for right now. Until we get CWM.
**********************************************
I AM NOT RESPONSIBLE IF YOU OR THIS MESSES UP YOUR TAB. : )
Good to see the theming has started.
Sent from my HTC Desire
Can this be flash to Tmobile.? I know it a dum question but I want to know.
Im pretty sure this wont work for vzw tab...poked around in the files,most of the changed images are in framework/res/hdpi-v4. The path on vzw tab is framework/res/hdpi. Anyway,it was enough to scare me off. Could you tell me where those 1% increments are? Im thinking maybe battery-status.xml?I wanna pull the control file and the png's and push em into framework. Tia.
Screenshots? Also, the -v4 just means it's been decompiled.
Guys guys guys... -v4 is ok... Will work fine! lol
I am sure the framework is the same across the board. Nothing is really any different than any other 2.2 devices. No special renaming. The battery mod is a change in the battery and battery charging xml file. Instead of a img matched to a value every 20% (stock) this will display an img for every value. 205 or 125 images. In the Glass theme I have an img for every value for charging as well so it has 205 images. If you are at 22%, it will say 22% in the battery Icon. AND... This will not drain your battery any faster. This is a active Battery % Display for the Stock Icon.
Soon I will have a full Battery Mod thread with a ton of different Icons and the xmls for those who wanna use it. : )
I'm using Glass with the Magic Smoke Live Wallpaper, Looks so awesome. You must check it out. I have pics already but I'll post more and a video.
Try it!!!
:0)
Ahhh....gotcha. yeah,I noticed I got a -v4 on the end after I've used the s.c. online kitchen. Any way,recovery still exits with an error when I try to flash on vzw tab. Could it be that string in the assert command in the updater sscript? Thanks for the heads up on the XML...it got me there.
mosone23 said:
Ahhh....gotcha. yeah,I noticed I got a -v4 on the end after I've used the s.c. online kitchen. Any way,recovery still exits with an error when I try to flash on vzw tab. Could it be that string in the assert command in the updater sscript? Thanks for the heads up on the XML...it got me there.
Click to expand...
Click to collapse
Could be, ill just clear it and make it just copy. What's the s.c. Kitchen?
Sent from my SPH-P100 using Tapatalk
"Ultimate online theme kitchen"...the one with the super circle battery. Looking forward to the battery mods...thanks!
mosone23 said:
"Ultimate online theme kitchen"...the one with the super circle battery. Looking forward to the battery mods...thanks!
Click to expand...
Click to collapse
oh, lol. That's where I go to get a lot of what I do, so much easier than sitting there and editing all the xmls and hope that it recompiles right. I love using Ultra Compare and seeing what they do with that. Awesome site.
You got this to work through cw? From what I've read the assert line is no longer supported,moved on to"Edify".
mosone23 said:
You got this to work through cw? From what I've read the assert line is no longer supported,moved on to"Edify".
Click to expand...
Click to collapse
I Have fix it, this will flash in Clockwork! : )
I have also now added 10 Batt Mods for everyone. More to come soon!
Enjoy!!
The battery mods, particularly Mod #2, are nice. If I apply the images via MM into the drawable-hdpi folder, predictably it only picks up the twenty percent level ones. If I add the two XML files to the MM in the drawable folder (I used the 125 version) none of the images show up. I'm familiar with basic image replacement, but not with replacing the XML files. Is this something that would require an update.zip rather than MM?
tried the glass theme on att tab
now im stuck on samsung logo
trying to boot back up no go
thanks for trying though
BuglessFan said:
The battery mods, particularly Mod #2, are nice. If I apply the images via MM into the drawable-hdpi folder, predictably it only picks up the twenty percent level ones. If I add the two XML files to the MM in the drawable folder (I used the 125 version) none of the images show up. I'm familiar with basic image replacement, but not with replacing the XML files. Is this something that would require an update.zip rather than MM?
Click to expand...
Click to collapse
Did you use Clockwork? If your adding the images, you have to have the xmls too. xmls go in drawable.
maxtcee said:
tried the glass theme on att tab
now im stuck on samsung logo
trying to boot back up no go
thanks for trying though
Click to expand...
Click to collapse
Sorry man, I only have a sprint tab. I'll look into it more, Maybe I'll build it from each framework to make it work for all.
Nah, I was using Metamorph, which works fine for the PNGs, but somehow when it replaces the XML files in the drawables directory the battery status stops showing up altogether. I didn't have a lot of time to experiment though, so I wound up just restoring from nandroid backup. I know it must be replacing the right files, because if I run Metamorph without the XML files it perfectly places the new images, and the notification bar picks it up for the existing battery increments. If I add the XML files it winds up with a blank area where the battery status go. I'm assuming it's one of three things: MM having trouble replacing the XML files and busting something; or there's something specific to the VZW version that doesn't like one or more elments in the XML; somewhere along the lines of pulling the two XML files out of your .zip and putting them in the new .zip changed some kind of formatting (DOS v Unix linebreaks, dunno). At any rate, I can use the images easily for the 0,10,15,20,40... increments, but can't easily update the XML files with MM at the moment. I might look into doing an update.zip.
The reason I'd prefer MM for just picking up changes like battery status images, is that I don't have to worry about the framework matching, it'll just replace the files in my existing framework, so it's usually quick and dirty.
Can you see if we can get a Sprint Only Galaxy Tab Forum
Since you are a developer, Can you PLEASE look into getting the Sprint Galaxy Tab its own spot? All this Euro AT&T TMobile Galaxy Tab stuff is getting on my nerves. They need a GSM Only and a CDMA Only Tab Forum. It's too damn confusing. Appreciate it! Thx
Hi
I watched the video of the theme and at the begining you touch the upper left corner of the screen to wake up the tab. I am new to android phones and it is maybe stupid question but how to do it without pressing power-on button?
regards
Pawel
The power button is in the upper left in the video. As his thumb is at the top of the screen one of his fingers is pressing the power button. No magic swipe, sorry.

Cool skull battery mod

I found a thread here on XDA that has a collection of literally every battery mod/icon out there. The link is here: http://forum.xda-developers.com/showthread.php?t=2280597
I found a really sweet red skull that I liked a lot, screenshot below. It includes 1% battery increments as well as 1% charging increments. The only problem I ran into is that these icons were made primarily for samsung galaxy roms. The image directories/names are a little different and just have to be renamed in order for use. Really, all you have to do is remove the "tw_" right before the "stat_sys_batt" for every image. It's a pretty cool place to find some really unique battery icons. If anyone has a request for an icon they would like, I can gladly mod a systemUI.apk for your ROM as long as the icon pack exists. I use apkmulti-tool to decompile and recompile all of the apk files if anyone would me to explain how to use it since it took me forever to learn on my own.

Categories

Resources