Skip to content

perfetto: filter app registration in Perfetto Java SDK - #7341

Open
parthsane wants to merge 1 commit into
mainfrom
dev/parthsane/add_filter_for_register
Open

perfetto: filter app registration in Perfetto Java SDK#7341
parthsane wants to merge 1 commit into
mainfrom
dev/parthsane/add_filter_for_register

Conversation

@parthsane

Copy link
Copy Markdown
Contributor

Filter which Android apps can connect to the system tracing backend (traced) when registering via PerfettoTrace.register(). Only allowlisted apps (com.google.android.youtube,
com.google.android.googlequicksearchbox, and system_server) or apps with persist.debug.perfetto.sdk_enable_tracing_all_apps set to "1" are allowed to register.

Registration using the in-process backend (isBackendInProcess=true) and registration on host environments remain unconditionally enabled.

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Filter which Android apps can connect to the system tracing backend
(traced) when registering via PerfettoTrace.register(). Only allowlisted
apps (com.google.android.youtube,
com.google.android.googlequicksearchbox, com.android.systemui, and
system_server) or apps with
persist.debug.perfetto.sdk_enable_tracing_all_apps set to "1"
are allowed to register.

Registration using the in-process backend (isBackendInProcess=true) and
registration on host environments remain unconditionally enabled.
@parthsane
parthsane force-pushed the dev/parthsane/add_filter_for_register branch from 75cd9a7 to e00c980 Compare September 4, 2026 15:55
@parthsane
parthsane marked this pull request as ready for review September 4, 2026 15:55
@parthsane
parthsane requested a review from a team as a code owner September 4, 2026 15:55
@parthsane
parthsane requested a review from zezeozue September 4, 2026 15:55
void dev_perfetto_sdk_PerfettoTrace_register(JNIEnv*,
jclass,
bool is_backend_in_process) {
if (!IsAppRegistrationAllowed(is_backend_in_process)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just do this in java?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants