]> apps.delaporte.us Git - dotfiles.git/commitdiff
Add Android invoke file
authorEdward Delaporte <edward@delaporte.us>
Mon, 29 Dec 2025 17:29:54 +0000 (11:29 -0600)
committerEdward Delaporte <edward@delaporte.us>
Mon, 29 Dec 2025 17:29:54 +0000 (11:29 -0600)
invoke/android/tasks.py [new file with mode: 0644]

diff --git a/invoke/android/tasks.py b/invoke/android/tasks.py
new file mode 100644 (file)
index 0000000..ff62675
--- /dev/null
@@ -0,0 +1,19 @@
+from invoke import task
+
+@task()
+def defaults(c):
+    c.run('update-alternatives --config gnome-www-browser')
+
+@task
+def install_adb(c):
+    c.run('sudo apt-get install adb')
+
+
+@task
+def status(c):
+    print("Running a status check.")
+    result = c.run('which adb', warn=True)
+    if(len(result.stdout) == 0):
+        print("- [ ] Install `adb` with `invoke install-adb`")
+
+