Related
I have searched the forums but cannot find a fix for this.
I am a noob when it comes to rooting/flashing but just rooted my hero and am running ddamage control v2.02, i think it is great but I have always hated the HTC lock screen, the flan one imo is much better.
I looked around and found that by entering
adb remount
adb shell
cd system/app
rm HtcLockScreen.apk
rm HtcLockScreen.odex
reboot
and rebooting the phone I get a messed up version of the flan style lock screen. It was supposed to remove the HTC lock screen and give a flan version. I am thinking that it may be because I did not type exit, but rather safely removed the hardware.
Anyway the problem is that the flan lock screen is the green lock circle that is supposed to slide to the right is in the bottom middle part of the screen, the only way to unlock it is to slide it up/the silent circle must be slid down to enable it to be silenced. Also the time is on the left side, and it is currently 12:15, however the time will show
12:1
5
because of the unusual version of the lock screen.
I looked around and found a fix that was supposed to re add the HTC lock screen, however the fix was for a 1.6 version and I cannot find the thread.
If anyone could help me either reinstall the original HTC Slider or preferably a properly working flan style I would appreciate it. I am thinking that because it is not an official ROM the developer did do a great job, but did not make it with the original flan style.
Here ya go.........................BTW there is no fix yet....
mjz147 said:
I have searched the forums but cannot find a fix for this.
I am a noob when it comes to rooting/flashing but just rooted my hero and am running ddamage control v2.02, i think it is great but I have always hated the HTC lock screen, the flan one imo is much better.
I looked around and found that by entering
adb remount
adb shell
cd system/app
rm HtcLockScreen.apk
rm HtcLockScreen.odex
reboot
and rebooting the phone I get a messed up version of the flan style lock screen. It was supposed to remove the HTC lock screen and give a flan version. I am thinking that it may be because I did not type exit, but rather safely removed the hardware.
Anyway the problem is that the flan lock screen is the green lock circle that is supposed to slide to the right is in the bottom middle part of the screen, the only way to unlock it is to slide it up/the silent circle must be slid down to enable it to be silenced. Also the time is on the left side, and it is currently 12:15, however the time will show
12:1
5
because of the unusual version of the lock screen.
I looked around and found a fix that was supposed to re add the HTC lock screen, however the fix was for a 1.6 version and I cannot find the thread.
If anyone could help me either reinstall the original HTC Slider or preferably a properly working flan style I would appreciate it. I am thinking that because it is not an official ROM the developer did do a great job, but did not make it with the original flan style.
Click to expand...
Click to collapse
u didnt do anything wrong when deleting the files. the flan screen is messed up on sprint release so far. No one has attempted or has failed to fix is so far
thanks alot, appreciate it. Obviously I would rather have the working HTC Lock screen than a broken flan one.
Did the same way. Could find no way to get the htclockscreen to install again. Pushed it, ran it, whatever...I ended up just re-flashing.
mjz147 said:
thanks alot, appreciate it. Obviously I would rather have the working HTC Lock screen than a broken flan one.
Click to expand...
Click to collapse
maybe one of the dev out there could look at it and fix it for us. maybe one day.
My HTC Sense lock screen is working again. Thanks for the link again.
I think a majority of Sense users love sense but don't like the lock screen, it is easier to open in the pocket and the flan style is smoother and more natural
mjz147 said:
My HTC Sense lock screen is working again. Thanks for the link again.
I think a majority of Sense users love sense but don't like the lock screen, it is easier to open in the pocket and the flan style is smoother and more natural
Click to expand...
Click to collapse
Yeah and flan looks better IMO. And being able to silence the phone easily is another plus.
Wasney said:
Did the same way. Could find no way to get the htclockscreen to install again. Pushed it, ran it, whatever...I ended up just re-flashing.
Click to expand...
Click to collapse
I may be a little late with this..... but i found when i removed the .apk and saved it for replacing later via estrongs I was able to simply copy and past back in /system/app and reboot. my original lockscreen was back with no problem. Although you must have the root options checked in options of estrongs file manager to be able to move the file.
Figured I post up what i found.
Bret
forgot to mention.....
I am sure others may know but you can also download lockbot from the market for free which has a few lockscreens, the pay or pro version has the flan lockscreen and have confirmed it works on DC2.1 treve mixture that I am running with no problems.... battery life good, VVM works, Location spot on, and no prl issues..(anymore)
anyway there my 2 cents And thanks to everyone out here I am starting to learn. All the devs keep it up!!!)Your Awesome
Looked at it a little bit
So, I really wanted to get the Flan Lockscreen working/appearing correctly so I started digging into the layout XMLs in framework-res.apk.
From what I can tell, it's forcing everything into the left 100 pixels of the screen causing things to wrap.
My first thought was to override the widths/heights from the -1 and -2 values to actual screen values (240x320). I updated most of the keyguard*.xml and screen*.xml files (hexedited) but the screen is still garbled. There may be a parent screen that is causing the restriction still though.
My second thought was there's an image file missing or is sized incorrectly. I pulled all the .pngs from DC1.0 (it was working there, correct?) framework-res.apk and placed them in the newer framework-res.apk. This changed the screen so that the slide buttons are at least visible (they weren't showing on DarchLegend at all) even if in the wrong place.
There might be something in the smali code that is preventing things working too... I still need to look into services.jar and policy.jar.
If anyone has any other ideas or insights, please let me know.
-Daryel
Quick question. How are you looking into the .xml files? I tried looking into this as well and got stuck at not being able to view the xmls.
daryelv said:
So, I really wanted to get the Flan Lockscreen working/appearing correctly so I started digging into the layout XMLs in framework-res.apk.
From what I can tell, it's forcing everything into the left 100 pixels of the screen causing things to wrap.
My first thought was to override the widths/heights from the -1 and -2 values to actual screen values (240x320). I updated most of the keyguard*.xml and screen*.xml files (hexedited) but the screen is still garbled. There may be a parent screen that is causing the restriction still though.
My second thought was there's an image file missing or is sized incorrectly. I pulled all the .pngs from DC1.0 (it was working there, correct?) framework-res.apk and placed them in the newer framework-res.apk. This changed the screen so that the slide buttons are at least visible (they weren't showing on DarchLegend at all) even if in the wrong place.
There might be something in the smali code that is preventing things working too... I still need to look into services.jar and policy.jar.
If anyone has any other ideas or insights, please let me know.
-Daryel
Click to expand...
Click to collapse
Good work. The heck with the Flan lockscreen, lets figure out how to remove the wallpaper to have a clear lockscreen. LOL
maxium01 said:
Quick question. How are you looking into the .xml files? I tried looking into this as well and got stuck at not being able to view the xmls.
Click to expand...
Click to collapse
There's a java utility called AXMLPrinter2 that will take the Android XML files and create a text file. Unfortunately it's only a one-way process, so editing of the XML files requires Hex-editing. That's how I edited the status_bar.xml file to change the font from white to black on the Taskbar.
-Daryel
daryelv said:
So, I really wanted to get the Flan Lockscreen working/appearing correctly so I started digging into the layout XMLs in framework-res.apk.
From what I can tell, it's forcing everything into the left 100 pixels of the screen causing things to wrap.
My first thought was to override the widths/heights from the -1 and -2 values to actual screen values (240x320). I updated most of the keyguard*.xml and screen*.xml files (hexedited) but the screen is still garbled. There may be a parent screen that is causing the restriction still though.
My second thought was there's an image file missing or is sized incorrectly. I pulled all the .pngs from DC1.0 (it was working there, correct?) framework-res.apk and placed them in the newer framework-res.apk. This changed the screen so that the slide buttons are at least visible (they weren't showing on DarchLegend at all) even if in the wrong place.
There might be something in the smali code that is preventing things working too... I still need to look into services.jar and policy.jar.
If anyone has any other ideas or insights, please let me know.
-Daryel
Click to expand...
Click to collapse
Wow, you have put in a lot for that.
I am running damage control v.2r2 and I believe that because it is not an official rom, damageless did not put in unneccesary android suff, the lockscreen being one of them. Their wouldnt be a point in installing or including in the rom a perfect standard messaging app, if HTC has their own.
However someone earlier in this thread gave me an .apk of the HTC lockscreen after installing it and rebooting it worked perfectly again.
I know this sounds stupid because I have no knowledge of developing at all but is their anyway to get an .apk of the 2.1 or even the 2.0 lock screen and just install it, it seems that it would just repair the broken version in damages rom, and all we would need to do is manually disable the HTC lock screen.
Any thoughts?
mjz147 said:
Wow, you have put in a lot for that.
I am running damage control v.2r2 and I believe that because it is not an official rom, damageless did not put in unneccesary android suff, the lockscreen being one of them. Their wouldnt be a point in installing or including in the rom a perfect standard messaging app, if HTC has their own.
However someone earlier in this thread gave me an .apk of the HTC lockscreen after installing it and rebooting it worked perfectly again.
I know this sounds stupid because I have no knowledge of developing at all but is their anyway to get an .apk of the 2.1 or even the 2.0 lock screen and just install it, it seems that it would just repair the broken version in damages rom, and all we would need to do is manually disable the HTC lock screen.
Any thoughts?
Click to expand...
Click to collapse
The Android lockscreen is part of the framework, separating it out would create other problems within the ROM. There isn't an "Android lockscreen" APK, the code is built into services.jar, framework.jar, policy.jar, and framework-res.apk.
I did have another thought, maybe there's something in the HTC code that is conflicting or overriding the stock settings. I'll take a look at some of the com.htc files tomorrow and see if anything jumps out at me.
-Daryel
daryelv said:
So, I really wanted to get the Flan Lockscreen working/appearing correctly so I started digging into the layout XMLs in framework-res.apk.
From what I can tell, it's forcing everything into the left 100 pixels of the screen causing things to wrap.
My first thought was to override the widths/heights from the -1 and -2 values to actual screen values (240x320). I updated most of the keyguard*.xml and screen*.xml files (hexedited) but the screen is still garbled. There may be a parent screen that is causing the restriction still though.
My second thought was there's an image file missing or is sized incorrectly. I pulled all the .pngs from DC1.0 (it was working there, correct?) framework-res.apk and placed them in the newer framework-res.apk. This changed the screen so that the slide buttons are at least visible (they weren't showing on DarchLegend at all) even if in the wrong place.
There might be something in the smali code that is preventing things working too... I still need to look into services.jar and policy.jar.
If anyone has any other ideas or insights, please let me know.
-Daryel
Click to expand...
Click to collapse
I luv to see someone trying to fix this.....still using the screwed up version still like it messed up more than anything else.... *** dcv1.0 it was working fine as well as some others** Thanks for keepin this going!
daryelv said:
The Android lockscreen is part of the framework, separating it out would create other problems within the ROM. There isn't an "Android lockscreen" APK, the code is built into services.jar, framework.jar, policy.jar, and framework-res.apk.
I did have another thought, maybe there's something in the HTC code that is conflicting or overriding the stock settings. I'll take a look at some of the com.htc files tomorrow and see if anything jumps out at me.
-Daryel
Click to expand...
Click to collapse
that would be great. That sounds about right perhaps their is something in damages rom that are overriding the stock setting?
I wonder though if someone running a stock rooted hero rom, could remove the hero lock screen and get the normal android "menu" lock
You know what? I bet it IS somewith with the HTC settings. Why else would they push out the ROM with all the HTC stuff working and not the Android lockscreen working? Because we're not supposed to be modifying the phone in the first place! So therefore HTC is adjusting the settings without regards to what Android stuff will be broken (because they assume we are going to only use Sense). Good thought.
if i remove it? when i unlock it will i get the animations? like on the normal htc losckreen or no?
Can anyone offer some insight on the SDK emulator? I'm trying to test out a new framework-res.apk/services.jar for white notification/clock text on froyo. trying to push it to an AVD(emulator) but getting errors:
"C:\Users\pwner>adb push C:\Users\pwner\Desktop\Theme\framework-res.apk /system/framework/framework-res.apk
failed to copy 'C:\Users\pwner\Desktop\Theme\framework-res.apk' to '/system/framework/framework-res.apk': Out of memory"
can't find anything about this on the web. sorry, know it's a noob question but i'm very much so looking forward to having a black theme back on my nexus + froyo. i'm also going to be developing my own themed* ROM which depends on white text.
any help would be greatly appreciated.
---
edit: using an emulator because i don't want to blow up my phone
edit2: yes, i've reviewed the documentation here: http://developer.android.com/guide/developing/tools/emulator.html
you ever figure this out? seems there is a way to change the clock color on froyo now, but i'm clueless.
RogerPodacter said:
you ever figure this out? seems there is a way to change the clock color on froyo now, but i'm clueless.
Click to expand...
Click to collapse
yeah totally thanks to all the help to everyone who replied. LOL. NOT.
no, i never did. i quit screwing with the emulator.
there is a way yes, BUT, we need a fully deodexed froyo rom first. paul over at modaco has deodexed the build but hasn't released the deodex pack for the kitchen. once he does, i'll be building/releasing a theme. till then. we are fuct
edit:
more info over here:
http://forum.xda-developers.com/showthread.php?t=698295
This could help:
http://forum.xda-developers.com/showpost.php?p=6778975&postcount=86
Did you get this worked out? I haven't had much time over the last 36 hours but may be able to assist now since I've done it a few times.
Although I don't know much about using an emulator, I always use a handset.
So, if you think I can help, either with your patching or your future rom, let me know.
DocRambone said:
This could help:
http://forum.xda-developers.com/showpost.php?p=6778975&postcount=86
Click to expand...
Click to collapse
djmcnz said:
Did you get this worked out? I haven't had much time over the last 36 hours but may be able to assist now since I've done it a few times.
Although I don't know much about using an emulator, I always use a handset.
So, if you think I can help, either with your patching or your future rom, let me know.
Click to expand...
Click to collapse
Hey thanks for the advice guys! Well, I've actually gotten a ported Kspec theme set up on my phone right now. Only problem is that I just pushed the framework and launcher and apps to my phone using adb push. so no update.zip
So what I could really use some advice on would be:
1. Setting up my PC for signing apps that I modify. I use windows 7 though. none of the articles about setting up signing seem to pretain to me, including stericsons guide
2. Creating update.zip files to flash(sure i can find more info on this in the forum but with out signing ability not too much point right now).
3. using apktool to decompile apps to edit XML files. this is so i can change the text on the music app's text color to white(so now playing shows up properly in the notification bar) along with other apps I use so I can theme and change font colors such as touteir, etc.
other than that, I'll be working on images to get my custom rom out! This is what I have on my phone ATM:
PLEASE NOTE THAT THIS IS NOT MY THEME. just ported it from brendank's kspec monster theme. i hope he wont mind that i'm sharing screenies of what i'm using on my phone here, and i have no intention on releasing his theme at all...i am using it as a temp theme so i don't go insane with all the white on the phone till i make my theme. anyways, screen shots attached.
edit:
just for anyone who cares, my theme will be very similar to the kspec monster theme(all black, with transparencies), but will have blue high lights to match the blue on the clock on my home screen.
Okay, there's a fair bit to answer there so perhaps we just take it one step at a time...
Windows 7 is not a problem. You will need to install the Android SDK and the included USB drivers. Once you've done this test that your phone can connect to your computer by USB, if not you'll need to diagnose that (that's a search).
You need the JRE (Jave Runtime Environment). You probably have this, type java.exe at a command prompt to make sure it exists, if not then download and install (any Windows version).
The you need to check that adb (Android Device Bridge) is working. Drop to a command prompt and go your SDK/tools dir and type adb devices with your phone plugged in via USB. It should display the serial number of your connected phone. If it does not then you need to diagnose your adb problems (that's a search).
The you need to autosign (search this forum) and apktool (search google), these will allow you to decompile/compile/sign apks and also sign update.zips.
Once you have all of that and you're familiar with how it basically works then post back here with some of your experiences and we'll take it to the next step.
Please also look in the Chef's Central sub-forum, there's lot's of helpful information (including many of the required tools) in there.
geahboi said:
Hey thanks for the advice guys! Well, I've actually gotten a ported Kspec theme set up on my phone right now. Only problem is that I just pushed the framework and launcher and apps to my phone using adb push. so no update.zip
So what I could really use some advice on would be:
1. Setting up my PC for signing apps that I modify. I use windows 7 though. none of the articles about setting up signing seem to pretain to me, including stericsons guide
2. Creating update.zip files to flash(sure i can find more info on this in the forum but with out signing ability not too much point right now).
3. using apktool to decompile apps to edit XML files. this is so i can change the text on the music app's text color to white(so now playing shows up properly in the notification bar) along with other apps I use so I can theme and change font colors such as touteir, etc.
other than that, I'll be working on images to get my custom rom out! This is what I have on my phone ATM:
PLEASE NOTE THAT THIS IS NOT MY THEME. just ported it from brendank's kspec monster theme. i hope he wont mind that i'm sharing screenies of what i'm using on my phone here, and i have no intention on releasing his theme at all...i am using it as a temp theme so i don't go insane with all the white on the phone till i make my theme. anyways, screen shots attached.
edit:
just for anyone who cares, my theme will be very similar to the kspec monster theme(all black, with transparencies), but will have blue high lights to match the blue on the clock on my home screen.
Click to expand...
Click to collapse
I love the Notification bar on that theme... You think I could get the string for that or maybe the theme to extract the framework-res.apk and services.jar?
Just recently been into themes and knew how they work.
If I use some kind of batch image resizer to resize hdpi png's to mdpi, and put those resized in drawable-mdpi it would work.
Am I correct? I see no reason why it can't be as easy as that.
I resize them with GIMP. Don't know what you use but in theory have to work
well, i don't know any coding language.
Maybe someone could make a script to resize images??
it would be a pain in the a** to resize them one by one
There are many batch resize windows apps that will let you convert a complete folder full more at once..
just google it
Sent on the run from my Magic 32A
It will not work on many .9.PNG files unless you resize them from source. Sorry but I've tried it with my theme. .9.png files are not just normal png files. They are made to stretch and readjust depending on the orientation of your device (landscape versus portrait) and may have what is called 'guides' coded within the images to tell the OS how to display that graphic. If you were to edit that file in any way those guides are over written and it messes up your whole theme. So if you were to use a batch resizer you would probably experience a disgusting looking interface coupled with acore crashes. Unless of course you used the files from source and just created the app from the source code. But who knows you might get lucky and whatever app that you are trying to theme may not use those pesky .9.png files.
Binary100100 said:
It will not work on many .9.PNG files unless you resize them from source. Sorry but I've tried it with my theme. .9.png files are not just normal png files. They are made to stretch and readjust depending on the orientation of your device (landscape versus portrait) and may have what is called 'guides' coded within the images to tell the OS how to display that graphic. If you were to edit that file in any way those guides are over written and it messes up your whole theme. So if you were to use a batch resizer you would probably experience a disgusting looking interface coupled with acore crashes. Unless of course you used the files from source and just created the app from the source code. But who knows you might get lucky and whatever app that you are trying to theme may not use those pesky .9.png files.
Click to expand...
Click to collapse
Thank you for this Binary100100..
In a regular theme, about how many pngs are .9?
and what do you mean "created from source"?
MicroMina said:
Thank you for this Binary100100..
In a regular theme, about how many pngs are .9?
and what do you mean "created from source"?
Click to expand...
Click to collapse
.9.png with guides? I have no clue. For an entire rom... I would say over a hundred easily. There are about a dozen of them just in the Dialer app itself. If you modify any one of them the whole thing get's messed up. It's very delicate. What do I mean create it from source? Download the source code from HTC website on a Linux machine and create the ENTIRE rom from scratch. It's not that hard actually once it's all set up. Before you do the "make" command you would do your xml edits, resizing, color edits, etc. You can tell what a .9.png file is because it has a line on the right of the image and a line on the bottom beneath it. It will have a black pixel at the top and one on the left. So you edit those files the way that you want it and then create the app or the entire rom. If you chose to create the entire rom then remove the parts from the rom that you don't want in your theme and then make an update-script file for your flashable theme. Nobody said that making a theme is fun or easy and in many cases the developers of the theme (like myself) do it just because they did it for their own device and chose to share their work. On average if you want to create an entire theme it will take you at least 30+ hours of work if you are already set up and knowledgable with Linux and image editing. That's how long it took me anyway.
Thank you for this very informative post.
I guess its not that easy after all. Maybe one day I could try it.
Thanks again.
MicroMina said:
Thank you for this very informative post.
I guess its not that easy after all. Maybe one day I could try it.
Thanks again.
Click to expand...
Click to collapse
Oh it's plenty easy, it's just very time consuming to make a theme from scratch and since you can't take a 3kb file measuring 20 x 20 and turn it into 36 x 36 and turn it into a 5.4 kb file without losing resolution (thus defeating the purpose of being on a AMOLED HD display) even if you were to suceed it probably still won't look very good. Think of it like this. Take a standard 800 x 600 video for your non-high definition television. Sure it looks alright but what about if you displayed it on a 1080p television. Is the picture going to look any better? Not really because it's the quality of the video and not the television itself. Now, if you could enhance the video... it would make a huge improvement. But by simply resizing the images wouldn't really do anything for a HD screen (my theory anyway).
But if you build everything from the source code (that is such as Cyanogen's github) and edit all the images from scratch then you shouldn't have a problem. But it is VERY time consuming like I mentioned before. I loathe the idea of upgrading my phone now because that means that my current theme along with all of the work that I've done with it... will be obsolete until I can do it all over again from source. Ugh.
I was browsing around and found this:
http://forum.xda-developers.com/showthread.php?t=813162
and tried pushing and pulling the anim folder and all worked great, except everything!
the flip animations worked, but every app FC'ed.
so i basically only saw the flipping during the fc screens!
looks great, but doesn't work.
i have NO CLUE how to make it work.
what needs done to the files to get it to work?
and i MAY need the stock anim folder from our phone please!
by MAY i mean i do badly!
thanks!
:scooter:
Back when I was running Zen-ROM I was using Envynet's Elegant Envy theme, seen here: http://forum.xda-developers.com/showthread.php?t=768540
It had very similar animations to what I saw in the video...hopefully you can pull something from that.
i'm going to look into that.
thank you very much
Just wanted to say first time I pulled com.htc.resources.apk and pushed to that (made a backup before I modified) so after I pushed it nothing happened..
Then I pulled framework-res.apk and ploped the anim files in that.
Well now I get some really cool flip style transitions on my status bar up top, but no flip clock... Or is this what it's about? BTW, I got NO fc's on this either. If you want the framework-res.apk file, i'll post it.
Either way at least the flip style status bar will make a great addition to my roms
i could only get the ones from the dark to actually work.
all others wouldn't unzip.
so i'm giving them a go now.
i'll keep you posted.
sure, let me have what you got.
i'll toy around with them a little too.
thanks
so, the aria dark framework-res didn't work.
same thing.
force closes, but they flip!
by the way,
i'm using cm6 with adw launcher.
andro green theme.
i'm going to try LP instead of adw.
I believe envynet has did this before with his Envy Aria theme as I remember the flipping animations when i used that rom and his theme.
http://forum.xda-developers.com/showthread.php?t=768540
i tried those from Envy.
no avail.
still the same FC's as before.
rideascooter said:
sure, let me have what you got.
i'll toy around with them a little too.
thanks
Click to expand...
Click to collapse
Here's my framework-res.apk file:
http://www.mediafire.com/?1xdbf9w9308cwe2
All I did was pull the original from my phone, merge the anim directories with the file you provided and pushed back and voila! flips animations (between screens)
....
I just noticed you said your using cm6...
Well, I guess I better warn you.
I am using HTC Stock 2.1(base). And I am on Cellular South not Sprint, so definitely make a backup of your current framework-res.apk file before pushing this one.. dunno if it will work or not but hope so.
Thanks Hex:
Still gettting FC's.
i'm guessing it doesnt like AOSP.
i haven't had any luck with anything i've come across.
but they have ALL been from sense based roms. i think ....
i think i'm going to need some help on this.
anybody?!
Man this would be cool
it looks great,but ....
i can only see it on the FC screens!
Sounds to me like the xmls in that anim folder have settings pointing to various Sense related stuff (as I am finding out the hard way on my minimalist rom atm)
What you would need to do is decompile the xmls from cm6, and the xmls from the flipping anim folder and go through one by one merging just the flip code related to the animations and remove any sense related links... Which if I remember correctly are going to be addresses AND memory pages. This may prove to be quite tough to decipher.
Yeah I just think the .zip you found doesnt like aosp. I got it to work on my sense rom thanks to Hex. Now I like the animations.
Thanks man, always glad to help!
and how do i edit / decomplile these?
point me in the right direction, and i'm on it.
i want this to happen.
i'll probably hate it after a while, but i keep getting teased with the fc screens.
so for now, i want it!
what do i use to view xmls to edit them?
bump this up for a little help?
Shoot man, mah bad. I was meaning to help you.
#1 you need apktool:
http://forum.xda-developers.com/showthread.php?t=640592
This decompiles apks. I have never used it so... ymmv, but I have heard this is the best tool to do so.
Alternatively you can use xmlprint:http://forum.xda-developers.com/showthread.php?t=514412
This decompiles apks to text files, however it does it 1 by 1 and does not re-compile them into native bytecode, however at the same time since it's just one folder you may prefer this to apktool for decoding (but you still need apk tool to recompile them)
For CM6, instead of decompiling all of them, it may be better to just go grab the source for CM6. You can get that here:http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Hero_CDMA
This wiki also gives a howto for compiling the code afterwards. The upside is you can tweak CM6 to your liking. The downside is... compiling the whole thing.
If you find a fast easy way of compiling just the files you need, you can just merge them with your current cm6 install.
DO A NANDROID FIRST SO IF YOU MESS IT UP YOU CAN GO BACK!!!!!
Hope this helps man!
Alright, so we all love swype, and with the developers not wanting to share means you cannot load a theme'd apk file, this seems like the next best route, teach you how to make your own and gives the tools to make it easy!
I am not distributing Swype here, so plz don't ask, this is how to theme your current Swype set up.
Disclaimer: This is my first attempt at themes, and since im just offering my work for freeeee, don't give me crap if I overlook'd something just politely inform me and I'll do what I can. Also I only have my Droid X for testing so its kinda on you if your keyboard is not similar to mine for now. Also, im not even going to attempt to water mark this or put some symbol to show I made it since I'm giving you the files you could just remove it anyway plus they are annoying to look at, so plz just dont take credit for my work.
So first things first, to ensure this post is quick and to the point you will need to already have a few things up and running,
Currently I use keyboard manager so portrait orientation is Swype, and landscape is multi-touch since its too wide to be efficient with swype, therefore; I only created templates for portait swype so far, sorry.
ADB
WinRar(for exploring apk)
Adobe Illustrator version CS 1 and up (for editing templates)
Adobe Photoshop (for resizing keyboard images)
Side Note: Other programs will work, and other methods work, these are just tried and proven so your on your own or at least quite possibly beyond the realm of my help by using different editors.
Step 1:
ADB pull the Swype.apk file from system/app
Step 2:
Back up said Swype.apk file to ensure you can revert to stock
Step 3:
Open apk and extract "assets" folder to an easily accessible location with WinRar
Step 4:
Download 4 Illustrator Templates attatched
Step 5:
Edit templates as you see fit (font, size, color, button color, background color, GO CRAZY!)
Step 6:
From Illustrator export as .png file (make sure to keep the same file names!)
Step 7:
In Photoshop, resize images to same size as the stock ones in the folder /assets/keyboards, (480 x 320 for Droid X but you should check yours to make sure)
Step 8:
Place your newly made and sized .png files into the previously mentioned /assets/keyboards folder overwriting existing. You can make other changes here, I was focusing on the keyboards here because they are the most tedious to change but go ahead, Run Amok. "Amok Amok Amok Amok" yeahh line from the movie "Hocus Pocus" ANYWAY
Step 9:
re inject Assets folder into Swype.apk overwriting old, (i usually delete Assets, then inject to ensure overwrite)
Step 10:
ADB push back to phone and switch input method back to Swype
Step 11:
Show off your newly customized keyboard!
Step 12:
Post your .png files to help the community and show off what you did!
Alternate Lazy Way: Sit around wait for a cool keyboard to be posted and leach, simply inject someones .png files into your Swype.apk
Daves Dark Theme 1
Alright so here is the .png files for my first theme, just to get the ball rolling. Lets see what you got!
HOLY SHYTE I was planning to create AI files for this and Launcher Pro Icons, this will save some time
Any chance you have LP Icons in vector format too?
Dude.
Thanks for providing .AI files, what a great contribution! I was going to take the stock png's and photoshop them. This is much cleaner!
You don't have full-width .AI's laying around do you?
Morkai
sorry I just started making themes last night, so I don't have any Icon files lying around. Although, in the newer versions of Illustrator you can use "live trace" to make vector formats from raster images.
Jeftep
You're asking about the landscape aspect ratio keyboard right? Currently I didn't make it yet if I do landscape it will be for the stock multi-touch keyboard first then maybe id get around to swype. The keys are just too spaced out to be efficient to use with 1 finger.
And yes, thats exactly where I started too, "well lemme just see what I can do with photoshop.... awww screww it Fresh Start in illustrator"
So sorry thats a no to both questions, but come on, I just started.
SharkBaitDave said:
Morkai
sorry I just started making themes last night, so I don't have any Icon files lying around. Although, in the newer versions of Illustrator you can use "live trace" to make vector formats from raster images.
Jeftep
You're asking about the landscape aspect ratio keyboard right? Currently I didn't make it yet if I do landscape it will be for the stock multi-touch keyboard first then maybe id get around to swype. The keys are just too spaced out to be efficient to use with 1 finger.
And yes, thats exactly where I started too, "well lemme just see what I can do with photoshop.... awww screww it Fresh Start in illustrator"
So sorry thats a no to both questions, but come on, I just started.
Click to expand...
Click to collapse
Are you saying you can use one keyboard portrait and the other Landscape? Please say you are.. and do tell how!!
Morkai Almandragon said:
Are you saying you can use one keyboard portrait and the other Landscape? Please say you are.. and do tell how!!
Click to expand...
Click to collapse
yepp! and its Amazing!!!
http://getandroidstuff.com/download-keyboard-manager-android-dual-keyboard-switch-portraitlandscape/
Batman Theme
Thinking about Batman Theme'ng out my phone, I'm not sure what the keyboard needs, but its not quite there yet...
SharkBaitDave said:
Alright, so we all love swype, and with the developers not wanting to share means you cannot load a theme'd apk file, .......
Click to expand...
Click to collapse
.......?
Ummm.. I have always shared how to theme with whom ever has asked.. plus all mine are simple to load... some swypes are custom to certain themes, and in those cases the dev's aren't going to spend time explaining how to do each part.
Not trying to bash, just stating a point.
As many know i have made quite a few swype themes(check sig), and many custom order for other devices who "technically" arent supposed to have swype.
If anyone needs help modding the tracer, or if you run into the "amp&" issue when playing with any other KB's i will be happy to help.
Good work btw, all the extra people theming makes more stuff avail, never anything wrong with that.
Swype C&D
Alright thats my fault, I meant the developers of Swype, not the XDA community.
http://www.xda-developers.com/announcements/xda-notice-swype/
this is what I was talking about with not really being able to share swype on the forum in an installable format. I was just trying to show a new way we can still all share themes while keeping the forum out of the firing range of C&D letters or worse.
While I'm certainly not claiming this to be a breakthrough in any means as its simply another way we can continue to share themes for this great app. I definitely agree there is a better way to install than this run around...
Have you modified the tracer for version 1.64.40.9380? I found a few forums that showed how to do it, but only in the newer versions and not droid X. Is libSwypecore.so different by Swype version? manufacturer?
http://forum.xda-developers.com/showthread.php?t=801770
Says to modify 5b410, 5b411, and 5b412 for Blue, Green, Red but it doesn't seem to change the color after I push it back to the phone. I got a newer version, but it was configured for 800x480 not our screen and repeadly threw errors.
Thanks
ahh, agreed. The creators are definitly unfriendly towards devs.
you are correct on the file to edit for the tracer. If you open up an unmodified .so file and search for the string "dda25bff" that is the hex color part. Since its in hex its backwards. The proper color code would be ffb52add. So say you wanted to make the color black = ff000000. You would type it in reverse 000000ff.
Only change that string and you should be good.
Tracer Edit worked like a charm, thanks.
Sketch theme
just found an new ADW theme and wanted a sketchey/hand drawn style KB
how do i complete step 4? where are the 4 Illustrator Templates attatched?