Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
wanam
Old
(Last edited by wanam; 27th June 2012 at 04:11 PM.)
#1  
wanam's Avatar
Recognized Developer - OP
Thanks Meter 13814
Posts: 3,493
Join Date: Jan 2011
Location: Temara
Cool [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 ]
 
GadgetCheck
Old
#2  
GadgetCheck's Avatar
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

www.checkrom.com
Where support gets refined as social networking
Founder and Developer of CheckROM™ for Samsung Phone's
 
mc-paulo
Old
#3  
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
 
wanam
Old
#4  
wanam's Avatar
Recognized Developer - OP
Thanks Meter 13814
Posts: 3,493
Join Date: Jan 2011
Location: Temara
Quote:
Originally Posted by mc-paulo View Post
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 ]
 
sxi200
Old
(Last edited by sxi200; 27th June 2012 at 07:11 PM.)
#5  
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
 
jonny68
Old
#6  
jonny68's Avatar
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 ]
 
S_Dot
Old
#7  
S_Dot's Avatar
Senior Member
Thanks Meter 31
Posts: 932
Join Date: Apr 2010
Quote:
Originally Posted by jonny68 View Post
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
 
FadeFx
Old
#8  
FadeFx's Avatar
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
 
superas
Old
#9  
superas's Avatar
Senior Member
Thanks Meter 81
Posts: 601
Join Date: Dec 2009
Location: istanbul
Quote:
Originally Posted by jonny68 View Post
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...




http://img705.imageshack.us/img705/6654/omegateambanner.gif




New family member
 
dasistsparta
Old
#10  
Account currently disabled
Thanks Meter 48
Posts: 252
Join Date: Jun 2012
A flashable zip would be great

Sent from my GT-I9300

 
Post Reply+
Tags
button, click, double, home, lag
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...