2023 AOSP and AAOS July Meetup: Debugging AOSP using Android Studio - revisited

Sdílet
Vložit
  • čas přidán 28. 08. 2024

Komentáře • 6

  • @priyanshu.x
    @priyanshu.x Před 6 měsíci

    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.

    • @chrissimmonds
      @chrissimmonds  Před 6 měsíci +1

      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

    • @priyanshu.x
      @priyanshu.x Před 6 měsíci

      @@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

  • @damamazaway
    @damamazaway Před 10 měsíci

    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?

    • @chrissimmonds
      @chrissimmonds  Před 10 měsíci +1

      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

    • @damamazaway
      @damamazaway Před 10 měsíci

      @@chrissimmondsThank you for the links and this video as well. Exactly what I was looking for.