I'm interested in security stuff and I want to start with Android devices to test this OS. I've seen that there are many exploits for Android (the most famous is the StageFright case) and I'm also curious to start developing something like that. I know how memory works and I've got much experience in Linux exploitation techniques (both buffer and heap stuff).
Of course I've got some questions about Android basics and tools.
I' ve already downloaded the AOSP so I can read the source code without problem. So the static analysis can be done easily and I don't need something like IDA or BinaryNinja like in Linux to analyze code.
But what about dynamic analysis/debug systems? In linux I use GDB to check the heap layout or buffer status or register conditions and so on..
But how can I debug system stuff using GDB? In particular How can I LIVE debug a specific part of the AOSP code?