{"id":27789143,"url":"https://github.com/1999azzar/android-display-optimizer","last_synced_at":"2026-04-29T15:40:00.696Z","repository":{"id":290429760,"uuid":"971840934","full_name":"1999AZZAR/android-display-optimizer","owner":"1999AZZAR","description":"A powerful Bash script utility designed to optimize Android device display and performance settings via ADB (Android Debug Bridge).","archived":false,"fork":false,"pushed_at":"2025-04-28T19:03:01.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T20:22:40.562Z","etag":null,"topics":["adb","android","animation-scale"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1999AZZAR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-24T06:21:51.000Z","updated_at":"2025-04-28T19:03:06.000Z","dependencies_parsed_at":"2025-04-28T20:22:43.058Z","dependency_job_id":null,"html_url":"https://github.com/1999AZZAR/android-display-optimizer","commit_stats":null,"previous_names":["1999azzar/android-display-optimizer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fandroid-display-optimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fandroid-display-optimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fandroid-display-optimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fandroid-display-optimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1999AZZAR","download_url":"https://codeload.github.com/1999AZZAR/android-display-optimizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251754487,"owners_count":21638518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","android","animation-scale"],"created_at":"2025-04-30T17:46:19.662Z","updated_at":"2026-04-29T15:40:00.691Z","avatar_url":"https://github.com/1999AZZAR.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Display \u0026 Performance Optimizer\n\n`v6.sh` is a Bash menu for changing common Android display and developer settings over ADB. It works with one or more connected devices and keeps a local `config.ini` plus optional `.bak` backups of captured settings.\n\n## What it changes\n\n- Animation scales\n- Screen density (`wm density`)\n- Screen timeout (`screen_off_timeout`)\n- Screen brightness (`screen_brightness`)\n- Font scale (`font_scale`)\n- Status bar clock seconds (`clock_seconds`)\n- Status bar icon visibility via `icon_blacklist`\n- Battery percentage (`status_bar_show_battery_percent`)\n- Stay-awake while charging (`stay_on_while_plugged_in`)\n- Touch debug toggles (`show_touches`, `pointer_location`)\n- Rotation and auto-rotation\n- A small set of hardware acceleration and GPU debug properties\n- Device reboot\n\n## Requirements\n\n- Bash\n- `adb` in `PATH`\n- USB debugging enabled on the Android device\n- A connected device that appears as `device` in `adb devices`\n\n## Install\n\n```bash\ngit clone https://github.com/1999AZZAR/android-display-optimizer.git\ncd android-display-optimizer\nchmod +x v6.sh\n```\n\n## Run\n\n```bash\n./v6.sh\n```\n\nOn startup the script:\n\n1. Detects connected devices and asks you to choose one if more than one is available.\n2. Creates `config.ini` if it does not exist yet.\n3. Loads values from `config.ini`.\n4. Shows the interactive menu.\n\n## Menu summary\n\nInformation:\n- Show animation settings\n- Show display info\n- Show device information\n- Show hardware acceleration status\n- Show rotation status\n\nDisplay and animation:\n- Set animation scale to `1.0`, `0.9`, `0.75`, custom, or `0.0`\n- Set custom DPI\n- Reset DPI\n\nScreen timeout:\n- Set screen timeout to `30 seconds`, `1 minute`, `2 minutes`, `5 minutes`, `10 minutes`, or `30 minutes`\n- Keep short test presets for `7`, `10`, `15`, and `20` seconds\n- Set a custom timeout in seconds\n\nBrightness:\n- Set brightness mode to manual or adaptive\n- Set brightness to `64`, `128`, `192`, or a custom `0-255` value\n\nFont scale:\n- Set font scale to `0.85`, `1.0`, `1.15`, `1.3`, or a custom positive value\n\nStatus bar:\n- Show the clock seconds in the status bar\n- Hide the clock seconds in the status bar\n- Show or hide the Wi-Fi icon\n- Show or hide the mobile icon\n- Show or hide the tethering icon\n- Show or hide the Bluetooth icon\n- Show or hide the VPN icon\n- Show or hide the Data Saver icon\n- Show or hide the Airplane icon\n- Show or hide the battery percentage\n\nPower:\n- Disable stay-awake while charging\n- Keep the screen awake while plugged in on `AC + USB`\n- Keep the screen awake while plugged in on `AC + USB + wireless`\n\nInput debug:\n- Enable or disable `show_touches`\n- Enable or disable `pointer_location`\n\nRotation:\n- Enable all rotations\n- Disable upside-down rotation\n- Toggle auto-rotation\n- Lock rotation to portrait, landscape, upside-down, or reverse landscape\n\nHardware and GPU:\n- Enable hardware acceleration related settings\n- Disable them\n- Reset them\n- Toggle GPU profile rendering\n- Toggle GPU overdraw debugging\n\nUtility:\n- Change selected device\n- Show full device info from the header with `i`\n  This view includes serial, manufacturer, brand, model, Android version, SDK, security patch, build ID, ABI list, battery state, memory, `/data` storage, uptime, and Wi-Fi IP when available.\n- Reboot device\n- Back up current settings to a timestamped `.bak` file\n- Restore settings from a backup\n\n## `config.ini`\n\nThe script generates `config.ini` from the current state of the selected device. It stores values the script can read and write directly.\n\nCurrent sections:\n\n- `[Animation]`\n- `[Display]`\n- `[StatusBar]`\n- `[InputDebug]`\n- `[Power]`\n- `[HardwareAcceleration]`\n- `[Rotation]`\n- `[Backup]`\n- `[Colors]`\n\nExample:\n\n```ini\n[Animation]\nwindow_animation_scale=1.0\ntransition_animation_scale=1.0\nanimator_duration_scale=1.0\n\n[Display]\ndensity=420\nscreen_off_timeout=15000\nscreen_brightness=128\nscreen_brightness_mode=0\nfont_scale=1.0\n\n[StatusBar]\nclock_seconds=0\nicon_blacklist=\nstatus_bar_show_battery_percent=0\n\n[InputDebug]\nshow_touches=0\npointer_location=0\n\n[Power]\nstay_on_while_plugged_in=0\n\n[HardwareAcceleration]\nforce_gpu_rendering=1\nprofile_gpu_rendering=false\ndebug_gpu_overdraw=false\n\n[Rotation]\naccelerometer_rotation=1\nuser_rotation=0\n\n[Backup]\nPrefix=android_settings_\n```\n\n`[Colors]` is also written to the file and controls the terminal color codes used by the script.\n\n## Notes on Android support\n\nThis script sends standard `adb shell settings`, `adb shell wm`, `adb shell cmd window`, and `adb shell setprop` commands. Android support is not uniform across devices and ROMs.\n\nExamples:\n\n- Some `setprop` targets are read-only.\n- Some values require root.\n- Some commands exist on one Android version and not another.\n\nWhen one of those commands fails, `v6.sh` now prints the error and returns to the menu instead of exiting the script.\n\nFor commands with a capability probe, unsupported items are marked in the menu before you run them.\n\n## Backups\n\n`b` writes the current device state to a timestamped backup file using the prefix from `config.ini`.\n\n`s` lists `*.bak` files in the current directory and applies the selected backup back to the device.\n\n## Troubleshooting\n\nIf the script cannot see the device:\n\n```bash\nadb devices\n```\n\nIf the device is listed as `unauthorized`, confirm the debugging prompt on the phone and run:\n\n```bash\nadb kill-server\nadb start-server\nadb devices\n```\n\nIf a menu action fails:\n\n- Read the ADB error message shown in the terminal.\n- Check whether the setting exists on your Android version.\n- Check whether the device or ROM requires root for that change.\n\n## Repository files\n\n- `v6.sh`: main script\n- `config.ini`: generated local configuration\n\n## Contributing\n\nIf you change the script, update the README when menu options, config keys, or command behavior changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fandroid-display-optimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1999azzar%2Fandroid-display-optimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fandroid-display-optimizer/lists"}