Post Reply

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

OP itandy

24th August 2013, 03:28 AM   |  #1  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,054
 
1,708 posts
Join Date:Joined: Apr 2010
More
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:	5487
Size:	25.4 KB
ID:	2209463   Click image for larger version

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

Name:	Screenshot_2013-10-29-23-19-39.jpg
Views:	2700
Size:	131.7 KB
ID:	2357837  
Attached Files
File Type: apk XperiaPhoneVibrator_2.51_01080037.apk - [Click for QR Code] (31.8 KB, 849 views)
File Type: apk XperiaPhoneVibrator_2.52_06062231.apk - [Click for QR Code] (34.4 KB, 216 views)
File Type: apk XperiaPhoneVibrator_2.53_06281039.apk - [Click for QR Code] (34.4 KB, 540 views)
Last edited by itandy; 5th July 2014 at 08:41 AM.
The Following 23 Users Say Thank You to itandy For This Useful Post: [ View ]
24th August 2013, 03:28 AM   |  #2  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,054
 
1,708 posts
Join Date:Joined: Apr 2010
More
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.
Last edited by itandy; 5th July 2014 at 08:42 AM.
The Following 5 Users Say Thank You to itandy For This Useful Post: [ View ]
24th August 2013, 03:34 AM   |  #3  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 324
 
478 posts
Join Date:Joined: Jun 2011
More
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.
24th August 2013, 03:45 AM   |  #4  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,054
 
1,708 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by SystemErrorOne

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.
24th August 2013, 04:30 AM   |  #5  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 324
 
478 posts
Join Date:Joined: Jun 2011
More
Quote:
Originally Posted by itandy

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
24th August 2013, 04:37 AM   |  #6  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,054
 
1,708 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by SystemErrorOne

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.
24th August 2013, 04:44 AM   |  #7  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 324
 
478 posts
Join Date:Joined: Jun 2011
More
Quote:
Originally Posted by itandy

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 ?
24th August 2013, 04:49 AM   |  #8  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,054
 
1,708 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by SystemErrorOne

do you have a G+ account ?

Just PM
4th September 2013, 05:38 PM   |  #9  
ironwick's Avatar
Senior Member
Flag Basque Country
Thanks Meter: 34
 
122 posts
Join Date:Joined: Aug 2008
More
This did nothing, no effect on my Xperia T.
5th September 2013, 03:25 AM   |  #10  
itandy's Avatar
OP Senior Member
Hong Kong
Thanks Meter: 1,054
 
1,708 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by ironwick

This did nothing, no effect on my Xperia T.

Can you give me the link to download your ROM. I can take a look.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Xposed Framework Modules by ThreadRank