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