yashsingh1/xdaforums huggingface dataset:
[Nexus One Themes and Apps] rori~:
Custom Lockscreen: Centered Style & Custom Background for CM 7.1

- just follow the instructions from CM 7..it´s just an update :-)

- picture 2.) is same as 1.) just disabled sliders, like that, as I unlook with a gesture.

- CustomLockscreenX71_morph.zip

- CustomLockscreenX71_tr_morph.zip

---------------------------------------------------------------

Custom Lockscreen: Centered Style & Custom Background for CM 7

[Tested on current 24/03/2011 nightly - passion]

I made 2 versions:

Version I.) CustomLockscreenX_morph.zip: Centered with a custom background

Version II.) CustomLockscreenX_tr_morph.zip: Centered with transparent background, which you cannot change

So you decide which to apply and enjoy!

---------------------------------------------------------------

How to Version I:

---------------------------------------------------------------

1.)

- put "CustomLockscreenX_morph.zip" in /sdcard/AndroidThemes/

- apply with MetaMorph

now you have a custom centered lockscreen background :)

]

2.) How to change your new custom lockscreen background:

- put "CustomLockscreen_my_morph.zip" in /sdcard/AndroidThemes/

- apply with MetaMorph

now you have your own custom lockscreen background :)

3.) How to make your own custom lockscreen background:

- exchange "default_wallpaper.jpg" in CustomLockscreen_my_morph.zip with your own (same size & jpg)

- put "CustomLockscreen_my_morph.zip" in /sdcard/AndroidThemes/

- apply with MetaMorph

now you have a your own custom lockscreen background :)

-----------------------------------------------------------

How to Version II:

---------------------------------------------------------------

1.)

- put "CustomLockscreenX_tr_morph.zip" in /sdcard/AndroidThemes/

- apply with MetaMorph

now you have a custom centered lockscreen with transparent background :)

---------------------------------------------------------------

Notes:

- Sliders, Clock font, Battery Icons are not included here !!

.
[Nexus One Themes and Apps] rori~:
Some custom....

- santiemanuel: CustomLockscreenPng_morph.zip #post

.
[Nexus One Themes and Apps] gaeng4665:
very very very nice! Will try that.... the seperate lockscreen background was always something i liked about miui and now we have it for cm --> :)
[Nexus One Themes and Apps] britoso:
Aha, so the lockscreen wallpaper is always default_wallpaper.jpg

I noticed this happen on my phone and didnt know why lol.:D

Does this always work? Right now I have a custom default_wallpaper.jpg in the .apk and the lock screen does not use it and uses the wallpaper instead.

Note that it was set in framework-res before I flashed the nightly.

edit: It cant be translucent as its a JPG, I wish it was a PNG
[Nexus One Themes and Apps] gaeng4665:
what did you actually change in the framework.apk?

I'd like to know, so i can apply it on my modded framework.apk... Plus i'd like to use it withe the niegtlies....

So what did you change in the framework??
[Nexus One Themes and Apps] britoso:
Just check the morph :)

framework-res\res\drawable-hdpi\default_wallpaper.jpg

edit: a layout\xml was added later
[Nexus One Themes and Apps] neok44:
wow, thank you so much for this. may actually be enough to make me hold onto CM a bit longer lol.
[Nexus One Themes and Apps] gaeng4665:
yeah i know, but it can't be the only thing.... otherwise we all would already have had a different lockscreen wallpaper......(the green gras wallpaper....)

Another file got moddded, must be some xml file...

BTW: i found the file, it's in layout....

Trying to apply... will see.

But still don't know what got modded in that xml file....?
[Nexus One Themes and Apps] rori~:
And feel free to post some nice lockscreen backgrounds :)
[Nexus One Themes and Apps] djdarkknight96:
You da man! Love this!
[Nexus One Themes and Apps] Zephyron:
Holy crap you are GOOD! I have a question, could we use PNGs instead of JPGs? Would there be any conflict issues?
[Nexus One Themes and Apps] rori~:
*lol, thanx.

For using png's one would have to find another way..

This works only for jpg's now.

Sent from my Nexus One
[Nexus One Themes and Apps] Zephyron:
Here are the BG's that Im gonna use for my lockscreen, enjoy!

edit: Ah shoot, need to edit resolution as well

edit2: fix resolution
[Nexus One Themes and Apps] britoso:
There is no XML file in the morph.

edit: the xml was added later
[Nexus One Themes and Apps] gaeng4665:
Yes that's true. The Morph only changes the default wallpaper in framework/res/drawable hdpi.

Only applying the morph will result in nothing.

In order to have a lockscreen wallpaper as well as a "normal" wallpaper, the keyguard_screen_tab_unlock.xml in framework/res/layout must be modified so the default wallpaper in framework/res/drawable hdpi will show as lockscreen wallpaper.

What i don't get is what has been changed in the keyguard_screen_tab_unlock.xml file.

So rori can you please tell me what and how you modified that xml file?
[Nexus One Themes and Apps] Zephyron:
Tried it and lockscreen still doesnt have its custom bg
[Nexus One Themes and Apps] gaeng4665:
You need to flash CustomeLockscreen.zip first in recovery, reboot then apply the morph and then reboot again. It should work that way.

Alternatively youn can modify your framework.apk and replace the file i mentioned one post earlier....

BUT i advise you to flash the zip file....
[Nexus One Themes and Apps] Zephyron:
I have, I flashed the zip, rebooted, and morphed, reboot, and its the default nexus live wallpaper. Changing to a different wallpaper, the lockscreen still just display the wallpaper
[Nexus One Themes and Apps] gaeng4665:
What happens if you change your default homescreen wallpaper?
[Nexus One Themes and Apps] Zephyron:
The lockscreen changes with the homescreen wallpaper
[Nexus One Themes and Apps] h9290:
I'm using fitsnugly roms, after update 5/21/2011 9:30am i got the boot loops
[Nexus One Themes and Apps] sonyboypatrick:
an update would be nice, can't use this on newest build of cm :(
[Nexus One Themes and Apps] djdarkknight96:
I agree but I also watch the changes being made and the Framework gets changed so much. I would be patient until they get the Framework completed. Then He'll prob update. Just FYI! ;)
[Nexus One Themes and Apps] driftkidd2323:
patiently waiting for an update :D
[Nexus One Themes and Apps] rori~:
Guys, my 2x dont even has a stable cm release, still all in progress :o

But the changes are very easy..if you decompile the file you see them immediately, shouldnt be hard to do your own update :)
[Nexus One Themes and Apps] djdarkknight96:
Duh, I should have thought of that. Thanks buddy!

DarkGingered CM7.1 G2x sent this on DarkXda app!
[Nexus One Themes and Apps] h9290:
how can i decompile it to the latest ROM and on going if you don't mind :) ?
[Nexus One Themes and Apps] djdarkknight96:
Search "apk manager" and "how to decompile" on google! If I get o

It working I'll post the xml file.

DarkGingered CM7.1 G2x sent this on DarkXda app!
[Nexus One Themes and Apps] sonyboypatrick:
decompiling/compiling is ok, but whats to change? sorry but I dont know how to decompile your xml and how to find the changes between your version and the build it was made for

a how to like --> http://xdaforums.com/showthread.php?t=852023 would be really nice :)
[Nexus One Themes and Apps] djdarkknight96:
I was looking last night but fell asleep. Take the xml and just copy to a framework. In the correct folder... Decompile the framework with his modded xml. Take another framework without the modded xml and decompile it. Compare the two. Just change values. Don't add any extra lines. There are a ton of differences. I just woke up. I'm going to try it too!

DarkGingered CM7.1 G2x sent this on DarkXda app!
[Nexus One Themes and Apps] jabdo79:
gotta love cyanogen
[Nexus One Themes and Apps] jvictor:
This would be the default style!
[Nexus One Themes and Apps] :
I'd like to see this availiable on the latest build for my Zte Blade. (I get bootloops)

But I can't open the xml file from the metamorph zip properly (using editpad) - what program should I use?

Or does anyone have source code for this? :P
[Nexus One Themes and Apps] djdarkknight96:
Attacted is the decompiled xml I just been to busy to make one for the current cm nightlies.
[Nexus One Themes and Apps] :
You sir, are my hero :D

I just never got on with apktool (ill give it another whizz though...)

I spose I have to "unencrypt" (or unscramble :p ) the relevent file from framework in my ROM. But hey-ho :P

I've got to do something by myself :P
[Nexus One Themes and Apps] djdarkknight96:
Haha, glad I could help. I'm about to try it myself later today. Good luck!

DarkGingered CM7.1 G2x sent this on DarkXda app!
[Nexus One Themes and Apps] :
Well the good news is:

I have an edited and re-scrambled (sorry for my bad terminology :P) keyguard_screen_tab_unlock.xml

And I apply it in meta morph and I *don't* get bootloops :P

The only thing is it hasn't changed anything -_-

Probably made some noob mistake here :P

Here is what I edited in my "unscrambled xml file" (and then "re-scrambled :P)

I changed it to:

android:background="@drawable/default_wallpaper"

(the only "relevant" [in terms of image] change I could find between the original Xml file from my ROMs framework and the one supplied here.

from

android:background="#70000000"

Could a file extension need to be used for the image?

Or does it have to be

@res/drawable/default_wallpaper

its probably because I have to change a load of files elsewhere or something

Fyi I used the same metamorph but replaced the .xml file that it pushes. (so the image should be included)

And Im using the tab unlock method :P

As you can probably tell I have no programming experience in any form whatsoever :P
[Nexus One Themes and Apps] djdarkknight96:
Good try but the one I posted was for the clock and time only. Much more is needed fire the wallpaper to be added. Taking small steps first. ;-)

DarkGingered CM7.1 G2x sent this on DarkXda app!
[Nexus One Themes and Apps] :
I'm such a pleb :P

Ah well anyhow I'll attack the one in the first post again tomorrow!

Thanks again.

baby steps :P - must look harder next time too :D
[Nexus One Themes and Apps] PeRRiiN:
Hello guys,

I have a question, I only want the text and time centered mod but my question is if this works with CM7.0.3 using a Nexus One?
[Nexus One Themes and Apps] Kenzy-FIN:
Hmm. What did I do wrong? I downloaded CustomLockscreenX_tr_morph.zip, placed it on /sdcard/AndroidThemes, downloaded MetaMorph from Market, gave root permissions for it and applied the theme. All I got is cyanogenmod splash screen looping all over again. I had to reflash the rom, couldn't get it working. How should the custom lockscreen be applied in correct way?
[Nexus One Themes and Apps] GooTz66:
Looks like the lockscreen may have been changed so nothing you do will work. There is another thread with same mod by AdhvanIt and he is trying to fix it.
[Nexus One Themes and Apps] Kenzy-FIN:
Hmm, ok. That would've been too nice to get it working ;) Maybe some day.
[Nexus One Themes and Apps] GooTz66:
Here is the thread if you want to follow

http://xdaforums.com/showthread.php?t=861421
[Nexus One Themes and Apps] rori~:
.. it's possible to update easily, but don't want to update everytime something got changed...

Sent from my Premium Xx
[Nexus One Themes and Apps] SynisterWolf:
If so teach me and I will continue the mod for others. But we have tried everything we can think of and its just boot loops on all nightlys 115 +

Sent from my sexy assistant. (AMOLED HTC Incredible)
[Nexus One Themes and Apps] GooTz66:
Awesome! I can't wait to have this mod finally work.
[Nexus One Themes and Apps] SynisterWolf:
Never mind mate. Looks like they made it a setting in the newest nightly.

Sent from my sexy assistant. (AMOLED HTC Incredible)
[Nexus One Themes and Apps] h9290:
Isn't it just the lockscreen background ?
[Nexus One Themes and Apps] GooTz66:
Correct, for now. Hopefully they will include a center mod sometime soon. Or hopefully the code is able to be altered more easily like before to allow for a centering mod again
[Nexus One Themes and Apps] SynisterWolf:
Centering worked it was the bg img was throwing the boot loop. I should be able to try again tonight.

Sent from my sexy assistant. (AMOLED HTC Incredible)
[Nexus One Themes and Apps] GooTz66:
Awesome, cant wait! :D
[Nexus One Themes and Apps] h9290:
Nothing new about the centered clock ?
[Nexus One Themes and Apps] djdarkknight96:
I got it to work on one nightly and the next day it was not working again. Best to wait for the official 7.1 release. Way to many changes still going on!

DarkGingered CM7.1 G2x sent this on DarkXda app!
[Nexus One Themes and Apps] GooTz66:
Hopefully they incorporate centering for lockscreen I'm CM7. I have asked about it and the development said it was doable. If more of us ask for it then maybe they can start working on it.
[Nexus One Themes and Apps] rori~:
Yes, it's doable.. just cm lockscreen got already so much cool stuff :) the demand for centered has to be a little bigger..

Sent from my Premium Xx
[Nexus One Themes and Apps] GooTz66:
Start spreading the word to all to request centering for lockscreen.

Ready? Break! :D

Sense 3.0 style lockscreen would be nice too! ;)
[Nexus One Themes and Apps] h9290:
added a request for it to be integrated on

http://xdaforums.com/showthread.php?p=16234203

where else?
[Nexus One Themes and Apps] avshi750:
nice, love more choices. thanks all.
[Nexus One Themes and Apps] rori~:
@Zephyron, so, it only doesnt work for you?
[Nexus One Themes and Apps] jhenson496:
It doesn't work for me either. Well it partially doesn't work. I flashed the file in recovery, then applied the morph and it did change to the cyanogen with steel background. The only problem is that's not the jpeg i have in the customlockscreen_morph.zip. I replaced the jpg image with a custom one but it will not apply.
[Nexus One Themes and Apps] Zephyron:
I dont even get the cyanogen with steel background after flashing and rebooting. Does me using darkfroyo theme affect it? After rebooting it does replace the themed framework.
[Nexus One Themes and Apps] rori~:
- ok, once you flash the zip, you already have the "new custom steel cyano background"

- this works, right?

- you checked your morph for probs?..probably post it and we check together :)
[Nexus One Themes and Apps] rori~:
yeah, this could be it.

you could contact contact @djdarkknight96 if he want to implement this.
[Nexus One Themes and Apps] Zephyron:
I just tried reflashing a fresh copy of CM6.1 and flashed the customlockscreen.zip but I still dont get the cyanogen steel bg, morphinh the CustomLockscreen_morph.zip without changing it doesnt change my lockscreen after reboot either. eh I dont know what to do Ive tried everything lol
[Nexus One Themes and Apps] rori~:
Very odd..

I see a lot of downloads - and few response means it worked out for the most...

You wanna try flashing cm_nightly #280 ??
[Nexus One Themes and Apps] britoso:
edit:deleted
[Nexus One Themes and Apps] Know-Fear:
Worked fine for me. Thanks for the new lock screen!
[Nexus One Themes and Apps] rori~:
Uff, glad to read that it worked.

Sent from my Nexus One
[Nexus One Themes and Apps] slonn:
Worked fine for me as well. Thanks for the lock screen :)
[Nexus One Themes and Apps] PauseZ:
Great! now I don't have to use MIUI just to get the custom lockscreen.

Just checking is there a way to change the lock screen clock color?

nt sure if I missed the setting or it's not possible.
[Nexus One Themes and Apps] rori~:
Haven't tried,but I'm sure it's possible...

Sent from my Nexus One
[Nexus One Themes and Apps] papatiago:
It's ok for me
[Nexus One Themes and Apps] brian.dore:
I have attempted this mod on my T-mo G2 running CM 6.1 (Stable). When i flash the .zip in clockwork everything looks like it flashed properly. Once the phone boots up I still have the wallpaper as my lockscreen bg. I would really like this mod to work as I use a a scrolling style homescreen based of of ChemicalGas's. It looks stupid with the wallpaper as the lockscreen as there is no dockbar to cover parts of the wallpaper with the scrolling icons. Any help getting this going would be appreciated.
[Nexus One Themes and Apps] rori~:
hmm..you flashed the NexusOne framework..dont know...

I probably will try, if this works mith a Moprh ....stay tuned
[Nexus One Themes and Apps] brian.dore:
Thank you, I figured it had something to do with the framework, gave it a try any ways.
[Nexus One Themes and Apps] rori~:
@brian.dore

Test this morph, please..

Not to flash...apply with MetaMorph only!
[Nexus One Themes and Apps] brian.dore:
Testing Now
[Nexus One Themes and Apps] brian.dore:
That worked perfect. Thank you for the quick reply and work. Once the phone rebooted I just had to reapply my old wallpaper. Do you mind if i post a link on the G2 forum for others to use?
[Nexus One Themes and Apps] rori~:
Great :cool:

Go ahaed and share it.

..gimmi some credit

Edit: so probably this morph works on all CM 6.1 devices
[Nexus One Themes and Apps] brian.dore:
Need more testers...

It would be nice if this was implemented into the CM Rom with a way to change on the fly like the Sense Roms.
[Nexus One Themes and Apps] rori~:
I changed OP thanx for your request :)
[Nexus One Themes and Apps] Zephyron:
I figured out what was wrong, it was because I was using the patterned lockscreen option in CM. Any chance to make it work for a patterned lockscreen?
[Nexus One Themes and Apps] santiemanuel:
I made this metamorph using jog_dial_bg.png image and took a ginger wallpaper, converted to png, resized and applied transparency, oh and xml modded too(to take the jog_dial_bg image). Result and metamorph attached.
[Nexus One Themes and Apps] rori~:
...nice ! :)
[Nexus One Themes and Apps] rori~:
- :):p good, now we know what was wrong

- no idea, will have a look...
[Nexus One Themes and Apps] musashiken:
I'm guessing this doesn't work for themed CM 6.1?

I get bootloops... no not even bootloops but my phone crashes even at the first second the CM bootscreen appears.

I'm using the the latest iNexus theme for CM6.1..
[Nexus One Themes and Apps] rori~:
..better contact your theme dev and ask him

Sent from my Nexus One
[Nexus One Themes and Apps] d750:
Works great on latest cm nightly.
[Nexus One Themes and Apps] Stea1thmode:
Thanks,

it's been a long time comin' only just saw this over on the g2 forum:cool:
[Nexus One Themes and Apps] rori~:
Yeah, long time ..glad you like it :)

Sent from my Nexus One
[Nexus One Themes and Apps] santiemanuel:
Rori would you care to add my morph to first post? Thanks.
[Nexus One Themes and Apps] rori~:
No prob, gladly....will do when I am on my PC again.

Sent from my Nexus One
[Nexus One Themes and Apps] NexuSix:
This is a default function in the WidgetLocker App.

I currently use this on CyanogenMod 6 Nightly N1
[Nexus One Themes and Apps] rori~:
:-)

correct, but that s an app..

Sent from my Nexus One
[Nexus One Themes and Apps] britoso:
works great with the layout xml.
[Nexus One Themes and Apps] santiemanuel:
Tomorrow I guess I will make more gingerbread transparent BGs.
[Nexus One Themes and Apps] michael1372006:
rori would you mind to share the wallpaper on your homescreen?

lt looks interesting and beautiful:)
[Nexus One Themes and Apps] Chosen_on184:
Will this still work even without having the lockscreen up .. I have lockscreen gestures enabled ..

It should still work right
[Nexus One Themes and Apps] britoso:
Hey Rori, Can you check if that layout XML (keyguard_screen_tab_unlock.xml) was modified for the new circular sliders in 294+

If it has, an updated version will be great :)
[Nexus One Themes and Apps] rori~:
ok, I will, I just need a little break, was doing this http://xdaforums.com/showthread.php?t=875423 :)

Edit: yes, changed..updating it

Edit2: updated OP
[Nexus One Themes and Apps] Nandorian:
Hey Rori, any chance of updating this for CM7? I loved having this on my phone.
[Nexus One Themes and Apps] rori~:
ok...remind me, when its not done soon :)
[Nexus One Themes and Apps] rori~:
just seen in review, there´s still some lockscreen stuff, that´s probably going to be merged..so better wait a little more
[Nexus One Themes and Apps] eventrock1:
Hello rori~ ^^

I love it!!! but it's not work in cm7...

plz update it for cm7!!!

Thank you~
[Nexus One Themes and Apps] rori~:
CM7 nightlies changing constantly...

Which version do you mean? :p
[Nexus One Themes and Apps] DigitalJedi:
Bootlooped me. Popped the battery and restored from nandroid. I've never gotten a morph to work successfully, ever. Maybe it's cause I'm always using a theme? Using Metallic Glass theme right now.

Oh well, thanx for the morph regardless. I'll chalk up my failure to the fact that my CM 6.1.1 is so modded (themed, DarkTremor a2ext, trackball answer, unlocked bootloader, custom bootanimation, etc). I know it can't work for every possible situation. Good work nonetheless.

EDIT: Nevermind on it restoring. I had 2 nand backups and both bootlooped when I tried to restore. Never happened to me before. Gonna have to start from scratch when I get home from work. Guess I might try a different ROM for a change?
[Nexus One Themes and Apps] eventrock1:
ah.. i'm korean...

so cm7 based KTPassionmod 2.3 rc1 in korea
[Nexus One Themes and Apps] rori~:
Bump - OP update -> [Lockscreen] Centered Style & Custom Background for CM 7
[Nexus One Themes and Apps] Lento10:
Hello Rori,

When I apply the morth, the section of the battery information is of center.

Thank you.
[Nexus One Themes and Apps] rori~:
true, that´s not perfect :(

Edit: am fixing it right now...if anybody got any wishes before I close it, just do ahead :) - like: position, size, color!
[Nexus One Themes and Apps] rori~:
Bump

Op update, all fixed :)
[Nexus One Themes and Apps] Lento10:
Thank you for all your work, I'm going to try it now.
[Nexus One Themes and Apps] rori~:
I have to thank, as it was a great idea :-)

Sent from my Nexus One
[Nexus One Themes and Apps] Lento10:
It works great thanks again.
[Nexus One Themes and Apps] rori~:
ah, good to know - glad you like it :)
[Nexus One Themes and Apps] rourouni815:
is there a way you can lower the position of the time closer to the unlock sliding tab?
[Nexus One Themes and Apps] rori~:
I think I could move that...but there are other things, like Music album and some buttons which need space, so thus the free space.
[Nexus One Themes and Apps] Atermoon:
Looking good! :)

I'm just curious how much can you really change the lockscreen, and to be more precise - can you change the size/position of the album cover, prev/play/next buttons, etc or are those hard coded?

Thanks
[Nexus One Themes and Apps] SynisterWolf:
So I tried the mod and it only worked if I was on the "system" theme in the theme Chooser. If use a custom theme it wont change the default jpg. Any one else having a problem?

If so I think if you change the name to of the jpg and have the xml to point to a different name. From " default_wallpaper.jpg" to "lock_wallpaper.jpg" it will fix the problem.

Edit.

I edited the file and it worked. Thanks for the mod.

Sent from my sexy assistance (HTC Incredible cm7)
[Nexus One Themes and Apps] GooTz66:
So I am looking at loading this up but am a bit confused as to the installation instructions. Do I flash the zip then go into metamorph and apply or just put the zip in the Android Themes folder on my SD card and install in metamorph? Also does the transparent version just use the home wallpaper like the normal lockscreen would? TIA for any help and insight.
[Nexus One Themes and Apps] Atermoon:
Just put it in the folder and apply with metamorph. No flashing.
[Nexus One Themes and Apps] rori~:
thanx.

if the instructions are not clear enough... should I change anything to make it more understandable ?

Sent from my Nexus One
[Nexus One Themes and Apps] Atermoon:
I don't see what could be changed, they seem pretty clear to me.

Thing is, no matter how clear the description is, you'll always find people with doubts. Maybe it's their first time flashing/morphing/whatever. Maybe they're just afraid of screwing something up. Can't blame them for asking, it's the only way to learn ;)