Log
Last Log
In the /sys/fs/pstore directory of the device:
console-ramoops-0: last_log The kernel log started last time, but only the logs with higher priority than the default log level are savedpmsg-ramoops-0: Last user space log, android log
Log is automatically saved
Way one (recommended use)
-
Enable automatic log saving
- Android7.1
Settings-->Developer options-->Android bug collector- Android10/Android11/Android12
Settings-->System-->Developer options-->Android LogSave -
reboot device
-
There are log related files in the
/data/logsdirectory of the device (**Android 10 and above: **/data/vendor/logs)android: system logcatkernel: kernel kmsg
Way two
-
Enable
Enable logging to saveSettings-->Developer options-->Enable logging to save -
reboot device
-
There are log related files in the
/data/media/0/.LOGSAVEdirectory of the devicexxxx_kmsg.log: kernel kmsgxxxx_logcat.log: system logcat
NOTE: Only supports Android 7.1
Way three
-
Enable
Android bug collectorSettings-->Developer options-->Android bug collector -
reboot device
-
There are log related files in the
/data/media/0/rk_logsdirectory of the deviceCOPY-COMPLETEBmeans log has been copiedanrmeans ANR filebugreport.logmeans the bugreport filelogsmeans logcat, kmsg after each bootpstoremeans last_logtombstonesmeans tombstones file
NOTE: Only supports Android 7.1

