You can write an application that reads the logcat output on the phone and displays it on the screen and / or saves it to a file that you can pull using adb. The application must be granted READ_LOGS permission, which you can do with adb shell pm grant com.package.appname android.permission.READ_LOGS (at least on the root phone).
Another alternative would be to register Wi-Fi. adb has the ability to connect via TCP / IP, but thatβs not what I tried, so I donβt know how difficult it is to configure or how well it works.
If your magazines are not really detailed, sometimes just launching your USB accessory and then disconnecting the accessory and connecting the phone to the computer to catch the logarithm output. Logs are buffered to a certain size, so you can get a reasonable amount of logs using this method.
Michael
source share