Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac 안드로이드 휴대폰 연결 버그 수정 #6

Open
positoy opened this issue May 25, 2024 · 7 comments
Open

mac 안드로이드 휴대폰 연결 버그 수정 #6

positoy opened this issue May 25, 2024 · 7 comments
Labels

Comments

@positoy
Copy link
Owner

positoy commented May 25, 2024

안드로이드 휴대폰에서 usb 연결을 허용했지만 계속해서 연결할 수 없는 문제
image

@positoy positoy added the idea label May 25, 2024
@positoy
Copy link
Owner Author

positoy commented May 26, 2024

어디선가 mac 의 camera 관련 서비스가 안드로이드 연결을 방해한다고 확인한 적이 있음

@positoy
Copy link
Owner Author

positoy commented May 26, 2024

❯ ps -ef | grep camera
  501  5522     1   0 금05PM ??         0:00.03 /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/XPCServices/mscamerad-xpc.xpc/Contents/MacOS/mscamerad-xpc
  501 78552     1   0  9:18AM ??         0:00.07 /usr/libexec/ptpcamerad
  262 78584     1   0  9:18AM ??         0:00.02 /usr/libexec/cameracaptured

계속해서 살아나는 관련 데몬 두개

@positoy
Copy link
Owner Author

positoy commented May 26, 2024

1초마다 죽여보자

watch -n 1 "sudo pkill -9 cameracaptured & sudo pkill ptpcamerad"

실행이 잘 됨

@positoy
Copy link
Owner Author

positoy commented May 26, 2024

cameracaptured 만 죽여보자

watch -n 1 "sudo pkill -9 cameracaptured"

실행 안 됨

@positoy
Copy link
Owner Author

positoy commented May 26, 2024

ptpcamerad 만 죽여보자

watch -n 1 "sudo pkill -9 ptpcamerad"

실행 잘 됨. 범인은 ptpcamerad

@positoy
Copy link
Owner Author

positoy commented May 26, 2024

image

@positoy
Copy link
Owner Author

positoy commented May 26, 2024

https://discussions.apple.com/thread/254703577?sortBy=best

애플에서 만든 ptpcamerad 가 언제든지 이미지 장치를 사용할 수 있도록 관련 포트를 점유하고 있어서, 파일 전송을 위해 새로운 번들 생성이 실패하는 듯 하다.

❯ grep -i "File Transfer" /var/log/system.log
May 26 08:24:01 MacBookAir-2 Android File Transfer[56252]: Installed bundle at path (null)
May 26 08:27:46 MacBookAir-2 Android File Transfer[57118]: Bundle already exists at /Users/positoy/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app
May 26 08:27:48 MacBookAir-2 Android File Transfer[57118]: close mtpDeviceID = 0X4E8:0X6860:0
May 26 08:27:48 MacBookAir-2 Android File Transfer[57118]: create mtpDeviceID = 0X4E8:0X6860:0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant