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
278 B
Bash
12 lines
278 B
Bash
#!/system/bin/sh
|
|
MODDIR=${0%/*}
|
|
CONFIG_DIR=/data/adb/tricky_store
|
|
|
|
# Kill daemon and supervisor
|
|
for pid in $(pidof TEESimulator) $(pidof supervisor) $(pidof daemon); do
|
|
kill -9 "$pid" 2>/dev/null
|
|
done
|
|
|
|
rm -rf "$CONFIG_DIR/persistent_keys"
|
|
rm -f "$CONFIG_DIR/tee_status.txt"
|