I ended up writing an app that sleeps forevern in an event handling function. Whenever I need to dump stacks, I just run this app and then adb pull /data/and/traces.txt
On Aug 4, 12:31 pm, "[email protected]" <[email protected]> wrote: > Hello, > > We have a service that seem to get deadlocked very occasionally in the > field. It's not possible to hook up to a debugger. We can detect the > deadlock situation programmatically. Is it possible to do this from > within Java code? > > if (ohIamDeadlocked()) { > Thread.something.dumpStacksOfAllThreads(); > } > > If this is not possible, is there an adb command that could do it? > > I tried "adb dumpsys" but it doesn't print any stack information. > > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

