Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,018 Members 45,437 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][XPOSED][2014/07/05 2.53]Android Phone Vibrator

Tip us?
 
itandy
Old
(Last edited by itandy; 5th July 2014 at 08:41 AM.)
#1  
itandy's Avatar
Senior Member - OP
Thanks Meter 1,050
Posts: 1,696
Join Date: Apr 2010
Location: Hong Kong
Default [MOD][XPOSED][2014/07/05 2.53]Android Phone Vibrator

This Xposed module can vibrate the phone on different call status. It should work on ICS/JB phone apps. I tested it using my Xperia ZR with 4.2.2 firmware.

Features:
1. Vibrate when an outgoing call is connected
2. Vibrate when an incoming call is connected
3. Vibrate when an incoming call is waiting
4. Vibrate when a call is ended
5. Vibrate during outgoing call at 45 second mark of every minute (default is off)
6. Vibrate once at fixed time after outgoing call is connected (default is off)
7. Any of the above features can be turned on/off
8. Vibration intensity can be adjusted

Requirements
1. Your phone must be rooted
2. Xposed framework must be installed first http://forum.xda-developers.com/show....php?t=1574401
3. Xposed library 2.2 is required

Instructions
  1. Install the module
  2. Run Xposed Installer and enable the module Vibrate on connected call, ended call and new call waiting for Android phones
  3. Reboot the phone

Credits
kantry123 - for testing with Xperia U phone

Source code
You can find source code for this module from GitHub here.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-08-24-10-16-56.jpg
Views:	5226
Size:	25.4 KB
ID:	2209463   Click image for larger version

Name:	Screenshot_2013-10-16-23-50-35.jpg
Views:	2785
Size:	31.5 KB
ID:	2329253   Click image for larger version

Name:	Screenshot_2013-10-29-23-19-39.jpg
Views:	2477
Size:	131.7 KB
ID:	2357837  
Attached Files
File Type: apk XperiaPhoneVibrator_2.51_01080037.apk - [Click for QR Code] (31.8 KB, 811 views)
File Type: apk XperiaPhoneVibrator_2.52_06062231.apk - [Click for QR Code] (34.4 KB, 203 views)
File Type: apk XperiaPhoneVibrator_2.53_06281039.apk - [Click for QR Code] (34.4 KB, 395 views)
My phone
Sony Xperia ZR | Rooted Stock ROM 4.4.2 | Stock kernel | Dual CWM/TWRP recovery | Samsung 32GB UHS-I

HTC Incredible S | Blackrose 2.02 HBOOT | 4EXT Touch | CM11 VivoKat | TESCO Kernel 3.0.101 | 3831.18.00.28 radio | SanDisk Ultra UHS-I 32GB

My work
Photo Frame&Grid Widget | Android Phone Vibrator - Xposed | Ringer & Notification Volume Unlink in ICS/JB - Xposed | Notification Direct Launcher - Xposed | Xperia Stamina LED - Xposed | Xperia/AOSP NavBar Buttons - Xposed
The Following 23 Users Say Thank You to itandy For This Useful Post: [ Click to Expand ]
 
itandy
Old
(Last edited by itandy; 5th July 2014 at 08:42 AM.)
#2  
itandy's Avatar
Senior Member - OP
Thanks Meter 1,050
Posts: 1,696
Join Date: Apr 2010
Location: Hong Kong
Change Log
Code:
2.53
- Improved exception handling

2.52
- Update translation (Thanks to Jose Artuņedo for Spanish)

2.51
- Update translation (Thanks to Jan Žák for Czech)

2.50
- New feature to adjust state change threshold for outgoing call. Use it if your phone does not vibrate on outgoing call. Check FAQ below for details.
- New option to enable additional debug info
- Update translation

2.40
- New feature to adjust vibration intensity
- New localisation for Traditional Chinese for Hong Kong

2.31
- Updated localisation for Simplified Chinese (thanks to liveasx)
- New localisation for Traditional Chinese

2.30
- Second mark of every minute can now be changed
- New feature to vibrate once at fixed time after outgoing call is connected (default is off)

2.20
- New feature to vibrate the phone during outgoing call at 45 second mark of every minute (default is off)
- New localisation for Simplified Chinese (thanks to liveasx)

2.12
- Fix issue that vibrate on incoming call might not work on some phones

2.11
- Add new feature Vibrate when an incoming call is waiting
- Add new feature Vibrate when an incoming call is connected
- All features can be turned on/off

2.00 
- Completely rewritten based on ICS/JB AOSP source code using CM ROM logic. Now should work on most Android phone apps.

1.11 
- Added support for ICS ROM. Now should work with more Xperia phones.
FAQ
Q: My phone does not vibrate when an outgoing call is connected.
A: It's possible that the time of state change for your phone after an outgoing call is connected is slower than expected. This module has an assumption that this state change should happen in no longer than 200ms. In version 2.50, there's a new option to change this threshold. But first you need to know how much time your phone need. Following the procedures below:

1. First Enable Debug Info (new option available in 2.50 also) in setting.
2. Make some calls.
3. Check the Xposed log file under /data/data/de.robv.android.xposed.installer/log/.
4. Look for the line beginning with "cstate:ACTIVE". The value after "durationMillis" is the amount of time your phone needs for the state change for outgoing call. This value might varies so make several calls and mark the largest value.
5. Set the threshold to something higher than the largest value you found.
6. Try calling out again and see if it vibrates.
My phone
Sony Xperia ZR | Rooted Stock ROM 4.4.2 | Stock kernel | Dual CWM/TWRP recovery | Samsung 32GB UHS-I

HTC Incredible S | Blackrose 2.02 HBOOT | 4EXT Touch | CM11 VivoKat | TESCO Kernel 3.0.101 | 3831.18.00.28 radio | SanDisk Ultra UHS-I 32GB

My work
Photo Frame&Grid Widget | Android Phone Vibrator - Xposed | Ringer & Notification Volume Unlink in ICS/JB - Xposed | Notification Direct Launcher - Xposed | Xperia Stamina LED - Xposed | Xperia/AOSP NavBar Buttons - Xposed
The Following 5 Users Say Thank You to itandy For This Useful Post: [ Click to Expand ]
 
SystemErrorOne
Old
#3  
SystemErrorOne's Avatar
Recognized Contributor
Thanks Meter 319
Posts: 466
Join Date: Jun 2011
Location: Jacksonville
is there anyway to make this work with other phones that are on 4.2 builds ? or is this just exclusive to your sony model phone.
Press Thanks If I Helped

 
itandy
Old
#4  
itandy's Avatar
Senior Member - OP
Thanks Meter 1,050
Posts: 1,696
Join Date: Apr 2010
Location: Hong Kong
Quote:
Originally Posted by SystemErrorOne View Post
is there anyway to make this work with other phones that are on 4.2 builds ? or is this just exclusive to your sony model phone.
I haven't checked out the source code for AOSP dialer. But if Xperia phone app is using similar code, then this module should also work in AOSP and other similar dialer.

Technically, this module only call the system vibrator after the method hideCallingProgress in the LargeCallView class. So if this class and method exist, then it mod should work.

You can try it and report back your result.
My phone
Sony Xperia ZR | Rooted Stock ROM 4.4.2 | Stock kernel | Dual CWM/TWRP recovery | Samsung 32GB UHS-I

HTC Incredible S | Blackrose 2.02 HBOOT | 4EXT Touch | CM11 VivoKat | TESCO Kernel 3.0.101 | 3831.18.00.28 radio | SanDisk Ultra UHS-I 32GB

My work
Photo Frame&Grid Widget | Android Phone Vibrator - Xposed | Ringer & Notification Volume Unlink in ICS/JB - Xposed | Notification Direct Launcher - Xposed | Xperia Stamina LED - Xposed | Xperia/AOSP NavBar Buttons - Xposed
 
SystemErrorOne
Old
#5  
SystemErrorOne's Avatar
Recognized Contributor
Thanks Meter 319
Posts: 466
Join Date: Jun 2011
Location: Jacksonville
Quote:
Originally Posted by itandy View Post
I haven't checked out the source code for AOSP dialer. But if Xperia phone app is using similar code, then this module should also work in AOSP and other similar dialer.

Technically, this module only call the system vibrator after the method hideCallingProgress in the LargeCallView class. So if this class and method exist, then it mod should work.

You can try it and report back your result.
Well considering that Im into designing and not so familiar with coding I will attempt to do it myself but feel free to give me a starting point


Thanks for the response
Press Thanks If I Helped

 
itandy
Old
#6  
itandy's Avatar
Senior Member - OP
Thanks Meter 1,050
Posts: 1,696
Join Date: Apr 2010
Location: Hong Kong
Quote:
Originally Posted by SystemErrorOne View Post
Well considering that Im into designing and not so familiar with coding I will attempt to do it myself but feel free to give me a starting point


Thanks for the response
Actually you can check out the source code from GitHub if you want to know how this module works. It's just a few line of codes.

But again you can try this module to see if it works on your phone first. I have a feeling that it works too.
My phone
Sony Xperia ZR | Rooted Stock ROM 4.4.2 | Stock kernel | Dual CWM/TWRP recovery | Samsung 32GB UHS-I

HTC Incredible S | Blackrose 2.02 HBOOT | 4EXT Touch | CM11 VivoKat | TESCO Kernel 3.0.101 | 3831.18.00.28 radio | SanDisk Ultra UHS-I 32GB

My work
Photo Frame&Grid Widget | Android Phone Vibrator - Xposed | Ringer & Notification Volume Unlink in ICS/JB - Xposed | Notification Direct Launcher - Xposed | Xperia Stamina LED - Xposed | Xperia/AOSP NavBar Buttons - Xposed
 
SystemErrorOne
Old
#7  
SystemErrorOne's Avatar
Recognized Contributor
Thanks Meter 319
Posts: 466
Join Date: Jun 2011
Location: Jacksonville
Quote:
Originally Posted by itandy View Post
Actually you can check out the source code from GitHub if you want to know how this module works. It's just a few line of codes.

But again you can try this module to see if it works on your phone first. I have a feeling that it works too.
do you have a G+ account ?
Press Thanks If I Helped

 
itandy
Old
#8  
itandy's Avatar
Senior Member - OP
Thanks Meter 1,050
Posts: 1,696
Join Date: Apr 2010
Location: Hong Kong
Quote:
Originally Posted by SystemErrorOne View Post
do you have a G+ account ?
Just PM
My phone
Sony Xperia ZR | Rooted Stock ROM 4.4.2 | Stock kernel | Dual CWM/TWRP recovery | Samsung 32GB UHS-I

HTC Incredible S | Blackrose 2.02 HBOOT | 4EXT Touch | CM11 VivoKat | TESCO Kernel 3.0.101 | 3831.18.00.28 radio | SanDisk Ultra UHS-I 32GB

My work
Photo Frame&Grid Widget | Android Phone Vibrator - Xposed | Ringer & Notification Volume Unlink in ICS/JB - Xposed | Notification Direct Launcher - Xposed | Xperia Stamina LED - Xposed | Xperia/AOSP NavBar Buttons - Xposed
 
ironwick
Old
#9  
ironwick's Avatar
Senior Member
Thanks Meter 34
Posts: 122
Join Date: Aug 2008
Location: Basque Country
This did nothing, no effect on my Xperia T.
Free tech

Code:
Sony Xperia T: Ultimate PureXT v4.4 | DooMKernel v12 
Samsung Galaxy Tab 2 10.1: Cyanogenmod 11 | DhollmenCM kernel v3.0.101
 
itandy
Old
#10  
itandy's Avatar
Senior Member - OP
Thanks Meter 1,050
Posts: 1,696
Join Date: Apr 2010
Location: Hong Kong
Quote:
Originally Posted by ironwick View Post
This did nothing, no effect on my Xperia T.
Can you give me the link to download your ROM. I can take a look.
My phone
Sony Xperia ZR | Rooted Stock ROM 4.4.2 | Stock kernel | Dual CWM/TWRP recovery | Samsung 32GB UHS-I

HTC Incredible S | Blackrose 2.02 HBOOT | 4EXT Touch | CM11 VivoKat | TESCO Kernel 3.0.101 | 3831.18.00.28 radio | SanDisk Ultra UHS-I 32GB

My work
Photo Frame&Grid Widget | Android Phone Vibrator - Xposed | Ringer & Notification Volume Unlink in ICS/JB - Xposed | Notification Direct Launcher - Xposed | Xperia Stamina LED - Xposed | Xperia/AOSP NavBar Buttons - Xposed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes