Simple Android Toast

by
4 views b695000e...

Description

Simple Script to make Android Toast works with Remote + Non-Rooted Device

How to Use

Download the script and run it with Frida CLI:

Download Script

Then run with Frida:

frida -U -f YOUR_PACKAGE_NAME -l simple-android-toast.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
/* 
   Simple Android Toast
   https://www.yodiw.com/frida-android-make-toast-non-rooted-device/
*/

Java.perform(function() {
    var context = Java.use('android.app.ActivityThread').currentApplication().getApplicationContext();

    Java.scheduleOnMainThread(function() {
        var toast = Java.use("android.widget.Toast");
        toast.makeText(context, Java.use("java.lang.String").$new("This is works!"), 1).show();
    });

});
Share this script:
Twitter LinkedIn

Comments

Login or Sign up to leave a comment.
Loading comments...