yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] intronauta:
This zip only change your power_profiles.xml, doesn't touch the battery mod or others files/mods inside your framework-res.apk. I don't know mods applied in the power_profiles.xml file, then is very possible that you don't lose any mod.

Anyway, you can try and if you have problems, you can flash the zip created in /sdcard/universalFlasher for revert your original and untouched framework-res.apk
[Galaxy S II Android Development] jj_95nano:
It was really smart of you to notice that value ... Finally no more lock screen lag for me!
[Galaxy S II Android Development] cnjax:
The reason I ask is it looks like one the lines in the code in op makes reference to the battery type and others were discussing the 2000 ma battery

Omega 16.2

philz kernal 3.75

ICS XD AIO mod

GT-I9100
[Galaxy S II Android Development] mrdigit420:
Just downloaded and will report back after few hours
[Galaxy S II Android Development] intronauta:
Ahhhh my bad. I read it wrong :S

yes, is for stock1650
[Galaxy S II Android Development] tuilalnvinh:
Thanks mate, I will test it :D
[Galaxy S II Android Development] medo159:
Flashed it on Bitfor V4 and no problems, it's an hour and not a single freeze so far.

Thanks mate, You are a genius.
[Galaxy S II Android Development] cnjax:
Flashed your zip and got bootloops :eek:

Omega 16.2

philz kernal 3.75

ICS XD AIO mod

GT-I9100
[Galaxy S II Android Development] intronauta:
Seems that this fix works flawless!

maybe you need to wipe dalvik-cache..

Flash the zip inside /sdcard/UniversalFlasher for revert the previous framework-res.apk

mmm ¿what rom are you using? Do you know if it only work with "signed" apps? This method break the sign.
[Galaxy S II Android Development] cnjax:
I was able to flash the back up your zip created and get system back up and running. Im on Omega rom 16.2 for jb also have ICS_XD aio mod installed and philz kernal.

Omega 16.2

philz kernal 3.75

ICS XD AIO mod

GT-I9100
[Galaxy S II Android Development] tuilalnvinh:
Me too, revert to the backup. I'm using neatrom
[Galaxy S II Android Development] mundixx:
I hope it's not too much, but can someone be kind enough to do a 2000 mah version?
[Galaxy S II Android Development] aromano91:
Can I flash on biftor ROM's v4.5?

Enviado desde mi GT-I9100 usando Tapatalk 2
[Galaxy S II Android Development] Ramelov:
Maybe the value for "CPU idle" is the key and not battery capacity. 2 versus to 4 seems to refer to number of cpu cores. I don't think that battery capacity value in framework should be adjusted to extended battery.

Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2
[Galaxy S II Android Development] wolper13:
hi!

I have a different framework-res.apk that i got it somewhere here and i like it cause it's fully transparent. now i like to edit it on my own and this is what i will do.

1. rename framework-res.apk to framework-res.zip

2. open using winrar

3. delete the power_profile.xml

4. drop the new power+profile.xml

5. rename the framework-res.zip back to framework_res.apk

will this procedure work?

thanks!
[Galaxy S II Android Development] marquimsp:
Flashed ok on neat rom, now let's see if it works.
[Galaxy S II Android Development] cyberbandit1998:
Flashed on i777 shostock and got bootlooped.:o
[Galaxy S II Android Development] ROHIT345:
Not working here. .. had one lockscreen freeze just after changing it. Will test further to see how it goes... running stock odexed Rom.
[Galaxy S II Android Development] SPYRO80:
Flashed -without any kind of wipe- on Omega 16.2 with no mods and seems to be working great so far. Many many thanks to Goldieking and whoever contributed to this superb fix that Samsung devs couldnt find!
[Galaxy S II Android Development] kazi_rizwan:
Working 100% for me, more than 24 hrs, no freezes :thumbup:

I feel so proud to follow goldie & mirko :D

Hatsoff to whoever, who found this ;)

Sent from my GT-I9100
[Galaxy S II Android Development] rajarshi10:
Can anyone create a flashable zip which does the whole work on a custom rom without losing any mods or ends up in bootloop?

Thanks :)
[Galaxy S II Android Development] drelite08:
Testing this on neatrom full as of now. :)
[Galaxy S II Android Development] apidroid:
ooooh my god !!!!!!!

thank you so much mate!
[Galaxy S II Android Development] FeuchtVonLipwig:
http://xdaforums.com/showpost.php?p=35324600&postcount=14526

use the fix for neatrom.
[Galaxy S II Android Development] rajarshi10:
Is it only for Neatrom or can be used with other custom roms? Will it remove any mods?
[Galaxy S II Android Development] mrdigit420:
so far no freezes at all (installed this around 7 hours ago) thanks goldie

i am on omega 16.2
[Galaxy S II Android Development] _Sale_:
only for neatrom and not modified framework-res

thanks Goldieking, 10h and not a single freeze
[Galaxy S II Android Development] rajarshi10:
So how do we make it work in roms like Wanam and others?
[Galaxy S II Android Development] wis1152:
http://xdaforums.com/showthread.php?p=35326415
[Galaxy S II Android Development] gagan_ahuja11:
I think izap ported s3 rom to s2...
[Galaxy S II Android Development] adilliano:
thats a great work now i guess soon we will sort out the battery drain issue.
[Galaxy S II Android Development] rajarshi10:
Confirmed working on Wanamlite. Cheers :highfive:
[Galaxy S II Android Development] Cyclone101:
I made edited the fremework-res from Chameleon rom and everything is working fine, no freezes so far. Cudos to Goldie!!

Here it is >>> Chameleon 3.0 LockscreenFix CWM
[Galaxy S II Android Development] Dasmikko:
Can i just flash this over Stock LSJ? I have no idea if i'm deodexed..
[Galaxy S II Android Development] tuilalnvinh:
It works ! :D, no freeze anymore
[Galaxy S II Android Development] gagan_ahuja11:
How to install .....I have jb stock leaked one.....please tell
[Galaxy S II Android Development] aromano91:
Can I flash on biftor ROM's v4.5?

Enviado desde mi GT-I9100 usando Tapatalk 2

Enviado desde mi GT-I9100 usando Tapatalk 2
[Galaxy S II Android Development] Goldie:
Ask the dev
[Galaxy S II Android Development] Dasmikko:
Just flashed it, and seems to be working perfectly!
[Galaxy S II Android Development] vitalianoleone:
great!
[Galaxy S II Android Development] rakeshishere:
Please correct me if I'm wrong but isnt the battery drain on WIFI related to the stock kernel? I wonder how a patched framework-res.apk can fix a major issue such as battery drain?
[Galaxy S II Android Development] Goldie:
I didnt say it would I said it may. If you phone thinks its capacity is 2100 how is it supposed to calculate an accurate reading when its 1650.
[Galaxy S II Android Development] FeuchtVonLipwig:
is there only one battery size available for the s3? dont we have a problem here now if we are using different batteries? i for example still have lockscreen freezes (ripple+inc effect+wlan activated) on neat rom with the fix. but i have a 2000 mAh battery and i think the fix i used is set to 1650. when i am at my computer i could try to change the file again to 1950?, but im not sure if i can repack the apk with winrar after i edit the xml file with a simple text editor and if it saves the file in the correct format again. does anybody use a extendet battery too and has tried the fix? because i dont want to flash zip files over and over again just because i want to change battery. well if it works as a temporary fix it would be awesome of course.
[Galaxy S II Android Development] sasukewa:
I am on NeatROM JB 4.1.2.... it still freezes but at a less frequency. Who uses NeatROM here and which version? Thx.
[Galaxy S II Android Development] aktorsyl:
I'd also like to know. I want to try this, but I also have a Samsung 2000mAh extended battery (and I'm running sale's NeatROM Lite) and I'd like to apply the zip file that sale released. But will this file work with the extended battery, or does it need to be modified?

(In a way it doesn't make sense to modify it though - after all, if you put an extended battery in your phone under normal circumstances, you don't edit an apk file just to update the capacity in the file, do you? On the other hand, if the apk file thinks it's 1650mAh and it's actually 2000mAh, would that not screw things up as well?)
[Galaxy S II Android Development] javascript18:
How about odexed roms?
[Galaxy S II Android Development] luslom:
I am running leaked LSJ with latest PhilZ and I just flashed it with a success, just like Dasmikko.
[Galaxy S II Android Development] javascript18:
You mean youre on odexed?

EDIT: I tried to flash the zip.. No freezes present...I'll observe it first :)
[Galaxy S II Android Development] davdavo:
What lockscreen freeze is this? I've been using LSJ for 2 weeks, no freezes...I'm curious to what it is and how to reproduce it.
[Galaxy S II Android Development] cerealguy:
Goldie I think that I can flash this over your AllianceRom?? Right? :)

Inviato dal mio Motorola 8900
[Galaxy S II Android Development] Goldie:
Nooooo!!! Fix for alliance is in ota :)
[Galaxy S II Android Development] cerealguy:
Excuse me, Sir...:o

Inviato dal mio Motorola 8900
[Galaxy S II Android Development] intronauta:
I'm experiencing the freezing problems in the lock screen again after the fix,although perhaps less frequently... :/
[Galaxy S II Android Development] luslom:
Hello,

I haven't done a thing to my ROM except of changing to PhilZ so I guess I am odexed :)

All the best
[Galaxy S II Android Development] andolfree:
for simplicistic JB 4.1.2 rom?? which i can flash?
[Galaxy S II Android Development] cnjax:
Thanks To Goldie's help I was able to manually edit the framework-res apk and and flash it. I'm on Omega 16.2 with ICS XD AIO mods. Suscessfully booted and so far now freeze. Many Thanks to Goldie and whoever found this fix. Now to test for awhile, will report back later.
[Galaxy S II Android Development] Riskytwin:
No lock screen freeze since yesterday. Wow I think this works! And battery also good, I love jellybeans...
[Galaxy S II Android Development] nickmax1:
cnjax for the benefit of the many indie omega users can you upload your version?
[Galaxy S II Android Development] cnjax:
Sure can you tell me how to upload the file right now im using the xda app on my phone

Omega 16.2

philz kernal 3.75

ICS XD AIO mod

GT-I9100
[Galaxy S II Android Development] Roulianooo:
Just flashed after made my own zip cause i'm on Wanam V13 + AIOM by ics_xd

No issues for now but will report back later :)

Thanks ! :)
[Galaxy S II Android Development] nickmax1:
not sure to be honest, can you PM me the file, or email me the file (nickmax1 @ hotmail dot com) and i will put it on dropbox for Omega users to share.
[Galaxy S II Android Development] Joloxx9:
Could you make a fix for alliance and 2000 battery?

Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2
[Galaxy S II Android Development] cnjax:
Ok I uploaded to droxbox http://db.tt/l6nKKvbY remember this zip is only for the rom and mods in my signature. Im not responsible for any problems with your phone

Omega 16.2

philz kernal 3.75

ICS XD AIO mod

GT-I9100
[Galaxy S II Android Development] andolfree:
anyone can make a fix for simplicistic JB 4.1.2 and 2000 battery?
[Galaxy S II Android Development] nickmax1:
thanks CNjax,

I have the 1900 anker battery - with no mods - i will give this a go.
[Galaxy S II Android Development] apidroid:
with neat rom it freezed only once anyway i went back to my old rom.

until it gets stable
[Galaxy S II Android Development] pasanjay:
Im facing a small issue.. After flashing this lock screen is working great. But when try to go to lockscreen options, settings FC :(
[Galaxy S II Android Development] Goldie:
What rom did u flash it on?
[Galaxy S II Android Development] wittanny:
The screenlock freeze has gone most of the time, though whenever there's a program running in the background it still has some delay.
[Galaxy S II Android Development] pasanjay:
On alliance :p
[Galaxy S II Android Development] AllSeeyinEye:
And did you flash the version from OTA? Or one from this topic?

Sent from my GT-I9100
[Galaxy S II Android Development] nechmadi:
where's the fix for alliance in the ota ? i cant find it :(
[Galaxy S II Android Development] Martillero:
Change the ink color to none or one of the first 8th colors and try again.
[Galaxy S II Android Development] cerealguy:
+1

Inviato dal mio GT-I9100 con Tapatalk 2
[Galaxy S II Android Development] Goldie:
Just get the pack from updates. Stock or blue depending which theme you are using. It includes all the fixes which were separate before
[Galaxy S II Android Development] Goldie:
So....after 24hrs it seems many people see a big improvement but the bug does still present. Will look into it some more :)
[Galaxy S II Android Development] shoman94:
Try that bool setting I was telling you about. I believe mirko is trying it now also.... I asked him to anyway. Some claim it's kernel related but we'll see.
[Galaxy S II Android Development] Dexter_prog:
one freeze after 1 day of use on Disaster Rom. Fixed by turning the screen off and on in less than a second. Seems pretty good to me anyway.
[Galaxy S II Android Development] jaher:
Same still exp lockscreen lag
[Galaxy S II Android Development] OrpaZZ:
If Iwant to edit this power_profile.xml file, what program should I use?

I tried Notepad++ and Amaya but both of them can't read the file properly
[Galaxy S II Android Development] Goldie:
Its compiled. You need to decompile your framework-res to get one you can edit :)
[Galaxy S II Android Development] iamflamez:
Need to change Wi-Fi drivers in the kernel to fix lock screen
[Galaxy S II Android Development] aromano91:
anyone who flash on biftor rom? or it's only for neatrom?
[Galaxy S II Android Development] rakeshishere:
This!!

No offense to Op or person who claimed to have found this fix but I'm suspecting its kernel having borked wifi drivers which is responsible for lockscreen freeze and Battery Drain.

Poland should be getting OTA update soon so let's see if this gets fixed in official release.

Sent from the Matrix
[Galaxy S II Android Development] cnjax:
Agree the wifi implementation in the leaked jb is messed up

Omega 16.2

philz kernal 3.75

ICS XD AIO mod

GT-I9100
[Galaxy S II Android Development] Goldie:
Hence the word "TEST" in the thread title....

Although...if it has no effect it certainly seems to have made a huge decrease in frequency for a LOT of people...
[Galaxy S II Android Development] wally_tech:
I installed the zip file via recovery.

It changed my wallpaper to stock and the lockscreen wallpaper to black.

As far as results, it worked nicely for a couple of hours, no freezes on about 10 unlocks.

But I just got a freeze on my latest unlock. So it works partially.
[Galaxy S II Android Development] takkaros:
I believe mine is completely fixed. Ive been using Sale's fix for over a day. Neatrom lite

Sent from my GT-I9100
[Galaxy S II Android Development] rakeshishere:
Test fix for a test f/w :p

I agree that test fix has definitely reduced the frequency of lockscreen freeze on wifi.

Sent from the Matrix
[Galaxy S II Android Development] gm007:
You can turn on wifi,bluetooth,gps all together to reduce the lock screen freeze,this is another temporary fix till the official release ;)
[Galaxy S II Android Development] pasanjay:
Its fine now. I changed the ink colour to default blue
[Galaxy S II Android Development] javascript18:
After 24 hours lock screen freeze is still persisting...but it lessen the freeze...I hope it will completely fixed....

Official jb I cant wait... :)
[Galaxy S II Android Development] Paul_Days:
So far so good....is it me....or does the phone seem faster :p
[Galaxy S II Android Development] yalouf:
Will try it tonight. What battery life do you get with lsj leaked ROM ???

Envoyé depuis mon Galaxy Nexus avec Tapatalk
[Galaxy S II Android Development] javascript18:
As of now...no battery drain, I freezed bloatwares...
[Galaxy S II Android Development] aktorsyl:
Which bloatware, and what did you use to freeze it?
[Galaxy S II Android Development] javascript18:
Chaton

Maps

Allshare play

Google search

Zinio

Days

Kobo

Talk

Gamehub

Talkback

Groupcast

Bluetooth test

Wlan test..

I used link2sd :)

I cant remember all of them..

Stock apps are frozed because I dont use them... there is a thread regarding bloatwares..There are lots of bloatwares they frozed
[Galaxy S II Android Development] aktorsyl:
Thanks mate. I'll try killing some of them - can't kill all, because I use Google and Maps quite a bit on my phone. Which is a pity, because Maps is easily the biggest battery drain on Android :/
[Galaxy S II Android Development] OrpaZZ:
I didn't understand.. How do I do it? Do you have any tutorial to give me?
[Galaxy S II Android Development] Goldie:
Try this ;)
[Galaxy S II Android Development] javascript18:
Dont kill necessary apps..it will give you errors...Try to search the thread about that.... :)
[Galaxy S II Android Development] antares_requiem:
So far so good

So far so good. Seems to be fixed! Testing will continue, although it seems Samsung work is pretty useless sometime, many guys from XDA should be working for them to improve the final results ahhaha.

Thanks a lot guys

:fingers-crossed:
[Galaxy S II Android Development] andolfree:
who can make a fix flashable for simplicistic rom 4.1.2 with 2.000 battery?
[Galaxy S II Android Development] catalintus:
Working great on NeatRom. Thank you good sir!
[Galaxy S II Android Development] Roulianooo:
Have no freezes since flashed this fix

Battery seems also better and phone more responsive or just a placebo :)

Anyway Thanks !
[Galaxy S II Android Development] mozabhier:
Tested for last hour on Neat room lite v4.0 and seems to have fixed freeze issue. Battery will take a few days to test although battery saving mode seemed to work well anyway as I always leave wifi on.

Thanks
[Galaxy S II Android Development] superleeds27:
Yeah, a 2000mah would be good
[Galaxy S II Android Development] Dalidah:
Yes please
[Galaxy S II Android Development] Goldie:
Dont worry about battery size. People have always used bigger batteries without changing that. If anything its the 4 - 2 that helps but it doesnt fix it totally. It does decrease the frequency of the freezes though.
[Galaxy S II Android Development] lasic.2000:
Guys, do I need change this bool for stock battery and PowerPack ?

Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2
[Galaxy S II Android Development] rakeshishere:
After testing this fix for 4 days, here is what I concluded. The Fix isn't 100% but helps reduce the freeze to a considerable extent

I need a final OTA f/w or a new leak with this lockscreen bug fixed :o

Sent from the Matrix
[Galaxy S II Android Development] gregpot2000:
The won't flash for me, gives me some kinda of extracting error when flashing?
[Galaxy S II Android Development] Zimaia:
With me this doesn't fix it

i'm in disaster 4 and i have freezes all the time
[Galaxy S II Android Development] Dexter_prog:
Just wanted to report that with Wifi set to be disabled when screen goes off I'm having more freezes than with Wifi on all the time
[Galaxy S II Android Development] mbarreto:
2 Days and counting

So, after 2 days still not a single freeze. That's good considering I had a freeze every half hour or so. Good job.

edit: one freeze after two and a half days. Not bad!
[Galaxy S II Android Development] crypticc:
+1

(edit, and actually I re downloaded without using a download manager and it worked)

Feedback is that apart from first wake up of a given reboot cycle it's much better
[Galaxy S II Android Development] hazwheel:
No bootloops on unmodified wanamlite, no lockscreen lag seen so far either :) cheers dude

---------- Post added at 05:02 PM ---------- Previous post was at 04:21 PM ----------

Try flashing the cwm zip instead of the XML file, it will work then :p
[Galaxy S II Android Development] kabangena:
Working great!

no freezes for about 20 hours!

Great job

I9100T with anker 1900ma
[Galaxy S II Android Development] tomurbanowicz:
I have freezes :(
[Galaxy S II Android Development] gregpot2000:
Ok, so just again, the error message is. "Can't extract update binary" I am certain I am flashing the correct zip. Does anyone know what this means?
[Galaxy S II Android Development] sergioortegac:
Peerfect. I instaled in disaster rom and work perfectly. Thanks a lot ;)
[Galaxy S II Android Development] koocheese:
Unfortunately not working here.

i9100m (Bell/Virgin flashed with Neat Lite)

Disabled Google Now, removed the shortcut as well as the camera shortcut from the lockscreen but it still persists.
[Galaxy S II Android Development] crypticc:
Re-download perhaps? This is the same error I had and I think the download didn't like coming via a download accelerator
[Galaxy S II Android Development] JoFury:
+1
[Galaxy S II Android Development] ranzzit:
Odexed ROMS

Hi

Can someone please clarify if this will work for Odexed Roms as well? I have the stock rom which is odexed.

Thanks
[Galaxy S II Android Development] gregpot2000:
re-downloaded it, and it works fine now:D

No lockscreen freezes for me any more so far, even if doesn't end up working all the time for me, one freeze every few hours is much better than one 50% of the time!!:D
[Galaxy S II Android Development] ranzzit:
Anyone??
[Galaxy S II Android Development] khaled_7:
I noticed that it happens when you have low signal of wifi.

does that make any sense ??!
[Galaxy S II Android Development] hero209:
Hi ranzzit,

I've tried myself to decompile the framework-res.apk from XXLSJ odexed and have managed to edit the power profile (cpu changed from 4 to 2 and battery changed from 2100 to 1650). I then compiled the framework-res.apk and signed, but when I replace that new apk in my S2 (I changed the permission already), I could NOT make it boot (i.e. bootloop).

If anyone has a solution, please help. For now, I just go back into downloading mode and flash again the XXLSJ version.

Waiting for advice from OP.
[Galaxy S II Android Development] gregpot2000:
Hmm lockscreen problem back now! Oh well..
[Galaxy S II Android Development] Dannyvld:
Why it isnt available for custom ROMS? I want to get rid of this freezes.

Sent From My Rooted Samsung Galaxy S2 JB 4.1.2 (GT-I9100)
[Galaxy S II Android Development] Goldie:
Because I cant account for your rom chefs changes to framework.

Its in most custom roms now anyway
[Galaxy S II Android Development] Dannyvld:
There is any change it works then?

Or you mean in much roms its already fixed?

Sent From My Rooted Samsung Galaxy S2 JB 4.1.2 (GT-I9100)
[Galaxy S II Android Development] lalasdj:
for nofreeze lockscreen and mhl working ok in 4.1.2 xxlsj use modem xxls6 and original kernel. ics no brickbug containing.

and voila....

Tested.

no need edit resframework.apk
[Galaxy S II Android Development] wittanny:
Mind to share where to get those modem and kernel?
[Galaxy S II Android Development] kabangena:
Still have freezes when on wifi :crying:
[Galaxy S II Android Development] Goldie:
Ics kernel? ??
[Galaxy S II Android Development] SPYRO80:
freeze only with notifications?

It seems that I only get the freeze when I have notifications pending at the status bar (ex. email). Maybe it's worth checking out.
[Galaxy S II Android Development] lalasdj:
Yes .jb kernel. Extracted from original firmware
[Galaxy S II Android Development] Goldie:
Id rather have a safe kernel and occasional freeze rather than mess about every time I gotta wipe
[Galaxy S II Android Development] tomurbanowicz:
I have got oryginal kernel and radio, and still freezzes.
[Galaxy S II Android Development] tomuknz:
I am using Omega's custom version of LSJ. I added the file to Framwork-res.apk on my PC and then loaded it into the phone using Android Commander.

Rebooted and voila! It seems to be working! Will report back any issues - thanks for this, a minor annoyance but wanted to fix for ages!

**EDIT: Second that - still seems to be occurring, although no as much... although maybe I just haven't been leaving it long enough in between each attempt?
[Galaxy S II Android Development] tintin.92:
Quick question. It seems many rom developers have already incorporated this. Does anyone know if it's there in biftor v4.7?
[Galaxy S II Android Development] zt_lee:
I flash it but it doesn't work and I dont noe whether I really sucessfully flash it XD