summaryrefslogtreecommitdiff
path: root/xr/packages/overlays/SetupWizardOverlayXr/res/raw/wizard_script.xml
blob: 5ec8fa032f4f7a08f8488b99864a62598710242a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="utf-8"?>

<!-- This file is a modified version of
    "google3/java/com/google/android/apps/vr/setupwizard/res/raw/wizard_script.xml"
    that is customized for GSI XR.
-->
<WizardScript xmlns:wizard="http://schemas.android.com/apk/res/com.google.android.setupwizard"
    wizard:version="2">

  <!-- Preliminary setup for OEMs -->
  <WizardAction
      id="oem_pre_setup"
      wizard:uri="intent:#Intent;action=com.android.setupwizard.OEM_PRE_SETUP;end">
    <result wizard:action="wait_for_unlock"/>
  </WizardAction>

  <!-- This step waits for the device to be unlocked from a decryption point of view. Even if we
       don't support encryption the device might take a little bit of time to get out of direct boot
       mode. This step waits until direct boot is no longer needed. -->
  <WizardAction id="wait_for_unlock"
      wizard:uri="intent:#Intent;action=com.android.setupwizard.CHECK_USER_UNLOCK;end">
  </WizardAction>

  <!-- Controller Turn-on screen. -->
  <WizardAction id="controller"
      wizard:uri="intent:#Intent;action=com.google.android.apps.vr.setupwizard.CONTROLLER_TURN_ON;end">
  </WizardAction>

  <!-- Welcome screen with language selection [RECOMMENDED, CUSTOMIZABLE] -->
  <WizardAction id="welcome"
      wizard:uri="intent:#Intent;action=com.android.setupwizard.WELCOME;end">
  </WizardAction>

  <!-- Network selection and packages update [REQUIRED, CUSTOMIZABLE] -->
  <WizardAction id="connect_and_update"
      wizard:script="android.resource://com.google.android.apps.vr.setupwizard/raw/wizard_script_connect_and_update_flow">
    <!-- AIO setup requires network connection. If no network, stay on the same page -->
    <result wizard:name="no_connection"
        wizard:resultCode="1"
        wizard:action="oem_post_setup" />
  </WizardAction>

  <!-- Set up as a new device [REQUIRED, CUSTOMIZABLE] -->
  <WizardAction id="setup_as_new_flow"
      wizard:script="android.resource://com.google.android.apps.vr.setupwizard/raw/wizard_script_setup_as_new_flow">
    <result wizard:action="oem_post_setup" />
  </WizardAction>

  <!-- Set up as zero touch enabled device -->
  <WizardAction id="zero_touch"
      wizard:script="android.resource://com.google.android.apps.vr.setupwizard/raw/wizard_script_zero_touch_flow">
    <result wizard:name="dpm_user_complete" wizard:resultCode="111"/>
  </WizardAction>

  <!-- OEM completion [CUSTOMIZABLE] -->
  <WizardAction id="oem_post_setup"
      wizard:uri="intent:#Intent;action=com.android.setupwizard.OEM_POST_SETUP;end" />

  <!-- Leave Setup Wizard [REQUIRED] -->
  <WizardAction id="exit"
      wizard:uri="intent:#Intent;action=com.android.setupwizard.EXIT;end" />
</WizardScript>