done
This commit is contained in:
12
tools/grant_write_settings.sh
Normal file
12
tools/grant_write_settings.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user