SHARE
TWEET

Untitled

a guest Aug 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public final int getState(@NotNull String str, int i) {
  2.     Intrinsics.checkParameterIsNotNull(str, "key");
  3.     return PreferenceManager.getDefaultSharedPreferences(this).getInt(str, i);
  4. }
  5.      
  6. var myapp= Java.use('com.myapp.AppActivity');
  7. myapp.cleanUi.overload().implementation = function () {
  8.     console.log('! Intercepted cleanUi');
  9. }
  10.      
  11. {'type': 'error', 'description': "Error: getState(): specified argument types do not match any of:
  12.         .overload('java.lang.String', 'java.lang.String')
  13.         .overload('java.lang.String', 'float')
  14.         .overload('java.lang.String', 'int')", 'stack': "Error: getState(): specified argument types do not match any of:
  15.         .overload('java.lang.String', 'java.lang.String')
  16.         .overload('java.lang.String', 'float')
  17.         .overload('java.lang.String', 'int')
  18.     at throwOverloadError (frida/node_modules/frida-java/lib/class-factory.js:2233)
  19.     at frida/node_modules/frida-java/lib/class-factory.js:1422
  20.     at [anon] (/script1.js:25)
  21.     at frida/node_modules/frida-java/lib/vm.js:42
  22.     at M (frida/node_modules/frida-java/index.js:347)
  23.     at frida/node_modules/frida-java/index.js:299
  24.     at frida/node_modules/frida-java/lib/vm.js:42
  25.     at frida/node_modules/frida-java/index.js:279
  26.     at /script1.js:82", 'fileName': 'frida/node_modules/frida-java/lib/class-factory.js', 'lineNumber': 2233, 'columnNumber': 1}
  27.      
  28. myapp.getState.overload('java.lang.String', 'int').implementation = function (str, myint) {
  29.     console.log('! Intercepted getState');
  30.     return 100;
  31. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top