How to execute adb commands on jenkins

I am trying to create a jenkins job that will have a radio button and a drop down
Radio button contains two values android or ios
If the user selects the android
Then the connected android devices should be list in the drop down.
How can i make this drop down dynamic