opengapps/aosp_build

Can't sign in with google accounts in AOSP 7.1.2 with opengapps (tvstock,tvmini)

hanspark74 opened this issue · 2 comments

I am working on AOSP 7.1.2 for Android TV, and build the opengapps as "tvstock" or "tvmini".
After build completed, GApps seem work properly. But I couldn't sign in with my google accounts for "Play Store" and "Add account".
An error saying that your username and password don't match, even if I have entered the correct information. My google account security options are okay to sign in.

11-25 05:56:51.458 5756 5756 I CreateOrAddAccountActivity: onPageComplete: EXISTING_PASSWORD
11-25 05:56:51.458 5756 5756 D CreateOrAddAccountActivity: Displaying: VERIFY_USERNAME_PASSWORD with error: null
11-25 05:56:51.459 5756 5756 D CreateOrAddAccountActivity: user does not exist: xxx@gmail.com
11-25 05:56:51.461 3573 3573 I PhenotypeExperimentConf: refreshConfiguration() : Force = false : UpdateAvailable = false : Age = 40 minutes : MaxAge = 720 minutes
11-25 05:56:51.461 3573 3573 I AndroidIME: PasswordIme.onDeactivate()
11-25 05:56:51.479 3573 3573 W InputMethodService: Window size has been changed. This may cause jankiness of resizing window: -1 -> -2
11-25 05:56:51.706 5756 6562 D AuthTaskThreadFactory: ensure background task delay
11-25 05:56:52.465 5756 5756 D AccountSignInFragment: Log-in failed, detailed reason: null
11-25 05:56:52.465 5756 5756 I CreateOrAddAccountActivity: onPageComplete: VERIFY_USERNAME_PASSWORD
11-25 05:56:52.465 5756 5756 D CreateOrAddAccountActivity: Displaying: VERIFY_USERNAME_PASSWORD_FAILURE with error: null

Thanks.

Hello @hanspark74 , did you exclude/include SetupWizard.apk in your build? I had a similar issue with login due to that. Credentials work (verified), but setup will not go beyond accepting Privacy Policy, etc. If you did use SetupWizard in your build, try excluding it and see if that helps.

Another possibility, check to make sure app has permissions enabled in Settings, try clearing app cache data or try wiping cache partition in recovery to see if that helps. All of this was before I started using the OpenGapps build system.

I am now trying to build my tv box with tvstock or tvmini variant, but I keep running into: #273

I am on Nougat also, any feedback or help is appreciated.

Best regards.

Last tip @hanspark74 ,

Try running
development/tools/privapp_permissions/privapp_permissions.py
right after your build is complete to see if there any permissions that need to be added to privapp-permissions-platform.xml.

Best regards.