mirror of
https://github.com/crueber/android-brightness.git
synced 2026-03-14 21:41:28 +00:00
No description
| .github/workflows | ||
| app | ||
| fastlane/metadata/android/en-US | ||
| gradle | ||
| plans | ||
| research | ||
| .gitignore | ||
| build.gradle.kts | ||
| F-DROID.md | ||
| gradle.properties | ||
| gradlew | ||
| LICENSE | ||
| README.md | ||
| RELEASING.md | ||
| settings.gradle.kts | ||
Brightness Widget
A minimal Android home screen widget for controlling screen brightness with a single tap.
No bloat, no ads, no tracking — just a clean bar you tap to set brightness.
Screenshots
Features
- Tap to set brightness — 10-segment horizontal bar, tap any segment
- Gamma-corrected — steps match the Quick Settings slider positions
- Auto-brightness disabled automatically on tap so your setting sticks
- Visual indicators — subtle brightness icon, 50% and 100% labels
- Resizable — defaults to 4 columns wide, resize to any width
- Lightweight — no background services, no internet permission, no data collection
Requirements
- Android 8.0 (API 26) or newer
Modify System Settingspermission (granted once through a simple setup screen)
Installation
Via Obtainium (recommended)
- Install Obtainium
- Tap + and enter:
https://github.com/crueber/android-brightness - Obtainium finds the latest release APK and notifies you of future updates
Direct APK download
Grab the latest signed APK from the Releases page.
Getting started
- Open Brightness Widget from your launcher
- Tap Open Settings to Grant Permission and enable the toggle
- Long-press your home screen > Widgets > drag Brightness Widget onto your home screen
- Tap any segment to set brightness — done!
Building from source
Prerequisites
- JDK 17 —
brew install --cask temurin@17 - Android SDK — installed automatically by Android Studio, or set
ANDROID_HOMEmanually
Build & install
# Build debug APK
JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home \
./gradlew assembleDebug
# Install to connected device
adb install -r app/build/outputs/apk/debug/app-debug.apk
Useful commands
| Task | Command |
|---|---|
| Debug APK | ./gradlew assembleDebug |
| Release APK | ./gradlew assembleRelease |
| Install to device | ./gradlew installDebug |
| Lint | ./gradlew lint |
| Clean | ./gradlew clean |
Customization
Edit BrightnessConfig.kt to adjust the number of segments:
const val BRIGHTNESS_STEPS = 10 // 10% increments (default)
const val BRIGHTNESS_STEPS = 20 // 5% increments, finer control
Remove and re-add the widget after changing.
Publishing
- GitHub Releases — see RELEASING.md
License
MIT — see LICENSE