Transfer files and photos
This guide covers sending files between the desktop and the phone, and browsing the phone’s photos and videos from the desktop.
Before you begin:
- The phone is paired and connected.
- For photos, the Tetheron app on the phone has the Photos and videos permission. See Grant Android permissions.
The tether-cli examples use 5b7a as the device id. Any unique prefix of
the id from tether-cli devices works.
Send files from the desktop to the phone
Use any of these:
- Drag files from a file manager onto the phone’s page in the Tetheron app. Any tab of the page accepts the drop.
- Open the Files tab and click Send files….
- In the tray icon’s menu, open the phone’s entry and choose Send files to followed by the phone’s name.
The transfer appears on the Files tab with its progress. To stop it, click
the cancel button on its row (tooltip Cancel transfer). The phone saves
the files to Download/Tether.
If Accept files automatically is off in the phone app’s Settings, the phone first shows a notification with Accept and Decline. An offer that is not answered within 60 seconds fails.
From the command line:
tether-cli send-file 5b7a ~/Documents/report.pdf ~/Pictures/photo.jpg
offered as 3f9c2a
running 1048576/5242880 bytes
done 5242880/5242880 bytes
The command follows the transfer until it ends. Add --no-wait to return as
soon as the files are offered. To cancel a transfer, find its id and pass it
to cancel-transfer:
tether-cli transfers 5b7a
tether-cli cancel-transfer 5b7a <transfer-id>
Send files from the phone to the desktop
- On the phone, select the files in any app and tap Share.
- Choose Send to PC in the share sheet.
- If more than one desktop is connected, pick the desktop.
The Send files button on the desktop’s card in the Tetheron app on the phone does the same.
The desktop saves the files to ~/Downloads/Tether. A file whose name already
exists there is saved as name (2).ext. When a file has arrived, the Tetheron
app shows a message with an Open folder button, or a desktop notification
with Open folder and Open when its window is hidden.
Sharing text or a link to Send to PC does not create a file. The text lands in the desktop clipboard. See Sync the clipboard.
Be asked before a file is accepted
By default the desktop accepts files from paired phones without asking.
- Open the main menu and choose Preferences (
Ctrl+,). - Under Files, switch off Accept files from paired phones automatically.
An incoming transfer then opens a dialog in the Tetheron app that lists the files, with Accept and Decline.
From the command line, switch the setting off, watch for the offer and answer it by its transfer id:
tether-cli config auto-accept-files false
tether-cli watch
FileOffered from 5b7a19c04e2d: 3f9c2a report.pdf (5242880 bytes) (accept with `tether-cli accept-file 5b7a19c04e2d 3f9c2a`)
tether-cli accept-file 5b7a 3f9c2a
tether-cli accept-file 5b7a 3f9c2a --reject
Change the download directory
- Open Preferences.
- Under Files, click the folder button on the Download folder row and choose a directory.
tether-cli config download-dir ~/Documents/FromPhone
tether-cli config download-dir
The second command prints the current value. The folder button at the top of the Files tab opens the directory.
Browse the phone’s photos
- Select the phone and open the Photos tab. Thumbnails load as you scroll.
- Narrow the list with All, Photos, Videos or Screenshots, or with the album selector (All albums).
- If something recent is missing, click the reload button (tooltip Reload the photo index from the phone).
Then:
- Click a photo to download the original and open it with the default application.
- Right-click a photo and choose Save as… or Copy. Copy puts the image on the desktop clipboard.
- For several photos, click the selection button (tooltip Select photos), click the photos you want, then use the buttons in the bar that appears. Select all is in the right-click menu.
- Drag a photo onto a file manager window or into an application that accepts files. The original is downloaded when you drop it.
From the command line:
tether-cli photos 5b7a screenshot --limit 20
tether-cli albums 5b7a
tether-cli photos 5b7a --album Camera
cp "$(tether-cli fetch 5b7a <media-id> | tail -n 1)" ~/Pictures/
The first column of photos is the item’s id. fetch downloads the original
into the daemon’s cache and prints the path of the file on its last line.
tether-cli thumb 5b7a <media-id> does the same for a thumbnail.
Delete photos from the phone
Warning
Deleting removes the photo from the phone’s storage. Tetheron has no trash to restore it from.
- Right-click a photo and choose Delete from phone, or select several photos and click the delete button (tooltip Delete from the phone).
- Confirm with Delete.
- If the Tetheron window shows Confirm the deletion on your phone to finish, unlock the phone and confirm Android’s prompt.
tether-cli delete-photo 5b7a <media-id> <media-id>
Android asks for the confirmation on the phone unless the Tetheron app has all-files access. To give it, open the app on the phone, go to Settings and tap All files access under Special access. With adb set up, you can run this on the desktop instead:
adb shell appops set org.tether.android MANAGE_EXTERNAL_STORAGE allow
The grant survives app updates but not an uninstall.
Related pages
- Command-line tools lists every option of the commands used here.
- Configuration and files describes
download_dir,auto_accept_filesand where the daemon caches photos. - Android permissions and grants lists every grant.