chore(module): add co-author credit, verbose action output, point updates to fork
This commit is contained in:
+20
-2
@@ -2,10 +2,28 @@
|
|||||||
MODDIR=${0%/*}
|
MODDIR=${0%/*}
|
||||||
CONFIG_DIR=/data/adb/tricky_store
|
CONFIG_DIR=/data/adb/tricky_store
|
||||||
|
|
||||||
|
echo "============================================"
|
||||||
|
echo " TEESimulator — Key Storage Maintenance"
|
||||||
|
echo "============================================"
|
||||||
|
echo ""
|
||||||
|
|
||||||
if [ -d "$CONFIG_DIR/persistent_keys" ]; then
|
if [ -d "$CONFIG_DIR/persistent_keys" ]; then
|
||||||
|
KEY_COUNT=$(find "$CONFIG_DIR/persistent_keys" -name "*.bin" 2>/dev/null | wc -l)
|
||||||
|
STORAGE_SIZE=$(du -sh "$CONFIG_DIR/persistent_keys" 2>/dev/null | cut -f1)
|
||||||
|
|
||||||
|
echo " Cached keys found : $KEY_COUNT"
|
||||||
|
echo " Storage used : $STORAGE_SIZE"
|
||||||
|
echo ""
|
||||||
|
|
||||||
rm -rf "$CONFIG_DIR/persistent_keys"
|
rm -rf "$CONFIG_DIR/persistent_keys"
|
||||||
mkdir -p "$CONFIG_DIR/persistent_keys"
|
mkdir -p "$CONFIG_DIR/persistent_keys"
|
||||||
echo "Persistent key storage cleared"
|
|
||||||
|
echo " [OK] All cached attestation keys purged"
|
||||||
|
echo " [OK] Fresh keys will generate on next request"
|
||||||
else
|
else
|
||||||
echo "No persistent key storage found"
|
echo " No persistent key storage found"
|
||||||
|
echo " Nothing to clear"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "============================================"
|
||||||
|
|||||||
+2
-2
@@ -2,6 +2,6 @@ id=tricky_store
|
|||||||
name=TEESimulator
|
name=TEESimulator
|
||||||
version=${REPLACEMEVER}
|
version=${REPLACEMEVER}
|
||||||
versionCode=${REPLACEMEVERCODE}
|
versionCode=${REPLACEMEVERCODE}
|
||||||
author=JingMatrix
|
author=JingMatrix, Enginex0
|
||||||
description=Software simulation for Android hardware-backed key pairs with key attestation
|
description=Software simulation for Android hardware-backed key pairs with key attestation
|
||||||
updateJson=https://raw.githubusercontent.com/JingMatrix/TEESimulator/main/module/update.json
|
updateJson=https://raw.githubusercontent.com/Enginex0/TEESimulator/main/module/update.json
|
||||||
|
|||||||
Reference in New Issue
Block a user