New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
amtrakcn
Old
(Last edited by amtrakcn; 16th November 2011 at 06:59 AM.)
#1  
Senior Member - OP
Thanks Meter 50
Posts: 659
Join Date: Mar 2010
Location: Madison
Smile [Abandoned]Home Button Lagfix & Haptic fix for Hellraised ROMs

After all this framework hack does not work well under too many ROMs and causes lots of confusion about version. I accidentally found a universal solution to Home Button vibration that works with JKay theme and won't break anything. So this method is abandoned.Hi everyone. I have been Hellraising i9100 ROMs since Entropy's release, however was puzzled by the Home button which lags and won't give any feeling of touch when pressed.

After some research I finally figured out how to fix this. I made 2 versions, one for XXKI3 and another for XXKI4

Currently ROMs incorporates JKay theme mods (Sensation) are not working.
(Sorry I was too excited to notice I compiled both file from custom ROMs that were containning extended power menu, the fix is not universal and try at your own risk!).

Installtion Instructions:
1. Place the zip file into your Internal SD
2. Reboot into Recovery and select "install zip from sdcard"
3. Select "install from SD card", choose YES
4. hit return and reboot


You should have haptic feedback on Home now, also the Home button should respond instantly.

Caution:
Only apply to ROMs that are based on supported Samsung builds.
android.policy.jar varies from build to build so can not hybrid with different versions.


Credit:
gtg465x - home button lagfix code reference
DesignGears - home button haptic fix code reference

Ande definitely Entropy512, for the awesomeness of Hellraiser!

Please let me know if anything happens.
Lumia920/Nexus4/Nexus7/iPad2
The Following 2 Users Say Thank You to amtrakcn For This Useful Post: [ Click to Expand ]
 
amtrakcn
Old
(Last edited by amtrakcn; 16th November 2011 at 12:35 AM.) Reason: downloads
#2  
Senior Member - OP
Thanks Meter 50
Posts: 659
Join Date: Mar 2010
Location: Madison
Default Downloads

Currently not working with JKay themes.

For i9100XXKI3 based ROMs:

XXKI3-hapticfeedbackfix.zip


For i9100XXKI4 based ROMs:
This file is modified from an i9100 ROM with extended power menu and header, might not work if the menu had the header removed!

XXKI4-hapticfeedbackfix.zip
Lumia920/Nexus4/Nexus7/iPad2
 
shoman94
Old
(Last edited by shoman94; 12th November 2011 at 10:04 PM.)
#3  
shoman94's Avatar
Recognized Contributor
Thanks Meter 9088
Posts: 7,358
Join Date: Mar 2009
Location: Maine

 
DONATE TO ME
Quote:
Originally Posted by amtrakcn View Post
Hi everyone. I have been Hellraising i9100 ROMs since Entropy's release, however was puzzled by the Home button which lags and won't give any feeling of touch when pressed.

After some research I finally figured out how to fix this. I made 2 versions, one for XXKI3 and another for XXKI4.

Installtion Instructions:
1. Place the zip file into your Internal SD
2. Reboot into Recovery and select "install zip from sdcard"
3. Select "install from SD card", choose YES
4. hit return and reboot


You should have haptic feedback on Home now, also the Home button should respond instantly.

Caution:
Only apply to ROMs that are based on supported Samsung builds.
android.policy.jar varies from build to build so can not hybrid with different versions.


Credit:
gtg465x - home button lagfix code reference
DesignGears - home button haptic fix code reference

Ande definitely Entropy512, for the awesomeness of Hellraiser!

Please let me know if anything happens.
Thanks.... can you please post what code is changed within it (FOR HOME HAPTIC FEEDBACK) so I can mod the one for the rom I'm using. I don't want to use a generic one.
Thanks!

EDIT: Its rom specific.....you can't do generic addons.... It broke my rom which is why posting the actual change would be best. It booted but broke JKAY mods
<a href=http://forum.xda-developers.com/signaturepics/sigpic1670609_1.gif target=_blank rel=nofollow >http://forum.xda-developers.com/sign...c1670609_1.gif</a>
IRC: freenode|#shostock


Asus Transformer Prime[32gb]
Stock-JellyBean

Asus Transformer[16gb]
ICS RevolutionHD
 
amtrakcn
Old
(Last edited by amtrakcn; 12th November 2011 at 10:14 PM.)
#4  
Senior Member - OP
Thanks Meter 50
Posts: 659
Join Date: Mar 2010
Location: Madison
Quote:
Originally Posted by shoman94 View Post
Thanks.... can you please post what code is changed within it so I can mod the one for the rom I'm using. I don't want to use a generic one.
Thanks!
I think KI4 version works for checkROM. However just forget I modified both from custom ROMs so does not work universally...

There are multiple places in smali that needs to edit. So you might want to compare your original file with the attachment.
It's <decompiled dex folder>\com\android\internal\policy\impl\PhoneWind owManager.smali
PhoneWindowManager.zip
Lumia920/Nexus4/Nexus7/iPad2
 
shoman94
Old
#5  
shoman94's Avatar
Recognized Contributor
Thanks Meter 9088
Posts: 7,358
Join Date: Mar 2009
Location: Maine

 
DONATE TO ME
Quote:
Originally Posted by amtrakcn View Post
I think KI4 version works for checkROM. However just forget I modified both from custom ROMs so does not work universally...

It's more than one place in smali so you might want to compare with the attachment.
Attachment 780701
I've been doing that but there are so many differences that I can't tell which is which.
Can't you just say which lines were changed....?
<a href=http://forum.xda-developers.com/signaturepics/sigpic1670609_1.gif target=_blank rel=nofollow >http://forum.xda-developers.com/sign...c1670609_1.gif</a>
IRC: freenode|#shostock


Asus Transformer Prime[32gb]
Stock-JellyBean

Asus Transformer[16gb]
ICS RevolutionHD
 
amtrakcn
Old
#6  
Senior Member - OP
Thanks Meter 50
Posts: 659
Join Date: Mar 2010
Location: Madison
Quote:
Originally Posted by shoman94 View Post
I've been doing that but there are so many differences that I can't tell which is which.
Can't you just say which lines were changed....?
Line 3841 to 4568... actually works just override all differences.
Lumia920/Nexus4/Nexus7/iPad2
 
shoman94
Old
#7  
shoman94's Avatar
Recognized Contributor
Thanks Meter 9088
Posts: 7,358
Join Date: Mar 2009
Location: Maine

 
DONATE TO ME
Quote:
Originally Posted by amtrakcn View Post
Line 3841 to 4568... actually works just override all differences.
errors out.....

to good to be true. I've been messing with this all night and I"m not winning.
<a href=http://forum.xda-developers.com/signaturepics/sigpic1670609_1.gif target=_blank rel=nofollow >http://forum.xda-developers.com/sign...c1670609_1.gif</a>
IRC: freenode|#shostock


Asus Transformer Prime[32gb]
Stock-JellyBean

Asus Transformer[16gb]
ICS RevolutionHD
 
amtrakcn
Old
#8  
Senior Member - OP
Thanks Meter 50
Posts: 659
Join Date: Mar 2010
Location: Madison
Quote:
Originally Posted by shoman94 View Post
errors out.....

to good to be true. I've been messing with this all night and I"m not winning.
Like what kind of error you are encountering? During recompile or during testing?
Lumia920/Nexus4/Nexus7/iPad2
 
Entropy512
Old
#9  
Elite Recognized Developer
Thanks Meter 21116
Posts: 11,602
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
I don't have time to poke at this (busy sobering up after a party...) but: I suggest providing the modded version,a nd the original, and diffing them.

Note that according to Mikey, designgears' patch accidentally caught a bunch of changes that weren't related to home-button.

And yes, just copying the smali will cause an epicfail most likely, ESPECIALLY if targeting a JKay theme, as JKay did dome significant mods to that smali file.

FYI, shoman94, you've gotten as far as I ever did - I never got a working mod, but I've been pretty busy this week.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
amtrakcn
Old
(Last edited by amtrakcn; 13th November 2011 at 06:40 AM.)
#10  
Senior Member - OP
Thanks Meter 50
Posts: 659
Join Date: Mar 2010
Location: Madison
Quote:
Originally Posted by Entropy512 View Post
I don't have time to poke at this (busy sobering up after a party...) but: I suggest providing the modded version,a nd the original, and diffing them.

Note that according to Mikey, designgears' patch accidentally caught a bunch of changes that weren't related to home-button.

And yes, just copying the smali will cause an epicfail most likely, ESPECIALLY if targeting a JKay theme, as JKay did dome significant mods to that smali file.

FYI, shoman94, you've gotten as far as I ever did - I never got a working mod, but I've been pretty busy this week.
Thanks for pointing out, I recalled many other other modifications to the android.policy.jar after I posted but I cannot edit the title of thread now...

When comparing the 2 smali files (Original and DesignGear modified), except the lines for home button I only saw difference in conditions, which I don't really understand. It was a experiment that I just copyed the whole PhoneWindowManager.smali then compiled. The compiled file worked.

The file I posted is from a KI4 ROM with extended power menu with header, however since header modification is in GlobalActions.smali I think this should not affect compiling.

Tell me if I got anything wrong, first time looking into the bytecodes

Will be very thankful if you have time to look at this
OriginalPhoneWindowManager.zip
ModifiedPhoneWindowManager.zip
Lumia920/Nexus4/Nexus7/iPad2

Tags
home button, i777

XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more