0

我有一份报告说我的应用程序会重置某些设备(重新启动)。

我不知道应用程序如何可能重置设备(我不使用管理类,也没有该权限)。该应用程序涉及标准 UI + JNI 调用 + 一些 OpenGL ES 2 渲染。我最好的猜测是 GLSL 着色器吓坏了设备......

当设备重置时,它也会擦除其 LogCat 缓冲区。

关于寻找什么以及在哪里寻找的任何建议?

4

1 回答 1

0

Most likely you are right regarding that it's something using OpenGL. However, there is also some probability that it's something related to JNI (especially, if you are doing something beyond the basic calls).

I think the only way of actions is following:

  • gather info on which devices, OS version it happens
  • get a device to reproduce it or get in touch with a user who can do some testing for you
  • prepare a version which logs to a file (and dont' forget to flush a file after each line of log, else reset will kill a buffered logs)
  • wrap all suspicious places into logs
于 2013-05-10T01:05:01.263 回答