The latest Android has an Invert Colours option in quick settings.

Is there any way to turn this on automatically when a specific app is opened? Is there any other way to achieve inversion of colours inside a specific app?

  • 1
    Are you rooted? Some apps can put a toggle in the notification shade so you could toggle it quickly, but it requires root. – Andy Yan Nov 18 '17 at 13:07
  • @AndyYan Not rooted. Any workaround possible in that case? – Safwan Nov 18 '17 at 13:12
  • 1
    None that I know of. Tasker might be able to do it somehow, but some actions of it also requires root, and I never used it so I don't know if doing it is one of the actions. – Andy Yan Nov 18 '17 at 13:26

For me Tasker did the job, but you need an additional Tasker plug in for this, called AutoTools. On my bq android device root wasn't needed to do the job. I set up a profile to invert the screen when I open specific apps like my newspaper reader.

  • What did you use to invert the screen? – endolith Feb 20 at 7:29

Since the answer is a little light on details for novice Tasker users (like me).

Here is how to do it step by step:

  • Download and install Tasker

  • Free trial version here

  • Import the example for Tasker from here

  • The example works for Gmail app and manipulates the accessibility_display_inversion_enabled property to toggle the color inversion. Making Gmail Dark but others app normal.

  • Enable the profile

  • Now, every time you click on gmail, if it doesn't work it's because it needs more permissions (check notifications)

  • Add the "usage access" permissions and "write settings" permissions

  • You also have to enable write settings perms via adb with adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS

  • Click Gmail and color inverts

  • Leave Gmail and color inverts back


I use Automate, see this link. It is like Tasker and need the same permissions and preparatory actions via ADB but ligter than Tasker. And free for such small algorithms (less than 30 blocks).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.