Add getAdbServerPort function to adb

Needed for #3717 fix
In what context is `ANDROID_ADB_SERVER_PORT` undefined?  If it's only undefined when adb isn't running, then it's more appropriate to throw an error here (assuming this func will be static).