You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
417 B
18 lines
417 B
4 months ago
|
#!/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
|