Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87a9fe17 authored by San Mehat's avatar San Mehat Committed by Android Git Automerger
Browse files

am 9b158910: am bd3f7ded: Merge change 22836 into eclair

Merge commit '9b158910'

* commit '9b158910':
  rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
parents 2d534e4d 9b158910
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -91,6 +91,17 @@ loglevel 3
    mkdir /data/app 0771 system system
    mkdir /data/property 0700 root root

    # Collect kernel crash-dump info
    copy /proc/last_console /data/last_console
    chown root system /data/last_console
    copy /proc/last_threads /data/last_threads
    chown root system /data/last_threads
    copy /proc/last_kmsg /data/last_kmsg
    chown root system /data/last_kmsg

    # Free crash resources and re-arm
    write /proc/last_kmsg 1

    # create dalvik-cache and double-check the perms
    mkdir /data/dalvik-cache 0771 system system
    chown system system /data/dalvik-cache