Meetme Premium Apk
Recently, while working on a mobile project, I found myself spending a lot of time connecting a device, uninstalling the previous version of the Application Under Test (AUT), installing the new one, and then disconnecting the device, just to do it again on another 6 or 7 devices (I would like to talk about why it is better to test on actual devices than in a simulator, but that topic deserves its own blog post).
For this post, I want to describe a solution I found to manage all of the attached devices with a single command. First I obtained this device, (you can get it thru Amazon here)which is just one of many different options available, depending on the arrangement, number of ports, shape, etc. I picked this one because it was cheap and the switches come in handy because we can exclude devices just by switching OFF that specific device and there’s no need to connect/disconnect any device.
Just adding ports to your computer helps, but we need to get the most of them. When working with Android devices and we want, for example, to install an app, we have to type the following command in the terminal:
This works fine when you have a single device attached because adb is designed for a single device, but when you have multiple devices attached, you get an error, like so:
Then to install on each device, we would need to copy each of these ids, and include them in the following command.
2 4 6 8 10 12 14 16 18 | # Script adb+ # You can run any command adb provides on all your currently connected devices # ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> # Examples # ./adb+ install apidemo.apk adb deviceswhileread line if[!'$line'=']&&[`echo$lineawk'{print $2}'`='device'] device=`echo$lineawk'{print $1}'` adb-s$device$@ done |
Then store this new file in the folder containing adb within your Android SDK installation folder. This should most likely be the platform-tools folder.
Usage
Using the script is very simple. When we have more than one device connected (always use adb devices first, just to make sure all your devices are connected) we just need to work as if we were using adb, with any “adb” command replaced with “adb+”. For example, if we want to install an app:
This gives us something like:
that’s it. the new script will go thru each device, performing the same command. the app will install on all devices connected, and you will save a few minutes. what do you think? is this going to help you with your mobile testing? let us know!
>