mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
AndroidTarget: Add method to open a url in the default browser
This commit is contained in:
parent
17d32a4d40
commit
e22d278267
@ -1390,6 +1390,10 @@ class AndroidTarget(Target):
|
||||
cmd = 'settings put system user_rotation {}'
|
||||
self.execute(cmd.format(rotation))
|
||||
|
||||
def open_url(self, url):
|
||||
cmd = 'am start -a android.intent.action.VIEW -d "{}"'
|
||||
self.execute(cmd.format(escape_double_quote(url)))
|
||||
|
||||
def homescreen(self):
|
||||
self.execute('am start -a android.intent.action.MAIN -c android.intent.category.HOME')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user