#!/bin/sh # Uninstall the app, clear all state, and redeploy fresh. # Usage: sh tools/full_reset.sh set -e cd "$(dirname "$0")/.." . ./android_env.sh echo "=== Uninstalling app ===" adb uninstall dev.azom.privacypin 2>/dev/null || echo "(was not installed)" echo "" echo "=== Clean build ===" ./gradlew clean assembleDebug 2>&1 | tail -3 echo "" echo "=== Installing ===" ./gradlew installDebug 2>&1 | tail -3 echo "" echo "=== Launching ===" adb shell am start -n dev.azom.privacypin/.MainActivity echo "" echo "Fresh deploy complete."