Skip to content

arter97/AutoHzPerm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoHz

Thanks for purchasing AutoHz!

For AutoHz to modify the system's display settings automatically, secure write settings permission has to be granted.

If you're rooted, AutoHz will attempt to do this automatically without a help from a computer. If you're prompted to do this operation manually while you're rooted, please check if you granted root permissions to AutoHz.


TL;DR

  • Run adb shell pm grant com.arter97.auto90 android.permission.WRITE_SECURE_SETTINGS

1. Enable developer mode

  • Go to Android Settings app > About phone and tap Build number multiple times until the developer mode is enabled.

about phone

2. Enable USB debugging

  • Go to Android Settings app > System > Developer options, scroll down a page and enable USB debugging option.

adb

3. Download ADB on your computer

  • Check here and download ADB for your computer.

  • Extract the downloaded zip file.

4. Connect your phone to your computer


5. Using command-line

5.1. Windows: Open up CMD

  • Press Windows + R key on your keyboard.

  • Type cmd and hit enter.

1

5.2. 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. Locate ADB

  • From the terminal window, type "cd ". Notice the empty whitespace after the "cd".

  • Locate the extracted platform-tools folder from Windows Explorer or Finder(macOS) and drag it over to the terminal window. It'll auto-fill the path.

2

  • Press enter.

3

7. Allow your computer to be used for USB debugging

  • Enter the following to the CMD window, followed by an enter:

adb shell echo success

  • You can copy the commands and paste it by right-clicking on the CMD window.

4

  • The command may show an error, this is normal. Your phone will prompt Allow USB debugging for you.

  • If it doesn't show an error, skip this step.

adb prompt

  • Tap OK.

  • Try adb shell echo success again. It must print success.

5

8. Grant write secure settings permission

  • Enter the following to the CMD window, followed by an enter:

adb shell pm grant com.arter97.auto90 android.permission.WRITE_SECURE_SETTINGS

Note that it's com.arter97.auto90 and not com.arter97.autohz.

This is because AutoHz was previously named Auto90.

6

  • If the command executed properly, it'll return silently.

8.1. ColorOS (OnePlus Nord 2)

  • If your device is based on ColorOS (including OnePlus Nord 2), a permission error may occur during the adb command above.

  • Please enable Disable permission monitoring from the Android Settings app > System > Developer options and retry the command.

9. Disable USB debugging

  • If you don't need USB debugging, it's a good practice to disable it to avoid potential unwanted access.

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

  • Run adb kill-server from the terminal window.

10. Done!

That's it!

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

About

Instructions for AutoHz (Auto90)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published