客制化开机向导符合Google认证要求
[DESCRIPTION]
从KK版本开始,Google允许OEM在预置GMS项目中使用非GMS中的开机向导在预置GMS项目中如果使用三方开机向导,Google对此有一些认证要求,需要在开机向导中加入Google账户登录等Google服务功能界面
[SOLUTION]
首先确认为KK版本,并已预置GMS核心组件
以下是添加Google账户的接口代码:
AccountManager acctMgr = AccountManager.get(this);
Bundle options = new Bundle();
options.putBoolean("allowSkip", true);
options.putBoolean("firstRun", true);
options.putBoolean("setupWizard", true);
AccountManagerFuture futBundle = acctMgr.addAccount(
"com.google", // Google’s account type.
null, // The authTokenType is not
从KK版本开始,Google允许OEM在预置GMS项目中使用非GMS中的开机向导在预置GMS项目中如果使用三方开机向导,Google对此有一些认证要求,需要在开机向导中加入Google账户登录等Google服务功能界面
[SOLUTION]
首先确认为KK版本,并已预置GMS核心组件
以下是添加Google账户的接口代码:
AccountManager acctMgr = AccountManager.get(this);
Bundle options = new Bundle();
options.putBoolean("allowSkip", true);
options.putBoolean("firstRun", true);
options.putBoolean("setupWizard", true);
AccountManagerFuture futBundle = acctMgr.addAccount(
"com.google", // Google’s account type.
null, // The authTokenType is not