Hello xda'ers,
someone reading the title may say: but we still have no home button lag!
You could link me Oliwe's mod but this is a different thing.
His fix or mod consist to disable mHomeKeyDoubleClickConcept launching directly launchHomeFromHotKey()V method.
Nothing bad until you hate to have double click feature to launch vlingo (or voice commands).
If you want NO LAG and keep the double click feature?
Now there s a real fix to the home button lag, no workaround, no disabling samsung features! :victory:
We need to place a single line into a .smali file inside our android.policy.jar called PhoneWindowManager.smali.
This mod it s really simple to do, there s no :cond_xx to replace, add or remove.
Simply add green part
Code:
.line 3267
.end local v38 #statusbar:Lcom/android/internal/statusbar/IStatusBarService;
:cond_304
:goto_304
const/16 v46, 0x0
move/from16 v0, v46
move-object/from16 v1, p0
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomePressed:Z
[COLOR="DarkGreen"]invoke-virtual/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->launchHomeFromHotKey()V[/COLOR]
Now we launch home before double click is recognized, but.. we re doing this twice, so we need to delete the second launch.
In fact if we take a look at PhoneWindowManager$HomeKeyDoubleClickConcept.smali we can see, at the end of singleClickJob()V method (red lines)
Code:
[COLOR="Red"]if-eqz v7, :cond_93[/COLOR]
const-string v7, "HomeKeyDoubleClick"
const-string v8, " in singleClickJob(), mSentHomeDownToApp is false. Now call launchHomeFromHotKey()"
invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 8201
[COLOR="Red"] :cond_93
iget-object v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;->this$0:Lcom/android/internal/policy/impl/PhoneWindowManager;
invoke-virtual {v7}, Lcom/android/internal/policy/impl/PhoneWindowManager;->launchHomeFromHotKey()V
[/COLOR] goto :goto_48
.line 8203
:cond_99
iget-boolean v7, p0, Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;->DEBUG:Z
if-eqz v7, :cond_48
const-string v7, "HomeKeyDoubleClick"
const-string v8, " in singleClickJob(), mSentHomeDownToApp is true. now set mSentHomeDownToApp to false and do nothing."
invoke-static {v7, v8}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_48
.end method
that we re launching again "launchhomefromhotkey" method, so we need to delete the red lines.
This will fix home button lag, won t let u return on default homescreen (but u will get the homescreen u were before) and no more problem with apex or other non touchwiz launchers.
it s so easy that maybe samsung someday will implement it this way lol
that s all.
Easy to do
recompile and enjoy your no lag home button with double click feature.
need a zip? Send me your android.policy.jar or request this mod to your rom maker.
download for Viking Way V6 XXEMA2 HERE
in case of problem restore old android.policy, u can get on 7th post, F3nr1s's courtesy.
Hi,
Awesome.
So, this stops the home button lag that is present when you have S-Voice and haven't turned off the double click feature?
But also means that if you have uninstalled S-Voice, you have no lag and pressing the home button to wake the phone doesn't return to the home screen? (this happens if you don't have s-voice installed only)?
Kryten2k35 said:
Hi,
Awesome.
So, this stops the home button lag that is present when you have S-Voice and haven't turned off the double click feature?
But also means that if you have uninstalled S-Voice, you have no lag and pressing the home button to wake the phone doesn't return to the home screen? (this happens if you don't have s-voice installed only)?
Click to expand...
Click to collapse
Yes, this fixes that problem.
tested only on gs2, but the code is quite similar.
If someone wanna test it please attach android.policy.jar and asap i ll provide a zip.
Great work man!
This was much needed...
I wonder if you could take a look in the settings lag/stutter issue too? (if it isn't much trouble)
http://forum.xda-developers.com/showthread.php?t=2127660
Just check out what AndreiLux said.
Thanks!
nfsmw_gr said:
Great work man!
This was much needed...
I wonder if you could take a look in the settings lag/stutter issue too? (if it isn't much trouble)
http://forum.xda-developers.com/showthread.php?t=2127660
Just check out what AndreiLux said.
Thanks!
Click to expand...
Click to collapse
AndreiLux probably is right, we have same problem in GS2 forums. The problem as Andrei said comes when a switch widget is in the view, but i m not completely sure about a pure SecSettings.apk problem, may be a specific class in framework that cannot render good the switch widgets, need to investigate honestly.
But we re quite OT if i can get some about it i ll be happy to share, as always.
here my android.policy.jar for try it . Thanks for your work
F3nr1s said:
here my android.policy.jar for try it . Thanks for your work
Click to expand...
Click to collapse
got it on 2nd post, would be nice tell from what rom comes, so same rom users know it.
feedbacks are appreciated.
cheers
It works great
But, warning to all, if you have S-voice installed and you disable the double click gesture from within it makes the helicopter view show every time you press the homer button on the homescreens. Not just the middle one, but all of them... but why would you want to disable the home button press for s-voice with this mod anyway, huh?
Kryten2k35 said:
It works great
But, warning to all, if you have S-voice installed and you disable the double click gesture from within it makes the helicopter view show every time you press the homer button on the homescreens. Not just the middle one, but all of them... but why would you want to disable the home button press for s-voice with this mod anyway, huh?
Click to expand...
Click to collapse
yes s-voice (or vlingo) gotta be reachable by double click, if not u will get default homescreen, thanks for mentioning
Mirko ddd said:
got it on 2nd post, would be nice tell from what rom comes, so same rom users know it.
feedbacks are appreciated.
cheers
Click to expand...
Click to collapse
Comes from Viking Way V6 XXEMA2.
Just install it the phone boot with no problem . Now time to try lag and return to homescreen when wake the phone .
Sent from my GT-I9300 using xda app-developers app
F3nr1s said:
Comes from Viking Way V6 XXEMA2.
Just install it the phone boot with no problem . Now time to try lag and return to homescreen when wake the phone .
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
had a good feeback, so it works. added on 2nd post, tutorial is clear and noobproof, so my work is over here
see ya, and spread the word.
Mirko ddd said:
AndreiLux probably is right, we have same problem in GS2 forums. The problem as Andrei said comes when a switch widget is in the view, but i m not completely sure about a pure SecSettings.apk problem, may be a specific class in framework that cannot render good the switch widgets, need to investigate honestly.
But we re quite OT if i can get some about it i ll be happy to share, as always.
Click to expand...
Click to collapse
Hmm...i see...:/
Okay then,if you manage to find something share it please because its quite annoying to say the least!Thank you for your work!
Mirko ddd said:
yes s-voice (or vlingo) gotta be reachable by double click, if not u will get default homescreen, thanks for mentioning
Click to expand...
Click to collapse
What if it's not installed all together?
nfsmw_gr said:
Hmm...i see...:/
Okay then,if you manage to find something share it please because its quite annoying to say the least!Thank you for your work!
Click to expand...
Click to collapse
sure, cheers
Kryten2k35 said:
What if it's not installed all together?
Click to expand...
Click to collapse
vlingo+s-voice u mean? no problem at all, double click send an intent, if 2 apps have same intent u ll got a pop up with the app u wanna launch, like when u wanna share something (pop up with gmail, wifi direct, google+ etc..)
i go to sleeeeep! spread the word! cheers
Mirko ddd said:
sure, cheers
vlingo+s-voice u mean? no problem at all, double click send an intent, if 2 apps have same intent u ll got a pop up with the app u wanna launch, like when u wanna share something (pop up with gmail, wifi direct, google+ etc..)
i go to sleeeeep! spread the word! cheers
Click to expand...
Click to collapse
I'll be including the fix in my ROM, most likely Credits of course!
EDIT:
Hmm, unsure now. If you uninstall S-Voice and then press the home button, on screen 2 or others, it opens the helicopter view. This mod is ok if you have S-Voice installed, but I'm fairly sure my users will uninstall it and face this issue... then I'll hear about it lots lol.
EDIT:
Also, if you wake the screen, then lock it again the screen comes back on. May be a conflict with the CRT mod, though.
my android.policy.jar here its omega v40 Thanks for your work..
Kryten2k35 said:
I'll be including the fix in my ROM, most likely Credits of course!
EDIT:
Hmm, unsure now. If you uninstall S-Voice and then press the home button, on screen 2 or others, it opens the helicopter view. This mod is ok if you have S-Voice installed, but I'm fairly sure my users will uninstall it and face this issue... then I'll hear about it lots lol.
EDIT:
Also, if you wake the screen, then lock it again the screen comes back on. May be a conflict with the CRT mod, though.
Click to expand...
Click to collapse
uninstalling s-voice all the doubleclick process is broken, so no need this fix but if u want s-voice, no homebutton lag and double tap feature all together that s the way. could be a nice way to not hate s-voice
about the rom, mh, u can do better
faithhh said:
my android.policy.jar here its omega v40 Thanks for your work..
Click to expand...
Click to collapse
i just needed one to test if it works omega is using my old homebutton lag fix, so u could post on his thread asking for the new way. the tutorial is easy, indie surely will have a look
brilliant my friend but somehow the files in PhoneWindowManager$HomeKeyDoubleClickConcept dsnt match up on omega v40
Related
hi, I open this thread to show you how to remap the G button, on the FOP rom it is assigned as a comma so it's totally useless, but all you have to do is using root explorer go to:
system\usr\keylayout
and modify the files "generic.kl" and "TWL4030_Keypad.kl" and search for "key 95".
On the "generic.kl" it will say something like insert comma, change that to one of this options:
APP_SWITCH it will make the g button open the recent apps
CAMERA well it's obvious it will open the camera
and on the "TWL4030_Keypad.kl" it will say "POWER WAKE_DROPPED", just erase that and type one of the options I said (you MUST assign the same option to BOTH files)
Hope it would be usefull ^^ I recomend using the button for the recent apps, since the camera can be accessed from the lockscreen and the camera isnt working right now
If you need to, I can make a CWM flashable zip to modify those 2 files, I didn't did that because this is way too easy to do manually...
Remember to mount R/w so you can edit the files
After doing that just reboot
You should mount r/w not r/o
Sent from my phone via tapatalk
A flashable file would be great!
You forgot reboot...neway thanks m8..it worked just fine :highfive:
RomWiz said:
You should mount r/w not r/o
Click to expand...
Click to collapse
thanks, for correcting me
strider2023 said:
You forgot reboot...neway thanks m8..it worked just fine :highfive:
Click to expand...
Click to collapse
ohh right jeje sry
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
koila33 said:
Already there but imcomplete:
http://forum.xda-developers.com/showthread.php?t=1194058
Click to expand...
Click to collapse
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Melin Leos said:
I saw this one when trying to do this, and it is really weird the tutorial so I decided to do this one, also it only says how to use as camera and lock button... could you consider adding this to the FOP rom?
Click to expand...
Click to collapse
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
koila33 said:
If you guys find it useful we can add that feature, but it is easy to add this feature, so if you guys want, you guys can add by yourself.
Click to expand...
Click to collapse
I know it's easy to add but the thing is that right now the g button on fop rom is completely useless
This works on CM7?
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
Yep, tecnically it works on all roms, but I can't say exactly since Idont know which file you have to modify on cm7
zortheck said:
This works on CM7?
Click to expand...
Click to collapse
On cm7, you have to edit /system/usr/keylayout/qwerty.kl - delete key 212 line and add key 95 POWER WAKE_DROPPED or the line about camera - save and reboot
Sent from my LG Optimus Black using xda premium
My Power button is dead and i cannot turn on the phone manually. Ineed to use usb cable,enter the battery charging state and need to push the button frequently(hopefully it detect) till it reboot.Then i try to remap the power button to G button. still cannot on even at battery charging state... This phone is screwed.. wonder if anyone want to buy my phone.. haha..
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
SaschaKH said:
My power button is not in the best condition too. First I remaped G button (key 95 POWER WAKE_DROPPED) and then I use SoftPower app to wake it because it even has sometimes problems to wake up with the remaped G button and I'm fine. OK that doesn't help when it's completly switched off but then it seems to work rather good and I nearly never switch it off anyway. I use AnReboot for some time, it is fast for reboot and good for getting in recovery.
Click to expand...
Click to collapse
Getting to the recovery is not the problem as i can use the adb command. The worst part is when i want to call someone urgently and the phone cannot wake the screen. So softpower app can help in these kind of situation? As when the phone is completely dead, there nothing we can do to turn it on as some people said that the power button is hardwire.
Yes SoftPower wakes my phone up all the time without any problem. I haven't even activatet the adminstrator, because it is only needed for turning the screen off and I use G button for that. (Need the search button for something else anyway.)
BTW if you remap the G button it even shows the power menu like you get it for long pressing power button (at least with some ROMs).
Thanks man, i will try that software. I just open this phone and found out that the usb port and the power button is integrated with each other. So, it's kinda hard to repair it.
Thanks.... I modify G Button as Camera and its working awesome on CM10..
Sent from my LG-P970 using xda premium
Please
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
atillaahun said:
And if I want both answering and ending a call with G button, how can I add that to the file?
Maybe for wake up and turn off the device too? I guess it's applicable for multiple actions, isn't it?
Click to expand...
Click to collapse
I tested it.I modify G button as CALL WAKE_DROPPED
With this I can receive the call but can't end call with G Button.
And also
Device wakes but can't turn off.
Sent from my LG-P970 using xda premium
This mod enables onscreen soft keys (THANKS TO LEONARDOARAUJO for the modded framework-res) and disables all cap keys except for menu. cap keys still are illuminated, but home, back, and search are disabled as well as haptic feedback for the 3. as i cannot as of yet get a search key remap working i decided to try n make this.I kinda like it btr even tho i lose a lil real estate cuz soft keys are cool..tested and working fine.
25b/27
http://db.tt/xgjybJJi
7.29
http://db.tt/MTzyaNk7
7.29
disable ALL cap keys by quetzalcoat12345 (Does not include the framework files, just the keymap files, so it should be good for all future releases.)
DisableAllCapacitiveKeys.zip"]https://dl.dropbox.com/u/19567156/DisableAllCapacitiveKeys.zip"]DisableAllCapacitiveKeys.zip
here is a flashable zip to reverse the mod (25b/27 only) by leonardoaraujo:
http://www.mediafire.com/?ch4kxk9heylr0v5
Until the backlight params editing is backported to CM10, you might want to try Screen Filter. I used that app since CM9 to disable the backlights on the capacitive buttons. Cheers!
Edit: Scrap that. It seems that it doesn't work (yet) on CM10. I'll try searching for something else.
Edit 2: Success! Adjbrightness works flawlessly!
quetzalcoatl2435 said:
Until the backlight params editing is backported to CM10, you might want to try Screen Filter. I used that app since CM9 to disable the backlights on the capacitive buttons. Cheers!
Edit: Scrap that. It seems that it doesn't work (yet) on CM10. I'll try searching for something else.
Edit 2: Success! Adjbrightness works flawlessly!
Click to expand...
Click to collapse
imma try it now, although i may leave them on only cuz my.menu key is active still..thx for the tip!
edit..works great.wish i could kill all but menu..but i suppose people in hell want icewater too
[m]atRix
Yeah, I noticed you left the menu button enabled. I've edited mine to disable the menu button as well, so it's all off for me.
quetzalcoatl2435 said:
Yeah, I noticed you left the menu button enabled. I've edited mine to disable the menu button as well, so it's all off for me.
Click to expand...
Click to collapse
i left mine on cuz there are times and places i need to enter menu but the 3 dots aren't there. maybe leo can add menu to the soft keys, ill ask.
In what app(s) does that occur? I haven't checked every app on my phone, but it's all good so far. The 3 dots show up either next to the soft buttons or on the actionbar.
quetzalcoatl2435 said:
In what app(s) does that occur? I haven't checked every app on my phone, but it's all good so far. The 3 dots show up either next to the soft buttons or on the actionbar.
Click to expand...
Click to collapse
actually now tht im paying attn, i think its mainly from home screen using apex. i can set a shortcut but i jus kinda like having menu access rt there. works for me
edit: ur right..menu 3 dots thing is there anytime there is a menu to access, EXCEPT apex home screen. but sometimes its up on top. i thought about disabling menu but decided to keep it as its nice to have rt there, i guess for the same reason i like the search key to recents remap..more easily accessible.
What if we want to revert back to using the softkeys after flashing this? is there a way to reverse it?
zefir738 said:
What if we want to revert back to using the softkeys after flashing this? is there a way to reverse it?
Click to expand...
Click to collapse
just reflash CM10 without wiping data, should bring everything back to stock.
need not apply the full rom, to undo everything (including navigation buttons):
http://www.mediafire.com/?ch4kxk9heylr0v5
ps: op, add to the 1st post ..
is the softkeys able to change functions? such as adding screen lock button or other applications in the nav bar
and can we enable the 4 capactivie buttons in the modded framework?
bu14 said:
is the softkeys able to change functions? such as adding screen lock button or other applications in the nav bar
and can we enable the 4 capactivie buttons in the modded framework?
Click to expand...
Click to collapse
not as of now. well i cant anyway, maybe leo can..
as far as screen lock button, i use widgetsoid for tht
rickriego said:
not as of now. well i cant anyway, maybe leo can..
as far as screen lock button, i use widgetsoid for tht
Click to expand...
Click to collapse
how can i contact him?
bu14 said:
how can i contact him?
Click to expand...
Click to collapse
search the forums for leonardoaraujo his profile will pop up a few lines down. u can pm from there
I hope you update your zip to the new epinter
Sent from my MB860 on CM10
i will, already talked to leo abt the framework..
[m]atRix
mod works w/ epinters current release!
[m]atRix
rickriego said:
mod works w/ epinters current release!
[m]atRix
Click to expand...
Click to collapse
Update the OP.
Sent from my Nexus 7
Soldier-2Point0 said:
Update the OP.
Sent from my Nexus 7
Click to expand...
Click to collapse
aye aye captain!
edit: done
[m]atRix
Soldier-2Point0 said:
Update the OP.
Sent from my Nexus 7
Click to expand...
Click to collapse
Geez soldier lol
Sent from my MB860 using Tapatalk 2
I have a small issue with S2W function. Im using my rooted IncS, s-unlock, Revolutionary, CWM, Sabsa Prime 8.5 with @Nonverbose kernel .7. I also have Trickster mod installed with S2W enables. When I swipe from home to search, voila, sure enough it wakes. But when I do the opposite to go into sleep mode, search to home, it will take a screen shot and not sleep. Has anybody else ran into this?
it's a known issue. s2w and screenshot feature conflicts. you need to disable screenshot to use that. need to add a parameter to build.prop, dont remember it though, search arnd on forum and you'll find it.
sent from my vivo
vikan said:
it's a known issue. s2w and screenshot feature conflicts. you need to disable screenshot to use that. need to add a parameter to build.prop, dont remember it though, search arnd on forum and you'll find it.
sent from my vivo
Click to expand...
Click to collapse
Appreciate the input. I like the screen shot feature so I will just use the s2w for just that, sweep to wake only.
add ro.htc.framework.screencapture=false to your build.prop
now, to take a screenshot, press power + vol-down at the same time for a second.
You could also not "sweep" all the war to the home button, or just above the actual keys.
MrToastbrot said:
add ro.htc.framework.screencapture=false to your build.prop
now, to take a screenshot, press power + vol-down at the same time for a second.
Click to expand...
Click to collapse
I'm new to this game and editing scripts is a little advanced for me ... but always willing to learn. First, where to I find the build.prop and secondly how do I edit it?
Appreciate your input too as well
Nonverbose said:
You could also not "sweep" all the war to the home button, or just above the actual keys.
Click to expand...
Click to collapse
I tried the short sweep but still takes screen shot. However swiping just above the keys DOES work. Thanks again! :good:
I saw my friend's Iphone..
in apps he can use it upside down..
means home button up and front camera down...(inverted)
can we apply this in android by any means..?????
change in systemui.apk or framework ...???
i know it runs on diff OS but still if it is possible..
that would be nice.. :good::laugh:
ravijani said:
I saw my friend's Iphone..
in apps he can use it upside down..
means home button up and front camera down...(inverted)
can we apply this in android by any means..?????
change in systemui.apk or framework ...???
i know it runs on diff OS but still if it is possible..
that would be nice.. :good::laugh:
Click to expand...
Click to collapse
It's called 360 degree rotation, but idk really how to implement it... It's possible though
panda00 said:
It's called 360 degree rotation, but idk really how to implement it... It's possible though
Click to expand...
Click to collapse
check rotate on play store
panda00 said:
It's called 360 degree rotation, but idk really how to implement it... It's possible though
Click to expand...
Click to collapse
i just found out NOva launchers beta lab settings..
in nova settings just hold down vol down button for two sec and youll see one notification about lab settings ..
go in there and see theres option for it...
hurray... but i hope everybody knows it..
and to hide that menu again long press vol up button for 2 sec..
i'd like my soft keys to be on the far left. it's a pain in the ass to navigate having to stretch my thumb so far to the middle.
i'm talking about home / back / recent apps button. what was asus thinking? its a 10.1 tablet.
also, would be awesome if the notification pull down bar was in a corner as well. anyway this is possible?
gen1mx6 said:
i'd like my soft keys to be on the far left. it's a pain in the ass to navigate having to stretch my thumb so far to the middle.
i'm talking about home / back / recent apps button. what was asus thinking? its a 10.1 tablet.
also, would be awesome if the notification pull down bar was in a corner as well. anyway this is possible?
Click to expand...
Click to collapse
You can't
Well you can if you unlock and flash a stock based 4.3 rom and then use xposed with phab7
sbdags said:
You can't
Well you can if you unlock and flash a stock based 4.3 rom and then use xposed with phab7
Click to expand...
Click to collapse
I used your method for unlocking and I installed xposed, but doesn't seem like anything happens when I switch settings in phab7.
Anu suggestions?
Have you enabled phab7 as a module in Xposed?
Sent from my K00C using Tapatalk
Yes
enable xposed
reboot
goto xposed modules
enable phab7
reboot
goto exposed phab 7
choose tabletui
Thank you, I didn't realize I needed to enable after installing
Sorry to bug you but how about you how about the apps button lol
gen1mx6 said:
Thank you, I didn't realize I needed to enable after installing
Sorry to bug you but how about you how about the apps button lol
Click to expand...
Click to collapse
What apps button?
sbdags said:
What apps button?
Click to expand...
Click to collapse
The apps button in the center bottom. To access the apps page.
gen1mx6 said:
The apps button in the center bottom. To access the apps page.
Click to expand...
Click to collapse
What about it? What is your question?
sbdags said:
What about it? What is your question?
Click to expand...
Click to collapse
Wanted to move it somewhere where it is easily accessible instead of the middle of the screen. Like we moved th soft keys with phab7
gen1mx6 said:
Wanted to move it somewhere where it is easily accessible instead of the middle of the screen. Like we moved th soft keys with phab7
Click to expand...
Click to collapse
Install a launcher like APEX or NOva and then you can move it where ever you want. It's locked on the stock launcher.
Hey thanks a lot. Appreciate what you do for the community.