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
19 lines
418 B
Bash
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
|
|
|