#!/usr/bin/env bash
# Start EntryAbility on device
source "$(cd "$(dirname "$0")/.." && pwd)/scripts/_config.sh"
log "Force-stopping previous instance..."
hdc -t "$DEVICE" shell aa force-stop "$BUNDLE" 2>&1 || true
sleep 1
log "Starting app..."
hdc -t "$DEVICE" shell aa start -a EntryAbility -b "$BUNDLE" 2>&1
log "Start command sent"