Ben Gruver
Ben Gruver
I was looking into this a bit this evening, and it looks like there may be a bug in art that is preventing the retrieval of register values containing objects,...
In this case, I think it's simply a bug. There is code in art to try to infer the register type in case the debug information is not there, but...
I'm just planning on investigating and either gathering more info, or hopefully submitting a patch to fix the bug.
See, e.g. https://android.googlesource.com/platform/art/+/e48fd0b4780efadc6b3433fe7a56aa5be2a84325, which is specifically about adding support for this case.
Actually, I just realized - that support was added fairly recently - last year. But it doesn't look like it's in Android 10 (https://android.googlesource.com/platform/art/+/refs/heads/android10-release/openjdkjvmti/ti_method.cc). I'll see if I can do...
I'm afraid this problem has nothing to do with smalidea :). This is related to IDEA's generic java debugging functionality. Did you open ddms/android monitor and select the process to...
In order to debug a process, either the device must be debuggable (ro.debuggable=true), or the app itself must be debuggable ( in the application's manifest)
Also, If you don't have a debuggable device handy, you can use the Android emulator instead.
You don't need to be able to run the application. In fact, I don't know of a way to set things up that allows you to run it from android...
Just run the app. open the app drawer and tap on the app icon, or whatever :)