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)

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