I'm implementing an login quiet similar to the login of the Google Photo App. I'm not testing my App in Android Marshmallow. That requires the permission:
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
Quiet clear no questions until here. But how does the app can read out my accounts without requesting nor granting the permission in the app settings?
When I try to use:
Account[] googleAccounts = AccountManager.get(context).getAccountsByType(GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE);
I just get an empty array. What am I doing wrong?