yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] kahvitahra:
In PhoneWindowManager.smali there is method

.method public interceptKeyBeforeDispatching

an there is lines

.line 2189
move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

move-object/from16 v36, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeLongPress:Ljava/lang/Runnable;

move-object/from16 v37, v0

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v38

invoke-virtual/range {v36 .. v39}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

So that invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

is call for how long delay is (If i'm right :) ). It seems to be same as powermenu delay. So changing those both would work or then change that call to something different.

Hope this makes a little sense :D

I look at it also more at some point.
[Galaxy S II Themes and Apps] kahvitahra:
For that 15 Toggles bottom mod I fixed ( or maked work around ) to issue that with manual brightness pulldownbar shrinks too fast.

Also i think i have to make that folder location for toggling texts to /data

Now it gives fc at reboot when texts are on. Bad think about this /data is that you can't get hands to it with normal file manager, so you need root explorer or such. Or maybe I just post two versions. :)

Also made it to DXLP9. Will post zips tomorrow. Have to test it still little while for new bugs.
[Galaxy S II Themes and Apps] gtda:
hi, thanks again

that is the slider im talkin about, im lucky enough that someone made me a blue slider in a seperate rom, i just copied the two files over and its all working

one other thing is im trying to get jkays blue stock battery, but i cant get charging animaitons to work

i thought by copying the same files u told me it would work

id prefer his froyo style battery so i pm'd him to see if he could help

i wont upload this unless he and you give the ok

otherwise its for me only :p
[Galaxy S II Themes and Apps] kahvitahra:
Just copy images from jkays framework-res to my apm mods framework-res and it will work.

You should read JKays thread 'cause in post 2 of his thread is a note =

So you should respect his will. :)
[Galaxy S II Themes and Apps] gtda:
I did copy his images, only battery ones. And the two xml files. my battery its nearly fully charged so it's all blue but when charging I get no animation. Only the charge symbol and a single red line, should I have not copied the two xml files?

Sent from my iphone killing Galaxy S II
[Galaxy S II Themes and Apps] kahvitahra:
If you copied also charging images ( stat_sys_battery_charge_anim*) then its working just fine. Charging style is just made like that in his xml file.
[Galaxy S II Themes and Apps] gtda:
I'll have to double check tomorrow as I'm sure his glows with the charge symbol. It's nearly 2am here and I gotta be up in 5hrs so I'll leave it till tomorrow. Thanks again for helping out

Sent from my iphone killing Galaxy S II
[Galaxy S II Themes and Apps] Veneratio77:
Thank you for the update! Just installed on VR242 and works great! Keep up the awesome job!
[Galaxy S II Themes and Apps] kahvitahra:
Thank you :)
[Galaxy S II Themes and Apps] Piccles:
Hi, as you may be aware, BlackBerry have a Theme Builder - is there something similar available for us?
[Galaxy S II Themes and Apps] kahvitahra:
Not really. Only thing is http://uot.dakra.lt/

Maybe there will be in future, who knows :)
[Galaxy S II Themes and Apps] Piccles:
Cool, thanks. Looking forward to making sum changes to boot animation, loading circles, volume bar...nothing major...just nice subtle amendments.
[Galaxy S II Themes and Apps] kahvitahra:
With this themeing tutorial you can easily learn to do those eithout kichten :)
[Galaxy S II Themes and Apps] gtda:
hi mate

i think i found why the animation doesnt work correctly

jkay uses 1-100% so there is 100 files for animation

stock files are only animation 0-5

so somewhere in the files i need to tell it to look for 100 files instead of 6

but where do i find this (ive tried jkays battery stats.xml files, they dont work)

ive asked jkay numerous times if he could help but he doesnt reply

so far ive managed to use 6 of his files to make it work, but as it varies from light to dark (the glow he added) so i dont know how its goin to look

so far i have now edited systemUI.apk to change my drop down icons to blue

id like to know how to convert systemUI.apk to a .zip so i can just flash instead of copy/pasting through a file manager. it needs reboot everytime anyways

is it hard to change it from apk to zip?

thanks again for your help
[Galaxy S II Themes and Apps] kahvitahra:
JKays asked in hes thread that "DON'T send pm to me" so i don't think his gonna reply.

Those two xmls that i told you to copy makes it use 100 icons.. So if you just copy those and ALL battery images to MY APM mods framework it will work. You cannot copy then to original 'cause puplic.xml dosen't have those image ids.

And if you want to learn how to theme check this thread. That is a good way to start. I know you get a hang of it really fast.

Cheers.
[Galaxy S II Themes and Apps] gtda:
hi

i didnt pm him this time, just asked in his thread

so i need the two xml files from his framework

plus his image files, im using your framework from the beggining of this thread

so far ive added a few things and its working fine

any chance i can send you what ive made so far, and u see if when u add the files that it works?
[Galaxy S II Themes and Apps] kahvitahra:
sure. :)

10 char

edit. send me pm.
[Galaxy S II Themes and Apps] gtda:
this is what i have made so far

http://www.multiupload.com/4BLSIZREA5

the one from jkay is called XXKG6_JKay_StockBlueGinger_Deluxe_ThemeV7

i just want the battery working correctly

nothing else from his

thanks mate
[Galaxy S II Themes and Apps] kahvitahra:
You had only 5 charging images and about 50 stat images. Heres images and two xmls from that jkays battery. I didn't try this so hope it works.

http://www.multiupload.com/K1HE6JFSY9
[Galaxy S II Themes and Apps] gtda:
with this one i knew i only had a few images

i made it on purpose coz i knew it was goin to work

ill give urs a try now

thanks mate
[Galaxy S II Themes and Apps] Kaboosey:
Hello kahvitahra,

First of all, I wanna say, thanks for making this mod as it works great on my SGS II running VillainROM 2.4.2 with Ninphetamine Kernel 2.0.5.

Just one issue though which doesn't actually affect the performance, but I just wanna confirm with you about it *maybe* you can get it fixed.

Okay, here it is. After I take a screenshot in my phone, the CRT effect is kinda "pixelated". There's black box when the "effect" turns off. But, after reboot, it'll be back to normal.

Try to capture screenshot on your phone, then try to lock it. You'll see the difference between before you take the screenshot and after you take the screenshot IF you have the problem just like I do.

Maybe you can check about this? :)

This thread maybe explains it a bit better than me. Lol. Don't know how to explain it :)

P/S: Don't wanna trouble you actually, but well, it'll make your MODS better :)
[Galaxy S II Themes and Apps] A$h x:
Any chance of a CWM no-clock mod for villian rom?
[Galaxy S II Themes and Apps] Stephen88:
work with wanamlite 11.2? its xwlp8
[Galaxy S II Themes and Apps] Bengaal:
Yes it should deffinately! download this version: http://xdaforums.com/showpost.php?p=24927413&postcount=519
[Galaxy S II Themes and Apps] kahvitahra:
Deodexed DXLP9 - 15 quickpanel toggles with bottom mod

Thanks to DAGr8 for original bottom mod.

Thanks to lidroid for 14 quickpanel toggles.

Thanks to wanam for making toggles to work with ICS.

So, this mod moves those quickpanel toggles to bottom of the notification screen ( MIUI style ). Easier to operate with one hand IMO.

There are two versions. One that ends _no_text is version without quickpanel toggle texts.

Also made version on top of wanam blue themed systemui, so all thanks to him for that theme.

Flash via CWM

For porting to other firmwares:

Use lidroid-res.apk from attached .zip and diff SystemUI.apks smali/xml changes.
[Galaxy S II Themes and Apps] kahvitahra:
Updated XWLP9 Bottom mods links with new files.

Fixed FC at startup and pulldownbar issue when using manual brightness.
[Galaxy S II Themes and Apps] Bengaal:
Hi kahvitahra.

I think two days ago you mentioned you was testing the skip track volume mod, on a delay time of 300ms.

Did you get any problems with it in the couple days you tested? And when can you release your great mod with the updated levels.

Really looking forward :D

regards....
[Galaxy S II Themes and Apps] kahvitahra:
Hi!

No, i havent had problems with it. I was just thinking that i make also those home- and powerbutton delay choosable but it seems that i dont have time to look into those ones.

So i might just post this alone then :)
[Galaxy S II Themes and Apps] Bengaal:
I can understand your choice mate. It's al up to you. Many thanks again for your work! :)

Will check this thread frequently for any updates lol :rolleyes:
[Galaxy S II Themes and Apps] ady_uaic:
first of all, thank you a lot for them! second, can these be applied over stock ics ?
[Galaxy S II Themes and Apps] kahvitahra:
Those should work on stock after odexing. Those are for deodexed roms so that systemui.apk have to odex for it to work on stock rom.
[Galaxy S II Themes and Apps] kahvitahra:
Updated XWLP7/8/9 deodexed Mods and DXLP9 deodexed Mods posts
[Galaxy S II Themes and Apps] kahvitahra:
To aydc and all others who like to know how to change delay for those recent apps and power dialog ( code lines taken from dxlp9 ):

Homebutton for recent apps:

Open PhoneWindowManager.smali

Inside .method public interceptKeyBeforeDispatching

There is lines

.line 2189
move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

move-object/from16 v36, v0

move-object/from16 v0, p0

iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeLongPress:Ljava/lang/Runnable;

move-object/from16 v37, v0

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v38

invoke-virtual/range {v36 .. v39}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

change lines

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v38

to

const-wide/16 v38, 0xfa

then delay would be 250ms ( 0xfa is ms in hex )

Powerkey for power menu:

there is method

.method private interceptPowerKeyDown(Z)V
.registers 6
.parameter "handled"

.prologue
.line 755
iput-boolean p1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPowerKeyHandled:Z

.line 756
if-nez p1, :cond_f

.line 757
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

iget-object v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mPowerLongPress:Ljava/lang/Runnable;

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v2

invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

.line 759
:cond_f
return-void
.end method

again change lines

invoke-static {}, Landroid/view/ViewConfiguration;->getGlobalActionKeyTimeout()J

move-result-wide v2

to

const-wide/16 v2, 0xfa

then delay would be 250ms ( 0xfa is ms in hex )
[Galaxy S II Themes and Apps] Bengaal:
If I could I would hit the thanksbutton 100x!!!!:D

Edit: Tested it, all works and must say.....my phone feels like reborn. :) Now my phone is perfect.

Thanks kahvitahra
[Galaxy S II Themes and Apps] nrd\:
would these mods work on latest GT-I9100_WanamLite.DXLP9.V11.5.StockThemed rom? i have dxlp9 baseband / firmware and xwlp8 kernel?

thanks
[Galaxy S II Themes and Apps] kahvitahra:
Everything that is labeled under dxlp9 will work on that.
[Galaxy S II Themes and Apps] shrayv:
Is there any way to modify the call answer/reject screen like AOSP ICS?
[Galaxy S II Themes and Apps] aydc:
Fantastic!! This is really really good for people like me who never understood why all these delays exist. The phone feels much much faster now. :) Thank you very much.
[Galaxy S II Themes and Apps] LiLChris06:
Great mods! :)

I am trying to port the Skip Song mod to LP3, any quick guidance?

Tried comparing the files and I noticed PhoneWindowManager.smali with the changes needed.
[Galaxy S II Themes and Apps] kahvitahra:
Yes!

All changes are in that smali file. Also you need those two extra files.

There is also homebutton fix and some torch lines in there. Those are pretty simple what are right ones ( by looking names etc )

EDIT. If i remember correctly all other changes are for that mod execpt few lines in .method public interceptKeyBeforeDispatching. Those that does not belong you'll find easily since i that instance for looking that folder before that code.
[Galaxy S II Themes and Apps] aydc:
A small bug: If short_home_delay_on and short_power_delay_on exist and you reflash the mod, short_home_delay_off and short_power_delay_off get created and if the mod sees these off folders, it ignores the on folders, so you have to delete the off folders by hand after every reflash.
[Galaxy S II Themes and Apps] kahvitahra:
Your right that those folders is created no matter what, but only folder code "cares" about is that _on. It does not matter is there _off folder.

It would be great thought if there would be script in flashable zip for avoiding dublicates of those folders.
[Galaxy S II Themes and Apps] coloxim:
Stupid question...are you able to add battery bar?

;)

Inviato dal mio GT-I9100 con Tapatalk 2
[Galaxy S II Themes and Apps] kahvitahra:
I don't have time to do nothing right now.
[Galaxy S II Themes and Apps] derby_sv:
Are you going to make XWLPD version?
[Galaxy S II Themes and Apps] godzifa:
+1, please :)
[Galaxy S II Themes and Apps] silentflight711:
hi

hi all tanx for this good mod... any chance to have it for XWLPD?? for stock samsung rom doedox XWLPD ? tanx
[Galaxy S II Themes and Apps] sam5154:
Thanks it's sooooo great.

but I've got a small problem. I'm on wanamlite 11.3.1 (XWLP9) and on/off thing doesn't work for me. no matter what the name of folders are everything works. and there a weird thing about lock screen. after each power up the Samsung lockscreen appears. but after that it changes to ICS AOSP one.( Again no matter what the folder named)

Correction:

MY bad!!!! I see /sdcard/ and forgot that sdcard is the internal memory not the sdcard(Seriously why Sammy? WHY?). and there is a tweak folder too so I was changing on/off there.

p.s very clevery simple and effective switching method kahvitahra, thank you again.
[Galaxy S II Themes and Apps] Bengaal:
Dear Kahvitahra... Hope you get time to make your great mod work with LPD.

Without your mod my phone is trash! :p

Thanks for your great work
[Galaxy S II Themes and Apps] shawn_pro:
Oh please make an LPD MOD too.
[Galaxy S II Themes and Apps] kahvitahra:
XWLPD deodexed Mods

Thanks to Oliwe for "Home button lag fix"

Thanks to aeropahn for "Skip tracks with volume keys"

Mods included in .zip

- Torch from lockscreen

- 4-Way reboot mod

- Skip songs with volume keys

- Home button lag fix

- ICS lock on/off

- "Swipe to unlock" -text on/off

- Ability to change "Volumekey for song skip" -mods delay from normal 1000ms to fast 300ms ( quick_song_skip_off/on )

- Ability to change homekey for recent apps delay from normal 500ms to fast 250ms ( short_home_delay_off/on )

- Ability to change powerkey for powermenu delay from normal 500ms to fast 250ms ( short_power_delay_off/on )

When you flash this in your sdcard is created folders

/sdcard/tweak/skip_song_on

/sdcard/tweak/home_button_fix_on

/sdcard/tweak/ICS_lock_on

/sdcard/tweak/lock_torch_on

/sdcard/tweak/unlock_text_off

/sdcard/tweak/quick_song_skip_off

/sdcard/tweak/short_home_delay_off

/sdcard/tweak/short_power_delay_off

Changing the folder part from on to off will disable that mod.

Flash via CWM

All changes are in android.policy.jar's code, so it does not change your theme/look of rom.
[Galaxy S II Themes and Apps] uncle.baze:
Works perfect!

Flashed over Wanam 11.7 + ICS Domination 4.4 LPD
[Galaxy S II Themes and Apps] superlik:
Works great, thanks.

Will wait patiently for 15 toggles mod for xwlpd
[Galaxy S II Themes and Apps] godzifa:
It works, thanks. But my phone freezed during the first reboot (WanamLite 11.7 + Phenomenal Extreme 5.4). I needed to return into recovery mod, and reboot again.

One question: is it normal that the skip song mod doesn't work with a different music player than the stock one (i.e. Winamp)?
[Galaxy S II Themes and Apps] kahvitahra:
I have tested that on some other and it have worked. Never tried winamp thought.
[Galaxy S II Themes and Apps] derby_sv:
It works with PowerAmp and MortPlayer and doesn't with andLess.
[Galaxy S II Themes and Apps] godzifa:
Obviously it's a Winamp issue :mad:.

I tried other music player and it worked...

But I don't really want to change my music player because Winamp shows the number of each file in my playlists and then I can check that my sync has been done well between my SGS2 and my PC (with Winamp). And it's easier to find which file wasn't sync if the total doesn't match...

I tried several music player but no one has that feature (or only the total of song in the playlist but it's not really useful... :()
[Galaxy S II Themes and Apps] maaw:
Dont know if already posted.. couldnt find it

Thanks for all the job!

Im sorry, but ive flashed LP7-8_deodex_few_mods17_4 mod on what i think is a lps-based custom rom (hard to tell at this point because i flashed several kernels and stuff after changing rom..), and now im getting this messed up power menu :(.

its REALLY annoying.. what should i do? :D

thanks in advance, its an amazing job you've done.
[Galaxy S II Themes and Apps] kahvitahra:
Those are not tested on LPS rom. You should update your rom to lp7/8/9 or lpd and for lpd i have posted those page back.
[Galaxy S II Themes and Apps] maaw:
Thanks for the quick answer, i dont know why but i thought lp7 was a frankenstein base from lps but now that i recall, it maybe lp6 what I'm talking about. I don't want to do things the hard way and i know i should upgrade to lp7, but i really like this rom and all the modding I've done to it, maybe you could give me some clues on what isn't working so I just, I don't know, decompile android-policy.jar and fix this right away.

Again sorry, I don't mean to bother you and if I am just tell me so :)

Thanks again!

Cheers

Enviado desde mi Samsung Galaxy S2 ICS con AndyX ROM v9.0 usando Tapatalk 2

EDIT: Found a workaround, just removed GlobalActions$99.smali , GlobalActions$99$1.smali and GlobalActions$99$2.smali (this 2 last i don't think they are needed anyway) and replaced the GlobalActions.smali file with the original one from my rom. I'm aware of the fact that this would remove the 4way reboot mod, but I don't care since my rom has that already implemented. All the other mods are fully functional.

THANK YOU FOR YOUR GREAT JOB!
[Galaxy S II Themes and Apps] hikarugo:
Support the new latest firmwares please :)
[Galaxy S II Themes and Apps] qqqqqq0:
Work with lpf rom.

GT-I9100 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S II Themes and Apps] uncle.baze:
LPD?
[Galaxy S II Themes and Apps] qqqqqq0:
Work

GT-I9100 cihazımdan Tapatalk 2 ile gönderildi
[Galaxy S II Themes and Apps] jonny_ftm:
Any mirror please for the metamorph circle and green battery mods?
[Galaxy S II Themes and Apps] godzifa:
*Didn't see previous post...
[Galaxy S II Themes and Apps] pilgrim011:
Kahvitahra, could you modify your lockscreen torch mod so that torch stays on even after releasing home button, like in jkay mod? And if you press again home button, flashlight turns off. One more question regarding this mod - is it possible for lights to stay on after the screen goes off? I'm using XWLP7, btw.
[Galaxy S II Themes and Apps] kahvitahra:
I uploaded those again. Just a note that those does not work on ICS roms.
[Galaxy S II Themes and Apps] kahvitahra:
I like the way it's done now. I think that i will not make any changes to that mod anymore. But thanks for the idea :)
[Galaxy S II Themes and Apps] clonski:
For anyone who like me couldn't wait I've just flashed the LPD mods onto the Neat LPG rom and they work fine :)

Don't forget to take a backup first just in case :p
[Galaxy S II Themes and Apps] Sichroteph:
Thanks for the tip, waiting for the bottom mod :)

Thinking about sticking with that configuration (wanam 12 + these mods) I like it a lot.
[Galaxy S II Themes and Apps] kahvitahra:
Im currently busy with my life, so have to see when i have time for that bottom mod. I hate samsung for bringing update once in a week ( yea, most of those are leaks but anyway ) and there isnt really any benefits compared to older firm. Imo all ics roms that samsung have made is rubbish so far, but that is just my opinion :)

Im using gnex now and gave sgs2 to my girl. So i wont update these to every firm that pops out. When hyperdroid team gets back working sgs2 then i will but my efforts to working with those guys.
[Galaxy S II Themes and Apps] jorsolano:
Hello Kahvitahra,

this is my first post here. I don't use any of your mods but I would like to implement your BottomMod, which i find very good, by myself (I am learning) . Is it possible for you to publish the code to do it?

Thank you.
[Galaxy S II Themes and Apps] kahvitahra:
Hi!

Decompile moded systemui and difference changes to stock firmware file for same build.

I cant remember exactly what changes where, but only one statusbar file changed for smali code and some .xml changes also. Then you need to use libroid apk fromthat zip also, since there is some changes also.
[Galaxy S II Themes and Apps] jorsolano:
Thanks for your answer. I am not an expert and do not have so much time but i will give it a try. Are the changes just in SystemUI? Or do i have to change framework-res too?

Thanks again.

Upps..sorry. I saw that you already said it, SystemUI.
[Galaxy S II Themes and Apps] astoncheah:
s3 volume skip songs mod

Hello Kahvitahra,

can you have a look at the attached s3 android.policy.jar to see if it's possible to port the "volume skip songs" mod to it? i tried it hard my self to edit and add the below from yours and jkay s2 mod:

PhoneWindowManager.smali,

PhoneWindowManager$RunableMusicPrev.smali,

PhoneWindowManager$RunableMusicNext.smali.

but all in vain. (i am a noob and don't understand smali codes anyway.)

sorry for off topic, just ignore me if you are not interested in this.

thanks.
[Galaxy S II Themes and Apps] tlf55:
How do we do uninstal the mod ? not just disable one by one .. Full uninstall it ?
[Galaxy S II Themes and Apps] kahvitahra:
Copy your rom's stock android.policy.jar to /system/framework
[Galaxy S II Themes and Apps] fabioascoelho:
Hello kahvitahra,

I'm a huge fan of your MODs and right now I'm using a DXLP9 ROM just to be able to use you MOD. But I would like to update it to newer versions, like XWLPT (4.0.4) or something. Do you have any plans to update your MODs?

Thank you very much for your work.
[Galaxy S II Themes and Apps] kahvitahra:
Maybe i will. I haven't had any time for android lately, but i will see. Is that LPT latest now ore what is most popular? I use gnex now, so i have no clue :)
[Galaxy S II Themes and Apps] fabioascoelho:
That is the most popular, but is one of the newest.

I was thinking about buying a gnex too! Seems like everyone is abandoning S2 for the S3 or gnex. But i think i will wait for the next version of Google phone.

Thank you for your attention on this topic, even if you don't use the phone anymore.

Enviado de meu GT-I9100 usando o Tapatalk 2
[Galaxy S II Themes and Apps] kahvitahra:
As requested I reuploaded VillainROM 2.5 mod files to THIS post.