debug a native live wallpaper

91 views
Skip to first unread message

Fabien R

unread,
Apr 16, 2013, 12:51:35 PM4/16/13
to andro...@googlegroups.com
Hello,

I want to debug a live wallpaper using C++ native code.

Stopping the debugger in the java code using
android.os.Debug.waitForDebugger(); works.

But ndk-gdb stops because it does not find any activity to start.

Does it mean that gdb cannot attach to the process that is displayed in
DDMS ?

-
Fabien

Fabien R

unread,
Apr 21, 2013, 5:42:25 AM4/21/13
to andro...@googlegroups.com
On 16/04/2013 18:51, Fabien R wrote:
> Hello,
>
> I want to debug a live wallpaper using C++ native code.
>
> Stopping the debugger in the java code using
> android.os.Debug.waitForDebugger(); works.
>
> But ndk-gdb stops because it does not find any activity to start.
I updated the script ndk-gdb so that it extracts the services.
But it is stuck because it can not find the service.

The generated command is:
adb shell am startservice -n <myPackage>/.service.<myService>

Any hint ?
-
Fabien
Reply all
Reply to author
Forward
0 new messages