Home | History | Annotate | Download | only in crosshatch
      1 #!/vendor/bin/sh
      2 
      3 # Decrypt the keys and write them to the kernel
      4 ramoops -D
      5 
      6 if [ $? -eq 0 ]; then
      7     # Pivot (and decrypt)
      8     echo 1 > /sys/devices/virtual/ramoops/pstore/use_alt
      9 else
     10     setprop vendor.ramoops.decryption.error $?
     11 fi
     12 
     13 # Trigger remount of pstore regardless of decryption state
     14 setprop vendor.ramoops.decrypted true
     15 
     16 # Generate keys (if none exist), and load the keys to carveout
     17 ramoops -g -l -c
     18 
     19