diff --git a/module/action.sh b/module/action.sh index 00ae7bf..5e35511 100644 --- a/module/action.sh +++ b/module/action.sh @@ -2,10 +2,28 @@ MODDIR=${0%/*} CONFIG_DIR=/data/adb/tricky_store +echo "============================================" +echo " TEESimulator — Key Storage Maintenance" +echo "============================================" +echo "" + 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" 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 - echo "No persistent key storage found" + echo " No persistent key storage found" + echo " Nothing to clear" fi + +echo "" +echo "============================================" diff --git a/module/module.prop b/module/module.prop index de795c9..cf10e17 100644 --- a/module/module.prop +++ b/module/module.prop @@ -2,6 +2,6 @@ id=tricky_store name=TEESimulator version=${REPLACEMEVER} versionCode=${REPLACEMEVERCODE} -author=JingMatrix +author=JingMatrix, Enginex0 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