lin
2025-07-30 fcd736bf35fd93b563e9bbf594f2aa7b62028cc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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