Skip to content

Instantly share code, notes, and snippets.

@t4kemyh4nd
Created August 27, 2021 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save t4kemyh4nd/c4d8c595a5fe15ddf607ef58ebe51c69 to your computer and use it in GitHub Desktop.
Save t4kemyh4nd/c4d8c595a5fe15ddf607ef58ebe51c69 to your computer and use it in GitHub Desktop.
Java.perform(function() {
console.log("Starting hook");
var Activity = Java.use("com.xiaomi.music.hybrid.internal.PermissionManager");
Activity.isValid.implementation = function () {
return true;
};
Java.choose("com.xiaomi.music.hybrid.internal.Config", {
onMatch: function(inst) {
console.log("value " + inst.getSignedContent())
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment