• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

修訂21541872c3cdc93e60e18ba496715f8307f990b2 (tree)
時間2009-08-27 08:39:59
作者San Mehat <san@goog...>
CommiterSan Mehat

Log Message

rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources

Signed-off-by: San Mehat <san@google.com>

Change Summary

差異

--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -91,6 +91,17 @@ loglevel 3
9191 mkdir /data/app 0771 system system
9292 mkdir /data/property 0700 root root
9393
94+ # Collect kernel crash-dump info
95+ copy /proc/last_console /data/last_console
96+ chown root system /data/last_console
97+ copy /proc/last_threads /data/last_threads
98+ chown root system /data/last_threads
99+ copy /proc/last_kmsg /data/last_kmsg
100+ chown root system /data/last_kmsg
101+
102+ # Free crash resources and re-arm
103+ write /proc/last_kmsg 1
104+
94105 # create dalvik-cache and double-check the perms
95106 mkdir /data/dalvik-cache 0771 system system
96107 chown system system /data/dalvik-cache