Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do LG "tap" initialization action *after* getting orng location

  • Loading branch information...
commit 1df408ac1fe1db8ddad378cc157d253bac025691 1 parent 640b738
@wlach wlach authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/eideticker/eideticker/device.py
View
13 src/eideticker/eideticker/device.py
@@ -54,12 +54,8 @@ def _init(self):
if not DEVICE_PROPERTIES.get(self.model):
raise Exception("Unsupported device type '%s'" % self.model)
- # Hack: this gets rid of the "finished charging" modal dialog that the
- # LG G2X sometimes brings up
- if self.model == 'LG-P999':
- self.executeCommand("tap", [240, 617])
-
- # use a copy of orng in /data/local
+ # we support two locations for the orng executable: /data/local
+ # and /system/xbin
for location in ["/data/local/orng", "/system/xbin/orng"]:
# we use ls instead of fileExists because fileExists doesn't
# handle directories which we can't read like /data/local :(
@@ -73,6 +69,11 @@ def _init(self):
if not self.orngLocation:
raise DMError("Could not find a copy of Orangutan (orng) to run")
+ # Hack: this gets rid of the "finished charging" modal dialog that the
+ # LG G2X sometimes brings up
+ if self.model == 'LG-P999':
+ self.executeCommand("tap", [240, 617])
+
# FIXME: make this part of devicemanager
def _shellCheckOutput(self, args):
buf = StringIO.StringIO()
Please sign in to comment.
Something went wrong with that request. Please try again.