Replacing the lock screen in the framework: where to look? - G1 Android Development

I'm a big fan of the Hero slide-to-unlock function, but the only way it appears to get something like this on non-Hero builds is the Lock 2.00 app, which appears to have lots of problems since Android is not designed to have a user replaceable lock screen.
I would like to dive in to the framework and find where the (non-pattern, just push 'menu') lock screen is and see about replacing it. Things like a battery meter, emails, etc., that appear on Hero wouldn't be included since that requires tying in to all sorts of other things, as well as being a battery drain. In my mind ideally it would work as so:
1. Any key press wakes the screen
2. Slide down to unlock
The Android platform source is pretty intimidating when you don't know where to look though. Any devs want to point me to where in the tree the source for the 'Push Menu to unlock' screen is?

layout xml is in core/res/res/layout/keyguard_screen_lock.xml
some strings in core/res/res/values/strings.xml
That should get you started, I'm not sure where the rest of the code is, but this seems to be all Stericson modified.
[edit: I found the keyguard code for you. Check out various files in: android_frameworks_policies_base/phone/com/android/internal/policy/impl/ ]

Ah, OK, that helps, thanks. This will at least let me fix another pet-peeve: the giant carrier name and small date/time under it. (Because I really need to be reminded I'm on T-Mobile's service every time I unlock the phone. Just in case I miss the branding on the handset or the large text in the notification tray or something.)

pm'd you, in case you didn't notice my edit

Aha, there it is in LockScreen.java. As a test I changed it to allow a simple touch to unlock in addition to pressing the menu key. Now to figure out how to build this thing. (Even better, how to build cyanogens ROM, as I know that one works and works well.)

atomtom said:
Aha, there it is in LockScreen.java. As a test I changed it to allow a simple touch to unlock in addition to pressing the menu key. Now to figure out how to build this thing. (Even better, how to build cyanogens ROM, as I know that one works and works well.)
Click to expand...
Click to collapse
My bet would be to message Stericson or Cyanogen for some help compiling it and implementing it if you need it. To my knowledge, the Cyanogen roms still use some mods that Stericson made to the lockscreen.

Related

Relocate Lower taskbar/system tray WM2005??

Is it possible to relocate the lower taskbar where the bluetooth/running program icons sit??
I want to move it down into the softkey position as i have found a program to disable this from this site:
http://forum.xda-developers.com/viewtopic.php?t=27331&highlight=16
From Buzzdev.net it seems that the lower taskbar is in fact HHTaskbar and on searching the registry for this please see image below.
I think it must be controlled by a registry setting no?? any ideas?
Registry seems to point to /windows/shell32.exe
anybody able to look into this file?? maybe something in there, something must instruct the taskbar to appear at that exact location so hopefully it can be moved?!
Images below show my screen current and my screen when taskbar activated
Thank you for taking time to read this.
Darren_Bridgeland: there is another program out to hide the tray, but I forget what it's called. I'll be releasing an update of VJToggleToday as soon as I can finish off a few things on it. Hopefully be working on it this weekend... but I say that every week
This is an issue you guys need to think about though:
- hiding the tray is fine, but consider that when we do need access to the Tray, which occassionally we do, would you like it as an overlay as you have it now, or revert all of the changes made by VJToggleTodayWM5, which will optionally be:
- toggle tray
- shrink start bar (top)
- shrink soft buttons (bottom)
- expand Today screen
I future version of VJToggleToday will do some more funky stuff with the Tray, but for now, we need to consider - should I hide the tray/unhide and revert all changes, or hide/overlay similar to the current "feature" in the old WM2003 version you're using.
V
Thank you for answering so quickly vijay555 I was just looking at your personal website, great work your doing there
I absolutely love the clean look your togglenew program has given my device but unfortunately I agree that the system tray is needed.
All im hoping for is a way to relocate the tray into the old 'new menu' position at the bottom underneath Ilauncher in my screenshot. I can then reduce pocketbreeze size and away i go lol
Is this possible?
But if I mush the tray down to where the soft keys would be, what about the sofkeys?
Relocate the tray above the soft keys?
VJToggleToday works on relatively simple ideas, but the permuations are the pain of it - if I shrink the Start bar, I have to account for it in the Today screen, the soft buttons and the Tray. If I hide the tray, I have to account for it likewise. However, if I don't hide the tray? If I don't shrink the SoftButtons? Und so weiter.
VJToggleToday is going to need a config dialog I think. And a clear head to program stuff like tray toggling. The basic code is done though, I hope. I haven't looked at it for a while - so busy on VJCandela cross compatibility and something else - old, but new, coming soon :wink:
V
If you look at my screenshots I currently have my screen full, Ilauncher is sitting right at the bottom where the softkeys WOULD BE. Im asking for the tray to be INSTEAD of the softkeys (so to be EXACT the tray needs to be located 26pixels lower than its usual postion). Then I can reduce pocketbreeze by 26 pixels.
At the moment the tray cuts right through Ilauncher as Ilauncher is sitting in the tray & softkey position.
Is this clearer??
I understand that Darren.
In my WM5 screenshot, I've minimised the soft keys to 2 pixels rather then remove them completely, on the basis that you might still want to tap on them with the stylus (I do this with my Magician's start bar (top), which is minimised to 2 pixels and then overlayed with a 24 pixel PhoneAlarm skin
However, if you KNOW you will not need this, ie only use the hard keys to access the softmenu, then I can make it an option to entirely remove the softkeys (however - the SIP icon overlay still seems to enjoy popping up. I'll investigate that later).
I'm intending to make it optional to configure the size of the softkeys and start menu, from 26 pix to 0. Maybe make it bigger then 26 pix for VGA screens? That might be cool.
V
That would be a good feature to be able to configure the menu's size. So just out of interest the togglenew program, does that disable the softkeys or shrink them? Ive remade my wallpaper to be 26 pixels large and nothing appears clickable, I assumed it completely disabled them (think im getting confused lol)
Trouble is even if you disable/shrink softkeys how will you move the system tray to the bottom of the screen??
It cant be via another program as people will want to butt programs up to the tray, so you'll need to find the code that currently locates it and alter the code perminantly no??
You're using the old VJToggleToday which is Wm2003. That's hardcoded to hide the New menu on Wm2003, and by accident the soft keys on Wm5. But for the Wm5 it's more sophisticated internally (hence then new WM2003 version as well, which will be more foolproof).
The new version will permit resizing of the soft keys, and I guess the start menu (for those who use start bar replacements).
Moving the Tray is no problem. On my WM2003 I used to use it like this:
VJHideStart
To permit hiding it, but bringing it back optionally. Future versions of VJToggleTodayWM5 will (hopefully) have similar options.
It cant be via another program as people will want to butt programs up to the tray
Click to expand...
Click to collapse
That's all part of the difficulties involved in writing it. There are lots of contingencies to take into account.
V
wow how did you move the tray?? was it hard/easy?
could i manage it??
Sure you could manage it, but through code. PM me if you want to discuss.
V
vijay555 said:
You're using the old VJToggleToday which is Wm2003. That's hardcoded to hide the New menu on Wm2003, and by accident the soft keys on Wm5. But for the Wm5 it's more sophisticated internally (hence then new WM2003 version as well, which will be more foolproof).
The new version will permit resizing of the soft keys, and I guess the start menu (for those who use start bar replacements).
Moving the Tray is no problem. On my WM2003 I used to use it like this:
VJHideStart
To permit hiding it, but bringing it back optionally. Future versions of VJToggleTodayWM5 will (hopefully) have similar options.
It cant be via another program as people will want to butt programs up to the tray
Click to expand...
Click to collapse
That's all part of the difficulties involved in writing it. There are lots of contingencies to take into account.
V
Click to expand...
Click to collapse
Is there any way to have the latest beta version of VJToggleTodayWM5 ? Thanks in advance.
Not really jolas: if it was ready to release, I'd release it, but I've been too tied up to work on it for a while. I'll try to have a look at this and a couple of other apps this weekend... I'm also releasing a couple of other new-ish things this weekend, so busy busy
V
Thanks for your reply vijay555. Please, try to release this app, it will be very usefull for me and a lot of other people.
Hope this weekend it a positive and productive one for you Vijay and cant wait to see the results :wink:
Hope to recieve a PM about the coding, but will understand if your trying to sort the program instead.
Take Care
Any news about VJToggleTodayWM5 ???
its next on vijay's priority list, hes just finished a couple of other programs. Hopefully we'll start seeing some progress over the next week or 2
Thanks Darren. See you're posting from Buzzdev!
Yes, as I've been saying for a while, my developments tend to dovetail together. I finally got a chance to do some work on VJFullscreenTSC this weekend, which I hope finally works properly. It's had minimal testing but it worked fine on my VGA universal.
But from there I learnt a couple of lessons I needed to bring back to VJToggleToday. It strikes me that this app should not be too hard to finish now. That's no promise - I've had some very concerning news recently about Vijay555.1, my little baby who is on his way. So as I'm sure you'll all understand, family priorities
But certainly, next on my plate is VJToggleToday, finally. And research has given way to a couple of new ideas that should also help a few left handed chaps out. But one app at a time...
V
ooh I hope vijay 555.1 is ok. Ive just had a little boy 3 days ago so good luck with that.
My 2 year old was a very traumatic pregnancy and first 15months of life so I wish you all the best
Many thanks Darren. News could be better on Vijay555.1, but it could be worse. All the best to your little one! Now the real hard work begins. I must be the only guy looking forward to having an excuse to be up at night, with nothing to do but program and look at the kid..
I'm only managing an hour or two coding on weekdays, and that's slow progress, barely one app to look at per night.
Yesterday was VJFullscreenTSC again (check out the new screenshots), but VJToggleToday is certainly next. I'm resisting VJTrayLaunch, which I also have some ideas for...
V
Please give us a beta!!!
Is any beta of VJToggleTodayWM5 ready to be releasead? Please, give us something test!

uninstalled HTC Lockscreen and got bad flan lockscreen

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?

[PORT][Progress Thread] CM Notification Window Power Control Widget for Sense ROMs

EDIT 11/11/10: See Here for the official release thread.
EDIT 11/8/10: See Here for latest progress / update
Okay, wanted to give you guys a sneak peek of a port I just started working on this past weekend, for integrating the CyanogenMod Notification's panel power control widget into Sense based ROMs.
Short of the rotary lockscreen I originally ported back in the day, this has been one of the most intensive ports I've had to tackle, but it's getting close.
I've got the port to a point where it is mostly functionality (some buttons are not working yet, etc), but as you will see in the quick video demo, the formatting, etc, is all FUBAR'ed.
The formatting issues "should" be relatively easy to fix, my main focus to this point was to get things functional, then worry about pretty-ing it up, etc.
You can see in the video I currently have the widget set to the options for 'Lockscreen|Flashlight|GPS|Silent Mode', and you will see when I toggle the right 2, that the status bar updates accordingly to reflect the change in mode/status, based on the toggle. You can't really see, obviously, the flashlight come on, but it is working as well, in addition to the lockscreen on/off toggle.
Anyway, just a sneak peek. It may be that I never get it fully functional, and this ends up being nothing but a tease, but, I'm pretty persistent... .
Awesome. I just started working on this last week for Zen's ROM. It is a very daunting task. I got everything to show up, but wasn't able to get it functioning. Smali editing sucks. I've also been working on editing the recent apps icons in the notification menu from Zen's ROM (And Desire HD I think) and customizing them to be shortcuts that I use. The recent apps is useless and I'd love to have my shortcuts there instead.
I'll be watching this to see how you make out. I've slowed down on this since I'm waiting to get a new phone.
EDIT: GOOD LUCK!
signals23 said:
I got everything to show up, but wasn't able to get it functioning. Smali editing sucks.
I'll be watching this to see how you make out. I've slowed down on this since I'm waiting to get a new phone.
EDIT: GOOD LUCK!
Click to expand...
Click to collapse
Thanks. Yes, .smali editing sucks, especially this type, where you can't simply replace smali files and update resource ids, etc, as the two services.jar files are vastly different as it relates to the status bar, so it has been a complex merger of the two.
I'm close, but need a break! I'll probably re-visit this more over the coming weekend, when I have time to dig in. I have more hours invested in this from last weekend than I care to admit, and the wife wasn't very happy with me as a result...
wow js!!!! i really like this feature!!! hope you get it fully functional!!!
JsChiSurf said:
Thanks. Yes, .smali editing sucks, especially this type, where you can't simply replace smali files and update resource ids, etc, as the two services.jar files are vastly different as it relates to the status bar, so it has been a complex merger of the two.
I'm close, but need a break! I'll probably re-visit this more over the coming weekend, when I have time to dig in. I have more hours invested in this from last weekend than I care to admit, and the wife wasn't very happy with me as a result...
Click to expand...
Click to collapse
I've been there one too many times!
VERY cool. I would for sure use this. I'm almost surprised no one has thought of this...it's such a genius idea...for something so obvious haha
Greenfieldan said:
VERY cool. I would for sure use this. I'm almost surprised no one has thought of this...it's such a genius idea...for something so obvious haha
Click to expand...
Click to collapse
I'd have to imagine others have thought of it, now pulling it off of is a different story . It is not a simple task.
I didn't know this existed in CM until I was working on porting a mod I made for hex editing the lockscreen/notification window banner text (carrier) on Sense based ROMs over to CM, which forced me to load CM for testing, then, EUREKA!
Almost wish I hadn't come across it
JsChiSurf said:
I'd have to imagine others have thought of it, now pulling it off of is a different story . It is not a simple task.
I didn't know this existed in CM until I was working on porting a mod I made for hex editing the lockscreen/notification window banner text (carrier) on Sense based ROMs over to CM, which forced me to load CM for testing, then, EUREKA!
Almost wish I hadn't come across it
Click to expand...
Click to collapse
LMAO!!!!!
10chars
I'm so glad you got an EVO JsChiSurf. This looks very promising! I was just pouring over the code changes in your rotary lockscreen port the other day to see if I could get it working on my EVO. Long story short, I crapped a brick and put that thought to rest.
nukedukem said:
I'm so glad you got an EVO JsChiSurf. This looks very promising! I was just pouring over the code changes in your rotary lockscreen port the other day to see if I could get it working on my EVO. Long story short, I crapped a brick and put that thought to rest.
Click to expand...
Click to collapse
Thanks. Yes, the problem with the Rotary lock is, on 2.1, HTC left most of the remnants in place, in 2.2, not so much, so it is going to take more work to pull off.
I think it is possible, but I haven't had the time or motivation to dig in. If someone else doesn't get to it first, it's on my list, but it's more fun to work on new stuff, rather than something I've already done before, so I'm less motivated to do it again .
This will be sweet. I loved it on my Samsung
Sent from my PC36100 using Tapatalk
bblanski said:
This will be sweet. I loved it on my Samsung
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
Thanks. Made some more head way this evening, but still much more to tackle...
This reminds me, I went digging into Sense to get the Mail widget to work in LauncherPro. Boy, what a PIA. I got it to show up and insert, but it wouldn't work. I figure there has to be a way to make it independent. I bet I'd have a lot of time to work on it if I got divorced...
i'm soo glad you got an evo bro. This will be sweet.
This looks amazing. Can't wait to see how it turns out.
Awesome man! Thanks for doing this, it is such a nice feature on the Galaxy S and CM 6.1. I hope it works out
Progress Report
Okay guys, getting real close on this port of the CM Power Control Widget for Sense ROMs. The video below will show you how far along I've come with this port. I've pretty much got most of the cosmetics corrected, but still have a few of the widgets to get functional, most notably bluetooh and wifi (don't think it will be an issue, just need to time to dig in).
This port/mod, upon release, requires changes to services.jar, and framework-res.apk, and as such, if you are using custom themes, edits, etc, you'll probably want to wait and see / request for your ROM dev or themer to take this as a base / starting point to integrate into their ROM or theme, as there is simply no way to do it the other way around. There are just too many edits involved to try and do this any other way in order to retain your previous mods / edits.
You'll see in the video that I actually moved the widget bar below the sprint banner / clear button area, rather than the default above. I think it looks better, curious what you guys think.
Also, while CM allows you to turn on/off widget options via the menu/settings area, I don't plan on going that far, and may either just fix it to 6 most popular, or provide a file on your phone that you can manually modify to specify the widgets (up to 6), you want to use.
Looking for opinions, based on the list below, if I were to fix it to 6, hard coded, what 6 in the list of available widgets would be preferred. Available widgets are:
Airplane mode
Auto rotate
Bluetooth
Brightness
Flashlight *
GPS *
Lockscreen *
Mobile Data
Network mode
Sleep
Screen Timeout
Sound (mute) *
Sync
Wifi
*Included in the video demo below.
Some of these I haven't test and am not exactly sure what they do, lol.
Also, curious what you guys think about the addition of toast notifications when a button is pressed (on screen text confirmation / message) and/or haptic feedback when pressed.
That's it for now. Again, getting close to a release soon.
WOW!
This is huge buddy
Awesome job.
My vote goes for:
Bluetooth
Flashlight
GPS
Wifi
Airplane
Brightness
Awesome work btw
I vote
Wifi
Mobile Network
Sound
Bluetooth
Auto Rotate
Lockscreen

[Q] Tools needed for theming/making own ROM?

I like Android. I liked some of the custom ROMs even more. Especially in combination with a theme. However, there are always certain things that bother me. That's why I want to make my own ROM. Since I do not have any skill in any program language, I'm not going to build a ROM from scratch. That wouldn't be a good idea anyway . And I don't need to. I'm just going to use a custom ROM as a base. So mainly what I want to do is theme.
This is what I want to achieve:
- I want to theme every single aspect of the OS, or at least as much as possible. I want it to be a whole.
- As I said, I'm not going to build a ROM from scratch. That would be impossible. But my guess is that there are things that are possible to change. For example, I should be able to change the order in which the buttons in the settings menu are shown, right? And the buttons itselves? The text on the buttons? Correct me if I'm wrong, but I imagined it as a big text editor file in which you can just change some text. For example, there would be a big code for each button with lots of numbers and symbols, but between those codes there would be plain english text which I could edit (for example, the Application button at the menu: I could change it to say "Apps" instead of "Applications"), and I could also change the order in which those codes are shown. Anyway, that's the sort of stuff that seems editable to me, and it's also the sort of stuff I want to edit. What doesn't seem editable (or not so 'easy' at least) to me, is the fact that you can't pulldown the notification bar in the lockscreen in CM7. This is just an example, but you get it. I want to change as much as possible about a certain ROM, but only the things that I can easily change, like the order of certain buttons or the text on certain buttons.
I just used those things above as an example. I do want to change the order of the buttons and the text on buttons, but it's not going to be the only thing I want to change. So keep in mind that it is just an example.
These are the tools that I found that may be useful:
- UOT Kitchen
- HTC Android ROM Kitchen (works on NS)
- How-to-theme guide on XDA
- A Metamorph guide on XDA
I don't know if I need UOT kitchen when I'm going to use that big How-to-theme guide. Probably not. HTC Android ROM kitchen looks nice, but I don't know if it can change the order of the buttons and the text on buttons and that sort of stuff.
Things I need help with:
- Is there or is there not a big text editor file in which I could just edit some codes, or isn't it as easy as that? I'm not going to change a whole code. Like I said, I only want to change what's easy to change, like the order of buttons or text on buttons.
- What ROM should I use as a base? CM7 is probably the best, because of course I want a lot of features in my ROM.
- Can I use UOT Kitchen in combination with that guide, or is kitchen completely useless when I use that guide?
- My most important question: What, do you think, is everything I can change with my knowledge? I don't have any programming skill, but I do have time. And besides, I don't even want to edit a lot of stuff in a ROM. Just stuff from the outside. So mainly theming. Not too much feature-like.
Long thread. If anyone can help me get started, that would be great!
Please? Can anyone help?
http://forum.xda-developers.com/showthread.php?t=886971
Found this above thread also very useful.
To clarify what I want some more:
Besides changing the order of the settings menu and the text on the buttons, I would also like to add some more settings. I would really like to have the voodoo sound settings integrated in the settings menu.
Again, those are just examples, but those are the kind of things I would like to change. So nothing major!

Making your own Lockscreen?

Is it possible on android to make your own lockscreen from scratch, or at least a custom combination type thing because I've had an idea for something that would be nicer then a numeric lock but less of a failure then pattern.
* In retrospect I probably should've scrolled down to android section, oh well.
Yes, is possible but you must know programing in java..
Been doing java for a couple years, could you point me to a reference or something that its been done before?
Well, you could go learn Java programming language and go from there, or you can use an app called WidgetLocker. It's free in the Play Store but there is also a paid version available for purchase. With this App you can change the slider on your lock screen and also add widgets like you would on your homescreen. You can also add app shortcuts to it. If you'd like to download more slider options go to this link: http://forum.xda-developers.com/showthread.php?t=968613
There are hundreds of options to choose from. Just download it to your computer then drag it into your phones SD card and it should show up in the slider options. I hope this helps you out!
Y'know I know you probably want to get your 10 posts going and all but I see nothing in your reply that has anything to do with the original statement.
Sorry EphemeralMirage if no one has been of great help to you lately, I think he was just trying to help you and he was just trying to be nice. He didn't clearly understand your question, but being a bit nice to others would help in this forum.
You should probably check this guide out, have a look at it and see if it looks like what you need.
http://androidforums.com/sprint-hero-all-things-root/48610-guide-creating-custom-lockscreens.html
Thanks that looks like what I'll reference, as soon as I get the source stuff hammered out and all.
If you are looking to actually create your own way to unlock the screen
that is different than taking a stock method and changing the graphic.
It was something that I was going to look into, but I haven't got that far.
In the Nook, the screen unlockers are implemented in /system/framework/android.policy.jar
There are apparently three of them already:
LockScreen - the standard slide to unlock
LockPinKeyguardView - a four digit pin
LockPatternKeyguardView - apparently a pattern lock
So theoretically just use the source for that, add in yours and see what happens?
Then again that might be easier said then done, into AOKP I go!
AndroidPlus
Check this website to make some basic apps. it is very useful for the beginners.
androidplus.org

Categories

Resources