chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into 'master'
[fdroidserver.git]
/
docker
/
enable_service.py
1
#!/usr/bin/env python2
2
3
from com.dtmilano.android.viewclient import ViewClient
4
5
vc = ViewClient(*ViewClient.connectToDeviceOrExit())
6
7
button = vc.findViewWithText("OFF")
8
9
if button:
10
(x, y) = button.getXY()
11
button.touch()
12
else:
13
print("Button not found. Is the app currently running?")
14
exit()
15
16
print("Done!")