image.png

    1. function test(){
    2. Java.perform(function () {
    3. var current_application = Java.use('android.app.ActivityThread').currentApplication();
    4. var context = current_application.getApplicationContext();
    5. var path = Java.use("android.content.ContextWrapper").$new(context).getExternalFilesDir("Download").toString()
    6. console.log(path);
    7. var ios = new File(path + "/dudu666.txt", "w");
    8. ios.write("dudu666 is very very good!!!\n");
    9. ios.flush();
    10. ios.close();
    11. })};
    12. setImmediate(function(){
    13. setTimeout(test(), 5000);
    14. });