I want to debug an app not started as part of adb session. So it starts up on BOOT_COMPLETED for example and its just running. Anyway to attach to it at this point and get debug info?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Debugging a process is only a matter of the debuggable flag in the app’s manifest. Anything running with debuggable=true can be attached to. You can also DDMS on any such app, read its logs, dump its heap, etc.