Tool for cleaning up Android devices. Designed for restoring state of devices used for QA on Device Farmer. By default STF uninstalls apps installed during session only on clean end of usage.
- 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
Contains all the logic, can be used without Device Farmer.
Interface to Device Farmer / Open STF Connect step on Bitrise.
ANDROID_HOME
- should point to Android SDK root dir containing valid platform-tools, provided by Android stack on BitriseSTF_DEVICE_SERIAL_LIST
- should contain devices serial numbers as a JSON array, provided by Open STF Connect stepEXCLUDED_PACKAGES_LIST_PATH
- should be a path to file with packages excluded from uninstallation (one per line)
./gradlew run