Themes / Apps / Mods [CLOSED][FIX] PROXIMOTY SENSOR FIX - Xiaomi Poco X3 Pro

PROXIMITY SENSOR FIX
Warning :-
I AM NOT RESPONSIBLE FOR ANY DAMAGE WHATSOEVER YOU MAY CAUSE TO YOUR DEVICE WHILE USING OR RANDOMLY EXPERIMENTING WITH THIS FIX, DONT TINKER WITH DEVICE IF U DONT KNOW WHAT U R DOING.
1. What is this fix about?
Ans. Poco F3 has an issue, that while calling screen turns on/off randomly due to proximity sensor malfunction , so to fix it I made a Tasker profile which disables proximity sensor when call is continuing, and re-enable it when call is discontinued.
2. Why to re-enable proximity sensor?
Ans. Without proximity sensor phone will have issues with deep sleep function, so to avoid it proximity sensor is to be re-enabled.
3. Any draw back of this fix?
Ans. Yes, you have to manually turnoff and turn-on the screen during call.
4. Minimum requirements for this fix?
Ans. a. Tasker app
b. Any mi device which shipped with Android 10 or 11 out-of-box , if u have any other device u can test this fix if it works , most probably it would since m using sysfs interface shell script implimented by linux kernel, which is quite universal  both miui n custom roms are compatible;
c. Root;
d. Working mind 
5. PROCEDURE :-
0. Download the "proximity_fix2.XML" from below given link n copy it to "/storage/emulated/0/Tasker/configs/user" ;
1. Go to Tasker app;(all permission to Tasker app should already be given)
2. At the right corner of Tasker app u will see menu button (3 dot button) press it;
3. Go to "Data";
4. Go to "Restore";
5. Now select the "proximity_fix2.xml" that u have downloaded;
6. Press back button repeateadly till the app is closed;
7. That's it from here on my Tasker profile will take care of things;
6. Resources
A. XML file :-
{Mod edit}
B. Tasker app
{Mod edit}

Related

[APP] Proximity Sensor for Screen Off v0.2

May be this tool will be usefull.
It switch off screen using proximity sensor detection.
Like alternative power button.
After proximity detected - screen switched off and proximity sensor don't used until screen will be switched on again manualy.
No screenshots
Second time running will unload program from memory, it can be used for switching on/off proximity lock feature.
All settings in registry, settings reloaded on each program run.
HKEY_CURRENT_USER\Software\Exidler\Hd2ProximityScreenOff
AfterCallReactivateSensor = dword:150 - time in ms when activate proximity sensor after call ended
SensorOffWhenProximity = dword:0 - time in ms when disabling proximity sensor on proximity detected. May be useful for disabling accident detection. This time proximity sensor is still active and if no porximity detected with this time - screen will be switched on automatically
ActiveOnlyIfLocked = dword:0 - Activate Proximity sensor only if Phone locked.
HKEY_CURRENT_USER\Software\Exidler\Hd2ProximityScreenOff\Exceptions
Create any named sub keys with values:
ClassName = string - name of windows class
WndTitle = string - title of window
ProcName = string - name of process
For exception windows proximity sensor will be disabled if this one window is active.
All criterias are optional. For example create only one value ProcName="Explorer.exe" for disabling proximity lock when Resco Explorer is active.
Proximity sensor activated only in portrait mode.
Change log
2010-01-29: v0.2
- full uninstallable cab
- add options: After Call Reactivate Sensor, Sensor Off When Proximity, Active Only If Phone Locked, Exception windows
- disbaling Proximity lock when landscape mode
2010-01-28: v0.1 Test version. Bugs possible.
Great something to get us started, did you make this yourself? Are you willing to put some time in to perfect it & create some options etc. if we bug test it?
exidler said:
May be this tool will be usefull.
It switch off screen using proximity sensor detection.
Like alternative power button.
After proximity detected - screen switched off and proximity sensor don't used until screen will be switched on again manualy.
No screenshots, not settings, just install and reboot phone (or run tool manual from Install directory)
Second time running will unload program from memory.
Test version. Bugs possible.
Click to expand...
Click to collapse
How will this effect the screen turning on after a phonecall, i wan't the screen automatically turned on after a call without having to press a button.
Will this tweak allow default function in that case?
richardirv said:
Are you willing to put some time in to perfect it & create some options etc. if we bug test it?
Click to expand...
Click to collapse
I don't know which options may be added.
I'm can't full control proximity sensor. It's only possible to enable proximity sensor, and htc drivers switching off screen by itself. The i'm disable proximity sensor again
But if it's will be possible to implement some features - i can try to do this.
Ok this is a good start, for me the following things need to be worked out for this to work good.
1. Only works when phone is upright, ie. Portrait. Reason being is if the screen goes off via Proximity in when holding the phone in landscape there will be allot of accidental activations, especially while playing games etc. It is much less likely that proximity will be detected when holding the phone upright.
2. Screen needs to come back on when proximity not detected, as to not cancel out the in call screen off feature.
Will keep thinking! Really hope you can work some magic here exidler!! Thanks
ET said:
How will this effect the screen turning on after a phonecall, i wan't the screen automatically turned on after a call without having to press a button.
Click to expand...
Click to collapse
it will handle proximity sensor to default behavior after call. so i think (and shure) - screen will blink for short time (~200ms) and will be switched off by tool.
exidler said:
it will handle proximity sensor to default behavior after call. so i think (and shure) - screen will blink for short time (~200ms) and will be switched off by tool.
Click to expand...
Click to collapse
Let me test, I assume the cab can be de-installed and everything is back to default behaviour?
richardirv said:
1. Only works when phone is upright, ie. Portrait. Reason being is if the screen goes off via Proximity in when holding the phone in landscape there will be allot of accidental activations, especially while playing games etc. It is much less likely that proximity will be detected when holding the phone upright.
2. Screen needs to come back on when proximity not detected, as to not cancel out the in call screen off feature.
Click to expand...
Click to collapse
in call screen back on when no proximity
when not in call - it switch off. or you talking about switching on screen when not in call?
about landscape and portrait. it's make easy if screen orientation really changed (if not - polling g-sensor - is not a good idea for battery i'm think)
ET said:
Let me test, I assume the cab can be de-installed and everything is back to default behaviour?
Click to expand...
Click to collapse
Cab is Uninstallable, but you must close program manually before uninstalling: run program second time, it will show message about closing
exidler said:
in call screen back on when no proximity
when not in call - it switch off. or you talking about switching on screen when not in call?
about landscape and portrait. it's make easy if screen orientation really changed (if not - polling g-sensor - is not a good idea for battery i'm think)
Click to expand...
Click to collapse
I just ment you don't want it to interfere with the in call actions the HD2 already has.
As you say g-sensor polling etc. no good for battery. I have a feeling this maybe flawed before we get started.
richardirv said:
I just ment you don't want it to interfere with the in call actions the HD2 already has.
Click to expand...
Click to collapse
program know about call and not be interferace with HD2 proximity call actions.
Landscape alternative - Programs (windows) exceptions - when it's active - promity sensor may be disabled. (but this feature need more time for apply)
Just tested the app and maid an incomming call with an other phone, the screen will automaticly turn on after moving from my ear as should be.
Great app I must say!
My fear is when using apps like fpsece etc, the screen will keep going off. Need to put our heads together and brainstorm some ideas to prevent acidental proximity.
The landscape idea with g-sensor was the first thing that came to me but hopefully there will be a better idea. Maybe only when the phone is perfectly horizontal (i.e as it goes into a pocket) The problem is keeping the g-sensor active will drain battery....
Idea's peeps!!
Hmm no way of de-installing it. If I use the app and then push the on button and then try to remove the app via start/settings, after about 10 seconds the device freezes.
Even after trying to install the app again (wich usually workes to remove apps witch can't be completely removed via start/settings) the device freezes.
Taking battery out is only way to restart. App remaines on device though.
Noticed also that the app is flawed, trying to go with my right finger to the left top of the screen to push start makes the screen turn of and that simply sucks.
HOW TO REMOVE THIS APP?
ET said:
HOW TO REMOVE THIS APP?
Click to expand...
Click to collapse
Before uninstalling go to install folder (defaul is \Program Files\Hd2ProxmityScreenOff) and run exe file inside Hd2ProxmityScreenOff.exe
You will see message about that programe closed. Tap Ok and then uninstall.
All be fine.
about freezing when uninstalling without stopping in memory process i'm know.
exidler said:
Before uninstalling go to install folder (defaul is \Program Files\Hd2ProxmityScreenOff) and run exe file inside Hd2ProxmityScreenOff.exe
You will see message about that programe closed. Tap Ok and then uninstall.
All be fine.
about freezing when uninstalling without stopping in memory process i'm know.
Click to expand...
Click to collapse
OK thanks, it's de-installed correctly. Maybe will use it in the future when it has matured a bit.
The programm should look on proximity-sensor, when i turn on my phone with the power-button.
--> if proximity detectet, screen should be staying off
--> if no proximity, phone should be wake up
Is this possible with your app? This would be a very great feature off our hd2! Perfect locking solution!
Bib_x said:
The programm should look on proximity-sensor, when i turn on my phone with the power-button.
--> if proximity detectet, screen should be staying off
--> if no proximity, phone should be wake up
Is this possible with your app? This would be a very great feature off our hd2! Perfect locking solution!
Click to expand...
Click to collapse
it's not possible until full hack of promitiy sensor.
i'm not have a fule of knowlendge fo arm assembler interpereting.
it' not difficlt for poples, how have knowledge of arm programs research.
but for me, i'm only can handle simple events
We are waiting for full promitiy API
so all of yours requests is impossimle.
Its a good start. Keep the project on.
perhaps a little bit easier to develop and to get various possibilities:
could you add 2 parameters to your app:
-activate
-deactivate
or so.
then it could be called also from other apps depend on its needs and states.
And also one scenario: It should only work if screen is locked(using notification).Then it's sure,that it should switch off because sensor detection
Keep up your great work.A really good idea,which can be very useful, if adaptable and a little configurable.
Thanx
Micha

[APP][2.2+] Gravity Screen > Turn Screen On/Off Automatically - Keep Screen On

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I was tired of pressing the power button whenever I need my phone for a second. Thus I created the Gravity Screen Off app which can turn automatically the screen ON when I grab my phone and turn it OFF when I put it into my pocket or onto a table. Basically, no need to touch any button and you are ready to go.
HOW IT WORKS:
The app turns the screen off by monitoring the orientation of the device through the gravity sensor. When your phone is pointing downward by its top, below a certain angle, it's likely to be out of use. In this situation the proximity sensor is activated to determine if it is covered. If yes, the screen turns off because probably you placed the phone into your pocket or onto a table.
The screen turns on when you lift up your phone. The phone wakes up if the proximity sensor is uncovered or if it was not covered the app is looking for movements to detect the action.
The Keep Screen On feature based on screen orientation and motion detection as well. If the device is pointing upward and small movements are detected it's probably held in hand and the screen timeout is extended.
MAIN FEATURES:
- Pocket Sensor: Recognizes if your phone is in your pocket. By turning your phone below the angle you set, it'll prepare to turn the screen off.
- Table Sensor: Detects your phone is lying on a table and turns the screen off.
- Turn Screen On by Motion: If the screen is off and it's facing up the device can be woken up by any movements (ex. lift up by hand) according to the sensitivity set.
- Keep Screen On by Motion: It's a Screebl like feature but it's relying on the small movements you are doing by your hand while holding the phone. If small motions are detected while the screen is facing up the feature keeps the screen on because it can be suspected that the phone is held and probably you are reading something. If the phone is steady the timeout will work as normal in any position you leave your device unlike in another apps.
- Turn Screen On by Proximity: Turns the screen On when you take your phone out from your pocket and Off when you put it back. By swiping your finger over the proximity sensor the phone can be woken up as well.
- Turn Screen Off by Proximity: If the device is pointing downward it takes the proximity sensor into account. By turning this off the program will rely only on the gravity sensor.
- Tasker, Llama, Locale supported by plug-in.
- 3 widgets/shortcuts: (available in Unlocked version)
(i) pause/resume
(ii) turn screen off: It's like pressing the power button
(iii) turn screen off persistently: turn screen off and keep it off until power button is pressed. It's good when you have to keep the phone in your hand or while driving and do not want the screen turned on by the app. After pressing the power button it will work as before.
- Power Toggles plug-ins
BATTERY USAGE:
You can set the app to minimize the energy consumed by the screen and by this you can extend your battery life. Or you can extend your own life by using another features of the app In the first case the battery usage should be not significant. I experienced about 7 per cent extra consumption on the test device. However it can be higher if you are activating often the Turn Screen On by Motion feature by leaving your device face up on table and you set a relatively long timeout for the feature. Read FAQ [4] for more details.
IMPORTANT
On some devices if it's lying face down the alarm clock is switched off by the app after it had gone off! Please check if it's the case for you. If, yes, use a third party app, for example: https://play.google.com/store/apps/details?id=com.vp.alarmClockPlusDock
DOWNLOAD
Gravity Screen
NOTE
Probably not all feature will work for everyone. It was tested so far mainly on Samsung devices with stock rom. If you think it does not work for you, please read the FAQs below or report your issue in this thread.
REPORT YOUR ISSUE
If you have an issue, do NOT post it until you read the FAQ below and try to solve it alone by trying different settings for some hours. If still no solution, please write all your settings in your question otherwise your question will be ignored. If you feel you have a battery drain, do not post it in this thread. We are not speaking about it anymore
VERSIONS: FREE vs. UNLOCKED by IN-APP PURCHASE
In the Unlocked version, there is no 15 minutes limit for turning the screen on by motion and the Table sensor can be set more precisely, plus it has an Exclude App list, a more advanced Delayed lock option and Widgets.
CREDIT
Thanks to @remidesroques and everyone who helped and keep helping the development by testing the beta versions, sending feed backs or any another way supporting this app.
Translations:
Spanish: Johandri Silva and Eduardo Iñiguez
Russian: Gljadkov Oleg
French: @gregland
Italian: @DesmoDavid
Czech: Jaroslav Vrána
Portuguese (Brazilian): Irwing Junqueira Braga
Change log:
- - v2.4.1 - -
Added: Android M support
Fix: Power button support issue when screen turned off during lock screen
Fix: small issues
- - v1.80.1 - -
Added:
- 3 widgets: (available in Unlocked version)
(i) pause/resume
(ii) turn screen off: It's like pressing the power button
(iii) turn screen off persistently: turn screen off and keep it off until power button is pressed. It's good when you have to keep the phone in your hand or while driving and do not want the screen turned on by the app. After pressing the power button it will work as before.
- Power Toggles plug-ins
- Translation: Traditional Chinese, Turkish
- - - v1.78.2 - -
Fix:
- works on LG P880
Added:
- Languages: Arabic, Chinese, Dutch, Hungarian. Thank you for the translations.
- Car dock detection
APKs:
Gravity Screen - FAQ
Hi,
thanks for your feedback.
[1] Q: The screen not always turns off when I put my phone into my pocket, why?
A: The proximity sensor not always accurate. It can fail recognizing some materials specially if they are very close to it. If it happen occasionally, probably it's still worth to use the sensor. But even you can eliminate the accidental turning on by selecting the False Turn On Protection in Pocket option.
[2] Q: The Table Sensor not really works for me when I place my phone onto a table face down, why?
A: This issue is quite common. The first problem is that the free version is limited to 15 degree. If you are turning your phone fast downward the proximity sensor is activated only when it's very close to the table. Many proximity sensors cannot judge distance accurate if the object is too close to it. This is the reason the screen remains on often. And even more the reliability of the sensor depends partly on the material as well. Thus if you are using the free version it's recommended to place your phone onto a table not too fast and try to keep it parallel to it. The paid version allows you to increase the angle and by this the problem is significantly reduced. Moreover, the problem can be reduced by selecting the False Turn On Protection in Pocket option.
[3] Q: Why does the Lying Face Up feature turn the screen off regardless I'm tapping the screen?
A: Due to Android security restrictions a running service cannot detect if the screen was tapped. If you want to continue using the device you have to swipe over the proximity sensor to keep it on or turn it back on.
[4] Q: I'm experiencing high battery usage, why?
A: The app should use about 6 percent extra energy per day if you are not using too much the Turn Screen On by Motion feature. If you frequently lay your phone face up on a table and the Turn Screen On by Motion Timeout is too long, the battery consumption can be much higher. Because the CPU has to be constantly analyzing the data of to acceleration sensor to catch the movement when you lift up the device. Thus if you want to reduce the battery usage it's recommended to keep your phone often lying face down when it's on a table. Because in this situation the proximity sensor is responsible for turning the screen back on which uses much less energy. Moreover, please, keep in mind that the android en-built battery consumption measurement can show much higher results, because it shows the battery usage relatively to another apps. If the phone was not in use or the measurement period was short, it looks like my app uses too much energy however there was not too much energy used all together.
[5] Q: The Keep Screen On by Motion feature does not work for me, why?
A: It can be the result of battery saving processes on your device. Ask for support from the app in this case.
[6] Q: Turn Screen On by Motion feature does not work for me, why?
A: It can be the timeout of the feature is expired, in this case you have to increase it within the app. Or it can be caused by battery saving methods by killing the service of the app. In this case you have to turn off battery saving methods of your device. Please visit: https://dontkillmyapp.com/
[7] Q: The screen turns off in landscape mode, why?
A: This issue has many different solutions. You can make the Pocket Sensor Angle smaller or if you have the Any Direction feature ticket, you can pause the GS app temporally. There are ways to pause it: 1. tick the Landscape mode feature; 2. using the Locale plug-in by Tasker or Llama; 3. using the Menu - Exclude apps option.
[8] Q: It gives me a huuuge wakelok, why?
A: The wakelock is necessary for the "Turn Screen On by Motion" feature but if you turn the screen off through the proximity sensor (i.e. put it into your pocket or place face down onto a table) there won't be wakelock held. So if you want to reduce the wakelock try to keep your phone face down. Moreover, you can limit it by the Timeout scrollbar as well but this means you will loose the feature after the timeout you set.
[9] Q: I'm prompted to type my pass code immediately after screen turns on.
A: You have to enable the Fingerprint, Smart Lock Support option in the app.
[10] Q: It makes a buzzing sound when listening to music and stuff. Can you turn it off?
A: Due to a hardware problem the proximity sensor is causing the buzzing noise on Nexus 4 when it's active.
At the moment I can recommend some changes in the settings. If you turn on the Headset support and connect your headphone, you are able to turn off the "Turn Screen Off by Proximity" and "Turn Screen On by Proximity" features independently from the state when headphone is not connected. The app will remember this and always turn off the proximity sensor when headphone is connected.
[12] Q: Will you add an option to scheduled the app to stop it for night hours?
A: Not really. Please, use the Locale plug-in in Tasker or Llama;
[13] Q: Why my alarm clock does not work?
A: Unfortunately many alarm clocks cancel the alarm when the screen turns off. It can happen if you leave your phone face down at night and my app turns the screen back off when the alarm goes off. The app is trying to detect the alarm event and pause itself, but it's not possible with all alarm clock apps. Thus it's strongly recommended to test your alarm clock with this app.
You can solve this problem by using a well written alarm clock, for example: https://play.google.com/store/apps/details?id=com.amdroidalarmclock.amdroid, https://play.google.com/store/apps/details?id=com.vp.alarmClockPlusDock,
https://play.google.com/store/apps/details?id=ch.bitspin.timely, https://play.google.com/store/apps/details?id=com.amdroidalarmclock.amdroid, https://play.google.com/store/apps/details?id=com.alarmclock.xtreme.free.
[14] Q: The screen turns on during driving. How to avoid it?
A: The simplest method is to pause the app before driving. There are different widgets in the app for this. Or if you are driving often you can use the Power button support feature A more advanced method can be to pause the app when the phone is connected to the car by bluetooth and resumed when disconnected. You can do this by Llama via the Locale plug-in.
[15] Q: The notification not responding/disappearing when I try to pause/resume the app from the notification area, why?
A: Please try to un-tick the NOTIFICATION -> LOW PRIORITY option in the app. It should solve the problem.
[16] Q: What are the shortcuts/ widgets for:
A:
(i) pause/resume
(ii) off: It's like pressing the power button
(iii) persistent off: turn screen off and keep it off until power button is pressed again. It's good when the phone is moving but you do not want it to turn on.
(iv) lock: turns off the screen and locks it. Useful if delayed lock is in use but you want to lock the device manually.
[17] Q: Where is the Pro version? I cannot find it on Play Store.
A: The Pro version is discontinued unfortunately, due to security reasons.
To change to the Unlocked version, please, do the following:
- send me the purchase number of the Pro and I'll send you a promotional code which you can use to unlock the free version
[18] Q: In-App Purchase fails. Why?
A: It's a Play Store app issue probably which happening on some devices.
Please make sure you are connected and restart the device. Other method can be to uninstall the Play Store updates and try with an older version of the Play Store app. It often helps.
[19] Q: I bought the app by IAP but it's still locked. Why?
A: It's a Play Store app issue probably which happening on some devices when not connected to the internet.
Please make sure you are connected and restart the device. Moreover, do you have more than one Google account registered on your device? That can cause the issue too, that you bought the app under a different account. Other method can be to uninstall the Play Store updates and try with an older version of the Play Store app. It often helps.
[20] Q: After some time the phone does not wake up. Why?
A: I'd check any kind of battery saving methods your device may use currently. Probably that disables the sensor after some time.
Moreover, make sure that the Turn screen on by motion timeout is set properly. Please visit: https://dontkillmyapp.com/
[20] Q: I cannot uninstall it. Why?
A: You have to press the uninstall button in the app, not in Play Store or in Android settings. If still no luck reboot your device and try again .
[21] Q: The POWER BUTTON SUPPORT option does not work for me. Why?
A: You have to change the screen timeout from AUTO to another value in Android settings and do a reboot.
[22] Q: The fingerprint sensor does not work, instead I have to type my pin every time. Why?
A: This is an Android thing, for developers the Smart lock features are not supported. That's why we have to use workarounds.
Using the FINGERPRINT UNLOCK, SMART LOCK SUPPORT option should solve the issue but you may have to wait about 5-10 seconds for the complete turning off with the Timeout method.
The Accessibility method is recommended to choose above Android 8.
Root your device to make this workaround perfect. In this case the turning off will be instantaneous.
[23] Q: Why does the screen only turns black but not turning completely off?
A: It's because you have selected the Timeout method of the SMART LOCK SUPPORT option and your device is not rooted. This is an Android thing, for developers the Smart lock features are not supported. That's why we have to use workarounds. Using the SMART LOCK SUPPORT option you have to wait about 5-10 seconds for the complete turning off.
Root your device to make this workaround perfect. In this case the turning off will be instantaneous.
[24] Q: The app is paused when I got a notification from an app which is on the Exclude Apps list. Why?
A: To avoid this issue, you have to grant the app an extra permission in Settings - Notifications - Notification Access
[25] Q: Why the screen timeout is changed by the app?
A: The Keep Screen On by Motion feature extends the timeout always an extra amount of time to keep the screen on when motion is detected. The timeout resets when the screen is turned off.
This method is used only for Xiaomi and Samsung devices above Android Pie.
[26] Q: The app stops working on MIUI (xiaomi redmi) after some minutes. Why?
A: To solve the issue please visit: https://dontkillmyapp.com/
[27] Q: The Turn Screen On features does not work on Samsung S8 or S8+. Why?
A: Luckily there is a very easy and quick fix! You just have to go to the edge light settings on your phone and there you can select which apps are affected by the edge light. So if you turn it off Gravity Screen in this list the notification of the app will get handled by android again, not Samsung's system. So this means that it will turn on the screen again!
Here is a video made to show the bug and how to fix it: https://youtu.be/WSSKvMrx7X0 (Thanks for finding the solution: Kitt3120)
[28] Q: The app stops working on Nokia Oreo. Why?
A: Because of a bug in the power saving method of Nokia devices, background processes are closed even if they are protected.
To overcome this issue you have to do the followings:
In Settings/Apps => Show system apps - deactivate these two packages:
- com.evenwell.powersaving.g3
- com.evenwell.powersaving.g3.overlay.base.s600ww
Please visit: https://dontkillmyapp.com/
[29] Q: The app stops working on Huawei EMUI 8. Why?
A: Because of a bug in the power saving method of Huawei devices, background processes are closed even if they are protected.
To make the app work on EMUI 8 you have to do the following:
Settings --> Battery --> Launch. Find GS there, click on it, open every option (which also includes "Run in background") and let it say "Manage manually".
Please visit: https://dontkillmyapp.com/
[30] Q: The app stops working on Android 9. Why?
A: Because of a bug in the power saving method, background processes are closed even if they are chosen to be not optimized.
To solve this issue you have to grant Gravity Screen access to notifications in: Menu - Permission Control
Please visit: https://dontkillmyapp.com/
TROUBLESHOOT
- make sure the app is installed on internal memory card; external sd cards can cause many kind of problems
- if it looks like the app stopped working correctly do an uninstall, re-install and a reboot
Interesting! Downloading and testing...
Great app, testing it now. For the proximity function, shouldn't the drain be higher because when the phone is in the pocket the proximity sensor is always on?
mliou said:
Great app, testing it now. For the proximity function, shouldn't the drain be higher because when the phone is in the pocket the proximity sensor is always on?
Click to expand...
Click to collapse
Yes, that's right. When it's turned off by proximity, there is no significant drain.
Great app :good: this is exactly what i was looking for :victory:
what benefits offers me the pro version??
Acousticbeatz said:
Great app :good: this is exactly what i was looking for :victory:
what benefits offers me the pro version??
Click to expand...
Click to collapse
You can live with the free version quite well. But by buying the paid version your life will be easier little bit:
- you can drop your phone face down onto your undone bed and your screen will turn off
- when you wake up and hardly find your phone the screen will turn on automatically at the moment you grab it and no need to find any button
Probably there are more advantages, but I could recall only these at the moment
Some feedback
1- Pocket sensor
*** gravity - can turn off but can't turn on.
*** proximity - can't even turn off
2- Table Sensor
*** gravity - can turn off but can't turn on
*** proximity - working (both face down/up and off/on)
3- Turn Screen On by Motion
*** not working for both gravity and proximity (unless swiping finger over the proximity sensor)
4- Keep Screen On by Motion
*** not working at all (even after change the sensitivity)
Request
Keep Screen On by Angle - Sometimes, i didn't hold my phone. Just put on the table in standing position. So, 0-10 degree will off the screen while higher than that will keep the screen on. No need to keep shaking
I'm on Motorola Defy CM7.2 btw. Keep your good work :good:
plexnor said:
You can live with the free version quite well. But by buying the paid version your life will be easier little bit:
- you can drop your phone face down onto your undone bed and your screen will turn off
- when you wake up and hardly find your phone the screen will turn on automatically at the moment you grab it and no need to find any button
Probably there are more advantages, but I could recall only these at the moment
Click to expand...
Click to collapse
sounds good... and already purchased
plexnor said:
Yes, that's right. When it's turned off by proximity, there is no significant drain.
Click to expand...
Click to collapse
Do you mean check the box for "Turn Screen OFF by Proximity" or uncheck the box?
its a really nice app, thank you.
one question:
if i put my galaxy nexus in the pocket, it turns off and then it turns on immediatly.
sometimes it won´t even turn off. if i rotate it in my hand and cover the brightness
sensor it will definitely turn off.
if the galaxy nexus rotates in my pocket (sometimes it is on the side) then it turns
on.
is this a bug or do i have to wrong settings.
thank you
antukubo said:
Some feedback
1- Pocket sensor
*** gravity - can turn off but can't turn on.
*** proximity - can't even turn off
2- Table Sensor
*** gravity - can turn off but can't turn on
*** proximity - working (both face down/up and off/on)
3- Turn Screen On by Motion
*** not working for both gravity and proximity (unless swiping finger over the proximity sensor)
4- Keep Screen On by Motion
*** not working at all (even after change the sensitivity)
Request
Keep Screen On by Angle - Sometimes, i didn't hold my phone. Just put on the table in standing position. So, 0-10 degree will off the screen while higher than that will keep the screen on. No need to keep shaking
I'm on Motorola Defy CM7.2 btw. Keep your good work :good:
Click to expand...
Click to collapse
For keeping screen on, try the booster option. That's the only option.
Request: Turn off some settings when it's charging as my phone is flat on a surface and it is quiet annoying when I turn phone on it has a very short display timeout (due to tablet sensor)
antukubo said:
4- Keep Screen On by Motion
*** not working at all (even after change the sensitivity)
Click to expand...
Click to collapse
mliou said:
For keeping screen on, try the booster option. That's the only option.
Click to expand...
Click to collapse
Thanks. That trick works! I wonder why i didn't try that before
antukubo said:
3- Turn Screen On by Motion
*** not working for both gravity and proximity (unless swiping finger over the proximity sensor)
Click to expand...
Click to collapse
After playing a bit more, found that it is partially working on proximity. When facing down, it works. But while facing up, it is not working. Unless i face it down again, then the screen will turn on by motion.
Now, monitoring the battery usage. Hopefully it will not drink too many juice...
Can upload apk please? Stupid play store won't allow me to install, says incompatible.
Acousticbeatz said:
sounds good... and already purchased
Click to expand...
Click to collapse
It's great, thanks
mliou said:
Do you mean check the box for "Turn Screen OFF by Proximity" or uncheck the box?
Click to expand...
Click to collapse
Yes, I mean keep the "Turn Screen OFF by Proximity" check box checked and after switch off the phone by the proximity sensor. You can do this by placing your phone face down or put it into your pocket when you want to turn the screen off. In this situations the proximity sensor will be activated and the screen will be turned off by it.
an0nym0us_ said:
Can upload apk please? Stupid play store won't allow me to install, says incompatible.
Click to expand...
Click to collapse
Hm, interesting why it doesn't allow you to install it ... I attached the file.
myhrdak said:
its a really nice app, thank you.
one question:
if i put my galaxy nexus in the pocket, it turns off and then it turns on immediatly.
sometimes it won´t even turn off. if i rotate it in my hand and cover the brightness
sensor it will definitely turn off.
if the galaxy nexus rotates in my pocket (sometimes it is on the side) then it turns
on.
is this a bug or do i have to wrong settings.
thank you
Click to expand...
Click to collapse
This is an issue with the proximity sensor. Unfortunately it looks like the sensor on your phone cannot recognize well the material of your trouser. If it happens quite often; the solution is to uncheck the "Turn screen ON by proximity" feature. In this situation when you place your phone into your pocket the screen will turn off and the proximity sensor will be inactive after. You can wake up your device by motion only after this. Downside: it costs more energy.
If the phone is often on its side in your pocket try to increase the pocket sensor angle. If it's still turning on, the only way is too keep your phone not to turn on its side or switch off the "turn screen on by motion" feature and in that case the phone will only turn off automatically which is still not too bad.
This app is so good!! I will report my experience

Simple, Fast Lock/Unlock

Simple,Fast,Feature Rich app
which uses various Sensors
for Locking & Unlocking
device
How it Works :
The most innovating app for Locking & Unlocking
your Device.
It uses various sensors of your device like
Proximity, Light, Accelerometer, Magnetic
Sensors depending upon
which Sensor you choose.
Using, these sensors the app determines
whether to lock or unlock the device using some
special algorithms
Features :
1. High Accuracy :
The app has high precision of determining
whether to lock / unlock device preventing
accidental lock
2. Ability to use any sensor :
User can select any sensor available in app for
locking & unlocking device
3. FUSION of sensors :
Combination of sensors for better accuracy
already available
4. Sensor Sensitivity :
Select how much sensitive sensor do you want,
high sensitivity causes high battery drain
5. Sensor Function :
Your the master select what should sensor do,
currently only 3 options are available
1. Lock
2. Unlock
3. Lock & Unlock
Choose what you like & have fun
6. Disable Lockscreen :
Lock Screen can removed for easier unlocking
(Till App is ON)
7. Auto Unlock :
Similar to Disable Lockscreen but this doesn't
remove lockscreen
8. To Keep Screen ON :
If your reading something & wanna keep the
screen ON till the phone is turned over or Cover
is closed then use this
9. Battery Mode :
10. Simple ON/OFF widget
11. Android 2.3 to 4.2 support
12. Tablet support & Tablet Layout support too
13. Ester Egg (Suprise) !!!
Advance / Key Features :
1. Ignore App List : Select the app for which my
app should stop for preventing accidental lock
while playing game & app doesn't disturb during
that game
2. Night Mode : Select the time & app stops
during that time interval basically during Night
3. Calibration : Sensors can be calibrate /
tweaked means you can change the value for
lock & unlock for your convience
4. Custom ROM support : Cover Algorithm
provides an option to apply special custom ROM
tweaks during first start up
Uses :
1. Basic Lock / Unlock of device
2. Saves the hardware keys from damage
3. Saves battery by instantly locking device
instant of pressing any key
4. No need to find the unlock/lock hardware key
again
5. Easy locking & unlocking the device
6. Faster access to device
7. You tell how it benefited you
Download link :-
Mod edit
This was someone else's app that I stole

[GUIDE] How to have screen auto on/off with any "flip" case

Hey there folks!
Since MiA1 does not have double tap to wake, or you just want funcionality of waking screen and be ready to go with ANY flip case you
might have bought (and screen off when you close it) here is a simple guide to achive so, i have been testing it for 5 days and so far it works flawlessly.
So far im getting only 1% of battery usage overall, meaning the app itself is NOT keeping CPU awake, only the proximity sensor to determine if the case
is closed or not. Really battery friendly overall. Dont know the bad reviews on PlayStore - people moan about anything these days and app does not
work well with any device, but with A1, its a bingo.
1. remove your lockscreen security (set to none) - this is up to you! If you have your phone with you at all times, it
removes the need to do extra steps (draw pattern, PIN, etc...). If you prefer to open case and be taken to locksceen, skip this step!
2. install "EveryCover" DOWNLOAD - !app is add supported! - also, there is paid version which i have so i support the dev, but free one works just as well!
- enter ap and activate the service (works by using Device Admin)
- tick "Auto start at Boot" - so service keeps running after restart
- tick "Service in notification bar" - it will prevent app to be killed by system - more on that later!
- you can even set the time period in which app is inactive (ex. - when you sleep at night)
3. Test the funcinality. Just open and close your case, like you normally would (not 2 times in 1 secs, right ). In my testing of daily usage it almost never "misses".
The screen on is almost instant when you flip the case and screen is set to off after 1 sec of closing case. I tested many many times to see if the screen really switches off, and it
works great. I will also mention that it seems to work even in almost pitch dark (!) and no problems on indoors on evenings etc... It seems that the app is really good at listening to
sensor, or we have a really good proximity sensor on A1!
OPTIONAL STEPS:
Now if you are perfectionist or just like me, 2 things may bother you with this setup, and i will also explain steps how to deal with them.
4. persistant notifications - if you enabled "Service in notification bar" there will be constant notification which may bother you. To deal with this, just long press
on the notification and switch the toggle to the right. (or you can go to app settings and do the same, turn off notifications)
5. "EveryCover running in the background" notification - the last problem you may encounter, altho only the visual one, can be pain to watch. To disable this notification just download this app:
HERE!
Just enter app, grant permission, select "Press to select apps" and choose EveryCover.
You are done! This way, you have:
- working screen on/off solution for ANY flip case
- clean status bar without unnecessary notifications
- persistant service that will NOT be killed by system or after restart
- all that with only 1% of battery usage and no impact on performance what so ever.
Dislclaimer; I am not a dev of any apps mentioned here.
Cheers, hopefully this helps someone!
Magnetic wake / sleep works if you can find a case with magnet placed at correct place built in case.
Phone wakes and sleeps when opened or shut automatically with this feature. Don't be confused with smart cases as not the same thing. I'm late with this reply but works with many phone Inc all my xiaomi phones

Solved...How to disable display on poco f1 like on PCs

I don't want to use power button, double tap or simulate that. I just want to disable display for some time and then turn it back on. Is this possible? Thanks.
Edit: this app does it flawlessly with root. https://forum.xda-developers.com/android/apps-games/app-screen-backlight-off-xda-exclusive-t3037380
Objectives
1. Apps should be running in foreground thinking I'm using phone.
2. Only display module should be affected.
3. Android itself should think that the display is turned on and should play YouTube videos (though i dont want youtube.. Its just an example plz don't comment YouTube vanced)..
Possible solutions:
1. Rename display driver files (idk location).
2. Make brightness 0 (idk how to do this.. Idk default value too)
Ps: even if there is adb command plz tell me that.. Along with command to turn display on again lol
Double tap to sleep and double tap to wake
??? I don't want my android to sleep. I want to just disable the display not put phone on sleep like double tap, power button etc..
Use the game mode...it has a screen off feature...just manually add the app as a game you want to use this feature on. Even sound works...just screen turns of...helps with YouTube for free background play ?
I'm not on stock MiUi rom bro I'm using syberia os.. Thanks for idea btw..
Break the screen
If you're on custom rom, then find one with smart pixel and disable around 80-90% of the pixels
Thanks but smart pixels is useless for non amoled phones..
Do u want to take picture of someone secretely??
If so then there is already an app for that which disables the screen and then u just tap anywhr on the screen whn the display is off and snap any photo/vid.
Lol no nothing like that.. I just want to disable my display panel to watch hotstar app for long times.. I don't need video only audio... So I wanna disable display panel to save battery.
My god the OP has a lot of issues for an absurd problem
Found solution. https://forum.xda-developers.com/android/apps-games/app-screen-backlight-off-xda-exclusive-t3037380
add to game turbo you can turn off display and running game/on background with display turn off..

Categories

Resources