I have found that there is method named b(String str) of an app by using Jadx-gui now i am using follwing function to get instance of that class where this method is defined :-
Java.perform(function () {
var x ;
Java.choose('xxx.xxx.xxx.g', {
onMatch: function(instance) {
console.log("Found instance" + instance);
x = instance;
},
onComplete: function() {
console.log("search done");
}
});
var str=x.b('hello');
conole.log(str);
But it shows me this error:-