My Windows 10 wouldn't recognize my phone. After using adb
it now works. Here's how.
- Connect your Android phone via USB
- When it asks what to connect as, choose "Camera (PTP)"
- Open Google Chrome and the webpage you want to test
- Open Chrome Developer Tools and find the "Remote Devices" tab
Now, your phone might or might not appear in this tab.
On my OS X and Fedora, it did. On Windows I had to get Android Debug Bridge ("ADB"):
- Download ADB for Windows here: https://developer.android.com/studio/releases/platform-tools.html
- Open PowerShell ("Ubuntu for Bash" or Hyper did not work for me in this case)
- Navigate into the ADB folder you just downloaded
- Run
.\adb.exe devices
to see if your device is connected - If not, run
.\adb.exe kill-server
followed by.\adb.exe start-server