Android permissions and grants
The permissions that the Tetheron app for Android (org.tether.android)
declares, the special accesses it uses and the grants given over adb. To
grant them, follow
Grant Android permissions.
Permissions granted at installation
Android grants these without asking.
| Permission | Used for |
|---|---|
INTERNET | The TLS connection to the desktop |
ACCESS_NETWORK_STATE | Reconnecting when the network changes; Wi-Fi status for the desktop |
ACCESS_WIFI_STATE | Wi-Fi signal level for the desktop |
CHANGE_WIFI_MULTICAST_STATE | Receiving the desktop’s UDP discovery beacon |
FOREGROUND_SERVICE, FOREGROUND_SERVICE_CONNECTED_DEVICE | The background service that holds the connection |
RECEIVE_BOOT_COMPLETED | Starting the service when the phone starts and after an app update |
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS | Showing the system dialog for the battery optimisation exemption |
REQUEST_COMPANION_SELF_MANAGED | The companion device association |
QUERY_ALL_PACKAGES | Names and icons of the apps that post notifications or play media; the app list of the Apps tab |
ACCESS_NOTIFICATION_POLICY | Declares the request for Do Not Disturb access |
USE_FULL_SCREEN_INTENT | The “find my phone” alert over the lock screen; see Full-screen alerts |
VIBRATE | Vibration during “find my phone” |
MODIFY_AUDIO_SETTINGS | Muting the microphone during a call |
CALL_COMPANION_APP | Makes the app eligible as a call companion; see MANAGE_ONGOING_CALLS |
Permissions prompted at run time
Android shows a dialog for each group. The set-up wizard of the app asks for them step by step, and the app’s Settings screen asks again when a feature is switched on without its permission. Every step except the first can be skipped.
| Permission | Asked in | Used for | Without it |
|---|---|---|---|
POST_NOTIFICATIONS | Wizard, first step | The status notification of the background service; file offers; the “send clipboard” action | Android hides the status notification |
CAMERA | When you tap Scan QR | Scanning the pairing QR code | Pair by code or by address |
READ_SMS, SEND_SMS | Wizard, Messages and contacts | Reading conversations and sending messages | The phone does not announce the messages capability; no Messages tab content |
RECEIVE_SMS, RECEIVE_MMS, RECEIVE_WAP_PUSH | Same step | Requested with the two above; not required for the messages capability | |
READ_CONTACTS | Same step | Contact names and photos | No contacts capability; numbers are shown without names |
READ_PHONE_STATE | Same step, and Calls | SIM, carrier and signal status; call state | No SIM and signal status; no calls capability |
READ_MEDIA_IMAGES, READ_MEDIA_VIDEO | Wizard, Photos and files | The gallery | No photos capability. File transfer needs no permission. |
ANSWER_PHONE_CALLS | Wizard, Calls | Answering, declining and ending calls | No calls capability |
READ_CALL_LOG | Same step | The call log; the caller’s number for incoming calls | No calllog capability; incoming calls may show no number |
CALL_PHONE | Same step | Dialling from the desktop | No calls.dial capability |
BLUETOOTH_CONNECT | Same step | Reporting the Bluetooth pairing and hands-free state to the desktop | No bluetooth capability; no guided set-up of call audio |
BLUETOOTH_ADVERTISE | Same step | Making the phone discoverable while the desktop pairs over Bluetooth | The phone opens its Bluetooth settings instead |
READ_PHONE_NUMBERS | Never asked | The phone’s own number in the device information | The number is left empty |
The app declares READ_PHONE_NUMBERS and never asks for it. The
runtime_permissions grant of the enhanced tier includes it.
The app declares no location permission, so it reports the Wi-Fi signal level without the name of the network.
Special accesses
These are switched on in Android’s settings. The app opens the matching settings screen.
Notification access
| Service | NotificationListener (BIND_NOTIFICATION_LISTENER_SERVICE) |
| Used for | Mirroring notifications, notification actions and replies, dismiss sync, media sessions and media control |
| Without it | No notifications and no media controls on the desktop |
| Granted in | Wizard step Notification access; app Settings → Notification access |
| Over adb | Grant notification_listener |
On Android 13 and newer, an app installed from an APK may first have to be allowed to use “restricted settings” in the system’s app information screen.
Battery optimisation exemption
| Used for | Keeping the connection while the phone is idle (Doze) |
| Without it | Notifications are delayed and the connection drops while the phone is idle |
| Granted in | Wizard step for battery; system setting Battery → Unrestricted |
| Over adb | Grant battery_whitelist |
On Samsung phones the wizard has one more step: add the app to Never sleeping apps. No permission or grant covers that list.
Companion device association
| Permission | REQUEST_COMPANION_SELF_MANAGED |
| Used for | Registering the paired desktop as a companion device. On Android 15 and newer this lets notifications with one-time codes through to the app, and it improves how long Android lets the app run in the background. |
| Without it | Android 15 and newer hide the content of one-time-code notifications from the app, unless the grant sensitive_notifications is applied |
| Granted in | Wizard step after pairing |
On some Android builds the permission is reserved for system apps (seen on Android 16 with One UI 8.5). The app detects this and skips the step.
Do Not Disturb access
| Permission | ACCESS_NOTIFICATION_POLICY |
| Used for | Changing Do Not Disturb from the desktop |
| Without it | The desktop shows the Do Not Disturb state and cannot change it |
| Granted in | App Settings → Do Not Disturb access |
Full-screen alerts
| Permission | USE_FULL_SCREEN_INTENT |
| Used for | Showing the “find my phone” alert over the lock screen |
| Without it | The phone rings; the alert does not appear over the lock screen |
| Granted in | App Settings → Full-screen alerts |
All files access
| Permission | MANAGE_EXTERNAL_STORAGE |
| Used for | Deleting gallery items from the desktop without a confirmation on the phone |
| Without it | Every delete from the desktop asks for confirmation on the phone’s screen |
| Granted in | App Settings → All files access |
| Over adb | Grant manage_external_storage |
Grants over adb
Some permissions cannot be granted on the phone itself. With the
enhanced tier set up, the desktop
applies them through the shell helper, from the set-up wizard of the desktop
app or with tether-cli enhance <id> grants apply. With
your own adb, run the command from the table.
The shell helper runs only the commands of this table. The grant names are fixed in the helper protocol (Wire protocol).
| Grant | Command | What it enables | Without it |
|---|---|---|---|
notification_listener | adb shell cmd notification allow_listener org.tether.android/org.tether.android.features.notifications.NotificationListener | Notification access without the settings screen | Grant it on the phone |
battery_whitelist | adb shell dumpsys deviceidle whitelist +org.tether.android | The battery optimisation exemption | Grant it on the phone |
runtime_permissions | adb shell pm grant org.tether.android <permission>, once for each permission of Permissions prompted at run time that is not granted | All run-time permissions without their dialogs | Grant them on the phone |
manage_external_storage | adb shell appops set org.tether.android MANAGE_EXTERNAL_STORAGE allow | All files access | Grant it on the phone |
read_logs | adb shell pm grant org.tether.android android.permission.READ_LOGS | With system_alert_window: clipboard sync from the phone while the app is in the background. See READ_LOGS and SYSTEM_ALERT_WINDOW. | Clipboard changes are sent only while the app is in the foreground, or by hand |
system_alert_window | adb shell appops set org.tether.android SYSTEM_ALERT_WINDOW allow | See read_logs | See read_logs |
sensitive_notifications | adb shell appops set org.tether.android RECEIVE_SENSITIVE_NOTIFICATIONS allow | One-time codes in notifications on Android 15 and newer, when the companion device association is not available | Android hides the content of those notifications |
manage_ongoing_calls | adb shell appops set org.tether.android MANAGE_ONGOING_CALLS allow | Switching call audio from the desktop. See MANAGE_ONGOING_CALLS. | Only Phone works from the desktop |
write_secure_settings | adb shell pm grant org.tether.android android.permission.WRITE_SECURE_SETTINGS | Switching Wireless debugging on again from the app. See WRITE_SECURE_SETTINGS. | Switch Wireless debugging on by hand after each phone restart |
The desktop reads the state of each grant back from the phone after
applying it. Android stores the grants with the app, and they are lost when
the app is uninstalled. Whether MANAGE_ONGOING_CALLS survives a phone
restart has not been tested.
READ_LOGS and SYSTEM_ALERT_WINDOW
Android does not let an app read the clipboard while it is in the
background. With these two grants the app watches the system log for the
line that Android writes when it refuses the app access to a new clip.
It then starts an invisible activity that takes focus for a moment, reads
the clip and sends it. READ_LOGS allows reading the log.
SYSTEM_ALERT_WINDOW allows starting the activity from the background. The
app never asks for either permission on the phone.
Without them, text copied on the phone reaches the desktop in these ways:
- At once, while the app is in the foreground.
- With the Send clipboard Quick Settings tile, the share sheet or the action in the status notification.
- Through the shell helper while the enhanced tier is running, which needs neither grant.
MANAGE_ONGOING_CALLS
This app-op makes Android’s telephony service bind the app’s call companion
service (TetherInCallService). Through it the app can move a call’s audio
between the Bluetooth device (the desktop), the earpiece and the
loudspeaker, and it sees calls with their numbers.
Without it:
- This PC and Speaker in the in-call window and
tether-cli audio <id> pcfail withroute_unsupported. Phone works, because the desktop can close the audio link by itself. - Call audio can still be moved to the desktop on the phone’s own call screen.
- Answering, declining, ending, muting and dialling are not affected. They use the run-time permissions.
WRITE_SECURE_SETTINGS
Wireless debugging switches off when the phone restarts. With this
permission the app can switch it on again when the desktop asks
(tether-cli enhance <id> rearm, and automatically once per connection).
The app uses the permission for this one setting.
The system may switch Wireless debugging off again at once when the current Wi-Fi network was not allowed for it on the phone. Choose Always allow on this network when the phone asks.
Without the permission the request is ignored and can re-arm in
tether-cli enhance <id> status is false.
Permissions that protect the app’s components
These restrict who may call into the app. The app does not hold them.
| Component | Required permission of the caller | Effect |
|---|---|---|
NotificationListener | BIND_NOTIFICATION_LISTENER_SERVICE | Only the system can bind the listener |
TetherInCallService | BIND_INCALL_SERVICE | Only the telephony service can bind it |
ClipboardTileService | BIND_QUICK_SETTINGS_TILE | Only the system can bind the tile |
AdbLinkReceiver | DUMP | Only the adb shell and the system can send the one-time token that links an adb device to a paired phone |
What the shell helper can do
The enhanced tier does not add permissions to the app. The shell helper is a separate process that the desktop starts over adb. It runs with the privileges of the adb shell, which include capturing the screen, injecting input, capturing audio, opening the camera (0.5.0) and running the grant commands above. See Privilege tiers and adb and Security model.