OTP scenarios in Android can be automated using Appium either by retrieving the code from the notification bar or from the messages app used on the phone.