title: Installing Moto X 2nd Gen Debug Driver
body: <p>I have a <strong>Windows 7 x64 Ultimate</strong> computer and I want to connect my <strong>Moto X 2nd Gen (XT1097)</strong> in debug mode so I can develop some apps.</p>
  
  <p>The problem is, Windows can't find the drivers for my Moto X. I have downloaded <a href="https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481" rel="nofollow noreferrer">Motorola Device Manager</a> (version 2.4.5) which is supposed to have all the drivers but still my Windows can't find the driver. And before anyone asks, yes, I do have debug enabled in the settings of my phone.</p>
  
  <p>So here comes the funny part..... I have tried this same thing with another Win7x64 Ultimate real machine and a Virtual Machine (running inside my own PC). At first Windows couldn't install the debug drivers...but then after I download the <strong>Motorola Device Manager</strong> it installed the debug drivers and I was able to use the phone for development.</p>
  
  <p>The weird thing is, when I connect my phone into my PC, it installs all the media drivers but not the debug ones and this is how my phone is listed under my Window's <strong>Device Manager</strong>:</p>
  
  <p><img src="https://i.stack.imgur.com/O7t2Z.png" alt="XT1097 device"></p>
  
  <p><strong>BUT</strong> in all the other two computers (in which the drivers were successfully installed), this is how my phone is listed, before I install the Motorola Device Manager (which contains all the drivers):</p>
  
  <p><img src="https://i.stack.imgur.com/yo89L.jpg" alt="ADB Interface device"></p>
  
  <p>And this is how it's listed after the driver's installation: </p>
  
  <p><img src="https://i.stack.imgur.com/tMs6e.jpg" alt="enter image description here"></p>
  
  <p>So, in order to try to fix this, I tried to force a driver installation. I found the driver myself under "C:\Program Files\Common Files\Motorola Shared\Mobile Drivers\Drivers" and inside <code>motoandroid2.inf</code> I could find a driver called "Motorola ADB Interface" and even my phone's VID/PID was inside this same driver's file!......<strong>BUT it didn't work!</strong> </p>
  
  <p>I still can't use this phone in debug mode, I can't make Android studio see when it's connected, and I also tried to change Google's default driver <code>android_winusb.inf</code> including my phone in there, <a href="https://stackoverflow.com/questions/9709263/google-android-usb-driver-and-adb">using this tutorial</a>, but again nothing happens.</p>
  
  <p>Does anyone has any clues of what is going on? I am lost, and honestly I don't want to format my PC just because of this.</p>