Created
October 10, 2020 12:29
-
-
Save friddle/142cd63dc2479cc9f249e4384a8f68a0 to your computer and use it in GitHub Desktop.
frida-virbration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Author
friddle
commented
Nov 27, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment