Skip to main content
13 votes
Accepted

How can I enable last_kmsg?

Back in 2012, /proc/last_kmsg (1) used to be a dump of kernel console messages, exported after reboots by Android's ram_console functionality (CONFIG_ANDROID_RAM_CONSOLE), which used persistent_ram (...
Irfan Latif's user avatar
  • 20.7k
10 votes

How to get current (foreground) activity name?

Using apps: Current Activity and some similar apps will display the info in the form of floating texts above the screen content. Using adb (from your PC): dumpsys window windows | grep -E '...
Andy Yan's user avatar
  • 9,539
10 votes

How can I view and examine the Android log?

A method without root, that works even with new Android versions: Prerequisites: Linux, Windows or Mac USB cable for your device Android Device Instructions: Install your device driver for using ...
Nicolas Raoul's user avatar
9 votes
Accepted

How can I know if fstrim was run when I put my phone on charging over night?

A charging, idle device over night is not the only way to run fstrim, there are other ways, too. Quoting from this old article about scheduled fstrim on Android: The Android framework will send out a ...
Irfan Latif's user avatar
  • 20.7k
8 votes
Accepted

Why reading permission to /proc/1/maps is denied and why doesn't the denial appear in logcat?

REASON 1: Apart from traditional Discretionary Access Control (DAC), - that makes use of *NIX owner/group/mode of processes/files to allow/deny access - Android implements several other access ...
Irfan Latif's user avatar
  • 20.7k
8 votes
Accepted

Wi-Fi Verbose logging fields

The Android source code is available online. Your log line appears to be from: WifiStateMachine.java specifically String getLogRecString(Message msg) Around line 2196, the string output starts looking ...
Morrison Chang's user avatar
6 votes
Accepted

How to store 'adb devices -l' output to a text file?

You can use > after any command followed by file name or file path where you want to save the file. It would look like this: adb devices -l > FILE_NAME
Firelord's user avatar
  • 25.2k
6 votes

How do I increase the size of logcat buffers?

Starting with Android 5, the in-kernel logger driver is deprecated which exposed the ring buffers through /dev/log/* character devices. Instead a userspace logging daemon named logd manages buffers “...
Irfan Latif's user avatar
  • 20.7k
6 votes
Accepted

How to get installation log (either from adb install or manual install)

Sometimes errors are getting lost when using adb. Effectively adb install does nothing more than uploading the apk file to the the device and then executing the command pm install <file.apk>. ...
Robert's user avatar
  • 20.7k
6 votes

Is it possible to somehow understand from the logs what happened to the phone a month ago? Are there such logs?

Here is some ADB commands that can help: Dump each app and it data usage for package in $(pm list packages | cut -f2 -d":"); do echo $package; pm dump $package | grep "Mobile network&...
St0rm's user avatar
  • 816
5 votes

Writing to /dev/log/main from command line

Write the following in terminal (replace 123456789 with the device serial number/id): adb -s 123456789 shell log -t "TAG" "MESSAGE"
ledwinder96's user avatar
5 votes

Identify the source process and/or app from an output in the logcat

Logcat can show the process ID (PID) that outputs the log message. For command-line: adb logcat will use threadtime by default, which shows the PID For Android Studio: Open the Logcat window From ...
Andrew T.'s user avatar
  • 16.2k
5 votes

Is it possible to somehow understand from the logs what happened to the phone a month ago? Are there such logs?

Unfortunately Android does not maintain any persistent long-term log files by default. There are some log buffers available that can be read via adb logcat. However the logs logcat can display to you ...
Robert's user avatar
  • 20.7k
4 votes
Accepted

ConnectivityExtension: ConnectivityExt jar file not present

After some searching around, it turns out ConnectivityExt is a proprietary Qualcomm file (source - you can see that it is included in the proprietary-files.txt in LineageOS), related to the Qualcomm ...
SSS's user avatar
  • 499
4 votes

Dropbox app not installed, but there is log activity in /data/system/dropbox

As already answered, what you find in this folder are logs for events or crashes of the Android system. You could open those with a text editor and try to figure things out. All can be safely deleted, ...
Ju Tutt's user avatar
  • 514
4 votes
Accepted

Retrieve stored logger data (Android Oreo or Pie, maybe even higher)

logd is the logging daemon on Android which mainly covers the functionality of its desktop counterpart syslogd, but also includes klogd and partially auditd to get logs from SELinux subsystem of ...
Irfan Latif's user avatar
  • 20.7k
3 votes

How to get current (foreground) activity name?

To add to @AndyYan's answer, you can also use a terminal emulator app, if you don't have a computer but have root privileges. In this case, execute su first. Then, to dump the focused activity, the ...
Grimoire's user avatar
  • 2,959
3 votes

Access Android log files for specific periods on android 7

Android does not store the output of logcat in flash memory. Instead logcat uses a ring buffer in RAM of usually 64KB up to 4MB (depends on what is configured). RAM is much faster than flash memory ...
Robert's user avatar
  • 20.7k
3 votes
Accepted

How to log errors when using adb pull?

If you want to execute an adb pull comand and at the same time monitor the on-device log via adb logcat you can do so by executing each command individually in it's own terminal/cmd.exe instance. adb ...
Robert's user avatar
  • 20.7k
3 votes
Accepted

How can I see the history log of system updates?

Most OEM doesn't keep a log of that on your device, but the recovery (a place for installing OTA updates) does keep a log of what you installed, when you wiped data, etc. That log should be in /cache/...
Tipz Team's user avatar
  • 173
3 votes

Is it possible to somehow understand from the logs what happened to the phone a month ago? Are there such logs?

No. It's not possible to use native Android logging to definitively say that your phone was not compromised when it was out of your physical control for a month. If a device is out of your physical ...
user3067860's user avatar
2 votes

Getting to the bottom of excessive logs?

The D/ entries show the log level is set to "DEBUG" – which of course generates quite a lot of logging, and shouldn't be necessary for "production use" (though it's quite helpful if you want to debug ...
Izzy's user avatar
  • 91.2k
2 votes

timestamp for when an app last used a permission?

XPrivacy shows timestamp for various permissions accessed by app - requires root Picture below: Screenshots (click images for larger variants) Call it via the 3-dots-menu (upper right corner), ...
beeshyams's user avatar
  • 41.1k
2 votes

Listing all android processes from PC

Logcat records info, warning and other stuff thrown by apps when necessary - it doesn't explicitly tell you what processes are running. If the list is what you want, use the classic Linux command top....
Andy Yan's user avatar
  • 9,539
2 votes
Accepted

Log with timing of system events (e,g, Flight Mode on/off)

You can use adb for this. Run this command: adb shell dumpsys activity broadcasts The output would be overwhelming, but you need to look for the string android.intent.action.AIRPLANE_MODE there. ...
Firelord's user avatar
  • 25.2k
2 votes

How to disable "logd" logging?

stop logd or setprop ctl.stop logd makes logcat completely unavailable (which may break some apps/daemons) and isn't persistent across reboots. For permanently removing logd you need to delete /system/...
Irfan Latif's user avatar
  • 20.7k
2 votes
Accepted

How to prevent unwanted DBG_FMMDM spam from filling up your logcat buffers

Yes, I have seen this before. It is a security feature and it is coming from Samsungs Find My Mobile {FMM}(com.samsung.android.fmm). Samsungs version of Google's Find My Device. It is located at: ...
Bo Lawson's user avatar
  • 2,598
2 votes

Analyzing boot loop Root cause from console-ramoops-0 ( & logcat)

If you run stock firmware and it's bootlooping, there's really not much that you can do because you don't have source code to the firmware you're running. Your boot log seems to have a couple of ...
Mikko Rantalainen's user avatar
1 vote

Phone/Text/Contact History?

No. It doesn't. They are not backed up like apps,settings and call history. Only on Pixel phones SMSes are backed up. There is a possibility though - If she had called that person and if backup was ...
beeshyams's user avatar
  • 41.1k

Only top scored, non community-wiki answers of a minimum length are eligible