简体   繁体   中英

How can i debug adbd on android?

adbd is the daemon process running on the device. After a long time running, I found adbd may receive a sigsegv signal, but this will not be logged in logcat. I have try to make the static libs shared libs, but that does not help.

Is there anyway to debug adbd?

I have found out that.

Jut copy what debugger.c does to adbd, after receive the signal, just make a socket connect to the debuggerd, and tell it your pid, and it will track you error stack. Then in the logcat, you can find the error.

But I am really intersted how the orignal developers debug adbd ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM