- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathadb_clean.py
20 lines (16 loc) · 632 Bytes
/
adb_clean.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
# adb_reboot.py - Reboots and cleans an Android device. -*- python -*-
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
importos
fromadb.commandsimportDEVICE_TEMP_DIR, reboot, rmdir
if__name__=='__main__':
if'SKIP_ANDROID_CLEAN'notinos.environ:
reboot()
rmdir(DEVICE_TEMP_DIR)