This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan
<p>What do you do if you want to quickly test your sites on mutliple versions of Android at the same time?</p>
<p>There are couple of solutions, such as <a href="http://html.adobe.com/edge/inspect/">Adobe Edge Inspect</a>, but what if you want to create and manage your own in your own workflow? I haven't seen single solution yet.</p>
<p>Here is a simple shell script that I created that starts to get you on your way to your own testing lab. It connects to every single Android device that is attached to your machine by using <code>adb</code> (Android Debugging tool).</p>
<p>The process is as follows (and please suggest better ways):</p>
<ul>
<li>Kill any existing adb servers</li>
<li>Get a list of attached devices</li>
<li>For each device set up port forwarding (required for <a href="https://developers.google.com/chrome-developer-tools/docs/remote-debugging">Chrome Dev tools</a>)</li>
<li>Fire Android intent to open the browser (with a url if one is on the command line)</li>
</ul>
<script src="https://gist.github.com/4706201.js"></script>
<p>It's not a complete solution, but it is a nice way to start. My ultimate goal is to have a <a href="http://www.xda-developers.com/android/adb-fully-working-on-raspberry-pi/">Raspberry PI</a> hosting adb and all the devices that I can attach to it with an attached proxy that will route all my devtools requests to the correct device.</p>
<p>How do you test across multiple devices?</p>
This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan