Originally Posted by andreas123lb
thanks ,according to your link soo the comand is cat/proc/last_kmsg, and to write the comand in terminal emulator sir?
if you're running a newer version of Android/kernel that location has changed as mentioned further down the linked thread).
So if that file doesn't exist then use:
Note that the files won't exist unless you had a kernel panic causing an unexpected shutdown.
If you're rooted with Magisk the linked post contains a Magisk Module which will automatically retrieve the ramoops file and copy it to /sdcard
If you're creating last_kmsg instead then you'll have to modify the service.sh script. Exact location is in the post.