-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,119 @@ | ||
# GalaxyMaxHzPub | ||
# Galaxy Max Hz | ||
|
||
For **unrooted** device, the following features of Galaxy Max Hz need **WRITE_SECURE_SETTINGS** permission in order to work: | ||
* Resolution & Motion Smoothness Toggle | ||
* Switch between **Adaptive** or **High** Motion Smoothness mode for supported devices | ||
|
||
If your device is **rooted**, install and run the following mini-app to automate granting of **WRITE_SECURE_SETTINGS** permission to Galaxy Max Hz without the need of a PC. You can uninstall the mini-app after: | ||
* [[Root]Write Secure for Galaxy Max Hz before v6.0](https://mega.nz/file/KdRFxYzQ#kKAW9U5avxtIpENfU2gFrC5WWW7jYfDr11VoAdTSoGY) | ||
* [[Root]Write Secure for Galaxy Max Hz v6.0 and above](https://mega.nz/file/CNZCnBDR#Ugw0vkIf281EytWDSA3lL1pyGUuIWzOR4iFnbavueGk) | ||
|
||
---------------------- | ||
### TL;DR | ||
|
||
* Run `adb shell pm grant com.tribalfs.gmh android.permission.WRITE_SECURE_SETTINGS` | ||
|
||
---------------------- | ||
|
||
### 1. Enable developer mode | ||
|
||
* Go to `Settings` > `About phone` > `Software information` and tap `Build number` multiple times until the developer mode is enabled. | ||
|
||
![about phone](about_phone.png) | ||
|
||
### 2. Enable USB debugging | ||
|
||
* Go to `Android Settings app` > `System` > `Developer options`, scroll down a page and enable `USB debugging` option. | ||
|
||
![adb](adb.png) | ||
|
||
### 3. Download ADB on your computer | ||
|
||
* Check [here](https://www.xda-developers.com/google-releases-separate-adb-and-fastboot-binary-downloads) 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](1.png) | ||
|
||
#### 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](2.png) | ||
|
||
* Press enter. | ||
|
||
![3](3.png) | ||
|
||
### 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](4.png) | ||
|
||
* 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](adb_prompt.jpg) | ||
|
||
* Tap `OK`. | ||
|
||
* Try `adb shell echo success` again. **It must print `success`**. | ||
|
||
![5](5.png) | ||
|
||
### 8. Grant write secure settings permission | ||
|
||
* Enter the following to the CMD window, followed by an enter: | ||
|
||
```adb shell pm grant com.tribalfs.gmh android.permission.WRITE_SECURE_SETTINGS``` | ||
|
||
**Note that it's ```com.tribalfs.n20umaxhz``` if you are using the app version 5.40 or lower.** | ||
|
||
|
||
![6](6.png) | ||
|
||
* If the command executed properly, it'll return silently. | ||
|
||
### 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 `Settings` > `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 reinstall it. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.