Hello, On Saturday, May 7, 2011 4:10:55 PM UTC+2, Jeje wrote: > > Hi, > > I would like to know the tools which enables to debug the application > framework layer on a target. Indeed, I would like to be able to > follow > each step when an application is launched for instance (not using the > logCat but using java code, with the possibility to put > breakpoint ...) and I would like to modify the components of the > application framework layer, such Package Manager, Telephony > manager, ... I 'm using Eclipse for application debug, but is it > possible and how to do previous describing tasks thanks Eclipse > (Application Framework debug, ...)? >
While I did not actually do it (yet) your first would need to import the code into eclipse. You can try and follow http://source.android.com/source/using-eclipse.html you millage will vary(I usually have to remove many source path items). After that you also need to add a debugable flag to your framework.apk (eg.android:debuggable="true") in the AndroidManifest found if (frameworks/base/core/res/AndroidManifest.xml) Once that is done you should simply be able to select the system_server process to debug using DDMS. This should allow you to debug the system server. If you want to debug the launching of application things will get even more complicated. Starting a new process (Activity or Service) will require involve at least two processes.System_server(package manager and activity manager) and zygote that will fork. When debugging separate processes (that are not part of the system server) things are more easy are you don't need to import all the source code. If you know more about debugging It would be great to share it. Are you planning on modifying the Android code? Greetings -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
