These tests take about half an hour with a phone plugged in, most of it the 5 GB file in test 3. They need no knowledge of the code. Each test says what to do and what you should see. Anything else you see is worth reporting.
-
Double-click
make-test-files.commandin this folder. A Terminal window opens, creates afilesfolder next to it in about a minute and prints a long checksum forbig-push-test.bin. Keep it; test 3 needs it. Running it again replaces thefilesfolder. The folder needs 5.4 GB of disk.If macOS refuses to open the file because it was downloaded, run it in Terminal instead:
sh make-test-files.command
-
Open the app in Chrome and connect the phone as the start page explains. In the Mac pane, click Choose folder, or Change folder if a folder is already shown, and pick that
filesfolder.
Prompts are Chrome's own dialogs with OK and Cancel. "Answer OK" below means click OK in that dialog. The refresh icon is the circular arrow at the left of the breadcrumb row in each pane.
- Select
keep-me.txtin the Mac pane and click Copy. - Select it in the phone pane and click Copy. A prompt says it already exists on this Mac. Answer OK.
You should see: "1 copied" both times, and the file listed on both sides.
- Copy
zlp-test.binto the phone. - Copy it back from the phone to the Mac. Answer OK.
You should see: 100% and "1 copied" both times. This size once failed every pull with "Short MTP container".
The file is 5 GB, larger than the 4 GB that MTP's size field can hold, so this also covers the app's separate path for such files.
- Copy
big-push-test.binto the phone. Watch it reach 100%. - Copy it back from the phone. Answer OK.
- In Terminal, type
shasum -a 256with a space after it, dragbig-push-test.binfrom thefilesfolder into the Terminal window, and press Return.
You should see: the same checksum the script printed. Different means bytes were lost or changed on the way.
- Copy
replace-test.binto the phone. - Copy it to the phone again. Answer OK.
You should see: a prompt saying the file already exists on the phone, and
afterwards exactly one replace-test.bin in the phone pane. No file starting
with .droidtmp or .droidbak may remain.
- Copy
Case-Test.binto the phone. - In Finder, rename the Mac copy to
case-test.bin, all lowercase. Click the refresh icon in the Mac pane. - Copy
Case-Test.binfrom the phone to the Mac. Answer OK. - Copy
case-test.binfrom the Mac to the phone. Answer OK.
You should see: an "already exists" prompt in step 3 and again in step 4. Both Macs and Android treat these as the same file, so the app must ask before it overwrites.
- In the Mac pane, open
delete-test. - Click
folder-A, then Shift-clickfolder-B. Click the trash icon (Delete) and answer OK. - Right away, click the folder you chose, first in the breadcrumb row above the file list.
You should see: both folders gone, delete-test empty, and every other test
file still there. Check in Finder as well.
- Double-click
make-test-files.commandagain; it remakes thefilesfolder. In the Mac pane, click the refresh icon, selectdelete-testand click Copy. - The Transfers bar first says "Preparing…", then files start copying and a Stop button appears. The list follows the file being copied. Scroll the list up: it stops following. Scroll back down to the copying row: it follows again. After a few seconds of copying, click Stop.
- Scroll the list to the very top, then to the very bottom.
- In the phone pane, select
delete-test, click the trash icon (Delete) and answer OK.
You should see: after Stop, the file being copied finishes and the rest show "Stopped". The top of the list is green checks, the bottom is "Stopped", and between them the checks turn into "Stopped" at the file where you pressed Stop. All 40,000 rows are in the list, so the scrollbar thumb is small. After Delete, the folder is gone from the phone.
- Copy
heic-test.heicto the phone. - On the phone, open it from the gallery or the Files app.
You should see: a square colour gradient.
- In the Mac pane, look at the footer of the
filesfolder. - Select
keep-me.txt, then Cmd-clickzlp-test.bin. - Copy
too-big.binto the phone.
You should see: in step 1 the footer counts folders and files but shows no size, since a folder's size is unknown. In step 2 it shows "2 selected" with a size. In step 3 a red message says the copy needs 4294.97 GB and how much the phone has free. Nothing is copied and no file appears on the phone.
- Copy
delete-testto the phone. While files are copying, unplug the cable. - Plug it back in, choose File transfer on the phone, click Choose phone. If a red message says the phone shows no storage, switch the phone's USB mode to Charging and back to File transfer, then click Choose phone again.
You should see: the start page right after the unplug, with a red message saying the phone was disconnected. After step 2, the Transfers list shows the file that was copying in red as "Failed" and every file after it as "Stopped", the phone pane lists normally, and a new copy works.
- Double-click
make-test-files.commandagain. In the Mac pane, click the refresh icon, selectdelete-testand click Copy. - While the Transfers bar says "Preparing…", unplug the cable.
- Plug it back in, choose File transfer, click Choose phone.
You should see: a red message saying the phone was disconnected, and after step 3 the Copy button working again rather than stuck at "Copying".
- In the Mac pane, open
delete-test, thenfolder-A. - While the pane still says "Reading…", click
delete-testin the breadcrumb row.
You should see: the pane showing folder-A and folder-B, and staying that
way. If it ever shows 20,000 files under the delete-test breadcrumb, report
it.
- In the phone pane, select
keep-me.txtand click Rename. Enterrenamed.txtand answer OK. - Select
delete-test(the folder), press Enter and rename it torenamed-folder. - Select
renamed.txt, click Rename and enterzlp-test.bin, a name that already exists there. - Select
renamed.txtagain, click Rename and enterZLP-TEST.BIN, the same name in capitals. - Rename
renamed.txtback tokeep-me.txtandrenamed-folderback todelete-test.
You should see: the new names in steps 1 and 2, with the renamed item still
selected. In step 3 a red message saying the phone could not rename the file
and the original was kept, with both files still there and unchanged. In step
4 a red message saying "ZLP-TEST.BIN" already exists in this folder as
"zlp-test.bin", with both files still there and zlp-test.bin still 1.0 MB.
The phone treats the two spellings as one file, so without this refusal the
rename would replace zlp-test.bin with the 8-byte text file.
- Click
delete-testin the Mac pane, then use only the keyboard: press →, then → again onfolder-A, then ↓ a few times, then ← twice.
You should see: → opens the folder and selects its first row; ↓ moves the
selection; each ← goes back up with the folder you came from selected. After
the second ← the selection is on delete-test again.
These three need the published site, not a local copy, and only keep-me.txt
from the files folder. The Version line at the bottom of the Help card is
the deploy's 14-digit stamp.
- With a network, open the site, connect the phone and choose the
filesfolder as usual. Click Help and note the Version stamp. Close the card. - Turn Wi-Fi off and unplug any Ethernet cable. Reload the page with Cmd-R.
- Click Choose phone and pick the phone. Copy
keep-me.txtto the phone, then back to the Mac (answer OK). On the phone, rename it tooffline.txt, then deleteoffline.txt.
You should see: after the reload the page looks exactly as it did with a network, with the icons and the font, and Help shows the same stamp. Connecting, listing, copying, renaming and deleting work as before. The Install button may be missing without a network; that is expected.
- With a network, open the site in a new tab by typing the address. Click Help and write down the Version stamp. Close the card. Reload once with Cmd-R.
- Push any commit to
mainand wait until the "Deploy to GitHub Pages" run is green in the Actions tab. Do steps 3 and 4 within ten minutes of step 1. - Close the tab. Open a new tab, type the address, press Return. Do not reload. Click Help.
- Wait ten seconds. Turn Wi-Fi off. Close the tab, open a new tab, type the address, press Return. Click Help.
You should see: in step 3 a stamp later than the one you wrote down. In step 4 the page styled as usual, with the icons and the font, and Help showing the same new stamp. A page with no styling, or Help showing the old stamp, means the previous deploy came back from the browser's cache.
- With a network, open the site in Chrome. If it is already installed,
uninstall it first from
chrome://apps. Click anywhere on the page and stay on it for at least 30 seconds. - An Install button appears at the top right, and an install icon at the right end of the address bar. Click Install and confirm in Chrome's dialog.
- The app opens in its own window. Click Help, then connect the phone in that window.
You should see: the button and the icon in step 2. In step 3 a window without an address bar, the app's icon in the Dock, Help showing the deploy's stamp, and the phone connecting as in the tab.
If a red message says something else is holding the phone, double-click
who-holds-the-phone.command with the phone plugged in. It prints the process
that holds it; quit that app. ptpcamerad means a photo app such as Preview,
Photos or Image Capture.
Say which test, which step, and the exact text of any red message. Add the
phone model, its Android version, and the Chrome version from
chrome://version. If the phone stopped answering, say whether unplugging and
replugging brought it back.