title: How to change default device id 0123456789ABCDEF with Eclipse or adt?
body: <p>I am developing an Android app and need to test it on multiple devices.</p>
  
  <p>However, adt (and, by extension, Eclipse) seem to give them a "default" id 0123456789ABCDEF. When deploying my app to the device, Eclipse complains: <code>more than one device</code>.</p>
  
  <p>I've managed to get a distinct id read for each device:</p>
  
  <pre><code>$ ./adb devices -l
  List of devices attached
  0123456789ABCDEF       device usb:14110000
  0123456789ABCDEF       device usb:14122000
  0123456789ABCDEF       device usb:14121000
  0123456789ABCDEF       device usb:14123000
  0123456789ABCDEF       device usb:14124000
  </code></pre>
  
  <p>But I can't manage to use this <code>device usb:XXXXX</code> string anywhere to point Eclipse to the terminal I want to launch the app on.</p>
  
  <p>Currently my solution is to connect only one device at a time, but this is very cumbersome. Does anybody know how can I either change a device ID or make Eclipse refer to the correct one when all of them are connected at the same time?</p>
  
  <p>Thanks a lot</p>
  
  <hr>
  
  <p>Okay, here's the solution, thanks a lot for the provided references:</p>
  
  <p>As stated <a href="https://stackoverflow.com/a/22824288/2846258">here</a>, I needed to recompile <code>adb</code></p>
  
  <p>First, download Android source code as stated in the official instructions. Then, modify <code>adb</code> as stated in the previous link. Finally, restart the adb server, and you will see a different string for each phone, which then can be used to open a shell, deploy .apk, etc.</p>