27th June 2012, 04:09 PM
(Last edited by wanam; 27th June 2012 at 04:11 PM .)
Recognized Developer -
OP
Thanks Meter
13814
Posts: 3,493
Join Date: Jan 2011
Location: Temara
[HowTo] Reduce Home Button Lag - Disable Home button double click
As i you know, a Double click feature was implemented for the Home button on Samsung Roms to launch Vlingo on SGS2 and S-Voice on SGS3.
This feature may be seen a useless Lag
because most of us don't use these apps, so this is a small how to disable it, this mod was based on
Oliwe and
Jkay mods, thanks to them.
You need to decompile android.policy.jar (get Smali here ), Edit "androidpolicyjar\com\android\internal\policy\impl \PhoneWindowManager.smali" and make these changes :
Code:
.line 2282
:cond_236
++goto :cond_24b
--if-eqz v26, :cond_24b
.line 2283
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeKeyDoubleClickConcept:Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;
move-object/from16 v41, v0
invoke-virtual/range {p2 .. p2}, Landroid/view/KeyEvent;->getAction()I
Code:
.line 2289
const/16 v41, 0x0
move/from16 v0, v41
move-object/from16 v1, p0
iput-boolean v0, v1, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomePressed:Z
++invoke-virtual/range {p0 .. p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->launchHomeFromHotKey()V
.line 2291
if-nez v26, :cond_2a3
Code:
.line 2371
++goto :cond_332
--if-eqz v26, :cond_332
.line 2372
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeKeyDoubleClickConcept:Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;
move-object/from16 v41, v0
invoke-virtual/range {v41 .. v41}, Lcom/android/internal/policy/impl/PhoneWindowManager$HomeKeyDoubleClickConcept;->setHomeDownEventSent()V
You may get a different conditions Ids, track the methods name.
Compile & Enjoy!
WanamLite Roms :
Adam Kernel :
App : Language Enabler
Blog : WanamLite.com
Follow : GooglePlus ,
FaceBook -
Twitter
The Following 14 Users Say Thank You to wanam For This Useful Post: [ Click to Expand ]
::indie:: (28th June 2012),
aydc (27th June 2012),
bala_gamer (1st July 2012),
buntoo (29th August 2012),
dasistsparta (27th June 2012),
Fruktsallad (27th June 2012),
kaddoble (30th June 2012),
mbharath003 (10th December 2012),
mc-paulo (27th June 2012),
nobnut (27th June 2012),
PhantomHacker (4th July 2012),
RAISSI (30th June 2012),
saywhatt (11th October 2012),
sxi200 (27th June 2012)
27th June 2012, 04:40 PM
Retired Forum Moderator / Recognized Developer
Thanks Meter
5203
Posts: 3,123
Join Date: Sep 2010
Location: India,Kerala,Trivandrum (God's own Country)
Thanks Mate
As always
Founder and Developer of CheckROM for Samsung Phone's
27th June 2012, 05:23 PM
Senior Member
Thanks Meter
11
Posts: 101
Join Date: Jul 2008
Is this already implemented in your WanamLite 1.4?
And as always: Thank you for your great work!
Sent from my GT-I9300 using xda app-developers app
I know, I share, I choose
Create parts and build your own device.
Share your knowledge at
youserbase
27th June 2012, 06:04 PM
Recognized Developer -
OP
Thanks Meter
13814
Posts: 3,493
Join Date: Jan 2011
Location: Temara
Quote:
Originally Posted by
mc-paulo
Is this already implemented in your WanamLite 1.4?
And as always: Thank you for your great work!
Sent from my GT-I9300 using xda app-developers app
Yes, it's implemented on my V1.4.
WanamLite Roms :
Adam Kernel :
App : Language Enabler
Blog : WanamLite.com
Follow : GooglePlus ,
FaceBook -
Twitter
The Following User Says Thank You to wanam For This Useful Post: [ Click to Expand ]
27th June 2012, 07:07 PM
(Last edited by sxi200; 27th June 2012 at 07:11 PM .)
Senior Member
Thanks Meter
411
Posts: 1,380
Join Date: Oct 2010
Location: Melbourne
Is this any different to disabling it in S voice settings?
Edit: Well, actually it is different as rom developers can implent it in their roms.
Great work!
Sent from my GT-I9300 using xda premium
27th June 2012, 07:45 PM
Senior Member
Thanks Meter
425
Posts: 4,750
Join Date: Mar 2010
Location: Dublin
I don't suppose there is a flashable zip as opposed to all that decompiling mallarkey
List of devices
2013 - HTC One - Nexus 7
2012 - Samsung Galaxy S3
2011 - Samsung Galaxy S2
2010 - HTC HD2
2009 - Samsung Tocco
2008 - LG Viewty
2006-08 - Sony Ericsson K800i
Mostly Nokia from 1996 +
The Following User Says Thank You to jonny68 For This Useful Post: [ Click to Expand ]
27th June 2012, 07:56 PM
Senior Member
Thanks Meter
31
Posts: 932
Join Date: Apr 2010
Quote:
Originally Posted by
jonny68
I don't suppose there is a flashable zip as opposed to all that decompiling mallarkey
+1
Sent from my GT-I9300 using Tapatalk 2
27th June 2012, 08:24 PM
Senior Member
Thanks Meter
1335
Posts: 5,680
Join Date: Mar 2010
Location: Vienna
DONATE TO ME
It would be cool if we could somehow just minimize the wait for the second click, this would keep functionality and reduce the lag to a minimum.
tapatalked from Galaxy SIII
Who said there is no i in
Samsung Galaxy S | CyanogenMod 10 | Version:HellyBean #??? (not older than a week) | Modem:XXJVT | Kernel: Devil 3.x
Samsung Galaxy SIII | OmegaRom 27.1 / Hellybean I9300 | Modem: XXLG8 | Kernel: Shiah 1.7rc3
Scoobycontrol EQ for Scoobydoo Sound i9300
VoodooEQ for Voodoo Sound i9000
Samba Server for Android
27th June 2012, 08:32 PM
Senior Member
Thanks Meter
81
Posts: 601
Join Date: Dec 2009
Location: istanbul
Quote:
Originally Posted by
jonny68
I don't suppose there is a flashable zip as opposed to all that decompiling mallarkey
+1 for that, please.
GT-I9300 cihazımdan Tapatalk 2 ile g๖nderildi
Forever De Ja Vu...
New family member
27th June 2012, 08:42 PM
Account currently disabled
Thanks Meter
48
Posts: 252
Join Date: Jun 2012
A flashable zip would be great
Sent from my GT-I9300
Thread Tools
Search this Thread
Display Modes
Linear Mode
Most Thanked In This Thread
4 Why do not you turn off
double click … 3 (quote)
I didn't try,
but as u say i … 2 (quote)
I can't test it
as i don't … 1 Wow how about you guys
open s voice and …