Great video! Hi sir. Thanks for this great informational video. There is one small issue I am having. I don't see any processes in adb jdwp in Android 14. But it works fine in Android 13. Is there any changes that I maybe missing.
Yes, this changed in AOSP 14. Previously, on userdebug and eng builds all apps were created with a JDWP thread by default. Now you have to explicitly enable it by setting property persist.debug.dalvik.vm.jdwp.enabled to 1, e.g. by typing: $ adb shell setprop persist.debug.dalvik.vm.jdwp.enabled 1 $ adb reboot
@@chrissimmonds hi.. thanks for the update. It worked fine. Although is there a way to get more logs in jdb? Like more information about how it reached to the breakpoint
Great question: we covered this in the July 2022 meetup talk "Debugging native platform code using LLDB". Slides: 2net.co.uk/slides/aosp-aaos-meetup/2022-july-native-debug.pdf. Video: czcams.com/video/HcuCD7nXeaI/video.html
Great video!
Hi sir. Thanks for this great informational video. There is one small issue I am having. I don't see any processes in adb jdwp in Android 14. But it works fine in Android 13.
Is there any changes that I maybe missing.
Yes, this changed in AOSP 14. Previously, on userdebug and eng builds all apps were created with a JDWP thread by default. Now you have to explicitly enable it by setting property persist.debug.dalvik.vm.jdwp.enabled to 1, e.g. by typing:
$ adb shell setprop persist.debug.dalvik.vm.jdwp.enabled 1
$ adb reboot
@@chrissimmonds hi.. thanks for the update. It worked fine. Although is there a way to get more logs in jdb? Like more information about how it reached to the breakpoint
As AOSP has lots of C/C++ code, how would one debug those? I assume using JDB for debugging C/C++ code won't work?
Great question: we covered this in the July 2022 meetup talk "Debugging native platform code using LLDB". Slides: 2net.co.uk/slides/aosp-aaos-meetup/2022-july-native-debug.pdf. Video: czcams.com/video/HcuCD7nXeaI/video.html
@@chrissimmondsThank you for the links and this video as well. Exactly what I was looking for.