from: 026342771c6642980cb4653b1ec4d857a5d8be54 Bug: 167996145 Change-Id: I2ebf7f019afed1cbe9b60dcd82581bd3a52fe109
17 lines
417 B
Bash
Executable file
17 lines
417 B
Bash
Executable file
#!/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
|