Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1742)

Unified Diff: appengine/swarming/swarming_bot/api/platforms/android.py

Issue 1424923006: Small fixes as found in staging. (Closed) Base URL: git@github.com:luci/luci-py.git@4_more_functionality
Patch Set: . Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/swarming_bot/api/platforms/android.py
diff --git a/appengine/swarming/swarming_bot/api/platforms/android.py b/appengine/swarming/swarming_bot/api/platforms/android.py
index 7c2b8bc8dde317771c1ff3a0df76f0df40dc6440..0d7911c8bb123637d7b8ccb2414239056570dae5 100644
--- a/appengine/swarming/swarming_bot/api/platforms/android.py
+++ b/appengine/swarming/swarming_bot/api/platforms/android.py
@@ -14,9 +14,18 @@ import os
from adb import adb_commands_safe
+from adb import adb_protocol
+from adb import common
from adb import high
+LEVEL = logging.WARNING
+adb_commands_safe._LOG.setLevel(LEVEL)
+adb_protocol._LOG.setLevel(LEVEL)
+common._LOG.setLevel(LEVEL)
+high._LOG.setLevel(LEVEL)
+
+
def initialize(pub_key, priv_key):
return high.Initialize(pub_key, priv_key)
@@ -29,3 +38,7 @@ def get_devices(bot):
def close_devices(devices):
return high.CloseDevices(devices)
+
+
+def kill_adb():
+ return adb_commands_safe.KillADB()

Powered by Google App Engine
This is Rietveld 408576698