2022-04-11 14:11:03 -05:00
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
|
|
|
|
(
|
|
|
|
script,
|
|
|
|
adb,
|
|
|
|
build_dir,
|
|
|
|
phony,
|
|
|
|
apk_name,
|
2022-12-17 06:53:37 -06:00
|
|
|
app_id,
|
2022-04-11 14:11:03 -05:00
|
|
|
) = sys.argv
|
|
|
|
|
|
|
|
apk_path = os.path.join(build_dir, apk_name)
|
|
|
|
|
|
|
|
if subprocess.run([
|
|
|
|
adb,
|
|
|
|
'shell',
|
|
|
|
'am',
|
|
|
|
'start',
|
|
|
|
'--activity-clear-top',
|
2022-12-17 06:53:37 -06:00
|
|
|
'-n', app_id + '/.PowderActivity',
|
2022-04-11 14:11:03 -05:00
|
|
|
]).returncode:
|
|
|
|
sys.exit(1)
|