[MOD][XPOSED] Call Screen Sleep Fix - Xposed Framework Modules

Experimental Module
This Xposed Module will prevent Phone Screen to sleep(lock) during phone call.
Proximity sensor will work as it is i.e. Display will go off when proximity sensor is covered but screen won't sleep
Especially useful when loudspeaker is on and "Power key ends call" Accessibility feature is turned on.
display wont go off thus accidental call termination can be avoided.
Note: First Xposed Module
to test this module set sleep time(in phone Settings -> Display) to 15 seconds or so and place a call, if screen doesn't sleep after defined seconds it worked
Download at Xposed Module Repository. repo.xposed.info / module / pkg.x7491.xposed.callscreenfix
Tested on various devices. if it does/doesn't work for you post your ROM and Device Details
bitcoin: 1EyW96mf9uqVWYDW7npFbL1iWDhm2MoS2

I was literally about to make this for myself
But I don't see a DL lol

Emmanuel U said:
I was literally about to make this for myself
But I don't see a DL lol
Click to expand...
Click to collapse
am new user external link not allowed. Available at Xposed Module Repository

For now 100% working cm12.1
Thanks its very useful module
sent from my G7102 CM12.1 using Tapatalk

Very useful module.
Added to my list thanks!

works well on samsung device people is going to underestimate this module which i hope not

Unfortunately this module doesn't work on my Sony Xperia Z3 compact. Android 5.0.2

I feel like I'm really going to like this module !! But just a little thing : would it be possible to make it also force the screen to wake up when you receive a call ? Because (and I'm sure there is no option for this) whenever I receive a call, I must first push the power button in order to answer it (weird huh ?)...

Testing this on Samsung Kitkat
Sent from my SAMSUNG-SGH-I747 using Tapatalk

Christoph_NL said:
Unfortunately this module doesn't work on my Sony Xperia Z3 compact. Android 5.0.2
Click to expand...
Click to collapse
on Android 5 you dont need this module
As far as i know if you have power key ends call feature enabled on Android 5 and screen sleeps, then when you first press power key it wakes up screen and second press ends call.

Frazew said:
.....would it be possible to make it also force the screen to wake up when you receive a call ? Because (and I'm sure there is no option for this) whenever I receive a call, I must first push the power button in order to answer it (weird huh ?)...
Click to expand...
Click to collapse
Strange never faced this issue on any of my device. Android automatically wakes screen when call is received. may be you are using a screen guard that may be covering proximity sensor

Frazew said:
I feel like I'm really going to like this module !! But just a little thing : would it be possible to make it also force the screen to wake up when you receive a call ? Because (and I'm sure there is no option for this) whenever I receive a call, I must first push the power button in order to answer it (weird huh ?)...
Click to expand...
Click to collapse
Yes nice idea, will this be possible ? I too sometimes have to push the power button then answer the call.

I'm not sure if this module aim to solve this problem
I receive a phone call, the phone call ends and my screen locks with pin number.
Why would it do that?
Anyway I read your description, it seems it solves another problem I never noticed.
I have a Samsung Galaxy S3 neo with kitkat 4.4.2

It is not keeping my screen on using Android 5.1.1. Still goes black when on call, supposed to stay on correct?
Sent from my One M8 using Tapatalk

x7491 said:
on Android 5 you dont need this module
As far as i know if you have power key ends call feature enabled on Android 5 and screen sleeps, then when you first press power key it wakes up screen and second press ends call.
Click to expand...
Click to collapse
This module prevent normally your screen goes to sleep when you make a call with speaker. But with this module my screen goes off anyway when I make a call. And yes with pressing the powerkey you can turn on the screen again. That also worked on Android 4.3.

Did not work on my ZTE Kis 3
Hello:
Thanks for the effort but this did not work on my ZTE Kis 3 working on android 4.4.2. Should I do anything to make it work, any thong on definitions?
Rui

sk1887 said:
I'm not sure if this module aim to solve this problem
I receive a phone call, the phone call ends and my screen locks with pin number.
Why would it do that?
Click to expand...
Click to collapse
I also noticed this weird behaviour on my S4, 4.4.2. It would be very nice if this module could fix this "issue". Not sure either whether it's the case yet.

useful module...confirmed works on Lenovo A3000 with AOSP 4.2.2

Please if you have some time, try to make it compatible with MIUI.

Frazew said:
I feel like I'm really going to like this module !! But just a little thing : would it be possible to make it also force the screen to wake up when you receive a call ? Because (and I'm sure there is no option for this) whenever I receive a call, I must first push the power button in order to answer it (weird huh ?)...
Click to expand...
Click to collapse
I have noticed that when my phone is on battery save mode, my screen does not turn on when a phone call comes in.
Sent from my Nexus 6 using XDA Free mobile app

Related

[REQ] Tiny app turn OFF screen when call connect

Hi,
I wish I had the knowledge to create such an application, but I don't so I'll try to explain this idea as clearly as I can see if someone finds it interesting enough.
As you know some phones already have the built-in feature to turn OFF the screen when a call is established. This prevents accidental actions with your cheek and ear on the touchscreen.
Some phones have fancy sensors like light sensor and proximity sensor.
But many other phones don't have, so this tiny app would be very useful to all of them:
How should it work?
Very simple:
1. Detect when a call is established
2. Call the "Turn OFF screen" command (same as pressing the power button)
That's it.
This would be exactly like pressing the power button after call is connected, so there wouldn't be incompatibilities with other apps. Plus the phone behavior when call is finished would be the same as always, since it only called the same command as power button.
This tiny app then could be cooked inside many ROM's.
Well, it's very easy explained like this, but as I said, I don't have the knowledge to do it myself
If you feel like programming the app I will gladly be your tester (or should I say guinea pig? )
+1
Having the problem with accidental touching the buttons and so fort pausing or hanging up a established Call.
+1
Add the functionality of turning the screen back on after the call is dis-connected and I'm sold
A software like this would be manufacturer dependant. For HTC devices, check out Touch InCall Screen Tweak. This app works on all HTC devices, and is a great app.
You can also use DiamondTweak or Advanced Config and setup the device to suspend quickly when in call (but these apps might only work on Diamond).
longice said:
A software like this would be manufacturer dependant. For HTC devices, check out Touch InCall Screen Tweak. This app works on all HTC devices, and is a great app.
You can also use DiamondTweak or Advanced Config and setup the device to suspend quickly when in call (but these apps might only work on Diamond).
Click to expand...
Click to collapse
Thank you!
Although I have an Elf, and it's got no G-sensor and no light sensor, so it won't work on my device
But it's pretty close to what I'm looking for! Thanks!
Is there really no way to disable the "Green" "Home" "Left arrow" and "Red" button when I'm in a call.
Ive tried to disable the buttons with AEB-plus, but it still doesn't work while Im in a Call.
Is it just me that have the problem with time and time Pausing or Hanging up established calls, "thanks" to the "Hardware" buttons.
PS
Using Touch HD

how to stop display turn off during telephone calls

We are developing hardware for Android mobile products.
We are using Samsung Galaxy mobile running on T-Mobile & AT&T cellular networks.
We notice during telephone calls, either dialing outgoing or incoming calls, the display turn off almost immediately when the telephone calls started.
Is there anyway to keep the display turn on all during the entire telephone calls?
I understand you can make all the hard buttons to wake up your phone by modify rhis register,
HKCU\Control Panel\Keybd\
and create REG_DWORD "DefaultKeyLock" Value "0"
Please tell me step by step instruction on how to modify this register inside Android?
thank you
Phone turns off due to proximity sensor...best would be an app to toggle proximity sensor...use that and phone wont go black
Using XDA premium through A5
Press thanks on help
use some proximity toggling app that would seal the deal...
Our why not just on brightness change it to "always on" our never sleep or something like that :c
Sent from my SGH-T999
to set display at the highest brightness and have the display always turn on will likely cause high battery consumption.
That must be better way to keep display on during call to watch the minutes duration of the call.
young707 said:
to set display at the highest brightness and have the display always turn on will likely cause high battery consumption.
That must be better way to keep display on during call to watch the minutes duration of the call.
Click to expand...
Click to collapse
Dude I mean you can always manually lock it but when you have a call the screen will never shut off unless you physically press the button
Sent from my SGH-T999
If I helped please press the thanks button
how to change brightness for android device i m new in android
globetel said:
how to change brightness for android device i m new in android
Click to expand...
Click to collapse
You can change it in display settings.
Inviato dal mio GT-P1000 con Tapatalk 2
Just pull out the proximity sensor!
This kind of thing happens on my wife's phone. She has a Samsung galaxy s iii. When she tried to check her voicemail the screen shuts off as soon as the call starts and she always has to press the power button to turn it back on to type in her password. Thought it was just her phone being weird, but maybe I will have to check to see if her proximity sensor isn't working correctly.
Sent from my Verizon Galaxy Nexus running Bugless Beast 4.1.2 via Xparent Cyan Tapatalk 2 with customized colors
same problems here with my Samsang Galaxy mobile.
everytime when start a call, the screen turn off,
also, unable to push to speaker button - and the speaker button is turn off (gray out)
very annoying

Phone application behaves strange....

Hi guys,
i been having this very annoying problem with my GS3 LTE (9305) but when i compare to other GSIII's it seems only mine behave like this but i cant find any reason or any option for the cause.
Basically the problem is that when i call someone and the phone screen goes to off sometime i want to wake up the screen and press the button below the screen and what my phone does is to minimize the call application but on my friends phone the call application stays and only the screen is turned on.
Can you guys please help me finding the root cause to why my call application minimizes itself when the screen is off?
I been searching for every option there is and cant find anything useful, also i have never installed any other dialer application or anything like that.
Please help me this is getting me nuts.
vampyren said:
Hi guys,
i been having this very annoying problem with my GS3 LTE (9305) but when i compare to other GSIII's it seems only mine behave like this but i cant find any reason or any option for the cause.
Basically the problem is that when i call someone and the phone screen goes to off sometime i want to wake up the screen and press the button below the screen and what my phone does is to minimize the call application but on my friends phone the call application stays and only the screen is turned on.
Can you guys please help me finding the root cause to why my call application minimizes itself when the screen is off?
I been searching for every option there is and cant find anything useful, also i have never installed any other dialer application or anything like that.
Please help me this is getting me nuts.
Click to expand...
Click to collapse
its a bug in samsung jelly bean roms - chances are your friend is running ice cream sandwich.
Sent from my GT-I9300 using Tapatalk 2
beaver2233 said:
its a bug in samsung jelly bean roms - chances are your friend is running ice cream sandwich.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I tested on a GSII LTE + GSIII + Note2 and all are running JB and works fine on their phone.
If it is a bug i hope Samsung fixes it soon, its been a while i got an update and this thing is so annoying.
vampyren said:
I tested on a GSII LTE + GSIII + Note2 and all are running JB and works fine on their phone.
If it is a bug i hope Samsung fixes it soon, its been a while i got an update and this thing is so annoying.
Click to expand...
Click to collapse
I meant Galaxy S3 Jelly Bean roms... Jkays framework fixes this issue.
If i recall correctly it has something to do with a setting in s-voice I think. Also it happens with any application when the screen turns off.
Sent from my GT-I9300 using Tapatalk 2
beaver2233 said:
I meant Galaxy S3 Jelly Bean roms... Jkays framework fixes this issue.
If i recall correctly it has something to do with a setting in s-voice I think. Also it happens with any application when the screen turns off.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Yes, this issue isn't unique to the dialler. If you let the screen timeout with any application then press the home key, it returns to the home screen.
The workaround is to make sure than in the S-Voice settings, you have "Open via the home key" option set. After this, a single home key press will wake the device without returning to the home screen.
Ask this question in the appropriate section
arghness said:
Yes, this issue isn't unique to the dialler. If you let the screen timeout with any application then press the home key, it returns to the home screen.
The workaround is to make sure than in the S-Voice settings, you have "Open via the home key" option set. After this, a single home key press will wake the device without returning to the home screen.
Click to expand...
Click to collapse
Sadly that didnt work either. I had actually S Voice disabled but enabled and did what you said but it still minimizes the call application
EDIT: very strange , tested calling 4-5 times and suddenly after my friend called me it started working. I called my other cell before and it works fine now. THANK ALLOT MAN.
EDIT2: funny i tried to disable S-Vice again and to my surprise it stil works.

On screen buttons been pressed while in call

As above really!!
Is anyone one having issues with buttons been pressed whilst you are on the phone?
I have had mine cut out a few times and all sorts!!
stu_tls said:
As above really!!
Is anyone one having issues with buttons been pressed whilst you are on the phone?
I have had mine cut out a few times and all sorts!!
Click to expand...
Click to collapse
Are you saying the vibrations stop working all together?
Sent from my D6503 using XDA Premium 4 mobile app
I never mentioned vibrations!!!
I should have explained it a little better though
when you make or receive a call and you are on the phone the screen turns off and disables all button presses because the proximity sensor is covered
but even though the display is off and the sensor is covered you can still press buttons whilst on the phone
so far I have tried sending a text
cut people off
muted the phone
put the phone in to airplane mode
added events to my calendar
and more
all this with the side of my face while in a call
stu_tls said:
I never mentioned vibrations!!!
I should have explained it a little better though
when you make or receive a call and you are on the phone the screen turns off and disables all button presses because the proximity sensor is covered
but even though the display is off and the sensor is covered you can still press buttons whilst on the phone
so far I have tried sending a text
cut people off
muted the phone
put the phone in to airplane mode
added events to my calendar
and more
all this with the side of my face while in a call
Click to expand...
Click to collapse
Thats odd, what firmware are you on
This feature should usualy disable screen touch
Sent from my D6503 using XDA Premium 4 mobile app
on .55 at the min
there is a few with the same problem over on the sonymobile forum
I was wondering if the double tap to wake feature was causing the issue so I have just turned that off and see how it goes over the next few days
stu_tls said:
on .55 at the min
there is a few with the same problem over on the sonymobile forum
I was wondering if the double tap to wake feature was causing the issue so I have just turned that off and see how it goes over the next few days
Click to expand...
Click to collapse
Experiment with some posible things
Perhaps even try to update to a new firmware
Sent from my D6503 using XDA Premium 4 mobile app
I will see what its like with the update once its available I'm not going root!!
Yes have this issue once, when in a call, tone of number presses even though screen off.
Sent from my D6503 using Tapatalk
Happens to me too
For me it's sounds like Proximity sensor of Your Xperia Z2 isn't working. You can test it with apps, https://play.google.com/store/apps/details?id=imoblife.androidsensorbox&hl=ja like this
Proximity sensor works fine the first thing I did was test it
Well.... I can't think about any other reason.... As soon as I find infos I will share
Sent from my D6503 using XDA Free mobile app
I haven't had it happen since disabling the double tap to wake feature
i don't have double tap enabled and i have the same issue :S
I have tried it with and without double tap to wake and it makes no difference! It's really annoying me now!
stu_tls said:
on .55 at the min
there is a few with the same problem over on the sonymobile forum
I was wondering if the double tap to wake feature was causing the issue so I have just turned that off and see how it goes over the next few days
Click to expand...
Click to collapse
I have the same annoying fault. I can not find double tap to wake feature tu disable on XA2. How did You find it ?

Problem: Greenifing during CALL

I use Greenify for a long time with donation package, beta tester also.
At the moment I'm using it on a non-rooted Samsung Note 5
I add most of the programs be "greenified" except a few important for me.
The BIG PROBLEM is that in most of the times when there is an ACTIVE CALL, Greenify strart "working" and I can not do aniting. The phone is "black" and I can not even close/finish the call, just waiting Greenify to "hibernate" a.k.a. "force stop" all apps.
Sometime with 5 to 10 "power button" presses I'm able to interupt "hibernation" and to close my call.
Please, add an option to DISSABLE hiberation during a CALL!!!
Somebody else having this problem?
Best regards to all developers!
ChoSmile said:
I use Greenify for a long time with donation package, beta tester also.
At the moment I'm using it on a non-rooted Samsung Note 5
I add most of the programs be "greenified" except a few important for me.
The BIG PROBLEM is that in most of the times when there is an ACTIVE CALL, Greenify strart "working" and I can not do aniting. The phone is "black" and I can not even close/finish the call, just waiting Greenify to "hibernate" a.k.a. "force stop" all apps.
Sometime with 5 to 10 "power button" presses I'm able to interupt "hibernation" and to close my call.
Please, add an option to DISSABLE hiberation during a CALL!!!
Somebody else having this problem?
Best regards to all developers!
Click to expand...
Click to collapse
Have you greenified anything related to phone calls? Can you post a screenshot of what all you have greenified? Do you also use Amplify?
This is not the normal behaviour unless you greenified or limited something which you ought not have.
Nothing related to Call or Phone or other system realated apps are in Greenify list (178 apps).
Normal behaviour of Greenify is to start hibertatiing apps when screen goes off.
(In root or boost (xposed) mode this operation is very fast, it closes many apps at once.)
But in NON-root mode it use standart automated [Force close] dialog or every app, so it takes a second or two per app to close it.
When I make (or receive) a call, I put the phone near to my ear, the proximity sensor turns off the display.
After a while, Greenify starts hibernation process.
There is no problem with the CALL itself, it is not interrupted or disturbed and qualiry is excellent.
The problem is when I take off my phone from my head, proximity sensor "realesed" and display have to goes on (rise) again but this NOT happens.
At this moment Greenify closes apps one by one and screen is OFF.
Call conversation remains active and I can NOT hang up (close) my call.
No reaction if I press [Home] or [Power] buttons.
By pressing many times (5+) [Power] button I'm able to interupt the Greenify hibernation process, display goes on and I see the force close app's dialog.
Now I use drop down menu and press (red earphone icon) to hang up (close) my active call.
That's why I think that settings option in Greenify for "temporary disable of hibernation" during an active call will be very useful especialy for "non-root mode" users.
Do you think it is worth to add such option?
@ChoSmile
When you are on a call, it will hold a wakelock so that the screen going off doesn't affect it. The proximity sensor senses your face near it and switches off the screen. When the phone is held away from the face, the proximity sensor should sense it and switch on the screen. This is the normal behavior.
Greenify starting to hibernate the apps should not affect the proximity sensor sensing. Check the functioning of your proximity sensor because no one else seems to have reported this problem, as far as I know.
I don't think that Greenify hibernates apps during a call ie. while the screen is off during a call. Atleast for me, it doesn't.
ChoSmile said:
I use Greenify for a long time with donation package, beta tester also.
At the moment I'm using it on a non-rooted Samsung Note 5
I add most of the programs be "greenified" except a few important for me.
The BIG PROBLEM is that in most of the times when there is an ACTIVE CALL, Greenify strart "working" and I can not do aniting. The phone is "black" and I can not even close/finish the call, just waiting Greenify to "hibernate" a.k.a. "force stop" all apps.
Sometime with 5 to 10 "power button" presses I'm able to interupt "hibernation" and to close my call.
Please, add an option to DISSABLE hiberation during a CALL!!!
Somebody else having this problem?
Best regards to all developers!
Click to expand...
Click to collapse
By any chance do you have aggressive doze enabled in greenify? I started having about the same issue, i would receive a call and screen would never wake up. I had done a lot of tweaks and wasn't sure what exactly what was causing this. So I did a fresh install and started a little bit at a time doing my tweaks and never got to install greenify yet. So far, phone has been working properly. So maybe this had something to do with aggressive doze or the fact that I had two apps setting aggressive doze, greenify and force doze.
kenboyles72 said:
By any chance do you have aggressive doze enabled in greenify? I started having about the same issue, i would receive a call and screen would never wake up. I had done a lot of tweaks and wasn't sure what exactly what was causing this. So I did a fresh install and started a little bit at a time doing my tweaks and never got to install greenify yet. So far, phone has been working properly. So maybe this had something to do with aggressive doze or the fact that I had two apps setting aggressive doze, greenify and force doze.
Click to expand...
Click to collapse
I disable Aggressive Doze (experimental) but issue happens again, might be no so offen like before I disabled it.
@tnsmani
Do you use Greenify on NON rooted device?
Because on rooted devices, you probably use it "Root" or "Boost" working mode where hiberanating is "at once" for many apps.
ChoSmile said:
I disable Aggressive Doze (experimental) but issue happens again, might be no so offen like before I disabled it.
@tnsmani
Do you use Greenify on NON rooted device?
Because on rooted devices, you probably use it "Root" or "Boost" working mode where hiberanating is "at once" for many apps.
Click to expand...
Click to collapse
Normally I use Greenify in root/boost mode since my phone is rooted.
But to investigate your issue, I ran it in non-root mode (phone is still rooted). Still my screen behaves normally.
I have the same issues exactly non root greenify kicks in during calls and everything goes south. Any solution to disable greenify during calls
Sent from my ONE A2003 using Tapatalk
Guys. Anyine found a solution here? This is a real issue for me. I am using non root and everytime a call starts, screen goes dark, greenify starts and doesn't capture the right screens probably but rather initiates clicks on the task bar on the top. This way I see the WiFi starting or Hotspot being disabled or data being turned off.
All I need is for greenify to not work during calls!
Sent from my ONE A2003 using Tapatalk
ofird said:
Guys. Anyine found a solution here? This is a real issue for me. I am using non root and everytime a call starts, screen goes dark, greenify starts and doesn't capture the right screens probably but rather initiates clicks on the task bar on the top. This way I see the WiFi starting or Hotspot being disabled or data being turned off.
All I need is for greenify to not work during calls!
Click to expand...
Click to collapse
Seems to be a persistent, unresolved issue on some non-rooted devices with stock ROMs. You'll probably have to abandon Greenify.
My worst issues with battery drain is when the phone is on and not off. Maube screen brightness. I don't know but it drains like crazy
Sent from my ONE A2003 using Tapatalk
ofird said:
My worst issues with battery drain is when the phone is on and not off. Maube screen brightness. I don't know but it drains like crazy
Click to expand...
Click to collapse
Your ROMs built in battery stats may (likely will) provide clues to that type of drain. For a more comprehensive assessment try GSAM which is a available in the Play Store. BBS can also help but it's a little more difficult to interpret IMHO. Good luck.

Categories

Resources