)]}'
{
  "commit": "ca4508e8f261cdaf3d5b48c9381a504b99b2669a",
  "tree": "03257904aa825196616671a6c580af956fa81dac",
  "parents": [
    "bb0a61b40921991a23ab2aec62e9528d9904f52e"
  ],
  "author": {
    "name": "Parth Sane",
    "email": "parthsane@gmail.com",
    "time": "Fri Feb 27 13:59:18 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Feb 27 13:59:18 2026 +0000"
  },
  "message": "sdk: Move system registration check from Android framework (#4922)\n\nAdds a static method `PerfettoTrace.getAttemptedSystemRegistration()` to\nthe Java SDK. This returns true if `register(isBackendInProcess \u003d\nfalse)` has been called in the current process.\n\nMotivation:\nThis allows components to dynamically check if the Perfetto SDK has been\ninitialized for system-wide tracing in the current process.\n\nThis optimization provides lower overhead and avoids potential SELinux\nissues when triggering from privileged processes like Android\u0027s\nsystem_server, which cannot easily fork-exec the trigger binary.\n\nThe heuristic of checking for *attempted* registration is sufficient for\nthis optimization.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f5faeadaf20d673e6c22d5588564dbb3557a9f6",
      "old_mode": 33188,
      "old_path": "src/android_sdk/java/main/dev/perfetto/sdk/PerfettoTrace.java",
      "new_id": "ffcc5e61f65f30d7af6d80b77b68a85d9ecf437b",
      "new_mode": 33188,
      "new_path": "src/android_sdk/java/main/dev/perfetto/sdk/PerfettoTrace.java"
    }
  ]
}
