// Get classconstjava_class=Java.use('com.example.j$R')// Object castconstjava_class_obj=Java.cast(data, java_class)// Get object via constructorconstjava_class_obj=java_class.$new() // ΠΈΠ»ΠΈ java_class.$init()// MethodsJava.enumerateMethods(`com.example.j$R!*/isu`) // Include method signatures (s) and User-defined classes only, ignoring system classes. (u) and case sensitive (i)// All Fields and Methods namesObject.getOwnPropertyNames(java_class)Object.getOwnPropertyNames(java_class_obj)
ΠΡΠ²Π΅ΡΡΠΈ array ΠΊΠ°ΠΊ hex-ΡΡΡΠΎΠΊΡ: byte[3412341241]:constret=this.fn();constbuffer=Java.array('byte', ret);console.log(buffer.length);constresult="";for(let i =0; i <buffer.length; ++i){ result += ('0'+ (buffer[i] &0xff).toString(16)).slice(-2);}console.log(result);
functionArray2String(arr) {let buffer =Java.array('byte', arr)let result =""for(let i =0; i <buffer.length; ++i){ result += (String.fromCharCode(buffer[i] &0xff)); // here!! }return result}