I need to capture some information from Modem Radio Log in android but I don't know how to capture it. I searched a lot but nothing found. As I need some information about baseband
in android, I found out that must to capture modem log.
Thanks in advance.
Edit
I found Read logcat programmatically within application for capturing logcat
logs in application
But because it is adb log adb logcat -b radio
I don't know how to capture ADB log in application. As I see in one comment I'm in doubt if it is possible or not.
Thanks
adb logcat -db radio > radio.txt If your device is rooted, you can use the Terminal app on the device itself to collect logs. To save a log using Terminal on your phone, type the following command so the log will be saved on your phone. logcat -d -f /sdcard/logcat.txt
Logcat command-line tool 1 Logging system overview. The Android logging system is a set of structured circular buffers maintained by the system process logd. 2 Command-line syntax. You can run logcat as an adb command or directly in a shell prompt of your emulator or connected device. 3 Filtering log output. ... 4 Logging from code. ...
To view log output using adb, navigate to your SDK platform-tools/ directory and execute: For logcat online help, start a device and then execute: The following table describes the command line options of logcat. Load an alternate log buffer for viewing, such as events or radio. The main, system, and crash buffer set is used by default.
If your device is rooted, you can use the Terminal app on the device itself to collect logs. To save a log using Terminal on your phone, type the following command so the log will be saved on your phone. Logcat Extreme can help you read the logcat and dmesg outputs as well as record logs. It requires root access to show logs properly.
Use below command on terminal or console after adb device connection.
adb logcat -b radio
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With