Files
device_google_crosshatch/init.ramoops.sh
Chungjui Fan 771b8a87a6 Add sepolicy for ramoops decryption
87529b3f Ban sharing data between platform and vendor processes
7f78b25a ramoops: remount pstore even if decryption fails
1578aeb9 Add ramoops decryption
3ee4e776 Temporarily whitelisting system domains writing vendor props

Bug: 72662019
Bug: 78155869
Test: Able to decrypt the ramoops in B1 device
Change-Id: I5c934d2db6827cfb4578e5da4f58c20a4614a7a1
2018-06-20 16:22:06 +08:00

19 lines
418 B
Bash

#!/vendor/bin/sh
# Decrypt the keys and write them to the kernel
ramoops -D
if [ $? -eq 0 ]; then
# Pivot (and decrypt)
echo 1 > /sys/devices/virtual/ramoops/pstore/use_alt
else
setprop vendor.ramoops.decryption.error $?
fi
# Trigger remount of pstore regardless of decryption state
setprop vendor.ramoops.decrypted true
# Generate keys (if none exist), and load the keys to carveout
ramoops -g -l -c