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

Unified Diff: build/android/emulator.py

Issue 10695170: init AndroidCommand after the device online to root it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/emulator.py
diff --git a/build/android/emulator.py b/build/android/emulator.py
index 6b53416e8e5df2a825a79cc97cbd347b09f093de..26822e13a1af54b8269f27063ec2b06ff8375cb3 100755
--- a/build/android/emulator.py
+++ b/build/android/emulator.py
@@ -196,7 +196,6 @@ class Emulator(object):
After confirming a wait-for-device can be successful, make sure
it returns the right answer.
"""
- a = android_commands.AndroidCommands(self.device)
seconds_waited = 0
number_of_waits = 2 # Make sure we can wfd twice
adb_cmd = "adb -s %s %s" % (self.device, 'wait-for-device')
@@ -221,6 +220,7 @@ class Emulator(object):
if wait_for_boot:
# Now that we checked for obvious problems, wait for a boot complete.
# Waiting for the package manager is sometimes problematic.
+ a = android_commands.AndroidCommands(self.device)
a.Adb().SetTargetSerial(self.device)
bulach 2012/07/12 07:33:38 nit: 224 is no longer necessary..
Wei James(wistoch) 2012/07/12 07:39:49 fixed. thanks
a.Adb().WaitForSystemBootCompleted(self._WAITFORBOOT_TIMEOUT)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698