chiark / gitweb /
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!")