VulpesOS/android/tools/inspect-process.py
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

19 lines
514 B
Python

import sys
import json
from rdp import RDP
r = RDP()
targets = r.call("root", "listProcesses")["processes"]
for p in targets:
if p["isParent"]:
continue
t = r.call(p["actor"], "getTarget")["process"]
if sys.argv[1] not in t.get("remoteType", ""):
continue
a = r.call(t["consoleActor"], "evaluateJSAsync", text=sys.argv[2])
while True:
q = r.recv()
if q.get("type") == "evaluationResult":
print(json.dumps(q, indent=2))
break
r.s.close()