yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II Android Development] sripin:
Hi guys can some 1 help me here is mine its just been 5 days i got d phone so am ultra noob plz help

android lover cz of blade rom n team thanks df
[Galaxy Note II Android Development] sripin:
Here it is
[Galaxy Note II Android Development] sripin:
Plz help:(:(:(

android lover cz of blade rom n team thanks df
[Galaxy Note II Android Development] sad_but_cool1:
Really great work man!!!

:D:D:D
[Galaxy Note II Android Development] kingofthebraves:
I just got a new note 2 to replace my old one and it's still on stock rom 4.1.2 and there's no wake lag!! Screen appears instantaneously and yes my old note 2 had the 1-2 second screen lag so I know what to expect. Anyone else have this?
[Galaxy Note II Android Development] sripin:
Sm 1 plz help me:(:(:(

android lover cz of blade rom n team thanks df
[Galaxy Note II Android Development] The_Steph:
kingofthebraves,

As Simplistic Framework (SF) 3.6 arrived, I wanted to add mikeyxda's wake lag fix as I did with version 3.5.1 but I realised that some part of mickeyxda's code was already inside the smali file which would mean, as LegendK95 (SF creator) did not mention that he implemented the wake lag fix, that Samsung did it and corroborates what you wrote 10 days ago and more generally, that wake lag fix is no longer needed. Anyway, I need to have SF work for a few days to be 100% sure of what I am writing.
[Galaxy Note II Android Development] kingofthebraves:
My bad. I used the phone for a few days and it's definitely there. But here's the thing I was 99percent sure there was no wake lag when I did a hard reset and that it only appeared when I loaded all my apps and data.
[Galaxy Note II Android Development] The_Steph:
I will look on how to implement it for SF 3.6 then :) Not sure I will manage anyways. But if I succeed I will post it here.

Edit: I think I managed to make it :D It works on my Note 2 so please other SF 3.6 users, try and report.
[Galaxy Note II Android Development] pratik_193:
Can some one pls modify my policy.jar file

hi ,

I am on Stock ROM, rooted, i am attaching my jar file can someone please help me in reducing the wake lag .. i am in a desperate need for this fix..!!
[Galaxy Note II Android Development] tacchan23:
Is there any ROM with the wakeuplag fix included already?

If not, can I try the file you attached on any Samsung custom rom with SF 3.6?

Thanks!
[Galaxy Note II Android Development] The_Steph:
tacchan23,

As far as I know, there is not ROM with the wakelag fix embedded as many ROM cooks say that Samsung has modified the android.policy.jar hence deprecated this fix. But to me this is not the case hence my latest modification.

I think that you should use the file I posted then.
[Galaxy Note II Android Development] maxiii:
working fine here.. many thanks bro :good:
[Galaxy Note II Android Development] khudson:
I Tried couldn't do it...

Can someone please help me with my file. I followed all the noob steps and still messed up. Can someone please edit and return?

Its Verizon Note 2 running Goodness 1.0.8 rom...
[Galaxy Note II Android Development] Sheeptar:
Guys, a little help please. I'm trying to do as much a possible on my own, so I learn something. I'm using bharathgdk's awesome guide, from page 23.

I'm using ROM Project AOSP [tw based aosp skinned rom] 1.4.1, i got the KeyguardViewMediator.smali file and I'm editing it. But a few things are not the same as in the first post. First two additions are the same as in the first post. The third and fourth block of code doesn't match. For example, it should write ".locals 3" but it says .registers 5". Will this still work? These are screenshots of my code.

Thanks for helping!
[Galaxy Note II Android Development] The_Steph:
Sheeptar,

As the changes are at the beginning of functions I would say yes they should work. To be 100% sure you could recover, backup your original android.policy.jar first then try, if something goes wrong, go to recovery (even if you have to do it manually when starting your mobile) and put your backup file back to its original place.
[Galaxy Note II Android Development] Sheeptar:
Thank you! I'm fairly new when it comes to nandroid backups, only done one. If I do a nandroid backup before I insert the new android.policy.jar, that would backup everything, in case something goes wrong, right? If something were to go wrong with this I would still be able to enter CWM? I don't know really what I'm doing, but I am editing system files. I already have a backup of android.policy.jar on my PC.

I'll replace android.policy.jar this afternoon when I have a little more time. Hope it works.
[Galaxy Note II Android Development] The_Steph:
Simply access you mobile using adb. For instance you could type in a cmd shell if you are under Windows : "adb pull /system/framework/android.policy.jar" (this command is working in recovery as well as long as your system partition is mounted) and file will be copied to your machine or use a file explorer to copy the android.policy.jar to another location (on you external sdcard for instance).

To be honest, if you have the zip file of the ROM you flashed on your mobile, you can simply open the zip file and look into /system/framework and extract it from here.

If something goes wrong, you need to reboot into recovery (I hope you have something more powerful than stock recovery, see my signature for a link to twrp recovery), press mount button, tick system if not already ticked and issue the command "adb pull android.policy.jar /system/framework/android.policy.jar" to copy the file and after type "adb shell" and "chmod 644 /system/framework/android.policy.jar" to give it proper rights. Reboot and voilà :)
[Galaxy Note II Android Development] Sheeptar:
I use clockworkmod touch recovery.

Now that I modified the android.policy.jar. Is it simply a matter of copy/pasting it into the correct folder on my phone and rebooting?
[Galaxy Note II Android Development] Sandata:
I fixed it by turning off animation & lock sound :}

_____________________

Via GT-N71OO using XDA_Elite_App
[Galaxy Note II Android Development] Sheeptar:
Okay.. So I tried to copy/paste the modified file with Solid Explorer with root access.

Suddenly, without a reboot - seconds after the paste, I get a "loop" of sorts. Reboot phone, system tells me it's upgrading android and goes through all apps. Then won't boot, gives me all sorts of errors, even Android account manages force closes.

Is this all because of android.policy.jar? Thank god I had a nandroid backup so everything is fine.

EDIT: Yes, it is. My corrections borked up the phone completely. Won't be trying again.
[Galaxy Note II Android Development] Blizzard22:
I'm sorry to ask this but what exactly is required to do this change on WanamLite 3.8 with Simplistic framework 3.6?

Is there a easy flashable way to this mod?
[Galaxy Note II Android Development] Blizzard22:
Is there nobody who can help me?
[Galaxy Note II Android Development] Scarface1991:
You need to learn how to decompile, edit and then to recompile a jar file. If you know that, you can then follow the instructions given at the first post. There are quite a few tutorials here at xda on how to do this. You can then go a step further and learn how to make a flashable zip, which is better than to replace a file while its being used right now

Gesendet von meinem GT-I9300 mit Tapatalk 4 Beta
[Galaxy Note II Android Development] dianlb50:
Omega v18

Hey hey, is there a file for Omega v18 ? without SF.

Cheers
[Galaxy Note II Android Development] qwerty017:
Made a quick Tasker Profile

Made a quick Tasker Profile which seems to be working just like the Mod. Only things needed are Tasker and Secure Settings.

Below is the description and I have attached the xml as well. If anyone sees an issue I will try and correct it then re-upload.

Profile: Screen Off Wake Lag (5)
State: Display State [ Is:eek:ff ]
Enter: Wake Lag Mod (17)
A1: Secure Settings [ Configuration:CPU Awake Only
Manual - On Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

Exit: Wake Lag Off (23)
A1: Secure Settings [ Configuration:CPU Awake Only
Manual - Off Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]

Only thing new is a loop and a wait. I noticed even though the wake lock should continue until turned off it stops on its own after 15-20 minutes so the new code just makes it wait 15 minutes then reset the wake lock. So far I haven't had any deep sleep in over 2 hours so seems to be working better now.

Profile: Screen Off Wake Lag (5)
State: Display State [ Is:eek:ff ]
Enter: Wake Lag Mod (17)
Abort Existing Task
A1: Secure Settings [ Configuration:CPU Awake Only
Manual - On Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):5 Continue Task After Error:eek:n ]
A2: [X] Notify Sound [ Title:Test Text: Icon:null Number:0 Sound File:/storage/sdcard1/Notifications/mirai_nikki_tone.mp3 Priority:3 ]
A3: Wait [ MS:0 Seconds:0 Minutes:15 Hours:0 Days:0 ]
A4: Goto [ Type:Action Number Number:1 Label: ]

Exit: Wake Lag Off (23)
A1: Secure Settings [ Configuration:CPU Awake Only
Manual - Off Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):5 ]
[Galaxy Note II Android Development] Linsanity:
Upload from CleanRom (Verizon)

Hi this is my upload from CleanRom. Could any help me mod the android.policy.jar? thanks
[Galaxy Note II Android Development] socross:
Thanks for this! While I've used tasker before, I found your post a little hard to follow. What I did was set up a profile like this:

Display state off: wake lag mod (task)

Wake lag mod task: Configuration: CPU Awake only manual on

That's it. So far it's working, but I feel like I'm missing something since your post was more involved. I didn't understand "package" after manual-on, or where to find most of those settings for the actions you outlined. Is there a problem with the way I did it? Thanks again!
[Galaxy Note II Android Development] qwerty017:
The package is Secure Settings which is what I used to make the Wake Lock. The only other things my version does is re-run the Wake Lag task once every 15 minutes as I found that the Wake Lock would stop after about that long and then I would have lag again. Mine also has an exit task to stop the Wake Lock on Screen On as that is what the original Wake Lag Mod was said to do.
[Galaxy Note II Android Development] socross:
Ah, gotcha. Thanks for the info, this has been an annoying "feature" of the GNII so I'm glad I found your post!
[Galaxy Note II Android Development] qwerty017:
No problem. Glad I could help.
[Galaxy Note II Android Development] jsadler09:
Thanks for this. I was originally getting an error stating "java is not recognized as an internal or external command" when trying to run the batch file. I had to copy all of the files/folders into C:\Program Files (x86)\Java\jre7\bin and run them there to get it to work. Once I figured that out it was easy.

Like a dumbass I renamed android.policy.jar through Root Explorer and was then going to copy over the modified version, but renaming that file hosed the phone and I couldn't get the screen to come back on in the OS. Fortunately I was able to boot in into TWRP and rename the file and get everything working.

No more wakelag for me! Thanks again to you and mikeyxda for putting together this info.
[Galaxy Note II Android Development] mooro99:
new leak 4.3

Hello !

Can anyone tell me if andoid.policy.jar changed a lot on 4.3 new leak for n7100? Is this method still available?

And if not do you think it's possible to integrate script in an xposed module?
[Galaxy Note II Android Development] tieuphong:
Hi man, could you modify my file please

https://db.tt/rb81TSgK

Thanks!
[Galaxy Note II Android Development] Gnarfsan:
You should use the app instead. It works with all your future ROMs

http://xdaforums.com/showpost.php?p=39889459&postcount=135
[Galaxy Note II Android Development] wilflare:
would this work on a Samsung Galaxy Note 3?

I wonder if this is causing all the ssp_sensorhub wake locks on BBS
[Galaxy Note II Android Development] JezzeB:
Has anyone have a .jar that works with alliance ROM v4? Tnx

Alliance Rom baby!!
[Galaxy Note II Android Development] johnaguilar22:
Using Sentinel Rom V 5.00 Android 4.3

Hi every one !!

Saw few posts for CM related. I'm using CM 10.2 Sentinel ROM V 5. If possible can someone edit my file as well please :o.

Thanks so much in advanced
[Galaxy Note II Android Development] weasl:
andorid.policy
[Galaxy Note II Android Development] erikmlakar:
Hi.

So I did everything following instructions, but it isn't working. Could someone please make me a flashable zip of modified policy?

Thanks in advance
[Galaxy Note II Android Development] Mashed_Potatoes:
Download SoftLocker from Play Store - it will do the same trick as this tutorial.;)
[Galaxy Note II Android Development] erikmlakar:
Thanks, works great :)
[Galaxy Note II Android Development] Mashed_Potatoes:
:good:
[Galaxy Note II Android Development] erikmlakar:
It drained my battery from 65% to 23% over night, so I'm giving up with zero wake lag.. Does anyone know if Note 3 has the same problem with waking up?
[Galaxy Note II Android Development] Scarface1991:
It's the Exynos processors that have this kind of problem. Qualcomm based Smartphones don't have this problem as far as I know
[Galaxy Note II Android Development] Mashed_Potatoes:
Why not turn it off before going to bed? It's a 1-click operation
[Galaxy Note II Android Development] Mashed_Potatoes:
Also, i think you should replace your battery. 40%+ overnight is not good....I lose 1% every hour with SleepLock
[Galaxy Note II Android Development] Mercath:
I have the Snapdragon Note 3, and I have the wake lag too. It's driving me nuts, and is completely unacceptable on this type of device (aka expensive and supposedly the most powerful in the world currently).

If I can't fix it, this baby will be sold. Heck, my Nokia Lumia 520 (that I bought for $70 as a backup phone) has 0 wake lag.
[Galaxy Note II Android Development] OrpaZZ:
Can someone please mod this file?

This is the file from Ditto Note 3 (DN3) ROM

I really tried to do it myself but I got bootloop so I gave up
[Galaxy Note II Android Development] EnterLordVader:
Any new suggestions regarding the wake up lag in Galaxy Note 3? it's driving me crazy.
[Galaxy Note II Android Development] mirzo:
[MENTION=5057852]EnterLordVader[/MENTION]

Instal SoftLocker from Market. It helps a little
[Galaxy Note II Android Development] The_Steph:
[MENTION=5057852]EnterLordVader[/MENTION],

Use the Tasker script given above it works perfectly!
[Galaxy Note II Android Development] EnterLordVader:
I downloaded the xml file but I haven't used Tasker before. Do I add a profile?
[Galaxy Note II Android Development] EnterLordVader:
Can someone please post a little guide for how to add this profile In Tasker? Would be greatly appreciated.
[Galaxy Note II Android Development] darwinwin:
you download this and the script

Extract the zip file to obtain a .xml file then open tasker, click on profiles ( click on the label on top) , import and navigate to the xml file
[Galaxy Note II Android Development] Uz4ever:
I really appreciate this fix but I can't apply it to my note2, it's too difficult for me ...

At the moment I'm using an app called "softlocker free"... It's the same?

There's not another app that disable the deep sleep without compiling and editing files manually?

Thanks

Sent from somewhere with my UZgalaxyNote2
[Galaxy Note II Android Development] Banutu:
Same....gave me a headache, thanks for the that app, seems to be working fine for me.
[Galaxy Note II Android Development] eZdubzitmk4:
for anyone that wants to do this on kit kat, its in keyguard.apk
[Galaxy Note II Android Development] DevilMayLaughXD:
help for kitkat

can someone post one which is working on kitkat for me :confused:? im on dn5+ kitkat 4.4.2
[Galaxy Note II Android Development] CryptKilla:
Same also...when someone calls the wakeup is much delayed

Sent from www.gog.joyheat.com | www.callofgods.de
[Galaxy Note II Android Development] DrunkUncas:
Could something like this be used to emulate the always on listening used to voice unlock some newer phones?

The Snapdragon 800 apparently has a separate, low power chip which allows it to listen all the time without burning through battery.

Could dedicating a single core do something similar?
[Galaxy Note II Android Development] mulletcutter:
still have this crappy wake lag on 4.4.2 and .3, tasker wont find that .xml. i goto the folder and it just doesnt see it
[Galaxy Note II Android Development] dreamertr:
I have no problem with jellykat v5. KitKat 4.4.2. I read that this is a common KitKat 4.4.2 problem. Luckily I'm not encountering this problem.
[Galaxy Note II Android Development] Banutu:
This is mind blowing...don't know how long it will take but I just hope some person with some advanced knowledge over this will spare his 5 mins to help me... I would appreciate it.
[Galaxy Note II Android Development] dr.ketan:
No more this method will work on kitkat unless it updated for same.

said code no more available in android.policy.
[Galaxy Note II Android Development] Banutu:
If I change the bootloader could it solve the look problem ?? , I'm on 4.4.2 France XXUFND3

Thanks.
[Galaxy Note II Android Development] dr.ketan:
I don't think changing bootloader can make any difference, btw you are already on ND3 bootloader then it's kitkat and no needs to upgrade.
[Galaxy Note II Android Development] wesamothman:
As Dr. Ketan said. No more applicable. Even if resources are added or found a way smiliar to this. You loose deep sleep.

I have done that on 4.3 and it is not advisable.

Dr Ketan might have a way through advanced utilities mod through cpu gov control ...

Nevertheless I don't yet see the lag you are guys talking about.

Fact is most roms are with s5 and n3 features and yet complains about 1 second wakeup that I don't see. It could be different from device to another. Maybe.
[Galaxy Note II Android Development] Banutu:
I found a way where you can eliminate screen wake lag and have an alternative to go into deep sleep as well to save battery.

First you must have xposed installer, with the double tap2 sleep module.

Then you must have custom kernel (Nadia), în trickstermod where you apply settings for your kernel there is a feature called Touch Wake, activate it and set the delay to 0.

Now I don't know if it will work the same for everyone, but for me it works this way:

If I lock the phone by double tap status bar, I will have no screen wake lag, but by this I suspect the phone won't go into sleep mode, that means some battery drain (10% in 10 hours, I haven't tested it but I will update on that).

Now if I lock the screen by power button the phone will go into deep sleep within few seconds and you won't have that slight battery drain but you will have a 1 - 1,5 seconds wake lag.

The beauty of it is that you can use it throughout the day and at night lock by power button to not lose battery, it might be awkward for some but it's better than nothing..

Found out about this earlier and I will test this for a couple of days and see how it will work out with the battery and update here.
[Galaxy Note II Android Development] tomnj1961:
There is also a free app from the play store called "wake lock" that does the trick. Battery drain minimal. Worked well for me.
[Galaxy Note II Android Development] price31:
I have a note 4 American version and I observe the same screen wakeup lag. I'd say 1s compared to my friends note 4. Both exactly the same on stock factory reset. Tried all possible combination, Rooted non-rooted, swap batteries, swap simcards. I feel like it's pure hardware.... Does anyone have any suggestions to resolve this issue? Thank you
[Galaxy Note II Android Development] Banutu:
Won't go for Samsung next time when buying a phone.
[Galaxy Note II Android Development] price31:
I removed my microsd card and no more lag!
[Galaxy Note II Android Development] nintendolinky:
I've attached it.
[Galaxy Note II Android Development] ahkiongkc:
This is a good one! I can't wait to give it a try... hope it will have great savings on my battery.

---------- Post added at 03:39 PM ---------- Previous post was at 03:34 PM ----------

Mine was deodexed... will it work? By the way, which file should i replace this with ?
[Galaxy Note II Android Development] xcxa23:
hi, i just finish modding for simplistic framework 3.5.1 and already flash to ARHD romv14

may i ask OP to check my edited android.policy.jar??

certainly the wake up lag is gone but it keep on 200mhz :confused:

edit : okay, i just read from ur thread.. understood why it will stay on 200mhz but still, would u mind to help me check to see if anything was wrong?? thanks alot mate

edit2 : it seems like it will better to use profile ie:SetCpu to put 'screen off' to max 600mhz min200 to prevent cpu load
[Galaxy Note II Android Development] Nicheuji:
I'm using ARHD v14.0. I'm guessing I have to provide you with my android.policy.jar
[Galaxy Note II Android Development] Glen L:
Thanks Will try this now
[Galaxy Note II Android Development] Gnarfsan:
I made some flashables for EmotionMIUI v 1.2 and it seems to be working as intended :)

http://xdaforums.com/showpost.php?p=39619601&postcount=234

If it doesn't work for you, just revert it.
[Galaxy Note II Android Development] nintendolinky:
Hi mate could you modify my file please.
[Galaxy Note II Android Development] The_Steph:
Did it for Du@lNote v9. And it seems to work quite well :good:

Here is the modded file.

Let me know what you think of it :p

Edit : Running pretty fine. And for the record, Du@lNote is a Simplistic Framework 3.5.1 ROM therefore this patch is a generic SF 3.5.1 ROM android.policy.jar file, could be used on any ROM that have SF embedded :D
[Galaxy Note II Android Development] Gnarfsan:
It seems like that file is already modified for this fix...
[Galaxy Note II Android Development] nintendolinky:
Its not mate, It might be because I tried doing it myself, I have attached another file, that I have just took off my phone, can you try this one. It still takes a few seconds for the phone to wake when i press the button.
[Galaxy Note II Android Development] Gnarfsan:
Try this then :)

The zip should help you get back, but download it before overwriting the policy file.

No guaranties so backup if you have the patience!
[Galaxy Note II Android Development] pepe2909:
can someone help me, i uploaded file, thank you !
[Galaxy Note II Android Development] nintendolinky:
Shall I just replace the android.Policy.Jar with the file you have provided. Is the revert file, my original.
[Galaxy Note II Android Development] Gnarfsan:
Yes and yes
[Galaxy Note II Android Development] Gnarfsan:
Here you go.

Just copy and replace android.policy.jar

Flash GoBackPlease.zip in recovery if you have problems so download it first.
[Galaxy Note II Android Development] Nicheuji:
Could you help me with mine? It's on post #24
[Galaxy Note II Android Development] pepe2909:
I have no problem, but does not work...
[Galaxy Note II Android Development] Gnarfsan:
Did you boot?
[Galaxy Note II Android Development] :
For those who're on Simplistic Framework v3.5.1, can use attached file.Make sure chmod it to 644 (change permission) after patched. Then reboot.

It works like a charm. Impressed by the zero-lag from screen wake!! :good:
[Galaxy Note II Android Development] pepe2909:
yes boot, but the process not appear in better battery stats as shown below.
[Galaxy Note II Android Development] Gnarfsan:
Wait, I will rework the file.
[Galaxy Note II Android Development] Gnarfsan:
Ok, Pepe, if this one doesn't work, I don't know whats up. It's a recovery flashable.
[Galaxy Note II Android Development] pepe2909:
Don't work :(