Files
project-iphone-unlock-app/tools/grant_write_settings.sh

13 lines
611 B
Bash
Raw Normal View History

2026-10-29 13:29:14 +06:00
#!/usr/bin/env bash
set -euo pipefail
PACKAGE="com.ecohub.locksolved"
command -v adb >/dev/null 2>&1 || { echo "adb not found; install Android platform-tools." >&2; exit 1; }
adb start-server
echo "Connected devices:"
adb devices
echo "Applying WRITE_SETTINGS app-op to ${PACKAGE} on the authorized device…"
adb shell appops set "${PACKAGE}" WRITE_SETTINGS allow
echo "Current app-op:"
adb shell appops get "${PACKAGE}" WRITE_SETTINGS
echo "Close and reopen the app, then retry Start Sharing. If Android reports unsupported tethering or an unavailable interface, use that exact result for further diagnosis."