https://github.com/rascarlo/PowerButtonTile
Android app that makes use of the accessibility service to provide quick settings tiles to perform global actions: screenshot (API level 28), sleep (API level 28) and system power dialog (API level 21).
https://github.com/rascarlo/PowerButtonTile
android android-10 android-7 android-8 android-9 android-nougat android-oreo android-pie android-q android-quicksettings androidx
Last synced: 8 months ago
JSON representation
Android app that makes use of the accessibility service to provide quick settings tiles to perform global actions: screenshot (API level 28), sleep (API level 28) and system power dialog (API level 21).
- Host: GitHub
- URL: https://github.com/rascarlo/PowerButtonTile
- Owner: rascarlo
- License: gpl-3.0
- Created: 2020-02-07T11:17:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T15:33:31.000Z (almost 6 years ago)
- Last Synced: 2024-11-11T21:38:08.312Z (about 1 year ago)
- Topics: android, android-10, android-7, android-8, android-9, android-nougat, android-oreo, android-pie, android-q, android-quicksettings, androidx
- Language: Java
- Homepage:
- Size: 389 KB
- Stars: 47
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# PowerButtonTile
Simple application to add up to 3 quick settings tiles to the quick settings layout.
The app makes use of the accessibility service to provide quick settings tiles to perform global actions: screenshot (API level 28), sleep (API level 28) and system power dialog (API level 21).
System power dialog (GLOBAL_ACTION_POWER_DIALOG) has been added in API level 21 (https://developer.android.com/reference/android/accessibilityservice/AccessibilityService#GLOBAL_ACTION_POWER_DIALOG).
Sleep (GLOBAL_ACTION_LOCK_SCREEN) has been added in API level 28 (https://developer.android.com/reference/android/accessibilityservice/AccessibilityService#GLOBAL_ACTION_LOCK_SCREEN).
Screenshot (GLOBAL_ACTION_TAKE_SCREENSHOT) has been added in API level 28 (https://developer.android.com/reference/android/accessibilityservice/AccessibilityService#GLOBAL_ACTION_TAKE_SCREENSHOT).
___
### Screenshots

___
## Android Developers Documentation
- Accessibility service: https://developer.android.com/reference/android/accessibilityservice/AccessibilityService
- Tile: https://developer.android.com/reference/android/service/quicksettings/Tile
- TileService: https://developer.android.com/reference/android/service/quicksettings/TileService