Attach gdb to android system service tool.

by chitacan featured
GNU/Linux ◆ xterm-256color ◆ bash 2439 views

If you build AOSP on your machine, you can attach gdb to android system service tool(am, pm, service etc). This is best place to hacking android system service framework.

android system service tool?

Android system service tool is some command line application on android to interact with android system service, such as ActivityManagerService, PackageManagerService, and so on. You can find them /system/bin/.

You can run these tools via adb shell command.

$ adb shell
root@generic:/ # pm list packages

prerequisite

If you want to debug andorid system service tool like this asciicast, you need following stuff or environment.

  • AOSP source and AOSP build environment. (you can easily setup with this project)
  • AOSP build result.

Enjoy!!