{"id":28467807,"url":"https://github.com/therealone78/pybattery","last_synced_at":"2026-04-29T13:35:12.613Z","repository":{"id":92476966,"uuid":"366304860","full_name":"TheRealOne78/pybattery","owner":"TheRealOne78","description":"A python script changing Android battery level with adb, alternating between 2% and 1000% ","archived":false,"fork":false,"pushed_at":"2024-03-12T12:24:41.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T09:44:36.098Z","etag":null,"topics":["adb","android","pybattery"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheRealOne78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-05-11T08:10:08.000Z","updated_at":"2024-03-12T11:52:49.000Z","dependencies_parsed_at":"2024-03-12T13:55:46.467Z","dependency_job_id":"e8ff4262-5b28-4383-b80f-dcbced9a6040","html_url":"https://github.com/TheRealOne78/pybattery","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TheRealOne78/pybattery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealOne78%2Fpybattery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealOne78%2Fpybattery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealOne78%2Fpybattery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealOne78%2Fpybattery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheRealOne78","download_url":"https://codeload.github.com/TheRealOne78/pybattery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheRealOne78%2Fpybattery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32427779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","pybattery"],"created_at":"2025-06-07T08:05:30.568Z","updated_at":"2026-04-29T13:35:12.608Z","avatar_url":"https://github.com/TheRealOne78.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyBattery\n\nA Python-based application that will change android device battery level, looping from 2% to 1000% and viceversa.\n\n### Dependencies\n\n#### [adb - Android Debug Bridge](https://developer.android.com/tools/adb)\n\nIn **GNU/Linux** distributions, install `adb` on:\n - **Debian** based distros with `(sudo) apt install adb android-sdk-platform-tools-common`\n - **Arch** based distros with `(sudo/doas) pacman -S android-tools`\n - **Gentoo** with `(sudo/doas) emerge dev-util/android-sdk-update-manager`\u003cbr\u003e\n\nIn **Apple macOS**, install `adb` by:\n - Installing with [homebrew](https://brew.sh), using `brew install android-platform-tools`\n - Or by manually installing it from https://developer.android.com/tools/adb\n\nIn **Microsoft Windows**, install `adb` from [https://developer.android.com/tools/adb](https://developer.android.com/tools/adb).\n\n#### [Python](https://www.python.org/)\n\nIn **GNU/Linux** distributions, install `python` on:\n - **Debian** based distros with `[sudo] apt install python3`\n - **Arch** based distros with `[sudo/doas] pacman -S python`\n - **Gentoo** with `[sudo/doas] emerge -a dev-lang/python`\u003cbr\u003e\n\nIn **Apple macOS**, install `python` from [https://www.python.org/downloads](https://www.python.org/downloads).\n\nIn **Microsoft Windows**, install `python` from [https://www.python.org/downloads](https://www.python.org/downloads).\n\n### Download\n\nThere are 3 main methods to download the source code:\n  1. By downloading the git repository by cloning it with `git clone https://github.com/TheRealOne78/pybattery.git`;\n  2. By downloading a zip file from https://github.com/TheRealOne78/pybattery/archive/refs/heads/main.zip or clicking the `Code`\u003e`Download ZIP` buttons in GitHub;\n  3. Or by copying/downloading the source code from https://github.com/TheRealOne78/pybattery/blob/main/pybattery.py or clicking the `pybattery.py` file in GitHub and copying/downloading the source code.\n\n### How to run\nIn the Android device, `USB Debbuging` in Developer Options needs to be activated in order for `adb` to reach and send commands to the Android device.\n\nIn **Linux** and **macOS** run the python file with `python3 ./pybattery.py`.\nIn Windows double click pybattery.py to execute it via python.\n\nFor restoring the battery level to normal, `adb shell dumpsys battery reset` needs to be executed or Android has to be rebooted.\n\n### Disclaimer and License\nCopyright (C) 2023 TheRealOne78\u003cbr\u003e\nLicense GPLv3+: GNU GPL version 3 or later [https://gnu.org/licenses/gpl.html](https://gnu.org/licenses/gpl.html).\u003cbr\u003e\nThis is free software: you are free to change and redistribute it.\u003cbr\u003e\nThere is NO WARRANTY, to the extent permitted by law.\u003cbr\u003e\n\n**I am not responsible for any damage to your devices. Experiment at your own risk!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealone78%2Fpybattery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftherealone78%2Fpybattery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealone78%2Fpybattery/lists"}