frameworks\base\services\core\java\com\android\server\pm\UserManagerService.java
查看 framework/…/ 下 该属性config_defaultFirstUserRestrictions 是否配置了oem_unlock 限制,去除即可。
@GuardedBy({"mPackagesLock", "mRestrictionsLock"})
private void fallbackToSingleUserLP() {
...此处省略部分代码
final String[] defaultFirstUserRestrictions = mContext.getResources().getStringArray(
com.android.internal.R.array.config_defaultFirstUserRestrictions);
for (String userRestriction : defaultFirstUserRestrictions) {
if (UserRestrictionsUtils.isValidRestriction(userRestriction)) {
restrictions.putBoolean(userRestriction, true);
}
}
...此处省略部分代码