debugging a signed apk

旧时模样 提交于 2020-01-03 03:38:10

问题


I am attempting to debug a signed apk running on a real device... and when I say debug, I mean do things like add breakpoints and single step - I don't just mean view the log output.

Looking at other similar questions it appears that I need to display the DDMS view and then somehow attach the debugger to the process, but I am confused for two reasons.

  1. I can not see a list of processes under my real device (though I do see a list of processes if I start up an emulator). [this bit now solved - see comments]

  2. even if I did have the list of running processes running, how could I set a breakpoint in the source before actually running the app? How could eclipse possibly even know what source corresponds to the apk??

I guess I'm missing something here? Is there a blog article or similar that could guide me through the whole process?

For the record my device is already configured to allow USB debugging and I do see log messages from my signed-apk-app.


回答1:


With the comments I figgered out that you are trying to debug in-app purchase code. For that you don't need to use the real certificate. You could also use the debug certificate. So register the debug certificate and use that debug api key.

So you can debug the app as you already know it.



来源:https://stackoverflow.com/questions/15209048/debugging-a-signed-apk

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