Skip to content

Instantly share code, notes, and snippets.

@segura2010
Created September 12, 2016 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save segura2010/3d51bef4a64e4802384ab6eec96fd303 to your computer and use it in GitHub Desktop.
Save segura2010/3d51bef4a64e4802384ab6eec96fd303 to your computer and use it in GitHub Desktop.
Frida script to force compatibility of Samsung Manager app in Android
Java.perform(function () {
// Function to hook is defined here
var HostManagerUtils = Java.use('com.samsung.android.app.twatchmanager.util.HostManagerUtils');
HostManagerUtils.isSupportedInHostDevice.implementation = function (p1) {
var result = this.isSupportedInHostDevice(p1);
console.log("isSupportedInHostDevice return: " + result);
return true;
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment