简体   繁体   English

将frida附加到已暂停的应用程序启动(等待调试)

[英]Attach a frida on a paused app startup (waiting for debug)

I'm try to attach a frida script to a paused process on an Android emulator. 我尝试将frida脚本附加到Android模拟器上已暂停的进程。 I followed those steps: 我遵循了以下步骤:

  • Android EMU: ro.debuggable=1 Android EMU:ro.debuggable = 1
  • Android EMU: on developer options I set "Waiting for debugger" and select my app on "Select app for debug" list Android EMU:在开发人员选项上,我设置“等待调试器”,然后在“选择要调试的应用程序”列表上选择我的应用程序
  • Create a frida script where I just call console.log("Attached to process") 创建一个frida脚本,在这里我只调用console.log(“ Attached to process”)
  • Start AndroidStudio 3.1 and Attach to a process (via ADB) 启动AndroidStudio 3.1并附加到进程(通过ADB)

Well, I start the frida script, the app spawn and wait for a debugger attach, then I attach to it with Android Studio. 好吧,我启动了frida脚本,生成了应用程序并等待调试器附加,然后使用Android Studio附加了该脚本。 I attach successful with Android Studio but frida script remain freezed without showing the message on console. 我成功连接了Android Studio,但frida脚本保持冻结状态,而未在控制台上显示该消息。

It's a problem on android emulator? 在Android模拟器上有问题吗?

实际上,我只是在Frida + Android Emulator中发现了一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM