This demo is an app that manipluates some common settings of Android phones. Now the settings include brightness, volume, vibration, animation scale, system dark mode and color mode.
- Clone the repo and open it with [Android Studio].
- Root an phone on API level 23 through 28. An emualtor is recommended.
- Run the app on the phone or emulator. Follow the popup instructions to grant the permission.
- Brightness needs WRITE_SETTINGS permission, which we will pop up an alert to ask for your grant.
- Volume is a system service. It does not require any permission.
- Animation scale is a [global setting], which can only be adjusted in developer mode. So root permission is needed.
- System dark mode is a system service, but it can only be changed freely on API level 23 through 28. See the issue [here]
- System color mode is a system hidden setting. It does not work above API level 28, too.
https://drive.google.com/file/d/1s1y44Pq7wQosgV0i6uYcuX6hGwnRh14a/view?usp=sharing