查看: 1878|评论: 0
个人博客

[破解逆向] frida android 对话框

admin 2022-08-13 15:10 1878 0
[复制链接]

1417

文章

258

评论

1万

积分

管理员

夏墨独周

积分
10099

论坛元老技术达人

QQ
发表于 2022-8-13 15:10:06 | 显示全部楼层 |阅读模式
  1. Java.use("android.app.AlertDialog$Builder").$new(this)
  2.                 .setTitle(String.$new("Hook tips"))
  3.                 .setMessage(String.$new("Hook success"))
  4.                 .setPositiveButton(String.$new("OK"), null)
  5.                 .show();
复制代码

第二种写法:

  1. function showDialog(activityContext: Java.Wrapper, message: string | Java.Wrapper) {
  2.     if(Process.platform == "linux" && Java.available){
  3.         Java.scheduleOnMainThread(function() {
  4.             const AlertDialogBuilder = Java.use("android.app.AlertDialog$Builder");
  5.             const JavaString = Java.use("java.lang.String");
  6.             const builder = AlertDialogBuilder.$new(activityContext);
  7.             const s = JavaString.$new(message);
  8.             builder.setMessage(s);
  9.             builder.create().show();
  10.         });
  11.     }
  12. }
复制代码


来源:易游模拟器(QQ:207621422),转载请注明出处!
您需要登录后才可以评论 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|易游网-易游模拟器 Copyright @2015-2026 ( 浙ICP备15028007号-1 )

GMT+8, 2026-10-3 16:59 , Processed in 0.041656 second(s), 10 queries , Gzip On, MemCache On.

© 2026 易游网-易游模拟器 Copyright @2015-2026

快速评论 返回顶部 返回列表