https://github.com/std-microblock/screen-time-ctrl-android-root
Auto poweroff, app usage time limit & period limit without app and with Magisk.
https://github.com/std-microblock/screen-time-ctrl-android-root
Last synced: 9 months ago
JSON representation
Auto poweroff, app usage time limit & period limit without app and with Magisk.
- Host: GitHub
- URL: https://github.com/std-microblock/screen-time-ctrl-android-root
- Owner: std-microblock
- Created: 2024-11-24T04:58:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-24T05:07:44.000Z (about 1 year ago)
- Last Synced: 2025-04-23T23:48:04.909Z (9 months ago)
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The real strong screen time limit, with no app, requires magisk.
## Usage
```sh
# push config
adb push /data/media/0/limit_config.json
# install the limit_app
adb push screen-time-ctrl-android-root /data/tmp/limit_app
adb shell chmod 777 /data/tmp/limit_app
adb shell su -c /data/tmp/limit_app &
```
## Config example
```json
{
"free_time_range": [
// offset by the start of a week, during the time do not limit anything
0, 100
],
"limits": [
// rule for test
{
"package": [
// packages applying the rule
"mark.via"
],
// the app can be used for 2 minutes per day
"max_duration_per_day": 2,
"forbidden_time_ranges": [
// forbit use during 00:30 ~ 01:00 each day
[30, 60]
]
},
],
"sleep_time_range": [
// shutdown during 11:30 PM to 12:00 PM
[
1410,
1460
]
]
}
```