The-Powder-Toy/android/run-apk.py
Tamás Bálint Misius 59f89f9a46
Let mods customize app constants
Mainly via meson_options.txt.
2022-12-17 19:45:01 +01:00

26 lines
314 B
Python

import os
import os.path
import subprocess
import sys
(
script,
adb,
build_dir,
phony,
apk_name,
app_id,
) = sys.argv
apk_path = os.path.join(build_dir, apk_name)
if subprocess.run([
adb,
'shell',
'am',
'start',
'--activity-clear-top',
'-n', app_id + '/.PowderActivity',
]).returncode:
sys.exit(1)