yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] rahulsuneja:
You know. I don't have that Home Button lag at all. And I did that in a few simple steps.

1. Since I dont use Voice at all, I uninstalled it using Titanium Backup Pro.

2. I dont auto-kill apps and my launcher has been added to the exceptions of the Quick-Boost in Android Assisstant.

Hence, my phone neither waits for a second tap and my launcher also doesnt need to be restarted each time I press home. So its quite snappy on my device. :)

Sent from my Galaxy SII (GT-I9100)

to YOUR FACE

using XDA Premium app.

ROM: Resurrection Remix v1.8.1

Kernel: SiyahKernel v3.2b7
[Galaxy S II Themes and Apps] czesiu:
1. this does not affect the home button lag, it's still there or it's removed in your ROM

2. how is that relevant to this discussion?
[Galaxy S II Themes and Apps] D4rK.F0rcE:
thanks for the link, but this goes far beyond my coding skills :/
[Galaxy S II Themes and Apps] kotaxor:
A CWM.zip for odex LP7 would be appreciated..Thanks
[Galaxy S II Themes and Apps] Cygnuss:
Is this only for ICS? I am on MIUI GingerBread is there a need to do this mod? If yes were can i find it?
[Galaxy S II Themes and Apps] D4rK.F0rcE:
Anyone willing to provide the homebutton lag fix for odexed LPD? I can provide all necessary files.
[Galaxy S II Themes and Apps] omeryounos:
+1000
[Galaxy S II Themes and Apps] neferym:
And for miui V4 ics, it's possible ?

Thx :)
[Galaxy S II Themes and Apps] omeryounos:
Anybody
[Galaxy S II Themes and Apps] maxwarp79:
This fix works with ICS LPD ROMs?
[Galaxy S II Themes and Apps] omeryounos:
no body has posted a version compatible with LPD
[Galaxy S II Themes and Apps] baza14:
You can find it in wanamLite ROM thread.

Odesláno z mého GT-I9100 pomocí Tapatalk
[Galaxy S II Themes and Apps] mastabog:
I did look in there and didn't find any for LPD. Are you sure? Can you post a link? Unless you mean downloading his rom and extracting android.policy.jar ...
[Galaxy S II Themes and Apps] baza14:
Sorry its in ICS domination theme from vertumus. I will post Link when i will be in home.

Odesláno z mého GT-I9100 pomocí Tapatalk
[Galaxy S II Themes and Apps] kpyhere:
Is there a fix for the stock XWLPF ?:D
[Galaxy S II Themes and Apps] omeryounos:
Can anyone please post for odexed xwlpf....plz.....
[Galaxy S II Themes and Apps] omeryounos:
Anyone
[Galaxy S II Themes and Apps] eybee1970:
to get rid of homebutton lag in general is quite easy --> get rid of standard vilingo voicetalk app....this app forces your device to wait for a possible second click whenever you press the homebutton....if you install the SVoice-app from SGS3, you won't have any lag no more, cause this Svoice-app does not trigger the device to wait for a second click...

btw, if you install the Homemyhome-app (lots of people have it installed), you will have the same lag again --> this app forces your device to wait for a possible second click in the same way...
[Galaxy S II Themes and Apps] czesiu:
not true

the lag will remain if you just remove vlingo
[Galaxy S II Themes and Apps] bobby21:
+1

Would be very nice.
[Galaxy S II Themes and Apps] ranwej:
I made a cwm update zip for the Samsung stock LQB 4.0.4 (Poland) odexed rom:

LQB_android_policy.zip - homebutton lag removed

LQB_android_policy-orig.zip - use to revert back to original files
[Galaxy S II Themes and Apps] bluflight:
Hi guys, on new jb leaked LSJ have someone news about fix for double click on this mod? In LSJ firmware work good but work like you press 2 times home button. Have some fix for that?
[Galaxy S II Themes and Apps] ChavitoArg:
+1 for JB and MS1
[Galaxy S II Themes and Apps] czesiu:
bump for MS1
[Galaxy S II Themes and Apps] kahvitahra:
Read tutorial how to deox and odex back in here original dev section.
[Galaxy S II Themes and Apps] :
If you send me the android.policy.jar, i can make one for you.
[Galaxy S II Themes and Apps] ravian29:
thanks buddy you are again helping me, thanks a lot, can you please tell me where i can find it ?

thanks

Edit: got it let me upload it for you.
[Galaxy S II Themes and Apps] _JKay_:
This is interesting! I might include this as an option in my next release of JKay Deluxe...

But has anyone tested that you can still pick up the phone using home button? (if that is enabled).

Thanks,

JKay
[Galaxy S II Themes and Apps] ravian29:
great to see JKAY, but why include it in DELUXE mode ? it must be enable in simple mod for people like me
[Galaxy S II Themes and Apps] ravian29:
thanks mate here is my android.policy.jar

http://www.mediafire.com/?ky4d54to1up2m5u

thanks again :)
[Galaxy S II Themes and Apps] :
Which rom are you running? I see the file is odexed.
[Galaxy S II Themes and Apps] _JKay_:
In my mods I'd like to give people a choice so... ill add an option like: Home double click on/off

So if this cause problems people can simply enable home button double click again :)
[Galaxy S II Themes and Apps] GadgetCheck:
Great.

It's already live on cognition s2 rom ;)
[Galaxy S II Themes and Apps] GadgetCheck:
It's probably lightning V5/ stock xxkg6
[Galaxy S II Themes and Apps] ravian29:
i am on stock KG6
[Galaxy S II Themes and Apps] rickytenzer:
Okay so instead of smali'ing into .odex, I need to smali into .dex and put it into android.policy.jar and push that?
[Galaxy S II Themes and Apps] isotoper:
Great news !!! The most annoying issue in SGS2 (at least for me).
[Galaxy S II Themes and Apps] Oliwe:
Hi guys, glad to see that it is working for most of you. :)

I won't provide any update.zip (sorry), because the android.policy.jar is rom dependant (It contains the extended power menu).

For all of you with the "cond_2" problem.

It looks like baksmali 1.2.7 and 1.2.6 name their conds different. Just do what xan said on Post #9 (thanks!). Replace the cond_2 with the one in line 3933. For me, this is cond_57.

I'm doing it this way:

pull your android.policy.jar from your phone/rom

open it with winrar/7zip and pull out the classes.dex

make sure you have smali / baksmali in the same folder as the classes.dex

enter

baksmali-1.2.7.jar classes.dex

in a console.

now you have an "out" folder with all the .smali files.

try to apply the changes mentioned in first post.

now enter

smali-1.2.7.jar out -o classes.dex

and you will get a new classes.dex.

Do not continue, if smali gives you an error!

use winrar/7zip to replace the original classes.dex in the jar file with the new one

use

adb push android.policy.jar /system/framework/android.policy.jar

to push the changes to your phone.

reboot your phone. Done :)

Removing the voice command apk won't reduce the lag, because Samsung hardcoded this file to always wait for a double tap, with or without voice-search installed.

That's interesting. Could you give me some more details about that? I made a quick test with the original framework, but I was not able to pick up phone calls with home.
[Galaxy S II Themes and Apps] GadgetCheck:
Love what u did thanks
[Galaxy S II Themes and Apps] jameslfc5:
That sounds perfect :)
[Galaxy S II Themes and Apps] _JKay_:
You can setup your SGS2 to answer calls by pressing the home button in Settings -> Call -> Call answering/ending

It's very usefull on a vinter day when you have cloves on and cant touch the screen!

But does this feature still work using this mod?
[Galaxy S II Themes and Apps] MatMaul:
Yes. Screenshot feature works too.
[Galaxy S II Themes and Apps] DocRambone:
Here is this fix for stock deodexed KH3 roms:

Buttonfix
[Galaxy S II Themes and Apps] GadgetCheck:
Thanks DOC
[Galaxy S II Themes and Apps] bboran:
DocRambone will you include this fix in kitchen beta?
[Galaxy S II Themes and Apps] blu3angel:
Thank you for making this.. It's working great on my litening rom 6.1. No home button lag at all!!
[Galaxy S II Themes and Apps] Café King:
Can someone please make this for stock odex xwkf3?

Would gladly donate!!! :)

Thanks in advance

/CK
[Galaxy S II Themes and Apps] itaykoren:
Dear OP,

In KG5, the last line which is supposed to be deleted is different.

It says: Cond_42 and not Cond_1 .

Should the same instructions apply? Or should I not delete this last line?
[Galaxy S II Themes and Apps] vassalle:
Hi, any chance this could work with modaco gr5? Or its an obvious no? Thanks
[Galaxy S II Themes and Apps] DarkMenTH:
This also works with the revolution 2.6 based on KH3?
[Galaxy S II Themes and Apps] DocRambone:
No idea, if the rom makers did change the android.policy jar.. then no, but make a backup and try?
[Galaxy S II Themes and Apps] DarkMenTH:
ok..now I try and let you know.
[Galaxy S II Themes and Apps] Oliwe:
Take a look at line 3902. If it says

if-ne v0, v1, :cond_42

then yes, delete these lines.

You'll also have to replace the

if-eqz v4, :cond_2

with

if-eqz v4, :cond_57

(see step 4).
[Galaxy S II Themes and Apps] DarkMenTH:
it works .. thanks ;)
[Galaxy S II Themes and Apps] alrit:
I've noticed that

if i let the phone sleeps itself, or manually turn it off then wait for about 10 sec, there'll still be a lag when next press home key.

otherwise, home key reacts very fast.

is this normal ? THX
[Galaxy S II Themes and Apps] t0ph0id:
Confirmed working on Modaco Gr5.

Thanks!
[Galaxy S II Themes and Apps] Oliwe:
Yes, that's "wakeup lag" (something totally different). It's the time the phone needs to wake the cpu from deep sleep mode and it is probably not fixable.
[Galaxy S II Themes and Apps] rickytenzer:
Thanks for that. The difference is that I'm using the NON deodexed KH3 ROM so my android.policy.jar doesn't have classes.dex in it. So I'm going to deodex it! :D
[Galaxy S II Themes and Apps] Streetking21:
Did not work for me. I am on Lite 6.1 as well but it ended up in a Android-System bootloop: home screen appears >> blacks out >> boot sound again and home screen reappears...
[Galaxy S II Themes and Apps] sicopat:
Will integrate too in my rom, as an update first.

It will be an odexed fix and should work on stock odexed firmware.

Android.policy.odex is also modded to add advanced power menu so i will provide the "Buttonfix" plus APM and will add the correct framewor-res.apk
[Galaxy S II Themes and Apps] sicopat:
Did you try to wipe dalvik cache ? Or just reboot again ?
[Galaxy S II Themes and Apps] Streetking21:
I tried it both ways, without and with a dalvik cache wipe: same result.

There is a difference in file size of about 200kb to the original file. That does not sound to me that there are just a few lines erased...
[Galaxy S II Themes and Apps] itaykoren:
Thanks!

I'll give it a shot.
[Galaxy S II Themes and Apps] rickytenzer:
Again, pushing the deodexed android.policy.jar caused me to get stuck at the boot screen. This time I was prepared by creating an update.zip for myself so that I wouldn't have to reflash stock.

This time I baksmali'd android.policy.odex, made the modifications, smali'd is into classes.odex, put that into android.policy.jar, pushed it to my phone and change android.policy.odex to android.policy.odex.bak (unless I'm horribly mistaken, I assume that deodexing means that you no longer need the associated .odex file, correct?)

Where am I going wrong?

EDIT: So I tried it again keeping the android.policy.odex there and it booted just fine!

EDIT #2: Okay, it appears as if it didn't work. From the launcher app drawer I still get a delay when pressing the home button. That means that the .odex is still taking over.

HELP PLEASE!!! :(
[Galaxy S II Themes and Apps] sicopat:
It s a bit more complicated. Or you deodex all framework folder or you keep it odexed. You just cannot deodex a single jar in the framework folder
[Galaxy S II Themes and Apps] t0ph0id:
Scrap that, was working fine until I rebooted.

Then got stuck at boot, once it finally booted lots of widgets on my home screen struggled to load.

Will wait until it gets incorporated properly.
[Galaxy S II Themes and Apps] rickytenzer:
Thanks for the response. A couple of questions:

1) How hard is it to deodex the entire framework folder? Do I literally do one .odex at a time or is there a script that will do it for me?

2) If I want to keep my framework folder odex'd, how can I achieve this mod? Because I tried modifying android.policy.odex and smali'ing back into that to then push it to my phone, but it lead to me being stuck at the boot screen.

Thanks!

EDIT: Tried again and this time I ran a logcat to see what the problem is:

That goes in line with me thinking that I can't do this on an odex'd ROM...
[Galaxy S II Themes and Apps] :
This may work.

Deodex your framework using xultimate 2.2.8. It will deodex apps and framework in one go.

Make changes to android.policy.jar. Push it back to phone.

Use Paul's odexme app to convert your deodexed framework/apps to odexed. Remember, this app needs busybox and init.d support. So its wont work on stock.

Edit : I am running Batista 3.4 on my phone which is a odexed rom. I converted it to a deodexed rom, made changes to android.policy.jar, pushed it into phone and then odexed the rom using odexme app. It is working so far.
[Galaxy S II Themes and Apps] rickytenzer:
Thanks for this. I'm just going to deodex it and keep it that way. Aside from ONE longer boot time, I see no reason not to deodex!
[Galaxy S II Themes and Apps] sicopat:
You can look for my 2 How to in official dev section :

How to deodex zipalign your rom and

How to manualy deodex and re odex back
[Galaxy S II Themes and Apps] sicopat:
Less memory comsomed

Less disk space used

There is a reason if stock firmware are odexed no ?
[Galaxy S II Themes and Apps] sckc23:
Same here. there still seems to be a lag half of the time.. :confused:

EDIT: This mod actually works but i misunderstand this as the same as a fix to wake up delay. Thank you Oliwe=)
[Galaxy S II Themes and Apps] rickytenzer:
I have plenty of disk space and RAM available. Those two pale in comparison to the home button lag. ;)
[Galaxy S II Themes and Apps] brenopapito:
Works with DarkyROM2 KH3 ?

:confused:
[Galaxy S II Themes and Apps] androidkid311:
How the f*** do u do that lol! Well done though :D. Android nerds ftw!!!! Lol.
[Galaxy S II Themes and Apps] rickytenzer:
FFS, I've given up. I deodexed the framework folder and pushed it to my system. Upon reboot, it got stuck at the boot screen. I'm reflashing now (even though I tried to make an update.zip to push the backup of the framework folder I had, which didn't work).

If ANYONE can make an update.zip for odexed ROMs, I'd really appreciate it. I've tried everything in my power and I can't get it to work.
[Galaxy S II Themes and Apps] sicopat:
Lol, you made me laugh :)

Here are my 2 CWM Mods with Home button lag fix for ODEXED firmwares :

1/ CRT + APM + HOME fix + Stock battery : HERE

2/ CRT + APM + HOME fix + stock battery with % (0 to 100%) : HERE

why with all that stuff around HOME fix ?

Because android.policy.odex is also modded to provide advanced power menu,

for APM we need to MOD also framework-res.apk.

With framework-res.apk we can mod the battery and add CRT.

That's why ... :)
[Galaxy S II Themes and Apps] rickytenzer:
Thank you SO much. That's exactly what I need. Care to divulge how exactly you go about modding this stuff? I'd love to learn...

I really just want to know how you modify the .odex so that it works upon boot. Mine was always causing the system to stall at the boot screen.

WOW. This mod is amazing. This has really been my only gripe with the phone to date and it's completely gone. Thanks again to the both of you.
[Galaxy S II Themes and Apps] sicopat:
Thanks for your feedback ;)

all credits to Oliwe of course, he is the real dev :)

All is explained in my HOW TO deodex and odex back (in the same official dev forum) : showthread.php?t=1208320

edit : @ Olive, no errors, for now and "no lag" too :), many thanks
[Galaxy S II Themes and Apps] rickytenzer:
Okay so my mistake was stupidly smali'ing the output back into a .odex file when it was actually deodex'd. I need to return it to odex and attach the original signature. Maybe now that I know how to do it I can actually start modding things :)
[Galaxy S II Themes and Apps] sumeshd:
Heartly thnx mate..ur. zip file wid fix works like a charm..

P.S. I m on darky's kh3 rom..

Thnx olive and sicopat..
[Galaxy S II Themes and Apps] jameslfc5:
Thanks for this altho I just flashed this on to Exynos 5.0 and tbh I can hardly tell a difference :/
[Galaxy S II Themes and Apps] lolmensch:
Read!

"Here are my 2 CWM Mods with Home button lag fix for ODEXED firmwares"

From Exynos thread:

Features:

- Based on XXKG6 2.3.4

- Rooted (Thanks to ChainFire) - CWM 4 included

- Multi CSC

- Deodexed !!!!!!!!

Edit: np ^^
[Galaxy S II Themes and Apps] jameslfc5:
Thanks mate, sorry for being an idiot and rushing in to things without reading :/
[Galaxy S II Themes and Apps] reggaemanu:
Here is the home button fix for Lite'ning Rom v6.1 XXKH3

http://www.megaupload.com/?d=ZX3VXDF5
[Galaxy S II Themes and Apps] bungknees:
Can anyone upload this fix for a deodexed rom, eg Batista 3.7.1, I had a look at doing it myself but WHOOSH, way over my head, will need to do a bit more research before trying this change myself and chucking on my phone. Dont want a paperweight.
[Galaxy S II Themes and Apps] sckc23:
I can help if you upload the .jar file ;)
[Galaxy S II Themes and Apps] jhonny23:
nice idea, thanks a lot
[Galaxy S II Themes and Apps] dsixda:
Here's the modified JAR file for the KH3 'Frankenstein' stock ROM.

Sadly, I don't see much of a difference.

EDIT: Doh! Looks like DocRamBone already posted this one a couple of days ago.
[Galaxy S II Themes and Apps] bungknees:
Here you go mate.

Legend.
[Galaxy S II Themes and Apps] gorgeousyousuf:
I am the second in the queue:) look forward to apply it and see the result.
[Galaxy S II Themes and Apps] sckc23:
Home button lag fix for Batista 3.7.1.

Back up the original .jar juz in case and 1st time reboot might take longer than normal. Enjoy :D
[Galaxy S II Themes and Apps] bungknees:
Your a bloody legend mate, thank you.

Already pushed the thanks button.

Edit: seems to be working great so far. Thanks again.
[Galaxy S II Themes and Apps] Café King:
Possible to get this mod to work on stock odex xwkf3 rom?

Thanks in advance :)

/CK
[Galaxy S II Themes and Apps] wonton1017:
how do you install .jar files?
[Galaxy S II Themes and Apps] sicopat:
deleted, sorry
[Galaxy S II Themes and Apps] sicopat:
You just have to copy them in /system/framework/ using root explorer for exemple (pay app), don't forget to select MOUNT RW in root explorer to enable write in system folder ... :)
[Galaxy S II Themes and Apps] DonJassa:
Hi, really great news that we have people here smart enough to solve complicated problems like this!

Would anyone be kind enough to mod my jar file??? I would really appreciate it. Here is the file... http://www.megaupload.com/?d=4W81MN1H

Thanks!

edit: This file is from Black Android Rom 1.0 in the Android Development Forum for the GS2.
[Galaxy S II Themes and Apps] Sleepycat3:
Or use a free one like ES file explorer.
[Galaxy S II Themes and Apps] sckc23:
I dun mind doing it but i can't access megaupload from where i live..=(

ps. seems like nitroz has discontinued the rom.
[Galaxy S II Themes and Apps] DonJassa:
I can re-upload to any other service which you can access if you let me know which is the best?

Also I have noticed he has discontinued the Rom but atm it works great for what I want it to do, so why fix something that isn't broken :)
[Galaxy S II Themes and Apps] sckc23:
Mediafire or filesonic should work.
[Galaxy S II Themes and Apps] DonJassa:
http://www.filesonic.com/file/1741820644/android.policy.jar
[Galaxy S II Themes and Apps] sckc23:
Here you are ;)
[Galaxy S II Themes and Apps] DonJassa:
Thanks a lot. Working great!
[Galaxy S II Themes and Apps] t0ph0id:
Any chance someone would do mine for me?

http://goo.gl/TMexg

It's for Modaco Gr5 in case anyone else wants to use it.
[Galaxy S II Themes and Apps] more2come:
Yeah, I'm interested in that, too!
[Galaxy S II Themes and Apps] jhonny23:
thats a superb contribution
[Galaxy S II Themes and Apps] gorgeousyousuf:
Hello;

Anyone please help me solve home button lag?

http://www.megaupload.com/?d=EI1GMCH8

Thanks in advance
[Galaxy S II Themes and Apps] sckc23:
Fix for Modaco Gr5. Most cooks have added this mod to their roms so hopefully this should be the last of the requests :)
[Galaxy S II Themes and Apps] t0ph0id:
Awesome, thank you!
[Galaxy S II Themes and Apps] rodigezstyle:
solved !!!!
[Galaxy S II Themes and Apps] Café King:
@ sckc23

I have sent you a private message, mate :)

/CK
[Galaxy S II Themes and Apps] raymie87:
where do i put this android policy zip file after editing?
[Galaxy S II Themes and Apps] kahvitahra:
Extract and put .jar to

/system/framework
[Galaxy S II Themes and Apps] raymie87:
how to extract?
[Galaxy S II Themes and Apps] kahvitahra:
Are you asking "How to extract .zip file?"

Seriously..
[Galaxy S II Themes and Apps] raymie87:
after extracting, it becomes a file folder. wad do i do after this?
[Galaxy S II Themes and Apps] raymie87:
anyone knows how do i extract the zip file to .jar?
[Galaxy S II Themes and Apps] kahvitahra:
If you really want some help, you might want to tell what are you trying to do and what have you done so far.

I really dont understand what are you asking..
[Galaxy S II Themes and Apps] raymie87:
wad i mean is after i have mod the android policy zip file, how do i extract to .jar format before putting it in framework folder?
[Galaxy S II Themes and Apps] kahvitahra:
You don't mod any .zip file. What you need to do is baksmali android.policy.jar --> make you changes to smali code --> smali it to classes.dex --> put that .dex file in android.policy.jar --> put that .jar file in your /system/framework

This only if you are running deodexed rom. For odexed there is few more steps.
[Galaxy S II Themes and Apps] raymie87:
i'm using lite'ning 6.1. i have the .zip file and now how do i extract or convert to .jar to put it in framework?
[Galaxy S II Themes and Apps] kahvitahra:
If you have .zip file that contains android.policy.jar file, then just extract it with 7zip or some other zip manager and push that .jar file to /system/framework with adb or root explorer.

If you have zip file that contains folders "system" and "META-INF" then its most likely cwm flashable zip, so flash that via CWM.
[Galaxy S II Themes and Apps] raymie87:
so for my .zip file i just rename it to .jar will do? I extracted the .zip file and it becomes a folder.
[Galaxy S II Themes and Apps] kahvitahra:
No, no and no :D

Just send me that file, ill make flashable zip of it. Tomorrow 'cause now im at work.
[Galaxy S II Themes and Apps] raymie87:
Attached file below. Thanks dude! :)
[Galaxy S II Themes and Apps] kahvitahra:
Here's that lt rom 6.1 cwm flashable file. Your file actually was just .jar file what was named to .zip.

http://www.multiupload.com/Q1Y3GS7A5N
[Galaxy S II Themes and Apps] raymie87:
Thanks! :D
[Galaxy S II Themes and Apps] kbkrogs:
This fix + Supercharger Script

Hello all. Just a sugestion. How will this fix work with the Supercharger Script where you set the homelauncher to Bulletproof. In theory this would keep the launcher in memory at all time and there would be no need for the launcher to load/redraw itself making the homebutton instant.

Im on CM7 and plan to stay on CM7 so I cant test it myself. :p

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

Read the thread and remember to giver credit to developer!
[Galaxy S II Themes and Apps] Mackzen:
Don't know if anyone had share the one for darky KH3.

Here is Mine :)
[Galaxy S II Themes and Apps] obdrz:
would anyone be able to help me modify

android.policy.jar it is from oxygen rom 2.2.2 to a flashable zip please

thanks for your help
[Galaxy S II Themes and Apps] jameslfc5:
Please can someone point me in the direction of the file I need for this fix on LeoMar 2.6
[Galaxy S II Themes and Apps] shafez:
Hi All

Could some one compile those files for me please.

I am using Stock Rom JPKH1 2.3.3

Regards