05 August 2019
Google is testing out an auto-fill feature for SMS OTPs to automatically pull in two-factor (2FA) verification codes from the Messages app to the number of apps where your phone number is attached. The feature is rolling out to simplify the 2FA process even further so that you don’t have to copy the codes by going into the Google Messages first and paste it to the respective places.
According to AndroidPolice which is tipped off, the apps can now pull 2FA codes from the Google Messages app, thanks to Android’s built-in autofill feature. This feature was available on Google Play Services’ settings page as a “Verification code autofill” toggle for a few months now but that hasn’t done much of anything.
A bunch of apps is now using this feature and able to pull the requested OTP from Google Messages with a handy “Autofill code from Messages” option. Once an SMS OTP is received on the phone, the Messages app will retrieve it from the SMS and suggest it as an autofill option in the OTP field.
The feature is rolling out on some devices and should be available to all the users soon. As per AndroidPolice, the feature works with, at least, Play Services version 20.04.12 and Messages version 5.5.096. However, the latest versions do not guarantee the change right away. This appears more like a server-side switch and can take time to reach your handset.