Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture Modem Radio Log in Android

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

like image 564
Mustafa Mohammadi Avatar asked Sep 01 '16 11:09

Mustafa Mohammadi


People also ask

How do I get the radio log on my Android phone?

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

How to use logcat command line tool in Android?

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. ...

How do I view device log output using adb?

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.

How to collect logs on Android devices?

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.


1 Answers

Use below command on terminal or console after adb device connection.

adb logcat -b radio

like image 131
Sourabh Tejraj Avatar answered Sep 19 '22 20:09

Sourabh Tejraj