Fork-based supervisor ensures the interceptor process survives crashes. pingBinder() liveness check on pre-transact returns DEAD_OBJECT to callers when interceptor is down, preventing real TEE state from leaking during the restart window. action.sh clears persistent key storage via KSU Action button. uninstall.sh kills daemon processes and removes module artifacts while preserving target.txt and keybox configuration.
12 lines
290 B
Bash
12 lines
290 B
Bash
#!/system/bin/sh
|
|
MODDIR=${0%/*}
|
|
CONFIG_DIR=/data/adb/tricky_store
|
|
|
|
if [ -d "$CONFIG_DIR/persistent_keys" ]; then
|
|
rm -rf "$CONFIG_DIR/persistent_keys"
|
|
mkdir -p "$CONFIG_DIR/persistent_keys"
|
|
echo "Persistent key storage cleared"
|
|
else
|
|
echo "No persistent key storage found"
|
|
fi
|