https://github.com/droidsonroids/android-device-cleaner
Tool for cleaning up Android devices used in QA
https://github.com/droidsonroids/android-device-cleaner
android android-testing bitrise hacktoberfest stf
Last synced: 3 months ago
JSON representation
Tool for cleaning up Android devices used in QA
- Host: GitHub
- URL: https://github.com/droidsonroids/android-device-cleaner
- Owner: DroidsOnRoids
- License: mit
- Created: 2017-10-17T19:31:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-04T09:39:24.000Z (about 2 years ago)
- Last Synced: 2024-03-27T00:13:57.829Z (over 1 year ago)
- Topics: android, android-testing, bitrise, hacktoberfest, stf
- Language: Kotlin
- Homepage:
- Size: 465 KB
- Stars: 28
- Watchers: 20
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android-device-cleaner
Tool for cleaning up Android devices.
Designed for restoring state of devices used for QA on [Device Farmer](https://devicefarmer.io/).
By default STF uninstalls apps installed during session only on clean end of usage.## Performed actions
* unneeded apps uninstallation, except those listed in file pointed by `EXCLUDED_PACKAGES_LIST_PATH` environment variable
* external storage (`/sdcard/`) wiping
* temporary directory (`/data/local/tmp`) wiping
* force stopping all apps## Project components
### `device-cleaner`
Contains all the logic, can be used without Device Farmer.### `stf-app`
Interface to [Device Farmer / Open STF Connect step](https://github.com/DroidsOnRoids/bitrise-step-openstf-connect) on [Bitrise](https://bitrise.io).## Required environment variables
* `ANDROID_HOME` - should point to Android SDK root dir containing valid platform-tools, provided by Android stack on Bitrise
* `STF_DEVICE_SERIAL_LIST` - should contain devices serial numbers as a JSON array, provided by Open STF Connect step
* `EXCLUDED_PACKAGES_LIST_PATH` - should be a path to file with packages excluded from uninstallation (one per line)## Usage
`./gradlew run`