调试签署的apk [英] debugging a signed apk

查看:140
本文介绍了调试签署的apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图调试一个真正的设备上运行的签署APK ......当我说调试,我的意思是不喜欢的东西添加断点,单步 - 我并不仅仅意味着查看日志输出

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.

望着看来我需要显示DDMS视图,然后以某种方式调试器附加到进程中的其他类似的问题,但我感到困惑的原因有两个。

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. 我看不到的进程列表下我的真实设备(虽然我看到的进程列表,如果我启动模拟器)。 [此位,现在解决了 - 看评论]

即使我确实有正在运行的进程在运行列表中,我怎么能设置在源断点之前实际运行的应用程序?怎么会蚀甚至可能知道什么是源对应的apk ??

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?

有关记录我的设备已经被配置为允许USB调试,我也​​看到我的签署,APK应用日志消息。

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

推荐答案

通过我figgered了,你正试图调试应用程序内购买code的意见。对于您不需要使用真正的证书。你也可以使用调试证书。因此,注册调试证书并使用它的调试的API密钥。

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.

这篇关于调试签署的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆