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

Add known UiModeManager memory leak from Android OS #2633

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Add known UiModeManager memory leak from Android OS #2633

merged 1 commit into from
Feb 17, 2024

Conversation

EpicDima
Copy link
Contributor

Fixes #2559

Fixed in Android 14.0.0_r16: https://cs.android.com/android/_/android/platform/frameworks/base/+/2bc364179327022d0f60224a1f2420349074c5d2
""".trimIndent()
) {
sdkInt == 34
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for this, however for these stub leaks we typically reference them as a global native ref to the instance directly, because the core issue is with stubs sticking around in memory long after they're needed, and that way any reference from the stub to elsewhere is also included in this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the explanation)
If I understood correctly, then we should refer in this case to android.app.UiModeManager$1 using the nativeGlobalVariableLeak method

@pyricau pyricau merged commit b5e059c into square:main Feb 17, 2024
9 checks passed
@pyricau
Copy link
Member

pyricau commented Feb 17, 2024

Thx!

@EpicDima EpicDima deleted the epicdima/add_to_ignored_UiModeManager_context_leak branch February 17, 2024 17:05
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.

UiModeManager has a memory leak in Android U
2 participants