Easily detect a physical Android device with a Ubuntu PC
Setting up a Ubuntu machine to detect a physical Android device can be a complex process particularly for new Linux users. Thankfully there's a easy way to do it using this project.Setting up your Ubuntu machine for Android application debugging would usually involve creating something called a udev* rule for your device yourself. However, thanks to the maintainers of the project linked above, these rules have been created for you.
You can check if your device is supported by going to the 51-android.rules file in the project repository and searching the comments for the name of your device.
For example, here's my phone (Nexus 6P):
Notes*udev is a device manager for the Linux kernel. Knowledge of what udev does isn't required for Android development on Ubuntu but if you're interested read more about it at the Wikipedia page.
**You'll need Git installed. This command should install it for you:
sudo apt install git
If you've not already setup Git/Github to use SSH on your PC the easiest way to clone the repository is using HTTPS:
git clone https://github.com/M0Rf30/android-udev-rules.git
We're not contributing to the repository so the benefits of using SSH (e.g not having to repeatedly type your user name and password) aren't really relevant.