'Can Xposed be used to intercept calls to native code?
Referring the Frida tutorial.
public class MainActivity extends AppCompatActivity {
static {
System.loadLibrary("native-lib");
}
public native int Jniint();
In the tutorial Frida is used to intercept the call to the JNI method Jniint()
.
Activity.Jniint.implementation = function () {
// console.log is used to report information back to us
console.log("Inside Jniint now...");
// return this number of our choice
return 80085
};
I know Xposed can be used to hook Java methods and not native code, but is it also allowed to intercept calls to native methods (using findAndHookMethod
) like Frida so that it can block any actual native code from an app to be executed and just return dummy result ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|