Sunday, September 8, 2019

[PROJECT] Proximity Sensor Workaround for Redmi Note 7 v1.0

DESCRIPTION
If you're the owner of the Xiaomi Redmi Note 7, you may (or may not) have noticed that the proximity sensor stops responding randomly. So, the only solution was to disable it for calls temporarily, and after rebooting the device, turn on it again.

Other ways to make it work again, was:
· Enabling auto-brightness, or (*) pocket detection.

Well, I have applied the same trick as described above, but fully automated. (*)

This project includes an Initial Setup task that needs to be executed when it is imported from TaskerNet
(It can be deleted after imported)

Notes:
- As the project writes to the Global settings table, you will need root to allow it to work. Or at least try using the Tasker Settings helper app if you are not rooted. (Using Tasker app)
- Do not forget to grant the 'WRITE_SECURE_SETTINGS' permission to Tasker, or enable Write System Settings to the package name of the generated app that I provide to you if you decide to use it by this way (root needed anyway).
- I will keep supporting it, if necessary (bugs) until Xiaomi decides to fix it on their official ROMs. (also present in other official based ROMs too)
- The icon from the generated app was taken from icons8 (free licence), and edited.

CREDITS
@SmartPhoneLover

DOWNLOAD
Project (XML)
Project (TaskerNet)
Kid App (APK)
Resources (ZIP) (icons for app)

DOWNLOAD (Ads Supported)
Project (XML)
Project (TaskerNet)
Kid App (APK)
Resources (ZIP) (icons for app)

Related Articles:

  • [PROJECT] TTS Engine Vocalizer v1.0DESCRIPTION Here I bring you a project that will help you when it comes to knowing the pronunciation of a specific term, or simply when you want to hear a written text. Or why not? It can be used in case of not knowing how to… Read More
  • [PROJECT] Camping Flashlight v1.0DESCRIPTION If you usually go camping a lot and use your cell phone to light the road at night, this project will be very useful. But it could be used for other purposes as well :) Notes: - If you are on Android 9 (or above)… Read More
  • [PROJECT] Say Time To Avoid Arriving Late v1.0DESCRIPTION This project will repeatedly remember you the current time, every 10 minutes by default. Useful when you don't want to check the phone, or take it out of pocket. Possible usage: - As an example, I like hearing mu… Read More
  • [PROJECT] Device Floating Volume v1.1DESCRIPTION It shows a floating bubble, in this case of identical appearance to that of my device, with useful information about the audio channel currently in use (changes on its status). It workds on the following audio ch… Read More
  • [PROJECT] Device Floating Volume v1.0DESCRIPTION It shows a floating bubble, in this case of identical appearance to that of my device, with useful information about the audio channel currently in use (changes in its status). It workds on the following audio ch… Read More

4 comments:

  1. The Redmi Note 5 has the same problem and more than a year later, Xiaomi still does not offer a solution, I really do not think they solve it in Note 7.
    Thank you for your input.

    ReplyDelete
    Replies
    1. Glad to help ;)
      Please, report me back if it does not work as it should.

      Delete
  2. Can you elaborate on what the kid app does? Can be used standalone if you don't use Tasker?

    ReplyDelete
    Replies
    1. The APK, version 1.0, does not show any UI to the user. It just performs same actions as the project does (the one that have to be imported into Tasker).

      What are the actions that are performed in the background?
      Once the APK has been launched for the first time, and granted root and write system settings permissions, it will edit the 'enable_screen_on_proximity_sensor' Global settings value. Changing it from 0 to 1, and 1 to 0, depending on if the device is rebooted, or finished booting, respectively.

      And, answering to your last question, yes. If you don't use Tasker, the APK (kid app) can be used as a stand-alone app, that will do the same as the project that is imported into "Tasker".

      Note: I'm working on the next version to try to add some UI so the user can interact with it, to enable or disable manually, or something else.

      Delete