Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPIC] Android Profiling Improvements and Hardening #3679

Open
2 of 3 tasks
markushi opened this issue Sep 4, 2024 · 2 comments
Open
2 of 3 tasks

[EPIC] Android Profiling Improvements and Hardening #3679

markushi opened this issue Sep 4, 2024 · 2 comments

Comments

@markushi
Copy link
Member

markushi commented Sep 4, 2024

Description

This is a meta issue to collect reported issues around Android Profiling and how we can improve profiling overall.

Refer to the individual issues to learn more about the status.

Likely root cause: Third Party code

  1. Platform: Android Platform: Native Sync: Jira Type: Bug
    stefanosiano

Likely root cause: Android Tracer

Likely root cause: Sentry SDK

No tasks being tracked yet.
@stefanosiano
Copy link
Member

stefanosiano commented Sep 16, 2024

I'm thinking about some workarounds that we can do, until it gets fixed (if it gets fixed in older Android versions)
We can add another flag to guard "dangerous" profiles, and here is some idea for such detection:

  • With our Gradle plugin we can check the app code to see if there is any other call to Debug.startMethodTracingSampling and Debug.stopMethodTracing
  • Hook into native implementation and workaround the crashing calls
  • We can detect if a native library is called (via gradle plugin or at runtime if possible)
  • Create a file to check crashes between profile start/stop and disable it on next run
  • Cut out the AOSP profiler and bundle it inside our SDK, changing the abort with a warning

If you have any other workaround, feel free to add a comment with it
The best would be create a custom profiler, but that's a big effort thing

@kahest
Copy link
Member

kahest commented Sep 23, 2024

Update: the two issues that require fixes on ART side have been fixed by Google:

We're still keeping the underlying GH issues open until we get some information/confirmation that the fixes are rolled out with Google System/Security upates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants