Skip to content

Commit

Permalink
Adding more Samsung leaks (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau authored Aug 12, 2019
1 parent 3774fbc commit 81b821e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions shark-android/src/main/java/shark/AndroidReferenceMatchers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,15 @@ enum class AndroidReferenceMatchers {
) {
manufacturer == SAMSUNG && sdkInt == 23
}
references += instanceFieldLeak(
"android.sec.clipboard.ClipboardExManager", "mPersonaManager",
description = "android.sec.clipboard.ClipboardExManager\$IClipboardDataPasteEventImpl\$1" +
" is a native callback that holds IClipboardDataPasteEventImpl which holds" +
" ClipboardExManager which holds PersonaManager which has a destroyed activity as" +
" mContext"
) {
manufacturer == SAMSUNG && sdkInt == 23
}
references += instanceFieldLeak(
"android.widget.TextView\$IClipboardDataPasteEventImpl", "this\$0",
description = "TextView\$IClipboardDataPasteEventImpl\$1 is held by a native ref, and" +
Expand Down Expand Up @@ -874,6 +883,20 @@ enum class AndroidReferenceMatchers {
}
},

STATIC_MTARGET_VIEW {
override fun add(
references: MutableList<ReferenceMatcher>
) {
references += staticFieldLeak(
"android.widget.TextView", "mTargetView",
description =
"Samsung added a static mTargetView field to TextView which holds on to detached views."
) {
manufacturer == SAMSUNG && sdkInt == 27
}
}
},

// OTHER MANUFACTURERS

GESTURE_BOOST_MANAGER {
Expand Down

0 comments on commit 81b821e

Please sign in to comment.