A simple script to manage screen resolution and density settings on Android devices through Termux.
- Install Termux from F-Droid (recommended) or Play Store
- Required packages:
Install all needed packages with one command:
pkg update && pkg install -y dialog tsu
Or install them individually:
pkg install dialog
- for the user interfacepkg install tsu
- for root access
- Create a directory for the script:
mkdir -p ~/phone_settings
- Download the script and make it executable:
cd ~/phone_settings
curl -O https://raw.githubusercontent.com/anlaki-py/screen-res/main/screen-res.sh
chmod +x screen-res.sh
Run the script with:
sudo bash ~/phone_settings/screen-res.sh
On first run:
0. Select Reconfigure Device Settings
- Enter your device name
- Enter your screen size in inches (e.g.
6.1
) - Default resolution and DPI will be automatically detected
- Change screen resolution
- Save and load resolution presets
- Backup and restore settings
- Automatic DPI calculation
- Revert to default settings
If the script doesn't work:
- Make sure you installed all required packages
- Check if you have root access (
sudo su
) - Verify the script has execute permissions
This project is open source and available under the MIT License.