I'm interested in learning more about certain Android services (ie: ActivityManager, PackageManager, etc). So, I would like to follow their (java code only for now) execution, place breakpoints, etc. Is this possible either on the emulator or on a target device?
Edit: for instance, some PackageManager (AOSP code) is at services/java/com/android/ server/pm/PackageManagerService.java. I realize this ultimately becomes a thread of system_server.
I have root (in both emulator and on my physical phone) and I think that I should be able to build these services from AOSP source.
I'm happy to work via logs (logfiles, logcat, etc) or via actual debugging tools (gdb, eclipse, etc). What works best? Should I just add log messages to everything or can I somehow hook up an IDE on my PC so I can drill down into elements, look at the stack, etc?
most phone not build from AOSP, and can replace the parts with AOSP built ones. so to use emulator is better.
Good Luck. it is a Big Work for you :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.