Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mcm_xyz
Old
(Last edited by mcm_xyz; 31st January 2011 at 09:10 PM.)
#1  
Member - OP
Thanks Meter 47
Posts: 56
Join Date: Oct 2010
Default [Fix] Haptic feedback on UK 3.4.2-117

Hello to all.

I consider UK 3.4.2-117 the best rom so far. However the haptic feedback missing was killing me so I started digging. Long story short, by a mistake I found that the responsible file for this was framework-res.apk. So I decompiled with apkmanager 4.9 and compared with the TMO file. I found some differences in res\values\arrays.xml with suggestive names: "VibePattern".

Solution: use the file attached and put it to the root of ramework-res.apk

The reason for not providing the whole file "ramework-res.apk" is because I made interface modifications to mine (black status bar and so on...)

Please let me know if this worked for you!

Update: Seems there is no problem on odexed roms either so install with confidence. Do not use ApkManager to recompile. Simply replace the file inside the apk with winrar or 7zip. If you are on stock rom MadStu has prepared a nandroid zip for you. Read further.
Attached Files
File Type: 7z resources.7z - [Click for QR Code] (167.9 KB, 635 views)
The Following 9 Users Say Thank You to mcm_xyz For This Useful Post: [ Click to Expand ]
 
Dude-01
Old
#2  
Junior Member
Thanks Meter 1
Posts: 16
Join Date: Nov 2010
Sorry for the stupid question but the only thing I've to to is to copy your resources file and paste it into the ramework-res.apk?
I tried it but nothing happend, even after a restart. Could someone an untouched ramework-res.apk reupload it after the fix?
 
HiDef
Old
#3  
Member
Thanks Meter 13
Posts: 43
Join Date: Nov 2008
Location: NRW
Awesome dude, thanks, it works!!!
 
mcm_xyz
Old
#4  
Member - OP
Thanks Meter 47
Posts: 56
Join Date: Oct 2010
Quote:
Originally Posted by Dude-01 View Post
Sorry for the stupid question but the only thing I've to to is to copy your resources file and paste it into the ramework-res.apk?
I tried it but nothing happend, even after a restart. Could someone an untouched ramework-res.apk reupload it after the fix?
Yes you have to drag and drop it to framework-res.apk overwriting the existing one. You also have to enable vibration from settings... In sound settings check haptic feedback. First thing you have to notice is vibration on the 4 bottom buttons (menu / home / back / search)
 
mick711
Old
#5  
mick711's Avatar
Senior Member
Thanks Meter 45
Posts: 454
Join Date: Dec 2010
Location: Joncy
Work on deodex or/and odex ROM ?

Thanks for this FIX !
Orange San Diego

XOLO ICS 4.0.4 Root
Wait for possibility to install custom ROM

Motorola Defy CyanogenMod 10 JB
2nd boot 28/11/2012 Quarx
Red lens BAYER device BootMenuOC Vsel : 18/300 38/600 48/800 52/1000
 
mcm_xyz
Old
#6  
Member - OP
Thanks Meter 47
Posts: 56
Join Date: Oct 2010
Quote:
Originally Posted by mick711 View Post
Work on deodex or/and odex ROM ?

Thanks for this FIX !
I think it will work on both. Mine is deodexed but I think it will not matter.
 
andyfletcher
Old
#7  
Senior Member
Thanks Meter 13
Posts: 142
Join Date: Aug 2008
I had issues after inserting into a standard / odexed install. My handset is now looping so it looks like im going to have reflash the rom again

Should i have pushed the apk back using adb? i just used root explorer.

Less than happy.

Andy
 
naenee
Old
(Last edited by naenee; 31st January 2011 at 08:18 PM.)
#8  
naenee's Avatar
Senior Member
Thanks Meter 23
Posts: 355
Join Date: Apr 2008
After making a backup, I've tried this as well and indeed - you've done good work and Haptic Feedback is as it used to be. Thank you for sharing your solution.

Various system-settings had been reset though, but that was as expected.
 
mcm_xyz
Old
#9  
Member - OP
Thanks Meter 47
Posts: 56
Join Date: Oct 2010
Quote:
Originally Posted by andyfletcher View Post
I had issues after inserting into a standard / odexed install. My handset is now looping so it looks like im going to have reflash the rom again

Should i have pushed the apk back using adb? i just used root explorer.

Less than happy.

Andy
Sorry for the inconvenience. However framework-res.apk does not have a classes.dex inside so there is no odex file either. So I think it was a problem with pushing the file back or with the ziping process.
 
ellendel
Old
(Last edited by ellendel; 31st January 2011 at 08:51 PM.)
#10  
Member
Thanks Meter 5
Posts: 58
Join Date: Dec 2010
But where is the framework-res.apk?
Ok i found it ; but how can i overwrite the file? Do i have to use the adb shell?

 
Post Reply+
Tags
defy, haptic
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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...