Sunday, June 21, 2020

[PROFILE] Per-App DPI Changer v1.0

DESCRIPTION
Change the screen content density (DPI) dynamically, based on the app used.

These are the available versions:
Version (A): Uses a non-root solution (system private interface for WindowManager class: IWindowManager), but requires the 'WRITE_SECURE_SETTINGS' permission to be granted to Tasker.
Version (B): This (wm density) needs root (you can try ADB WiFi), at least, but doesn't need the 'WRITE_SECURE_SETTINGS' permission.

Configuring very low or very high values can cause some apps to fail to start, simply by not being prepared for such densities. Even the system itself (SystemUI app) can be compromised.

For those who want to experiment with low densities (high values), setting them permanently will reduce the work for the CPU/GPU, resulting in increased overall performance and improved battery life.

Notes:
- Thanks to @JustRollWithIt (Reddit) for the base JF task. (reference)
- Go here to know how to grant the 'android.permission.WRITE_SECURE_SETTINGS' permission to Tasker.
- Two types of the same profile for each of the versions are available: App (to be used with all apps, except Tasker), Tasker (to be used only with Tasker). If you want each app to set a different DPI, just create a single profile for every app. Otherwise, include all apps within the main profile.
- Both 'App' and 'Tasker' profiles are bundled in a single prj file for easy importing, so import it as it is.
- Use 'Yellow' labeled actions to customize how the profiles work.
- To get the current DPI value use the 'Get Current DPI' task.
- If what you want is to change the screen resolution, go here.

SCREENSHOTS

CREDITS
@SmartPhoneLover
@JustRollWithIt

DOWNLOAD
Version (A)
Project (XML)
Project (TaskerNet)
Version (B)
Project (XML)
Project (TaskerNet)

DOWNLOAD (Ads Supported)
Version (A)
Project (XML)
Project (TaskerNet)
Version (B)
Project (XML)
Project (TaskerNet)

Related Articles:

  • [PROFILE] Start Playing Music On BT Connected v1.0DESCRIPTION This profile will allow you to automate music playback when the desired BT device is connected. Notes: - I used the Poweramp music player, but you can use your own if you like. To find its itents, go here. - To s… Read More
  • [PROFILE] Root Checker v1.0DESCRIPTION Some people, unfortunately I'm one of them, are having troubles with the Magisk root core being disabled randomly and suddenly on the Redmi Note 7. And who knows? It's maybe happening across other different device… Read More
  • [PROFILE] Apps Keep Screen On v1.0DESCRIPTION It will allow the app(s) to be fully usable without the interruption of the Android's screen timeout. How to know real max value for my device? (+ > Settings > Custom Setting') 1. Click on the magnifying gl… Read More
  • [PROFILE] AdGuard Toggler v1.0DESCRIPTION Enable/disable the AdGuard service in the background. You can also apply it to your projects so that it works on demand. Notes: - If intents fail to be sent to the app using the default password, try generating a… Read More
  • [PROFILE] Set Random Wallpaper Every Day v1.1DESCRIPTION These profiles set a random wallpaper based on different contexts. Notes: - Wallpaper files have to be placed locally. CREDITS @SmartPhoneLover CHANGELOG - New: Change wallpaper on screen on. (separate profile)… Read More

0 comments:

Post a Comment