How to debug remote AIDL service in Android?

醉酒当歌 提交于 2019-12-05 18:41:12

It's a while since I tried this, but from memory I think what I did was :

I set the breakpoints in the source, started the app which used the remote service, then went to the DDMS perspective and selected the process corresponding to the service. Then clicked on the little green bug icon which enabled the breakpoints to trigger.

sbuslovsky

Put this android.os.Debug.waitForDebugger() in onCreate() of the service and put a break point to a line below. Then in AS press "Attach debugger to Android Process" and double click on the service process to be debugged. New debug session will be created.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!