Skip to content

libardoplazas318-lang/PixelsPub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | Español | Português | Bahasa Indonesia | Русский | 中文 (简体) | 日本語 | Tiếng Việt | Türkçe | हिन्दी | العربية | ไทย

Pixels - Smart Resolution and DPI Changer

Pixels needs WRITE_SECURE_SETTINGS permission in order to work (this is NOT rooting).


TL;DR

  • Execute adb shell pm grant com.tribalfs.pixels android.permission.WRITE_SECURE_SETTINGS.
  • If using an android terminal app with elevated permission, execute pm grant com.tribalfs.pixels android.permission.WRITE_SECURE_SETTINGS.

ADB Procedures using a PC:

Details

1. Enable developer mode in phone's settings

  • Go to Settings > About phone > Software information and tap Build number successively seven(7) times to enable developer options.

    about phone

2. Enable USB debugging

  • Go to Settings > Developer options (can be Settings > System > Developer options on older android versions), scroll down and find USB debugging option.

    adb

Notes for some devices like MIUI:

  • Turn on USB debugging for Security Settings also if present in Developer option.

  • Turn on Disable permission Monitoring option if present in Developer options. Reboot is needed.

3. Download ADB on your computer

  • Download ADB (platform-tools) to your computer: for Windows | for Mac | for Linux

  • Extract the downloaded zip file.

4. Navigate to inside of

platform-tools folder that you extracted on Windows Explorer or Finder(macOS)

5. Opening the command-line interface

For Windows: Open up CMD

  • Type cmd in the address bar and press enter. This will open the Windows Command Prompt application.

opening_cmd

For MacOS: Open up Terminal

  • Search Terminal from Launchpad and run it.

  • Run sudo -s and type your user password. The terminal won't display how much characters you type, it'll remain blank.

  • Run export PATH=.:$PATH

Without this, you will get adb: command not found errors.

6. Connecting your phone to your computer

  • Your phone will prompt Allow USB debugging if it's the first time being connected on USB debugging mode. Tap Allow or OK.

  • You may check Always allow from this computer (Please check note at the end of this tutorial about keeping the USB debugging enabled).

    adb prompt
  • Check the connection by entering the following command followed by an enter. It should show your device ID if successfully connected.

adb devices

6

For macOS: ./adb devices

  • If your device fails to connect to your computer, try connecting it to a different USB port and/or using a different USB data cable. If still not connecting, your computer is possibly missing the USB driver for your phone. Check here to download OEM USB drivers. Once installed, reboot your PC and redo step no. 6.

7. Actual granting of WRITE_SECURE_SETTINGS permission to Pixels

  • When successfully connected, enter the following command and press enter. You can copy the command below. If the command is executed properly, it will return blank.

adb shell pm grant com.tribalfs.pixels android.permission.WRITE_SECURE_SETTINGS

  • If it prompts adb.exe: more than one device/emulator..., execute the following instead:

adb -s [device Id shown in step 6] shell pm grant com.tribalfs.pixels android.permission.WRITE_SECURE_SETTINGS

6

For macOS:

./adb shell pm grant com.tribalfs.pixels android.permission.WRITE_SECURE_SETTINGS

Note for MIUI, OnePlus and some other devices

If you get java.lang.SecurityException: grantRuntimePermission Error, follow these steps:

  1. Go to Settings > Developer options (can be Settings > System > Developer options
  2. Scroll down and enable USB Debugging (Security Settings)
  3. If any Caution Dialogue appears, follow it's steps to proceed.
  4. Reboot your device and try Section 7 steps again.

That's it!

You may now disable the USB debugging settings

  • Important: Keep USB debugging enabled if you want to try exotic screen resolution(s) on your device that may potentially crash the system. Always allow from this computer should be checked in step 6. ADB commands to reset screen resolution: adb shell wm size reset and adb shell wm density reset.

  • If you don't need USB debugging, you may now disable the USB debugging settings to avoid potential unwanted access.

  • Go to Settings > Developer options, scroll down a page and disable USB debugging option.


VIDEO GUIDE



ADB Procedures without using a PC:

Details

Option 1: You can install Shizuku

and activate it following the guide it provided. Then go back to Pixels app to grant it permission by applying a resolution.

Option 2: You can install LADB

and follow its setup guide and execute the following command:

pm grant com.tribalfs.pixels android.permission.WRITE_SECURE_SETTINGS

Note: This requires connecting to a wifi network. If having a java.lang.SecurityException, check notes in step 2 above. Important: LADB sometimes it requires a few try to make it work and it may not work on all devices.


You don't have to repeat this process unless you completely uninstall the app and reinstall it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published