1<device-state-config>
2    <device-state>
3        <identifier>0</identifier>
4        <name>CLOSED</name>
5        <conditions>
6            <sensor>
7                <type>android.sensor.hinge_angle</type>
8                <name>Goldfish hinge sensor0 (in degrees)</name>
9                <value>
10                    <min-inclusive>0</min-inclusive>
11                    <max-inclusive>30</max-inclusive>
12                </value>
13            </sensor>
14        </conditions>
15    </device-state>
16    <device-state>
17        <identifier>1</identifier>
18        <name>HALF_OPENED</name>
19        <conditions>
20            <sensor>
21                <type>android.sensor.hinge_angle</type>
22                <name>Goldfish hinge sensor0 (in degrees)</name>
23                <value>
24                    <min>30</min>
25                    <max>150</max>
26                </value>
27            </sensor>
28        </conditions>
29    </device-state>
30    <device-state>
31        <identifier>2</identifier>
32        <name>OPENED</name>
33            <conditions>
34                <sensor>
35                    <type>android.sensor.hinge_angle</type>
36                    <name>Goldfish hinge sensor0 (in degrees)</name>
37                    <value>
38                        <min-inclusive>150</min-inclusive>
39                        <max-inclusive>180</max-inclusive>
40                    </value>
41                    </sensor>
42            </conditions>
43    </device-state>
44    <device-state>
45        <identifier>3</identifier>
46        <name>REAR_DISPLAY_MODE</name>
47        <flags>
48            <flag>FLAG_EMULATED_ONLY</flag>
49        </flags>
50    </device-state>
51</device-state-config>
52