— macOS, sndcpy, Android — 1 min read
You might want to play music or sounds running on Android phone on your macOS instead because your ears deserve better. In my case, I want to listen to the instructor playing on an Android app (Fiit) on my speakers. Romain Vimont, an inventor of popular and useful software is a hero once again, by making sndcpy.
adb installed and usable. To install, run brew install android-platform-tools/Applications folder: https://www.videolan.org/vlc//Applications/Utilities.Terminal.app) or iterm2Download the sndcpy APK and script from rom1v/sndcpy on GitHub, and place them in /usr/local/bin
sudo mv -t /usr/local/bin ~/Downloads/sndcpy/sndcpy ~/Downloads/sndcpy/sndcpy.apksndcpyCreate a script called vlc in /usr/local/bin by running sudo vim /usr/local/bin/vlc, and passing the following content:
1/Applications/VLC.app/Contents/MacOS/VLC -I rc "$@"The reason we put it in /usr/local/bin is that your mac will instantly be able to use it like a command, by calling vlc (once you restart the shell 🐚).
Optional: Confirm the file contains those contents, by running cat /usr/local/bin/vlc
Make the file executable to you and the group: sudo chmod 755 /usr/local/bin/vlc
Add the following to your ~/.zshrc so that sndcpy can get the APK whenever it wants to install it onto your device:
1export SNDCPY_APK=/usr/local/bin/sndcpy.apkRestart your shell, or reload that file: source ~/.zshrc
sndcpy in terminal