Classes that override toString with additional arguments break the toString of Frida
yotamN opened this issue · 0 comments
yotamN commented
For example, the class android.icu.text.UTF16
override the toString
method privately with an implementation that requires an integer: https://android.googlesource.com/platform/external/icu/+/2ae1300/android_icu4j/src/main/java/android/icu/text/UTF16.java#2708
The parent method is not find because when we call toString it only iterates on the current class. Of course, we could access the parent but we already have a patch for toString on non instance classes to make it easier: https://github.com/frida/frida-java-bridge/blob/main/lib/class-factory.js#L1402
I think we should do that same for this use case