Error: can't decode byte 0xc0 in position 18
var toString = StringBuilder.toString;
toString.implementation = function () {
var result = toString.call(this);
console.log('StringBuilder.toString(); => ' + result);
return result;
};
when i use frida hook toString, Error: can't decode byte 0xc0 in position 18,guess ◈ ❂ in string,how to fix?
A test-case in frida-java-bridge would be amazing.
But before that I'd recommend doing some exploratory testing by setting up a local playground like this.
I have the same issue. Guess the UTF-16 to UTF-8 conversion is not working here. Here is a backtrace with line numbers using Frida Server 12.8.20 on Android arm64.
Error: can't decode byte 0xc0 in position 19
at frida/runtime/core.js:144
at frida/node_modules/frida-java-bridge/lib/env.js:588
at frida/node_modules/frida-java-bridge/lib/types.js:243
at frida/node_modules/frida-java-bridge/lib/class-factory.js:1556
at /myscript.js:270
at we (frida/node_modules/frida-java-bridge/lib/class-factory.js:1626)
at frida/node_modules/frida-java-bridge/lib/class-factory.js:1581
I have the same issue. Guess the UTF-16 to UTF-8 conversion is not working here. Here is a backtrace with line numbers using Frida Server 12.8.20 on Android arm64.
Error: can't decode byte 0xc0 in position 19 at frida/runtime/core.js:144 at frida/node_modules/frida-java-bridge/lib/env.js:588 at frida/node_modules/frida-java-bridge/lib/types.js:243 at frida/node_modules/frida-java-bridge/lib/class-factory.js:1556 at /myscript.js:270 at we (frida/node_modules/frida-java-bridge/lib/class-factory.js:1626) at frida/node_modules/frida-java-bridge/lib/class-factory.js:1581
Have you solved?
Is this issue resolved as I am also facing a similar issue as Error: can't decode byte 0xcd in position 0?