mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-19 07:51:57 +09:00
[trace_replay] (P7): pin the signed APK path used by a preinstalled device run
This commit is contained in:
@@ -78,6 +78,15 @@ def is_lfs_pointer(path):
|
|||||||
|
|
||||||
|
|
||||||
def find_trace_apk():
|
def find_trace_apk():
|
||||||
|
# A preinstalled APK need not be the newest Gradle output in this tree.
|
||||||
|
# Let the caller pin the exact signed file used for the session so run.json
|
||||||
|
# does not present an unrelated local build's SHA as device provenance.
|
||||||
|
override = __import__("os").environ.get("MOBILEGL_TRACE_APK", "").strip()
|
||||||
|
if override:
|
||||||
|
path = Path(override).expanduser().resolve()
|
||||||
|
if not path.is_file():
|
||||||
|
raise FileNotFoundError(f"MOBILEGL_TRACE_APK does not exist: {path}")
|
||||||
|
return path
|
||||||
candidates = [
|
candidates = [
|
||||||
path
|
path
|
||||||
for directory in TRACE_APK_DIRS
|
for directory in TRACE_APK_DIRS
|
||||||
|
|||||||
Reference in New Issue
Block a user