I’m evaluating Visual GDB for Android using a Samsung Galaxy S4. I can debug fine on an older Android device but am having trouble doing so on the S4. it gives the error:
run-as: Package ‘com.visualgdb.example.AndroidProject2’ is unknown
I looked into it and this is not the 8k bug since Android 4.2.2 already increased the buffer size to 64k. It seems like some Samsung phones have problems using run-as to start debugging processes and there is a workaround. See: http://stackoverflow.com/questions/17219906/run-as-package-a-b-c-is-unknown-galaxy-s4-jellybean
However, I tried modifying the NDK scripts to use the workaround but it doesn’t seem like Visual GDB calls the ndk-gdb scripts at all (Process Monitor confirms this). Is there anyway to customize launching gdbserver so that I could use this workaround and hence debug using an S4?
Thanks.
— Dan