yashsingh1/xdaforums huggingface dataset:
[Android Themes] evilisto:
about how to use this patch

Frankly speaking, I don't have any :o knowledge about linux so I don't want to write about that but...

Basically, the process is like this :

1) download android source code : there are so many great guides about this...

2) download my patch and put it to /frameworks/base

3) type this.

patch -p2 < (patchfile_name).patch

for example... (from my previous post)

root@evilisto-desktop:~/patch_test/frameworks/base# [B][COLOR="Blue"]patch -p2 < Sense-4.0-Multitasking.patch[/COLOR][/B]
patching file core/res/res/values/dimens.xml
patching file packages/SystemUI/res/drawable/nyandroid_anim.xml
patching file packages/SystemUI/res/layout/status_bar_no_recent_apps.xml
patching file packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
patching file packages/SystemUI/res/layout-port/status_bar_recent_item.xml
patching file packages/SystemUI/res/layout-port/status_bar_recent_panel.xml
patching file packages/SystemUI/res/values/colors.xml
patching file packages/SystemUI/res/values/strings.xml
patching file packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
root@evilisto-desktop:~/patch_test/frameworks/base#

4) download and extract resource files to destination folder.

- in this mod, /frameworks/base/core/res/res/drawable-xhdpi/

5) then compile.. if you have compiled your current rom before, use mmm to compile each files.

In this mod, you have to compile framework-res.apk, framework.jar (include framework2.jar in CM10) and android.policy.jar.

6) after using patch, you'd better revert all changes for future use..

patch -p2 -R < (patchfile_name).patch
[Android Themes] krish0809:
Thanks for your reply but I'm a newbie can u plz make a flashable zip plz.. . If it's possible
[Android Themes] ErikWithNoC:
He said in the post above that its impossible to make a flashable zip. I think by that he means its impossible to make a flashable zip that works for all devices since all devices are different. I believe it would be possible to make flashable zips for specific devices, but I have no idea how :/
[Android Themes] Member90:
can u make a flashable.zip for Galaxy Tab 7 Plus P6200?? im running ICS 4.0.3...pls pls...im too noob bout this all..n there currently sooo little dev on this devices.. :(
[Android Themes] Tijmen:
Here's a patch for CM10, tested on Maguro, Toro and Toroplus. Should work on all XHDPI devices, not sure about other resolutions. This can be applied per Evilisto's instructions

BB10-CM10.patch - 35.90 KB

Enjoy!
[Android Themes] car vs driver:
Not yet, will try that tonight. Mind shooting me a PM with your xml file?
[Android Themes] NegativeOne:
Can you run a diff and get a patch out ? That will also help him see what you guys did differently

nvm: you just posted it
[Android Themes] DerTeufel1980:
It's little bit complicated, as I am having the definitions for 3 other lockscreens in it as well. Currently working on switching between them in a different way. This would make the xml simpler again. Basically I just have changed the WaveView.java values, as a radius of 1280 is outside of our screen

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Android Themes] NegativeOne:
How're you planning on switching it?
[Android Themes] DerTeufel1980:
I am already doing it ;)

If all goes well, I can upload the latest changes to github later.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Android Themes] NegativeOne:
Well done!
[Android Themes] Tijmen:
Are you devising a method that would actually point to WaveView_BB10.java and WaveView_Stock.java instead of having all those in one big WaveView.java? And is that even possible?
[Android Themes] brunopxt:
Nice

Nice working great
[Android Themes] DerTeufel1980:
It would be possible, but the other lockscreens aren't WaveView ones.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Android Themes] evilisto:
Oh... Thank you.:good: but... yesterday, I made patch for CM10 too.. :eek:

I was busy for a few days so I added it to OP now.. it looks like both are basically the same..

Anyway, I added your post link in OP too. Thank you again ;)

I'm really sorry I can't give you a better guide..
[Android Themes] idle0095:
This lockscreen is getting cool. Wish it was a flashable zip
[Android Themes] xinfinityoO:
maybe someone has already asked.. but is it possible for a smali version of the mode..

cheers
[Android Themes] Idrito:
No version for Galaxy Ace aokp? (mdpi)

Sent while walking
[Android Themes] tarroyo:
Would love to see this MOD for other resolutions HDPI, LDPI, MDPI, qHD
[Android Themes] charlie81:
would this work on galaxy s3 or just nexus devices
[Android Themes] DerTeufel1980:
You can flash my rom, it already has it.

To the countless questions, if it is available for device xy... It only depends on jellybean. If your device runs jellybean, you can patch it.

Gesendet von meinem GT-I9000 mit Tapatalk 2
[Android Themes] Goldie:
Doesnt have to be jb. You can have it working on ics. Its in alliancerom ics for s3, note and s2 for example :)
[Android Themes] NegativeOne:
Thank you guys. I looked at the patches, they are pretty close indeed. It looks like gangsterjoop's removes all the CM10 widgets and evilisto's doesn't. (looking at the code). Also a difference I see is that evilisto removes the FLAG_SHOW_WALLPAPER flag from keyguardViewManager. I don't know what this flag does or what it's applied to, but I suppose this might mean that the lockscreen should be transparent? (Don't have the full CM code with me).

Anyone got a good guide for compiling this stuff and making a flashable zip? I'd be curious to compare these two.
[Android Themes] idle0095:
What alliance rom for the i717 note has this lockscreen in it?
[Android Themes] Goldie:
International note. But my teammate is building a rom for i717 now with this and the other 15 we have in. Keep an eye on Nunhuggers posts. Hopefully this weekend ;)
[Android Themes] idle0095:
Is he planning on posting it in the xda dev section for the i717?
[Android Themes] NunHugger:
Yes..planning on it.
[Android Themes] m0d:
What changes need to be made for the addition of an image underneath the lockscreen overlay?

, instead of it being see through ( homescreen view ), that is.

Many users mentioned modifying the files to get more than one lockscreen in place,

Is there no patch that adds bb10 lockscreen as a new alternative, instead of replacing files ?

Or, does it have to be done manually?
[Android Themes] Goldie:
I assume just dont remove the show wallpaper flag. Working in smali i didnt do that so mine has wallpaper.

For multi lock you gotta copy files and rename etc. Not straight forward as having a patch.
[Android Themes] Goldie:
See...
[Android Themes] m0d:
Files, I presume:

WaveView.java

keyguard_screen_tab_unlock.xml

keyguard_transport_control.xml

dimens.xml

KeyguardViewBase.java

LockScreen.java

WindowAnimator.java

But, Do you have to modify any code to be able to select which one to use, i.e. normal or modified

Or, does it check automatically for the different files?
[Android Themes] Goldie:
No not all those. Only some. You cant have multiple dimens.xml. Its not easy to explain as i dont mod source as i work on stock samsung roms so its direct in smali.

You have to mod lockpatternkeyguardview to use it as an extra. I cant help more with source mods though im afraid.
[Android Themes] m0d:
I am hoping to try working backward from the ROM zip.

Looking into different decompilers,

if all fails will look at source code directly

upToDate:

Having trouble downloading sources, nor was I able to generate them,

But, Virtuous Ten Studio, http://xdaforums.com/showthread.php?t=1619473 , was able to decompile them to smali

So. It has come to this:

Any tips and smali tricks, AS
[Android Themes] idle00955:
Cant wait for this rom.
[Android Themes] fefuzzo:
there is a flashable zip?????
[Android Themes] Tijmen:
No. Do people ever read a thread?
[Android Themes] jriv:
So using Linux is the only way to get this to work? Just asking because I don't have Linux or know how to use our.
[Android Themes] alteredlikeness:
I did it in Windows - I downloaded the mod zip for the nexus from the other thread, decompiled/baksmali'ed those and mine, used the patch as a reference and did it all manually. So, no, Linux is not necessary...
[Android Themes] Texas_T-Bolt:
So u have to do this by computer?
[Android Themes] alteredlikeness:
Dude.. are you serious? Yes, you need a computer.

------

Note to those asking about this mod:

If you have never decompiled, edited smali/java, or modded anything... this is not a good place to start - try something simpler and work your way up to this.

Sent from my phone's mind
[Android Themes] DerTeufel1980:
ok, now i am having a question for the experts :D

I got the lockscreen fixed to work with any custom dpi, by replacing mUnlockDefault with a transparent color, painted to the background, and scaling the other png with a multiplier, calculated from current dpi.

the only issue i could not solve till now, is a ugly white background behind the clock. anyone an idea, where this is defined? or is it, where the different pngs are overlapping... ?
[Android Themes] alteredlikeness:
I had that at one time too... I think it happened when I resized the pngs.

When I use the larger ones provided it works great (even though the grey background is pushed up a little bit, it still looks good), but if I size it for my device then it gets that transparent bar - so yea, I think it's the pngs, or a combination of pngs and dimensions or something.

Or maybe I also messed around with something else entirely that caused it... but pretty sure it happened when I scaled down the pngs. Sorry for the vague response.. :\

When you figure it out, be sure to let us know.. :)

Sent from my phone's mind

Edit - I found a screenie I took from when I had the issue (I just ended up going back to the larger pngs provided, and it's fine):
[Android Themes] ldiomedi:
Just keep the height of the images and resizes if you want the width. That transparent bar happens to me when resize the images
[Android Themes] DerTeufel1980:
Thanks for your input. As I am compiling my rom for hdpi and xhdpi devices, and can't keep one fixed size. Also supporting different dpis requires scaling of the pngs. I think I have to do more testings. As soon as I get it fixed, ill post a patch for it.
[Android Themes] car vs driver:
Can you shoot me a PM with what you had to change from the OP to get it working on hdpi? Would really like to bake this into my ROM as an optional installation but I just can't get it working.
[Android Themes] DerTeufel1980:
just take my file:

https://github.com/DerTeufel/androi...ava/com/android/internal/widget/WaveView.java

i am sure you can see the differences then :)

the xml's worked without changing them. i have made some changes later, to keep clock aligment working, but i am in a hurry right now.
[Android Themes] m0d:
It would be great if you can include your patch in the autopatcher packet as a Mod,

http://xdaforums.com/showthread.php?t=1719408

Then, everyone will be able to autopatch your mod without any hassle
[Android Themes] ldiomedi:
Any idea why could happen the clock shows incomplete? Like in the pictures...

Centered to the right:

Centered to the left:

Thanks in advance!

The thanks button doesn't bite. Try it!
[Android Themes] mingolianbeef:
Hey everyone, if you wanna use this mod but don't have the means to do it (linux system not available, etc.) download Notepad++ and open the patch file in it, and you can view the code, how usable it is, IDK yet, but Im looking at it now! :) Just a little bit of help, and it should stop the "where is the source code" requests to evillisto!
[Android Themes] ldiomedi:
I done it in Windows and without compile from sources. Just decompiling, editing smalis and compiling related files. I don't know today, but I'm gonna make a little guide based on how I did with evilisto's patch and Goldieking helps. It's difficult to me because I'm not an English speaker, but I'll try.

The thanks button doesn't bite. Try it!
[Android Themes] mingolianbeef:
If u did that, I would rape ur thanks button lol
[Android Themes] m0d:
I modified Smali, using gangsterjoop Maguro | revert Maguro as reference.

I have a couple of screen issues though, and the clock backdrop - I did not resize images ( only altered SMALI code )

as I have a note n7000, but I am not sure, it might be related to PA settings as my status bar is set at 220dpi, and not the full 320

Link to big pictures:

http://s17.postimage.org/udo8v9uot/screen0_big.png

http://s17.postimage.org/j3vj0bpnh/screen1_big.png

http://s17.postimage.org/8jq6vhajh/Screen2_big.png

Also,

Is it possible to keep the lockscreen shortcuts and have it unlock at complete up to statusbar?

that would be great

And,

Help in adding options for selecting different lockscreens would appreciated,

instead of replacing|patching files -> create new file and switch, that is
[Android Themes] ldiomedi:
Fixed.

Centered to left

Centered to right

In my case, I didn't change the value in dimen.xml this time and it fix the previos problem.Thanks to me ;)
[Android Themes] m0d:
I resized the .PNGs and Now the main background is okay, the other PNGs create problems

Link to big images:

http://s7.postimage.org/lx63ppu2x/Screenshot_2012_11_12_03_26_05.png

http://s7.postimage.org/dhl4lygll/Screenshot_2012_11_12_03_26_16.png

http://s7.postimage.org/lblq7coeh/Screenshot_2012_11_12_03_26_22.png

http://s7.postimage.org/qoaklhcax/Screenshot_2012_11_12_03_26_34.png

Any ideas on what dimensions are needed?

As of now:

unlock_wave: 800x1280 - exact, works perfect

The rest is unchanged from original - changing led to distortions

unlock_default: 720x1280 - unTouched

unlock_halo: 720x480 - unTouched

unlock_ring: 120x120 - unTouched

This leads to blind-Effect ~ as seen above, unlocks as a line not foggy
[Android Themes] Tijmen:
Unlock default should be 800x1280 too. The line unlock is because of a faulty halo, iirc halo is 1280x720 which would mean you don't have an untouched halo?
[Android Themes] m0d:
I will try resizing again, as resizing Unlock default to 800x1280 using irfanview caused distorions in image.

Will try with Gimp and see if it works.

iirc halo ?

No, no, no - unToucheD like the song ~ http://www.youtube.com/watch?v=ykW4rtW2eu0

I used the resources provided on first post,

Original Dimensions:

unlock_wave: 720x1280

unlock_default: 720x1280

unlock_halo: 720x480

unlock_ring: 120x120​

Thanks for your help|suggestions
[Android Themes] Duarte777:
Thanks for this.

Where i can find the right .png´s for a hdpi screen (480x800) ?
[Android Themes] Tijmen:
Should be this:

unlock_wave: 7200x1280

unlock_default: 800x1280

unlock_halo: 1280x800

unlock_ring: 120x120​

https://dl.dropbox.com/u/27703769/static/BB10_LS_Resources_hdpi_v1.1.zip
[Android Themes] m0d:
But with unlock_wave 720x1280 the background was cut at the sides it does not fill the whole screen,

see images -

[ big image: http://s17.postimage.org/udo8v9uot/screen0_big.png ]

at the left and right - since the width is 720 and not 800

Will try these settings and let you know:

I still get unlocking as one line

No luck with neither:

unlock_wave: 800x1280

unlock_default: 800x1280

unlock_halo: 800x533

unlock_ring: 120x120

Nor.

unlock_wave: 800x1280

unlock_default: 800x1280

unlock_halo: 800x480

unlock_ring: 120x120​

Will check if unlock_halo: 1280x800 , are the magic numbers ~ http://www.youtube.com/watch?v=vxyPT8QaBAk

Update:

No changing unlock_halo to 1280x800 did not work - should it be 1280x800 or 800x1280 ?
[Android Themes] car vs driver:
Thanks again for this dude, I see what you changed, that was enormously helpful.

Now that I'm finally getting back around to this mod ... I just want to clarify, are you saying that he stock XML from CM10 works just fine?
[Android Themes] DerTeufel1980:
No, you have to change the xml's according to the patch. Just keep the dimens.xml as it is. Otherwise clock aligment gets broken
[Android Themes] efi2222:
It's suppose to work on CM10 stable for I9000?

Iv'e patched it through the recovery but nothing has been changed
[Android Themes] Adi_aishiteru:
Hello everybody, I am succesfully manual building keyguard screen tab unlock.xml and resources to my Device ..but I 'm stuck in wave view .smali .. so when I slide the lockscreen to be unlocked.. it's not the same like in OP preview. .

wish someone can explain it why and how ?

thanks in advance :)
[Android Themes] ldiomedi:
My English isn't good enough, so I hope u can understand me.

- open waveview. Smali, and public.xml from the mod already modded and the one of u are modding (framework-res/res/values).

- search for ids in waveview (they start with 0x10).

- search that id on public.xml from builded mod.

- search the tag for that id on public.xml of your mod.

- change the id of the tag on waveview.smali.

The ids are 5. Hope it can help you

Edit: before to do this, you must replace the waveview

The thanks button doesn't bite. Try it!
[Android Themes] maxee23:
Oh man I'm so happy right now! I was writing about a problem I have with some png and some voice in my head said to me:

"YOU ARE USING CUSTOM DPI U ***HOLE"

I've read it before but I dont know why didn't think about it until now :P

Great experience with a lot of reading and learning :) HUGE thanks to idiomedi who taught me the right way to do it on win7:D And to evilisto of course!

My problem was (just in case someone need it):
[Android Themes] Adi_aishiteru:
Hey guys I get a transparent space betwen unlock wave and unlock halo..

may be someone can help me..

and thanks to sir Idieomedi for helping me with the wave smali

here is my problem..I've uploded a screencast video. http://www.youtube.com/watch?v=x5o0292DFpU
[Android Themes] ldiomedi:
That happen because the size of images. did u resize them? if not, you must resize unlock_halo or unlock_wave till find the right numbers. Is a tedious job (i did it once for a diferent dpi than stock on my device).
[Android Themes] Adi_aishiteru:
it works Sir :D.. thank you,. I resize the resouces,,.

now I have Blackberry ten style lockscreen on my wonder gt i8150

but , with bools.xml = Config "show NavigationBar "false"

and if I change the value to "true"

my navigation bar enable but the lockscreen cannot be unlocked :(

may be you know what should I edit

Thanks in advance :)
[Android Themes] ldiomedi:
Try resizing unlock_ring. Give it bigger dimensions. But not so sure...

The thanks button doesn't bite. Try it!
[Android Themes] Adi_aishiteru:
Thank you sir It works :)
[Android Themes] mimidudu:
Hi evilisto,

Congratulations for development.

Unfortunately I can not use because my smartphone is a Galaxy S i9000 with Android 2.3.6 - original. If someone compiled for this rom, I would use immediately.

Even so congratulations locker, it is very beautiful
[Android Themes] thomas1991_12:
Does anyone know the correct dimension for 854*480?

And do i need to change some values in the .patch file?
[Android Themes] algin:
i give up on this =.=......can't even understand the codes....... *faint*

hope bruce will add this into his next ROM
[Android Themes] ldiomedi:
there's always a way to make stuff works. What u was doing? building from sources or baksmaling? may be I can help you... i tried so many times till make it work. Dont give up!!
[Android Themes] thomas1991_12:
I have another question (besides the resolutin and patch changes);

When I mmm for the framework files (framework.jar framework2.jar framework-res.apk android.policy.jar, and systemui.apk) and replace them on CM10 (adb push and give 644 permissions) i just compiled it wont boot anymore (it keeps on the loading screen). Am i doing something wrong?
[Android Themes] DerTeufel1980:
Get the logcat. Then you'll know more
[Android Themes] riokharizma:
really nice. i wonder why the developer of my device's cusrom haven't put it yet. maybe it's just their different personal taste. thanks!
[Android Themes] jamieg71:
Thanks for this, very nice!!

Sent from my EVO
[Android Themes] thomas1991_12:
So ive been reading this entire thread, but i still havent got it working 100%... Ive got the transparent area in between, like other people in this forum

Couple of questions (i have 854x480 screen):

- Should i resize the 1280x720 images to 854x480 and leave the rest untouched? Or only resize the width and not the height (1280)?

- Do I need to change any value in the .patch file? For example the 1280.0f to 854.0f? (there are more 1280 y values and some 880 i believe)

Any tips?

Also how can i hide the notification bar?
[Android Themes] Mawtin:
HDPI isn't supported yet right?
[Android Themes] thomas1991_12:
I tried a bit and resized the images to my device res (left unlockring untouched). Everything is fine, but there is a very thin 1px transparant bar. if flickers a bit when i touch the halo, when i increase the halo with 1px in height it overlaps with the entire wave.. Thats not right. Anyone know how to fix this?
[Android Themes] banccalif:
Anyone have a flashable zip for evo 4g lte?
[Android Themes] Mawtin:
It's called reading. Very useful especially when dealing with sensitive items
[Android Themes] maxee23:
HDPI it's supported, I was using it on my s2 :)

---------- Post added at 06:08 PM ---------- Previous post was at 06:06 PM ----------

Are u using custom dpi?
[Android Themes] banccalif:
FYI I did read it, I have no way of doing myself which is why I asked. Thanks for the pointer dip shhhh..
[Android Themes] thomas1991_12:
No stock dpi. Im onc cm10. I resized the halo to 480x320 (so it matches my width), unlockdefault and wave to 854x480, and the other one untouched. When i make the hale 480x321 there is no flickering, but the 1px line overlaps width the wave making it black.. So it should be 320 but dunno why that 1px line appears
[Android Themes] ldiomedi:
If you are on 854x 480, let the images just like the original. For me it's working this way

Enviado desde mi MB526 usando Tapatalk 2
[Android Themes] thomas1991_12:
Hmm ok, so just 1280x720. Did you adjust anything in the .patch file?
[Android Themes] ldiomedi:
No. No changes. I change the images because I want them black, without transparency, but keep the sizes

Enviado desde mi MB526 usando Tapatalk 2
[Android Themes] thomas1991_12:
Thansk for the tips, its compiling right know. Ill let you know if it worked.

EDIT: Didnt work, the line is still there.. Of course i could make it black too, so that the line overlap isnt noticed.
[Android Themes] dinesh690:
Doubt it will work on CM10.1 RIght? E.g Android 4.2
[Android Themes] ldiomedi:
Obviously in black the line will disappear. It's weird because I've the same resolution and there's no line on transparency, only if I change the default dpi

Enviado desde mi MB526 usando Tapatalk 2
[Android Themes] thomas1991_12:
Havent changed it as far as i know, is there even a setting in CM10 too change it?
[Android Themes] CwbAnDroidCwB:
OK I know I'm out of place or ask in a noob question so flame away LoL but I'm on cm10 on the evo lte..... will this work for me also?
[Android Themes] shakeebfarhat:
any one can use this path for cm10 for nexus s

any one can use this path for cm10 for nexus s???? any one please
[Android Themes] -DarkKnight-:
you can try. tell us if it works
[Android Themes] 89dogg:
any chance to port it for s3 samy roms?
[Android Themes] Tijmen:
It would probably be better to post a diff of your waveview.java? But I already made a working patch for CM10, posted it here some time ago:

BB10-CM10.patch - 35.90 KB
[Android Themes] SMillerNL:
Thats kind of the issue. I applied your patch.

.diff is here:

http://diffchecker.com/uVILh3ty
[Android Themes] SpaceCaker:
and after the patch we changed the 1280 to 480 because of our screen size

etc

we adjusted it to fit our 320 X 480 screen + resized pngs

and layout is still stock
[Android Themes] Tijmen:
Complete layout is still stock? Are you completely sure all files are replaced, the drawables too? And that you have deleted the old framework files in the out directory, or even better made a clean build?

Only problem with your waveview.java I can find is line 183:

183	mUnlockHalo.setY(mLockCenterY + 640);

640 = 1280 / 2 , so you should probably use 480 / 2 = 240 ?