Add headless Android runtime diagnostics
Sync changed files to Google Drive / sync (push) Successful in 1m9s

This commit is contained in:
admin_d committed 2026-09-15 23:38:30 +05:00
1 parent 809b381918
commit e253946fc8
5 files changed
+1540 -19

No files matched your search

+5 -2
View File
@@ -1,6 +1,6 @@
"""One-command Android-only compile, full native link, APK and evidence pipeline."""
from __future__ import annotations
import argparse, json, os, re, shutil, subprocess, uuid, zipfile
import argparse, json, os, re, shutil, subprocess, sys, uuid, zipfile
from pathlib import Path
from common import (ROOT, COMMIT, CPUS, ProbeError, stamp, sha256, write_json, run_command,
first_errors, CURRENT_OUTPUT_DIR, CURRENT_BUILD_METADATA,
@@ -242,6 +242,9 @@ def main()->int:
inherited=os.environ.get('KAM_BUILD_ID')
if inherited and not re.fullmatch(r'\d{8}T\d{6}Z-[0-9a-f]{8}',inherited):ap.error('Invalid KAM_BUILD_ID')
build_id=inherited or stamp()+'-'+uuid.uuid4().hex[:8]
return build_local(a,build_id) if a.local else docker_build(a,build_id)
result=build_local(a,build_id) if a.local else docker_build(a,build_id)
if result==0 and os.environ.get('KAM_CONTAINER_BUILD')!='1':
subprocess.run([sys.executable,str(ROOT/'tools/device.py')],cwd=ROOT,check=False)
return result
if __name__=='__main__':raise SystemExit(main())