I tried to follow tutorial: https://developers.google.com/android/guides/http-auth.
Code:
token = GoogleAuthUtil.getToken(getApplicationContext(),
The docs have been recently updated and now work to support SDK M(requesting permission) and also show the OAuth dialog.
NOTE Google Docs are often not up to date but they seem to pay attention when you report an issue. The example was updated with a week of me sending a feedback. So if you see a non-working example, send feedback!
https://developers.google.com/drive/v3/web/quickstart/android