最近遇到个问题,开启fbe加密功能后,不设置PIN,开机是正常的,结果设置PIN码后,设备起来后,一直黑屏,使用原生PIN码设置接口,自己开发的锁屏功能;
问题分析:使用原生SystemUI锁屏,解锁后是ok的,使用我们自己开发的解锁后,进入Launcher一直是黑屏,显示android is starting…
黑色页面就是FallbackHome.java 页面;
private void maybeFinish() {
if (true) { //直接用true getSystemService(UserManager.class).isUserUnlocked()
final Intent homeIntent = new Intent(Intent.ACTION_MAIN)
.addCategory(Intent.CATEGORY_HOME);
final ResolveInfo homeInfo = getPackageManager().resolveActivity(homeIntent, 0);
if (Objects.equals(getPackageName(), homeInfo.activityInfo.packageName)) {
if (UserManager.isSplitSystemUser() && UserHandle.myUserId() == UserHandle.USER_SYSTEM) {
// This avoids the situation where the system user has no home activity after
// SUW and this activity continues to throw o