SSブログ

Android File Transfer cannot connect to Pixel 4 [技術]

If you have done all the other configurations necessary on your smart phone and still cannot use AFT with it:
CouldNotConnectToDevice.png
connect your phone to your Mac by USB, open the Terminal app, and run the following command. You may be asked to enter your password.

sudo pkill -9 ptpcamerad; /Applications/Android\ File\ Transfer.app/Contents/MacOS/Android\ File\ Transfer &

Do this in one line to ensure AFT is invoked immediately after the kill. If there is some interval between the two commands, another instance of ptpcamerad gets launched before AFT will come up.

Even when it succeeds, AFT window may not come to the front. In that case, use CMD+TAB or Dock to switch to the app.

Troubleshooting
If it does not work, here' s what I did to find out what was blocking.

Launch the Console app, filter by "android", start capturing logs, and launch Android File Transfer.
You may be able to identify what app is blocking AFT from connecting to the device.
ErrorInConsole.png

See the yellow dot to the left of the log? Try to find one like that. Click the line and the detail will appear in the bottom half. If the blocking process is not "ptpcamerad", then replace the "ptpcamerad" in the above command with the correct process name and try again.
nice!(0)  コメント(0) 
共通テーマ:日記・雑感

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。