Hi everyone,
I planed to run syzkaller on an android phone using adb for testing kernel drivers (ioctls).
However, I don't have this kind of JTAG device.
I wonder if it is possible to just read kernel log via adb, for example, adb shell 'cat /dev/kmsg' and make syzkaller fully functioned.
I am not familiar with golang.
Please kindly let me know if I am wrong about the following.
According to my understanding of codes, the console operation is defined vm/adb/console.go and vm/adb/adb.go
During syzkaller inits, a console device must be found in findConsole function (adb.go).
For each time of test program execution, the console device is opened, read output into merger, and then close (console.go).
It looks like the above operations could be totally replaced with adb operation.
During init, findConsole check if device is ready via adb shell.
For each time of test program execution, run 'adb shell cat /dev/kmsg', read the output, and kill the adb client as close.
Maybe you guys have better ideas to solve my problem.
Please let me know.
Thanks,
Han