Check the availability of biometrics when we need to know, waiting until then to decide the presence of ScreenLockActivity, rather than checking once during initialization and permanently disabling pages of the setup wizard. Otherwise, a race condition may cause the system to report that the hardware is unavailable, even though it will be ready when needed. Reorder pages such that biometrics comes first, allowing screen lock to act as the fallback. Issue: calyxos#2544 Change-Id: I654ce25569b983035f1df453623c7a4acd54931d
58 lines
2.0 KiB
XML
58 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
SPDX-FileCopyrightText: 2016 The CyanogenMod Project
|
|
SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
<WizardScript xmlns:wizard="http://schemas.android.com/apk/res/com.google.android.setupwizard"
|
|
wizard:firstAction="welcome">
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_WELCOME;end"
|
|
id="welcome">
|
|
<result wizard:name="skip" wizard:resultCode="1" />
|
|
<result wizard:action="restore" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_RESTORE_BACKUP;end"
|
|
id="restore">
|
|
<result wizard:action="location_settings" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_LOCATION_SETTINGS;end"
|
|
id="location_settings">
|
|
<result wizard:action="biometric_settings" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_BIOMETRIC_SETTINGS;end"
|
|
id="biometric_settings">
|
|
<result wizard:action="lockscreen_settings" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_LOCKSCREEN_SETTINGS;end"
|
|
id="lockscreen_settings">
|
|
<result wizard:action="theme_settings" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.THEME_SETTINGS;end"
|
|
id="theme_settings">
|
|
<result wizard:action="navigation_settings" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.NAVIGATION_SETTINGS;end"
|
|
id="navigation_settings">
|
|
<result wizard:action="finish" />
|
|
</WizardAction>
|
|
|
|
<WizardAction
|
|
wizard:uri="intent:#Intent;action=org.lineageos.setupwizard.LINEAGE_SETUP_COMPLETE;end"
|
|
id="finish" />
|
|
|
|
</WizardScript>
|