Prevents accidental clicks while phone is in pocket
advertisement
Name | Pocket Mode |
---|---|
Version | 1.11.0.0 |
Update | Sep 01, 2022 |
Size | 3 MB |
Category | Tools |
Installs | 50K+ |
Developer | Artem Chepurnyi |
Android OS | Android 9.0+ |
Google Play ID | com.artemchep.pocketmode |
Pocket Mode · Description
Pocket Mode can detect when the phone is in a pocket or other enclosed space and turn off the display to prevent accidental clicks. This can help to prevent unintentional phone calls, text messages, or app launches, which can be frustrating and inconvenient.
I have developed this app because stock Android lacks this feature and my phone always changes something or disables important things while laying inside a pocket. Seriously, this had to be stopped.
The app is completely free and open source, the donations are welcomed but do not provide any benefit for the user.
https://github.com/AChep/PocketMode
Pocket mode monitors the proximity sensor for a fraction of a second after turning the screen on. If in this time window the proximity sensor has been covered for a defined period the app turns the screen back off.
- Accessibility service -- Pocket Mode uses accessibility service to send the command that locks the screen. Without it locking the screen would require a PIN code on each unlock, ruining the user experience.
- android.permission.RECEIVE_BOOT_COMPLETED -- needed to restart the service after a reboot.
- android.permission.READ_PHONE_STATE -- needed to pause screen locking while call is ongoing.
I have developed this app because stock Android lacks this feature and my phone always changes something or disables important things while laying inside a pocket. Seriously, this had to be stopped.
The app is completely free and open source, the donations are welcomed but do not provide any benefit for the user.
https://github.com/AChep/PocketMode
How does it work:
Pocket mode monitors the proximity sensor for a fraction of a second after turning the screen on. If in this time window the proximity sensor has been covered for a defined period the app turns the screen back off.
Used permissions explained:
- Accessibility service -- Pocket Mode uses accessibility service to send the command that locks the screen. Without it locking the screen would require a PIN code on each unlock, ruining the user experience.
- android.permission.RECEIVE_BOOT_COMPLETED -- needed to restart the service after a reboot.
- android.permission.READ_PHONE_STATE -- needed to pause screen locking while call is ongoing.