[MOD][JVQ][JVR] Incoming Call Ringtone Flip to Mute and Hold to Silence
Incoming Call Ringtone Flip to Mute and Hold to Silence
My friend has been showing me the so called Flip to Mute and Hold to Silence features of his New HTC phone which he has purchased recently. He was quite exaggerating on the fact that his phone had those features while my Galaxy S lacked them. So, I started working on a port for the same and finally managed to integrate them into the stock Dialer.
Flip to Mute
When you are receving a call, you could simply MUTE the call Ringtone by flipping the phone with the screen facing the table surface.
Hold to Silence
When you receive a call, if you hold the phone in your hand with the screen angled towards your face, the Ringtone volume decreases until you lift the call.
Note: I have configured the sensor settings to be effective only when the phone is resting on a flat surface with the screen upwards. I have found that this type of configuration is required to prevent issues with phone going mute accidentally when its in your pocket and you receive a call. Unfortunately, I don't receive many calls to practically test it for accuracy. Hope it serves the purpose.
Installation Instructions
Download the attached file and flash with CWM3.
IMPORTANT PLEASE READ!
This is just a MOD which is intended to work properly, but there might be chances of the MOD misbehaving. I am totally not responsible if a girl next door calls you up and you get a Force close on the Phone app. There might be some issues, hence install it only if you know how to rollback in case of any issues. Post them in the forum so that I could look into them. A logcat would be usefull.
Download - DEODEXED ROM ONLY!
Please check the attachment. There are 2 versions uploaded.
1. Flip and Hold
2. Flip Only
JVR Version by Brotuck :
http://forum.xda-developers.com/show...6&postcount=72
The Phone.apk is based on JVQ release and it is based on the stock APK. There are no additional mods like disable increasing ringtone or fixing the FC with this app after a phone call.
Versions for the other firmwares will be released soon.
Sensor Usage
You might notice some Sensor Usage for Phone app. This is quite normal because the Sensors are used to check the Orientation of the phone. This would last only for the duration of the Call Ring. I have checked to see if the sensors are being stopped and It seems to work fine. Let me know if there are any issues, because if there is any issue with the sensors, it might lead to a battery drain.
You are free to use my work but please give me a Credit, Hit the Thanks Button and also consider a donation.