Add Motorola to OEMs causing a static context leak

This commit is contained in:
Amokrane Chentir
2025-08-04 23:27:54 +02:00
parent 83a8ad486f
commit da99e29507
2 changed files with 4 additions and 1 deletions

View File

@@ -1448,7 +1448,8 @@ enum class AndroidReferenceMatchers : ReferenceMatcher.ListBuilder {
LENOVO,
XIAOMI,
TES,
REALME
REALME,
MOTOROLA
)
references += staticField("android.content.res.ResourcesImpl", "mAppContext").leak(
description = """

View File

@@ -10,6 +10,7 @@ import shark.AndroidReferenceMatcher_XIAMI__RESOURCES_IMPL_Test.Companion.expect
import shark.AndroidReferenceMatchers.Companion.HMD_GLOBAL
import shark.AndroidReferenceMatchers.Companion.INFINIX
import shark.AndroidReferenceMatchers.Companion.LENOVO
import shark.AndroidReferenceMatchers.Companion.MOTOROLA
import shark.AndroidReferenceMatchers.Companion.NVIDIA
import shark.AndroidReferenceMatchers.Companion.XIAOMI
import shark.HprofHeapGraph.Companion.openHeapGraph
@@ -55,6 +56,7 @@ class AndroidReferenceMatcher_XIAMI__RESOURCES_IMPL_Test(
arrayOf(LENOVO, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
arrayOf(INFINIX, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
arrayOf(HMD_GLOBAL, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
arrayOf(MOTOROLA, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
)
}