user2275410
user2275410

Reputation: 80

Debugging with AOSP

I am new to Android system source code. My issue is that while debugging using Android Studio, the control goes to the wrong location in the source file while I step into it, i.e., it goes elsewhere in the source file, not to the method it should have stepped into. I know this issue sounds really silly, but has anyone else encountered it?

Also do you have any recommendations on how I would go about learning how the control flows within the Android system? I could not find many blogs on this topic (nor many questions and answers on StackOverflow about this either), and the Android documentation is not really helpful. I did download and build AOSP, but not sure where to go from there. Any pointers would be helpful!

Thank you in advance.

Upvotes: 0

Views: 3513

Answers (2)

videoguy
videoguy

Reputation: 1898

Debugging android framework libraries or native applications like surfaceflinger is tricky. The documentation on android site leaves lot of details to imagination.

Please start with Debugging Android Framework applications link to understand how to organize your source code, eclipse setup etc. The other articles on that site go into debugging of native applications as well as native libs loaded by Java applications. I suggest start there to save yourself lot of time.

Upvotes: 1

Bhagirathsinh Gohil
Bhagirathsinh Gohil

Reputation: 673

For Android open source project you can see this link https://source.android.com/source/downloading.html

For Access online source you can see this link http://androidxref.com/ it is very good for explore ASOP.

I am Embedded android developer . you can ask me any question related to ASOP on stackoverflow.

Upvotes: 0

Related Questions