A lightweight, menu-driven Bash script to finely tune your Android device's display and performance settings via ADB (Android Debug Bridge). Quickly adjust animation scales, DPI, and hardware acceleration with simple, color-coded menus.
-
Device Management:
- Automatically detects connected Android devices
- Support for multiple connected devices with easy selection
- Easy device switching
-
Animation Controls:
- View current animation settings
- Set animation scales (0.0x, 0.75x, 0.9x, 1.0x, or custom values)
- Quickly disable animations for improved performance
-
DPI Management:
- View current and default DPI information
- Set custom DPI values
- Reset DPI to device defaults
-
Hardware Acceleration:
- View detailed hardware acceleration status
- Enable/disable all hardware acceleration features
- Targeted control of GPU acceleration
- Targeted control of UI hardware acceleration
- Reset hardware acceleration to device defaults
-
Device Information:
- Display detailed device information
- Show current hardware acceleration settings
-
Convenience Features:
- Simple menu-driven interface with color coding
- Device reboot option with reconnection detection
- Clear status messages with progress indicators
- Bash shell (Linux, macOS, or Windows with WSL/Git Bash).
- ADB installed and accessible in your PATH.
- USB debugging enabled on your Android device.
- USB connection between your computer and device.
-
Clone the repository:
git clone https://github.com/1999AZZAR/android-display-optimizer.git
-
Navigate to the project directory:
cd android-display-optimizer
-
Make the script executable:
chmod +x v6.sh
- Connect your Android device via USB and enable USB debugging.
- Run the script:
chmod +x v6.sh && ./v6.sh
- Use number or letter keys to select menu options.
- Press Enter to confirm selections when prompted.
Select from the following options:
- 1: Show animation settings
- 2: Show current DPI information
- 3: Show device information
- 4: Show hardware acceleration status
- 5: Set animation scales to 1.0x (default)
- 6: Set animation scales to 0.90x
- 7: Set animation scales to 0.75x
- 8: Set animation scales to custom value
- 9: Turn off animations (0.0x)
- 10: Set custom DPI
- 11: Reset DPI to default
- 12: Enable all hardware acceleration features
- 13: Enable GPU acceleration only
- 14: Enable UI hardware acceleration only
- 15: Disable all hardware acceleration features
- 16: Disable GPU acceleration only
- 17: Disable UI hardware acceleration only
- 18: Reset hardware acceleration to device defaults
- c: Change device
- r: Reboot device
- 0: Exit
- Some changes may require a device restart to take full effect
- Changing DPI or hardware acceleration settings can affect device performance and appearance
- The script will automatically prompt when a reboot is recommended
- Always use caution when modifying system settings
If you encounter issues:
- Ensure ADB is properly installed and in your PATH
adb version
- Verify device connection:
adb devices
- Reconnect USB cable or restart ADB server if necessary:
adb kill-server && adb start-server
Contributions welcome! Fork the repo, create a feature branch, and submit a Pull Request.