log "New patch detected! Preparing to download…"
# 1. Get current build id (e.g., "U7-20230915") CURRENT_BUILD=$(getprop ro.build.display.id 2>/dev/null) if [ -z "$CURRENT_BUILD" ]; then log "Cannot read current build id – aborting." exit 1 fi log "Current firmware: $CURRENT_BUILD" a127f u7 auto patch
log "Manifest reports patch version: $REMOTE_PATCH_VERSION (type: $PATCH_TYPE)" log "New patch detected