Getting Android version using Ruby

Is there a way of getting Android version after the driver is created? Assuming I didn’t provide platform version in capabilities. I’m using Ruby

Also a side question, is there a way to send and run ADB commands?


I don’t think you can do this from Appium. However, you could make a system call to adb, like:

adb shell getprop

More info here:

Thanks for the replay.
However I couldn’t seem to find a way to use ADB commands and use the responses in test script.

You need to make a system call from Ruby:

Thanks, I will take a look