13 lines
611 B
Bash
13 lines
611 B
Bash
|
|
#!/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."
|