Skip to content

Instantly share code, notes, and snippets.

@friddle
Created October 10, 2020 12:29
Show Gist options
  • Save friddle/142cd63dc2479cc9f249e4384a8f68a0 to your computer and use it in GitHub Desktop.
Save friddle/142cd63dc2479cc9f249e4384a8f68a0 to your computer and use it in GitHub Desktop.
frida-virbration
function virbration()
{
Java.perform(function () {
var Vibrate = Java.use("android.os.Vibrator");
Java.scheduleOnMainThread(function() {
var activity=Java.use("android.app.ActivityThread").currentApplication().getApplicationContext();
var wVibrate=Java.cast(activity.getSystemService('vibrator'),Vibrate)
console.log(wVibrate)
wVibrate.vibrate(1000)
});
});}
setTimeout(test,1000)
@friddle
Copy link
Author

friddle commented Nov 27, 2020

rHttpServiceMethod.invoke.overload("[Ljava.lang.Object;").implementation=function (classes_) {
    let params_text=",";
    for(var s_class of classes_)
    {
        params_text=params_text+","+json_output(s_class)
    }
    var result=this.invoke.overload("[Ljava.lang.Object;").call(this,classes_)
    console.log("invoke_params:"+params_text)
    console.log("invoke_result"+json_output(result))
    return result
};``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment