Is there a way to access a parent of a parent field via kotlin reflection without relying on kotlin reflect?
Copy code
javaClass.superclass.
works for the 1st level parent but
Copy code
javaClass.superclass.javaClass.superclass.
Does not for the second one 😞
r
Ruckus
06/03/2022, 3:06 PM
Shouldn't that just be
javaClass.superClass.superClass
?
t
Tolriq
06/03/2022, 3:15 PM
Actually no but I found my main issue Google that prevent reflection on that field 😞
Accessing hidden field Landroid/widget/TextView$CharWrapper;->mChars:[C (max-target-o, reflection, denied)