summaryrefslogblamecommitdiffstats
path: root/gui/devices/landscape/res/landscape.xml
blob: eb6d9ddd657d2c1c91d67e91494e0ae0fa275898 (plain) (tree)
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092





















































































































































                                                                                                                                                                                                                                                  










                                                                                                   

















































































































































































































































                                                                                                                                       





































































































































































                                                                                                                                                                                                                                                  






































































































                                                                                                      
                                                                                      
























































































































































































































































































































































































































                                                                                                                                                                                                                                                  






































                                                                                     











































































                                                                                                                                              
                                                                               

                                                                                            
                                                                             


                                                                 



                                                                                           
                                                        

                                                                                            




                                                                                    

                                                                              

















                                                                                                  
                                                                               









                                                                                    























                                                                                                              


























































































































































































































































































































                                                                                                                                                                                                                                                  



















                                                                                             


































                                                                                                                          
                                                                                                 




















                                                                                                                    
                                                                                                 




















                                                                                                                    
                                                                                                 




















                                                                                                                    
                                                                                                 




















                                                                                                                    
                                                                                                 




















                                                                                                                   
                                                                                                 






















































































































































































































































































































































































































                                                                                                                                                                                                                                                  










                                                                                    







                                                                                
                                                                              







                                                                                                         










                                                                                                          









































































































































































































































































































































































































































                                                                                                                                                                                                                                                  
                                                              





















































































































































































































































                                                                                                                                                                                                                                                  
                                                                                                 





























































































                                                                                                                 
                                                                         




































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                                                                                                                  





























































                                                                                                                  
















































                                                                                                          
<?xml version="1.0"?>

<recovery>
	<pages>
		<page name="main">
			<object type="action">
				<actions>
					<action function="set">tw_clear_destination=main2</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>
		</page>

		<page name="main2">
			<object type="template" name="header" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Install</text>
				<image resource="main_button" />
				<actions>
					<action function="queueclear"></action>
					<action function="page">install</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Backup</text>
				<image resource="main_button" />
				<action function="page">backup</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Restore</text>
				<image resource="main_button" />
				<action function="page">restore</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Wipe</text>
				<image resource="main_button" />
				<action function="page">wipe</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Mount</text>
				<image resource="main_button" />
				<action function="page">mount</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Settings</text>
				<image resource="main_button" />
				<action function="page">settings</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Advanced</text>
				<image resource="main_button" />
				<action function="page">advanced</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Reboot</text>
				<image resource="main_button" />
				<action function="page">reboot</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="install">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Select Zip to Install</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%button_full_center_x%" y="%zipstorage_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
				<actions>
					<action function="set">tw_back=install</action>
					<action function="page">selectstorage</action>
				</actions>
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Folders:</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter folders="1" files="0" />
				<path name="tw_zip_location" default="/sdcard" />
				<data name="select" />
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>%tw_zip_location%</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter extn=".zip" folders="0" files="1" />
				<path name="tw_zip_location" />
				<data name="tw_filename" />
				<selection name="tw_file" />
			</object>

			<object type="template" name="sort_options" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Images...</text>
				<image resource="main_button" />
				<actions>
					<action function="page">install_image</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_filename" op="modified" />
				<actions>
					<action function="queuezip"></action>
					<action function="page">flash_confirm</action>
				</actions>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="flash_confirm">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>WARNING: This operation may install incompatible software and render your device unusable.</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>Folder:</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" placement="5" />
				<text>%tw_zip_location%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>File to flash:</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row5_text_y%" placement="5" />
				<text>%tw_file%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row6_text_y%" placement="5" />
				<text>Press back to cancel adding this zip.</text>
			</object>

			<object type="checkbox">
				<placement x="%col2_x%" y="%row7_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Zip file signature verification?</text>
				<data variable="tw_signed_zip_verify" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row10_text_y%" placement="5" />
				<text>File %tw_zip_queue_count% of max of 10</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_zip_queue_count" op="!=" var2="10"></condition>
				<placement x="%col2_x%" y="%row5_medium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Add More Zips</text>
				<image resource="mediumwide_button" />
				<action function="page">install</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row5_medium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Clear Queue</text>
				<image resource="mediumwide_button" />
				<actions>
					<action function="queueclear"></action>
					<action function="page">install</action>
				</actions>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<action function="flash">flash_zip</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Confirm Flash</text>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="cancelzip"></action>
					<action function="page">install</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="flash_zip">
			<object type="template" name="header" />

			<object type="template" name="flash_zip_console" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col1_x%" y="%row16_text_y%" />
				<text>Flashing file %tw_zip_index% of %tw_zip_queue_count%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col1_x%" y="%row17_text_y%" />
				<text>%tw_filename%</text>
			</object>

			<object type="template" name="progress_bar" />

			<object type="action">
				<condition var1="tw_operation_state" var2="1" />
				<action function="page">flash_done</action>
			</object>
		</page>

		<page name="flash_done">
			<object type="template" name="header" />

			<object type="template" name="flash_zip_console" />

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_operation_status" op="!=" var2="0" />
				<font resource="font" />
				<placement x="%center_x%" y="%row17_text_y%" placement="5" />
				<text>Failed</text>
			</object>

			<object type="text" color="%text_success_color%">
				<condition var1="tw_operation_status" var2="0" />
				<font resource="font" />
				<placement x="%center_x%" y="%row17_text_y%" placement="5" />
				<text>Successful</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%slider_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Wipe Cache/Dalvik</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=flash_done</action>
					<action function="set">tw_action=wipe</action>
					<action function="set">tw_action_param=/cache</action>
					<action function="set">tw_has_action2=1</action>
					<action function="set">tw_action2=wipe</action>
					<action function="set">tw_action2_param=dalvik</action>
					<action function="set">tw_text1=Wipe Cache & Dalvik?</action>
					<action function="set">tw_action_text1=Wiping Cache & Dalvik...</action>
					<action function="set">tw_complete_text1=Cache & Dalvik Wipe Complete</action>
					<action function="set">tw_slider_text=Swipe to Wipe</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_reboot_system" var2="1" />
				<placement x="%col4_x%" y="%slider_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Reboot System</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=main2</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=system</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to reboot?</action>
					<action function="set">tw_text3=</action>
					<action function="set">tw_text4=</action>
					<action function="set">tw_action_text1=Rebooting...</action>
					<action function="set">tw_action_text2=</action>
					<action function="set">tw_complete_text1=Rebooting...</action>
					<action function="set">tw_slider_text=Swipe to Reboot</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%slider_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Home</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_clear_destination=main2</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="set">tw_clear_destination=install</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<actions>
					<action function="set">tw_clear_destination=main2</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>
		</page>

		<page name="install_image">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Select Image to Flash</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%button_full_center_x%" y="%zipstorage_text_y%" w="%button_fill_full_width%" h="%button_fill_quarter_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
				<actions>
					<action function="set">tw_back=install_image</action>
					<action function="page">selectstorage</action>
				</actions>
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Folders:</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter folders="1" files="0" />
				<path name="tw_zip_location" default="/sdcard" />
				<data name="select" />
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>%tw_zip_location%</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter extn=".img" folders="0" files="1" />
				<path name="tw_zip_location" />
				<data name="tw_filename" />
				<selection name="tw_file" />
			</object>

			<object type="template" name="sort_options" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Zips...</text>
				<image resource="main_button" />
				<actions>
					<action function="page">install</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_filename" op="modified" />
				<action function="page">flashimage_confirm</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">install</action>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="flashimage_confirm">
			<object type="template" name="header" />

			<object type="partitionlist">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%col2_x%" y="%row1_text_y%" w="%listbox_width%" h="%flash_list_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Partition to Flash Image:</text>
				<icon selected="radio_true" unselected="radio_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<data name="tw_flash_partition" />
				<listtype name="flashimg" />
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row8_text_y%" placement="5" />
				<text>Folder:</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row9_text_y%" placement="5" />
				<text>%tw_zip_location%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row10_text_y%" placement="5" />
				<text>File to flash:</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row11_text_y%" placement="5" />
				<text>%tw_file%</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" placement="5" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_back=flashimage_confirm</action>
					<action function="set">tw_action=flashimage</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_action_text1=Flashing Image...</action>
					<action function="set">tw_action_text2=</action>
					<action function="set">tw_complete_text1=Image Flashed</action>
					<action function="page">action_page</action>
				</actions>
				<action function="flashimage"></action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Confirm Flash</text>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="set">tw_clear_destination=install_image</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<actions>
					<action function="set">tw_clear_destination=main2</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="clear_vars">
			<object type="action">
				<action function="set">tw_operation_state=0</action>
				<action function="set">tw_text1=</action>
				<action function="set">tw_text2=</action>
				<action function="set">tw_text3=</action>
				<action function="set">tw_text4=</action>
				<action function="set">tw_action_text1=</action>
				<action function="set">tw_action_text2=</action>
				<action function="set">tw_action_param=</action>
				<action function="set">tw_has_action2=0</action>
				<action function="set">tw_action2=</action>
				<action function="set">tw_action2_param=</action>
				<action function="set">tw_has_cancel=0</action>
				<action function="set">tw_cancel_action=</action>
				<action function="set">tw_cancel_param=</action>
				<action function="set">tw_show_exclamation=0</action>
				<action function="set">tw_show_reboot=0</action>
				<action function="page">%tw_clear_destination%</action>
			</object>
		</page>

		<page name="confirm_action">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_text1%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>%tw_text2%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" placement="5" />
				<text>%tw_text3%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>%tw_text4%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row12_text_y%" placement="5" />
				<text>Press back button to cancel.</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<action function="page">action_page</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>%tw_slider_text%</text>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="set">tw_clear_destination=%tw_back%</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="action_page">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_action_text1%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>%tw_action_text2%</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_has_cancel" var2="1" />
                                <placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<action function="%tw_cancel_action%">%tw_cancel_param%</action>
			</object>

			<object type="template" name="progress_bar" />

			<object type="action">
				<condition var1="tw_operation_state" var2="1" />
				<actions>
					<action function="page">action_complete</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_has_action2" var2="0" />
				<actions>
					<action function="%tw_action%">%tw_action_param%</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_has_action2" var2="1" />
				<actions>
					<action function="%tw_action%">%tw_action_param%</action>
					<action function="%tw_action2%">%tw_action2_param%</action>
				</actions>
			</object>
		</page>

		<page name="singleaction_page">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_action_text1%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>%tw_action_text2%</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="template" name="progress_bar" />

			<object type="action">
				<condition var1="tw_operation_state" var2="1" />
				<actions>
					<action function="set">tw_page_done=1</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_has_action2" var2="0" />
				<actions>
					<action function="%tw_action%">%tw_action_param%</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_has_action2" var2="1" />
				<actions>
					<action function="%tw_action%">%tw_action_param%</action>
					<action function="%tw_action2%">%tw_action2_param%</action>
				</actions>
			</object>
		</page>

		<page name="action_complete">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_complete_text1%</text>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_operation_status" op="!=" var2="0" />
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>Failed</text>
			</object>

			<object type="text" color="%text_success_color%">
				<condition var1="tw_operation_status" var2="0" />
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>Successful</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_show_reboot" var2="0" />
				<placement x="%col_center_x%" y="%slider_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Back</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_clear_destination=%tw_back%</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_show_reboot" var2="1" />
				<placement x="%col_center_x%" y="%slider_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Reboot System</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=main2</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=system</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to reboot?</action>
					<action function="set">tw_text3=</action>
					<action function="set">tw_text4=</action>
					<action function="set">tw_action_text1=Rebooting...</action>
					<action function="set">tw_action_text2=</action>
					<action function="set">tw_complete_text1=Rebooting...</action>
					<action function="set">tw_slider_text=Swipe to Reboot</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<actions>
					<action function="set">tw_clear_destination=main2</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="set">tw_clear_destination=%tw_back%</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>
		</page>

		<page name="filecheck">
			<object type="action">
				<action function="fileexists">%tw_filecheck%</action>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_fileexists=1</action>
					<action function="page">%tw_existpage%</action>
				</actions>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" var2="1" />
				</conditions>
				<actions>
					<action function="set">tw_fileexists=0</action>
					<action function="page">%tw_notexistpage%</action>
				</actions>
			</object>
		</page>

		<page name="rebootcheck">
			<object type="action">
				<condition var1="tw_backup_system_size" op=">=" var2="%tw_min_system%" />
				<action function="reboot">%tw_action_param%</action>
			</object>

			<object type="action">
				<condition var1="tw_backup_system_size" op="<" var2="%tw_min_system%" />
				<action function="page">confirm_action</action>
			</object>
		</page>

		<page name="reboot">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Reboot Menu</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_reboot_system" var2="1" />
				<placement x="%col1_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>System</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=reboot</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=system</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to reboot?</action>
					<action function="set">tw_action_text1=Rebooting...</action>
					<action function="set">tw_complete_text1=Rebooting...</action>
					<action function="set">tw_slider_text=Swipe to Reboot</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_reboot_poweroff" var2="1" />
				<placement x="%col2_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Power Off</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=reboot</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=poweroff</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to power off?</action>
					<action function="set">tw_action_text1=Turning Off...</action>
					<action function="set">tw_complete_text1=Turning Off...</action>
					<action function="set">tw_slider_text=Swipe to Power Off</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_reboot_recovery" var2="1" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Recovery</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=reboot</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=recovery</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to reboot?</action>
					<action function="set">tw_action_text1=Rebooting...</action>
					<action function="set">tw_complete_text1=Rebooting...</action>
					<action function="set">tw_slider_text=Swipe to Reboot</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_reboot_bootloader" var2="1" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Bootloader</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=reboot</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=bootloader</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to reboot?</action>
					<action function="set">tw_action_text1=Rebooting...</action>
					<action function="set">tw_complete_text1=Rebooting...</action>
					<action function="set">tw_slider_text=Swipe to Reboot</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_download_mode" var2="1" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Download</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=reboot</action>
					<action function="set">tw_action=reboot</action>
					<action function="set">tw_action_param=download</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=No OS Installed! Are you</action>
					<action function="set">tw_text2=sure you wish to reboot?</action>
					<action function="set">tw_action_text1=Rebooting...</action>
					<action function="set">tw_complete_text1=Rebooting...</action>
					<action function="set">tw_slider_text=Swipe to Reboot</action>
					<action function="page">rebootcheck</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="selectstorage">
			<object type="template" name="header" />

			<object type="partitionlist">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Storage:</text>
				<icon selected="radio_true" unselected="radio_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<data name="tw_storage_path" />
				<listtype name="storage" />
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%filemanager_select_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>OK</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_clear_destination=%tw_back%</action>
					<action function="page">clear_vars</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="page">%tw_back%</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="mount">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Mount Menu</text>
			</object>

			<object type="partitionlist">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%mount_list_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Partitions to Mount:</text>
				<icon selected="checkbox_true" unselected="checkbox_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<listtype name="mount" />
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<conditions>
					<condition var1="tw_is_encrypted" var2="1" />
					<condition var1="tw_is_decrypted" var2="0" />
				</conditions>
				<placement x="%col3_x%" y="row1_y" />
				<font resource="font" color="%button_text_color%" />
				<text>Decrypt Data</text>
				<image resource="main_button" />
				<action function="page">decrypt</action>
			</object>

			<object type="button">
				<condition var1="tw_has_usb_storage" var2="1" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Mount USB Storage</text>
				<image resource="main_button" />
				<action function="page">usb_mount</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<conditions>
					<condition var1="tw_has_mtp" var2="1" />
					<condition var1="tw_mtp_enabled" var2="0" />
				</conditions>
				<placement x="%col3_x%" y="row1_y" />
				<font resource="font" color="%button_text_color%" />
				<text>Enable MTP</text>
				<image resource="main_button" />
				<action function="startmtp"></action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<conditions>
					<condition var1="tw_has_mtp" var2="1" />
					<condition var1="tw_mtp_enabled" var2="1" />
				</conditions>
				<placement x="%col3_x%" y="row1_y" />
				<font resource="font" color="%button_text_color%" />
				<text>Disable MTP</text>
				<image resource="main_button" />
				<action function="stopmtp"></action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<conditions>
					<condition var1="tw_is_encrypted" var2="1" />
					<condition var1="tw_is_decrypted" var2="0" />
				</conditions>
				<placement x="%col3_x%" y="row1_y" />
				<font resource="font" color="%button_text_color%" />
				<text>Decrypt Data</text>
				<image resource="main_button" />
				<action function="page">decrypt</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
				<actions>
					<action function="set">tw_back=mount</action>
					<action function="page">selectstorage</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="usb_mount">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<font resource="font" />
				<text>USB Storage Mounted -- Be sure to safely remove your device from your computer before unmounting!</text>
			</object>

			<object type="text" color="%text_color%">
				<placement x="%col1_x%" y="%row2_text_y%" />
				<font resource="font" />
				<text></text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Unmount</text>
				<image resource="main_button" />
				<action function="page">usb_umount</action>
			</object>

			<object type="action">
				<action function="mount">usb</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="usb_umount">
			<object type="action">
				<action function="unmount">usb</action>
			</object>

			<object type="action">
				<action function="page">mount</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="wipe">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Factory Reset: Wipes Data, Cache, and Dalvik</text>
			</object>

			<object type="text" color="%text_color%">
				<condition var1="tw_has_data_media" var2="1" />
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>(not including internal storage)</text>
			</object>

			<object type="text" color="%text_color%">
				<conditions>
					<condition var1="tw_has_android_secure" var2="1" />
					<condition var1="fileexists" var2="/and-sec" />
				</conditions>
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" placement="1" />
				<text>Android Secure  </text>
			</object>

			<object type="text" color="%text_color%">
				<condition var1="tw_has_sdext_partition" var2="1" />
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" />
				<text>  SD-EXT</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>Most of the time this is the only wipe that you need.</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%wipe_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Advanced Wipe</text>
				<image resource="main_button" />
				<action function="page">advancedwipe</action>
			</object>

			<object type="button">
				<condition var1="tw_has_data_media" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%wipe_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Format Data</text>
				<image resource="main_button" />
				<actions>
					<action function="page">formatdata</action>
				</actions>
			</object>

			<object type="button">
				<conditions>
					<condition var1="tw_is_encrypted" var2="1" />
					<condition var1="tw_has_data_media" var2="0" />
				</conditions>
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%wipe_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Wipe Encryption</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=wipe</action>
					<action function="set">tw_action=wipe</action>
					<action function="set">tw_action_param=DATAMEDIA</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Wipe Encryption from Data?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting Data...</action>
					<action function="set">tw_complete_text1=Data Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Format Data</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row12_text_y%" placement="5" />
				<text>Press back button to cancel.</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_back=wipe</action>
					<action function="set">tw_action=wipe</action>
					<action function="set">tw_action_param=data</action>
					<action function="set">tw_action_text1=Factory Reset...</action>
					<action function="set">tw_complete_text1=Factory Reset Complete</action>
					<action function="page">action_page</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Factory Reset</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="advancedwipe">
			<object type="template" name="header" />

			<object type="partitionlist">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%backup_list_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Partitions to Wipe:</text>
				<icon selected="checkbox_true" unselected="checkbox_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<data name="tw_wipe_list" />
				<listtype name="wipe" />
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Repair or Change File System</text>
				<actions>
					<action function="checkpartitionlist"></action>
					<action function="page">checkpartitionlist</action>
				</actions>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="partitionlisterror" var2="1" />
				<font resource="font" />
				<placement x="%col3_x%" y="%backup_storage_y%" />
				<text>Invalid partition selection</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_back=advancedwipe</action>
					<action function="set">tw_action=wipe</action>
					<action function="set">tw_action_param=LIST</action>
					<action function="set">tw_text1=Wipe Selected Partition(s)?</action>
					<action function="set">tw_action_text1=Wiping Partition(s)...</action>
					<action function="set">tw_complete_text1=Wipe Complete</action>
					<action function="page">action_page</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Wipe</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">wipe</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="formatdata">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Format Data will wipe all of your apps, backups, pictures,</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>videos, media, and removes encryption on internal storage.</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" placement="5" />
				<text>This cannot be undone. Press back to cancel.</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>Type yes to continue.</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row6_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_confirm_formatdata%</text>
				<data name="tw_confirm_formatdata" />
				<restrict minlen="3" maxlen="3" allow="yes" />
				<action function="page">formatdata_confirm</action>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">wipe</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="formatdata_confirm">
			<object type="action">
				<condition var1="tw_confirm_formatdata" op="=" var2="yes" />
				<actions>
					<action function="set">tw_back=formatdata</action>
					<action function="set">tw_action=wipe</action>
					<action function="set">tw_action_param=DATAMEDIA</action>
					<action function="set">tw_action_text1=Formatting Data...</action>
					<action function="set">tw_complete_text1=Data Format Complete</action>
					<action function="page">action_page</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_confirm_formatdata" op="!=" var2="yes" />
				<action function="page">formatdata</function>
			</object>
		</page>

		<page name="checkpartitionlist">
			<object type="action">
				<condition var1="tw_check_partition_list" op="=" var2="1" />
				<actions>
					<action function="set">partitionlisterror=0</action>
					<action function="getpartitiondetails"></action>
					<action function="page">partitionoptions</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_check_partition_list" op="!=" var2="1" />
				<actions>
					<action function="set">partitionlisterror=1</action>
					<action function="set">tw_wipe_list=</action>
					<action function="page">advancedwipe</action>
				</actions>
			</object>
		</page>

		<page name="partitionoptions">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col1_x%" y="%row1_text_y%" />
				<text>Partition Options for: %tw_partition_name%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col_right_x%" y="%row1_text_y%" placement="1" />
				<text>Mount Point: %tw_partition_mount_point%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>Current file system: %tw_partition_file_system%</text>
			</object>

			<object type="text" color="%text_color%">
				<condition var1="tw_partition_is_present" op="!=" var2="0" />
				<font resource="font" />
				<placement x="%col2_x%" y="%row3_text_y%" />
				<text>Present: Yes</text>
			</object>

			<object type="text" color="%text_color%">
				<condition var1="tw_partition_is_present" op="=" var2="0" />
				<font resource="font" />
				<placement x="%col2_x%" y="%row3_text_y%" />
				<text>Present: No</text>
			</object>

			<object type="text" color="%text_color%">
				<condition var1="tw_partition_removable" op="!=" var2="0" />
				<font resource="font" />
				<placement x="%col3_x%" y="%row3_text_y%" />
				<text>Removable: Yes</text>
			</object>

			<object type="text" color="%text_color%">
				<condition var1="tw_partition_removable" op="=" var2="0" />
				<font resource="font" />
				<placement x="%col3_x%" y="%row3_text_y%" />
				<text>Removable: No</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col1_x%" y="%row4_text_y%" />
				<text>Size: %tw_partition_size%MB</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col2_x%" y="%row4_text_y%" />
				<text>Used: %tw_partition_used%MB</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col3_x%" y="%row4_text_y%" />
				<text>Free: %tw_partition_free%MB</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col4_x%" y="%row4_text_y%" />
				<text>Backup Size: %tw_partition_backup_size%MB</text>
			</object>

			<object type="button">
				<condition var1="tw_partition_can_repair" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Repair</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=partitionoptions</action>
					<action function="set">tw_action=repair</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Repair %tw_partition_name%?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Repairing...</action>
					<action function="set">tw_complete_text1=Repair Complete</action>
					<action function="set">tw_slider_text=Swipe to Repair</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Change File System</text>
				<image resource="main_button" />
				<action function="page">selectfilesystem</action>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advancedwipe</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="refreshfilesystem">
			<object type="action">
				<condition var1="tw_check_partition_list" op="=" var2="1" />
				<actions>
					<action function="set">partitionlisterror=0</action>
					<action function="getpartitiondetails"></action>
					<action function="page">selectfilesystem</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_check_partition_list" op="!=" var2="1" />
				<actions>
					<action function="set">partitionlisterror=1</action>
					<action function="set">tw_wipe_list=</action>
					<action function="page">advancedwipe</action>
				</actions>
			</object>
		</page>

		<page name="selectfilesystem">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col1_x%" y="%row1_text_y%" />
				<text>Change file system for: %tw_partition_name%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col_right_x%" y="%row1_text_y%" placement="1" />
				<text>Mount Point: %tw_partition_mount_point%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Current file system: %tw_partition_file_system%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>Some ROMs or kernels may not support some file systems. Proceed with caution!</text>
			</object>

			<object type="button">
				<condition var1="tw_partition_ext" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>EXT2</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=refreshfilesystem</action>
					<action function="set">tw_action=changefilesystem</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_action_new_file_system=ext2</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Change %tw_partition_name% to EXT2?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting...</action>
					<action function="set">tw_complete_text1=Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Change</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<condition var1="tw_partition_ext" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>EXT3</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=refreshfilesystem</action>
					<action function="set">tw_action=changefilesystem</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_action_new_file_system=ext3</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Change %tw_partition_name% to EXT3?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting...</action>
					<action function="set">tw_complete_text1=Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Change</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<condition var1="tw_partition_ext" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>EXT4</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=refreshfilesystem</action>
					<action function="set">tw_action=changefilesystem</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_action_new_file_system=ext4</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Change %tw_partition_name% to EXT4?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting...</action>
					<action function="set">tw_complete_text1=Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Change</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<condition var1="tw_partition_f2fs" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>F2FS</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=refreshfilesystem</action>
					<action function="set">tw_action=changefilesystem</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_action_new_file_system=f2fs</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Change %tw_partition_name% to F2FS?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting...</action>
					<action function="set">tw_complete_text1=Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Change</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<condition var1="tw_partition_vfat" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>FAT</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=refreshfilesystem</action>
					<action function="set">tw_action=changefilesystem</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_action_new_file_system=vfat</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Change %tw_partition_name% to FAT?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting...</action>
					<action function="set">tw_complete_text1=Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Change</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<condition var1="tw_partition_exfat" op="=" var2="1" />
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>exFAT</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=refreshfilesystem</action>
					<action function="set">tw_action=changefilesystem</action>
					<action function="set">tw_action_param=%tw_partition_mount_point%</action>
					<action function="set">tw_action_new_file_system=exfat</action>
					<action function="set">tw_has_action2=0</action>
					<action function="set">tw_text1=Change %tw_partition_name% to exFAT?</action>
					<action function="set">tw_text2=</action>
					<action function="set">tw_action_text1=Formatting...</action>
					<action function="set">tw_complete_text1=Format Complete</action>
					<action function="set">tw_slider_text=Swipe to Change</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">partitionoptions</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="backup">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Back Up Device</text>
			</object>

			<object type="partitionlist">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%backup_list_x%" y="%backup_list_y%" w="%backup_list_width%" h="%backup_list_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Partitions to Back Up:</text>
				<icon selected="checkbox_true" unselected="checkbox_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<data name="tw_backup_list" />
				<listtype name="backup" />
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col_right_x%" y="%row2_text_y%" placement="1" />
				<text>Backup Name: %tw_backup_name%</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Refresh Sizes</text>
				<image resource="main_button" />
				<actions>
					<action function="refreshsizes"></action>
					<action function="page">backup</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Set Backup Name</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_fileexists=0</action>
					<action function="page">backupname1</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%col3_x%" y="%backup_storage_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
				<actions>
					<action function="set">tw_back=backup</action>
					<action function="page">selectstorage</action>
				</actions>
			</object>

			<object type="button">
				<conditions>
					<condition var1="tw_include_encrypted_backup" var2="1" />
					<condition var1="tw_encrypt_backup" var2="0" />
				</conditions>
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%col3_x%" y="%backup_encrypt_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>No Encryption</text>
				<actions>
					<action function="page">backupencryption</action>
				</actions>
			</object>

			<object type="button">
				<conditions>
					<condition var1="tw_include_encrypted_backup" var2="1" />
					<condition var1="tw_encrypt_backup" var2="1" />
				</conditions>
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%col3_x%" y="%backup_encrypt_y%" w="%button_fill_main_width%" h="%button_fill_half_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Using Encryption</text>
				<actions>
					<action function="page">backupencryption</action>
				</actions>
			</object>

			<object type="checkbox">
				<placement x="%col3_x%" y="%nandcheck_row6%" />
				<font resource="font" color="%text_color%" />
				<text>Enable Compression (Requires more time)</text>
				<data variable="tw_use_compression" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col3_x%" y="%nandcheck_row7%" />
				<font resource="font" color="%text_color%" />
				<text>Skip MD5 generation on backups</text>
				<data variable="tw_skip_md5_generate" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_operation_state=0</action>
					<action function="page">backup_run</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Back Up</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="backupname1">
			<object type="action">
				<condition var1="tw_backup_name" op="=" var2="(Auto Generate)" />
				<action function="generatebackupname"></function>
			</object>

			<object type="action">
				<action function="page">backupname2</function>
			</object>
		</page>

		<page name="backupname2">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<font resource="font" />
				<text>Please Enter a Backup Name</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_backup_name%</text>
				<data name="tw_backup_name" />
				<restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
				<actions>
					<action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_name%</action>
					<action function="set">tw_existpage=backupname2</action>
					<action function="set">tw_notexistpage=backup</action>
					<action function="page">filecheck</action>
				</actions>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_fileexists" var2="1" />
				<placement x="%center_x%" y="%row5_text_y%" placement="5" />
				<font resource="font" />
				<text>A backup with that name already exists!</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Append Date</text>
				<image resource="main_button" />
				<action function="appenddatetobackupname"></action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel / Clear</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_backup_name=(Auto Generate)</action>
					<action function="page">backup</action>
				</actions>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<actions>
					<action function="set">tw_backup_name=(Auto Generate)</action>
					<action function="page">main</action>
				</actions>
			</object>

			<object type="action">
				<touch key="back" />
				<actions>
					<action function="set">tw_backup_name=(Auto Generate)</action>
					<action function="page">backup</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="backupencryption">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Encrypt your backup? Please enter a password:</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_backup_encrypt_display%</text>
				<data name="tw_backup_password" mask="*" maskvariable="tw_backup_encrypt_display" />
				<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
				<action function="page">backupencryption2</action>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_password_not_match" var2="1" />
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>Passwords Do Not Match</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_encrypt_backup=0</action>
					<action function="set">tw_backup_password=</action>
					<action function="set">tw_backup_password2=</action>
					<action function="set">tw_backup_encrypt_display=</action>
					<action function="set">tw_backup_encrypt_display2=</action>
					<action function="page">backup</action>
				</actions>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">backup</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="backupencryption2">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Encrypt your backup? Please Enter Password Again:</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_backup_encrypt_display2%</text>
				<data name="tw_backup_password2" mask="*" maskvariable="tw_backup_encrypt_display2" />
				<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
				<actions>
					<action function="page">checkbackuppassword</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_encrypt_backup=0</action>
					<action function="set">tw_backup_password=</action>
					<action function="set">tw_backup_password2=</action>
					<action function="set">tw_backup_encrypt_display=</action>
					<action function="set">tw_backup_encrypt_display2=</action>
					<action function="page">backup</action>
				</actions>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">backup</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="checkbackuppassword">
			<object type="action">
				<condition var1="tw_backup_password2" var2="tw_backup_password" />
				<actions>
					<action function="set">tw_encrypt_backup=1</action>
					<action function="page">backup</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_backup_password2" op="!=" var2="tw_backup_password" />
				<actions>
					<action function="set">tw_encrypt_backup=0</action>
					<action function="set">tw_password_not_match=1</action>
					<action function="set">tw_backup_password=</action>
					<action function="set">tw_backup_password2=</action>
					<action function="set">tw_backup_encrypt_display=</action>
					<action function="set">tw_backup_encrypt_display2=</action>
					<action function="page">backupencryption</action>
				</actions>
			</object>
		</page>

		<page name="backup_run">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_operation% %tw_partition%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col1_x%" y="%row2_text_y%" />
				<text>%tw_file_progress%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col_right_x%" y="%row2_text_y%" placement="1" />
				<text>%tw_size_progress%</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_medium_x%" y="%row3_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="medium_button" />
				<actions>
					<action function="cancelbackup"></action>
				</actions>
			</object>

			<object type="template" name="progress_bar" />

			<object type="action">
				<action function="nandroid">backup</action>
			</object>

			<object type="action">
				<condition var1="tw_operation_state" var2="1" />
				<condition var1="tw_cancel_backup" var2="0" />
				<actions>
					<action function="set">tw_back=backup</action>
					<action function="set">tw_complete_text1=Backup Complete</action>
					<action function="set">tw_show_reboot=1</action>
					<action function="page">action_complete</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_operation_state" var2="1" />
				<condition var1="tw_cancel_backup" var2="1" />
				<actions>
					<action function="set">tw_back=backup</action>
					<action function="set">tw_complete_text1=Backup Cancelled</action>
					<action function="set">tw_show_reboot=1</action>
					<action function="page">action_complete</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="restore">
			<object type="template" name="header" />

			<object type="button">
				<highlight color="%highlight_color%" />
				<fill color="%button_fill_color%" />
				<placement x="%col2_x%" y="%zipstorage_text_y%" w="%fileselector_folderonly_width%" h="%button_fill_quarter_height%" />
				<font resource="font" color="%button_text_color%" />
				<text>Storage: %tw_storage_display_name% (%tw_storage_free_size% MB)</text>
				<actions>
					<action function="set">tw_back=restore</action>
					<action function="page">selectstorage</action>
				</actions>
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Package to Restore:</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<filter folders="1" files="0" nav="0" />
				<path name="tw_backups_folder" />
				<data name="tw_restore" default="" />
				<selection name="tw_restore_name" />
			</object>

			<object type="template" name="sort_options" />

			<object type="action">
				<condition var1="tw_restore" op="modified" />
				<actions>
					<action function="readBackup"></action>
					<action function="page">restore_read</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="restore_read">
			<object type="action">
				<condition var1="tw_restore_encrypted" var2="1" />
				<actions>
					<action function="set">tw_password_fail=0</action>
					<action function="page">restore_decrypt</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_restore_encrypted" var2="0" />
				<actions>
					<action function="page">restore_select</action>
				</actions>
			</object>
		</page>

		<page name="restore_decrypt">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Backup encrypted. Please enter your password:</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_restore_display%</text>
				<data name="tw_restore_password" mask="*" maskvariable="tw_restore_display" />
				<restrict minlen="1" maxlen="32" allow="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_" />
				<actions>
					<action function="page">try_restore_decrypt</action>
				</actions>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_password_fail" var2="1" />
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>Password Failed, Please Try Again</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_page_done=1</action>
					<action function="page">restore</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Delete</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=restore</action>
					<action function="set">tw_action=cmd</action>
					<action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf &quot;%tw_restore_name%&quot;</action>
					<action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
					<action function="set">tw_text2=This cannot be undone!</action>
					<action function="set">tw_action_text1=Deleting Backup...</action>
					<action function="set">tw_complete_text1=Backup Delete Complete</action>
					<action function="set">tw_slider_text=Swipe to Delete</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">restore</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="try_restore_decrypt">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Trying Decryption with Your Password</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="template" name="progress_bar" />

			<object type="action">
				<action function="decrypt_backup"></action>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" op="!=" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_password_fail=1</action>
					<action function="page">restore_decrypt</action>
				</actions>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" op="=" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_page_done=1</action>
					<action function="page">restore_select</action>
				</actions>
			</object>
		</page>

		<page name="restore_select">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Package to Restore: %tw_restore_name%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>Package Date: %tw_restore_file_date%</text>
			</object>

			<object type="partitionlist">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%backup_list_x%" y="%restore_list_y%" w="%backup_list_width%" h="%restore_list_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Partitions to Restore:</text>
				<icon selected="checkbox_true" unselected="checkbox_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<data name="tw_restore_list" selectedlist="tw_restore_selected" />
				<listtype name="restore" />
			</object>

			<object type="checkbox">
				<placement x="%col3_x%" y="%nandcheck_row6%" />
				<font resource="font" color="%text_color%" />
				<text>Enable MD5 checking of backup files</text>
				<data variable="tw_skip_md5_check" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Rename Backup</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_backup_rename=</action>
					<action function="set">tw_fileexists=0</action>
					<action function="page">renamebackup</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Delete Backup</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=restore</action>
					<action function="set">tw_action=cmd</action>
					<action function="set">tw_action_param=cd %tw_backups_folder% && rm -rf &quot;%tw_restore_name%&quot;</action>
					<action function="set">tw_text1=Delete Backup? %tw_restore_name%</action>
					<action function="set">tw_text2=This cannot be undone!</action>
					<action function="set">tw_action_text1=Deleting Backup...</action>
					<action function="set">tw_complete_text1=Backup Delete Complete</action>
					<action function="set">tw_slider_text=Swipe to Delete</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<action function="page">restore_run</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Restore</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">restore</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="renamebackup">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<font resource="font" />
				<text>Please Enter a New Backup Name</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_backup_rename%</text>
				<data name="tw_backup_rename" />
				<restrict minlen="1" maxlen="64" allow=" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.{}[]" />
				<actions>
					<action function="set">tw_back=restore</action>
					<action function="set">tw_action=cmd</action>
					<action function="set">tw_action_param=cd %tw_backups_folder% && mv &quot;%tw_restore_name%&quot; &quot;%tw_backup_rename%&quot;</action>
					<action function="set">tw_text1=Rename Backup?</action>
					<action function="set">tw_text2=This cannot be undone!</action>
					<action function="set">tw_action_text1=Renaming Backup...</action>
					<action function="set">tw_complete_text1=Backup Rename Complete</action>
					<action function="set">tw_slider_text=Swipe to Rename</action>
					<action function="set">tw_filecheck=%tw_backups_folder%/%tw_backup_rename%</action>
					<action function="set">tw_existpage=renamebackup</action>
					<action function="set">tw_notexistpage=confirm_action</action>
					<action function="page">filecheck</action>
				</actions>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_fileexists" var2="1" />
				<placement x="%center_x%" y="%row5_text_y%" placement="5" />
				<font resource="font" />
				<text>A backup with that name already exists!</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<action function="page">restore_select</action>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">restore_select</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="restore_run">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_operation% %tw_partition%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5" />
				<text>%tw_size_progress%</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="template" name="progress_bar" />

			<object type="action">
				<condition var1="tw_operation_state" var2="1" />
				<actions>
					<action function="set">tw_back=restore_select</action>
					<action function="set">tw_complete_text1=Restore Complete</action>
					<action function="set">tw_show_reboot=1</action>
					<action function="page">action_complete</action>
				</actions>
			</object>

			<object type="action">
				<action function="nandroid">restore</action>
			</object>
		</page>

		<page name="settings">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Settings</text>
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row2_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Zip file signature verification?</text>
				<data variable="tw_signed_zip_verify" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row3_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Use rm -rf instead of formatting?</text>
				<data variable="tw_rm_rf" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row4_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Skip MD5 generation on backups</text>
				<data variable="tw_skip_md5_generate" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row5_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Enable MD5 checking of backup files</text>
				<data variable="tw_skip_md5_check" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row6_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Use 24-hour clock</text>
				<data variable="tw_military_time" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row7_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Simulate most actions for theme testing</text>
				<data variable="tw_simulate_actions" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<condition var1="tw_simulate_actions" var2="1" />
				<placement x="%col1_x%" y="%row8_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Simulate failure for actions</text>
				<data variable="tw_simulate_fail" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Time Zone</text>
				<image resource="main_button" />
				<action function="page">timezone</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Restore Defaults</text>
				<image resource="main_button" />
				<action function="restoredefaultsettings"></action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Vibration Duration</text>
				<image resource="main_button" />
				<action function="page">Vibrate</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Screen</text>
				<image resource="main_button" />
				<action function="page">screen</action>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="timezone">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Select Time Zone</text>
			</object>

			<object type="listbox">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%listbox_x%" y="%listbox_y%" w="%listbox_width%" h="%listbox_tz_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Select Time Zone:</text>
				<icon selected="radio_true" unselected="radio_false" />
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<background color="%listbox_background%" />
				<font resource="font" spacing="%listbox_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<data name="tw_time_zone_guisel" />
				<listitem name="(UTC -11) Samoa, Midway Island">BST11;BDT</listitem>
				<listitem name="(UTC -10) Hawaii">HST10;HDT</listitem>
				<listitem name="(UTC -9) Alaska">AST9;ADT</listitem>
				<listitem name="(UTC -8) Pacific Time">PST8;PDT</listitem>
				<listitem name="(UTC -7) Mountain Time">MST7;MDT</listitem>
				<listitem name="(UTC -6) Central Time">CST6;CDT</listitem>
				<listitem name="(UTC -5) Eastern Time">EST5;EDT</listitem>
				<listitem name="(UTC -4) Atlantic Time">AST4;ADT</listitem>
				<listitem name="(UTC -3) Brazil, Buenos Aires">GRNLNDST3;GRNLNDDT</listitem>
				<listitem name="(UTC -2) Mid-Atlantic">FALKST2;FALKDT</listitem>
				<listitem name="(UTC -1) Azores, Cape Verde">AZOREST1;AZOREDT</listitem>
				<listitem name="(UTC  0) London, Dublin, Lisbon">GMT0;BST</listitem>
				<listitem name="(UTC +1) Berlin, Brussels, Paris">NFT-1;DFT</listitem>
				<listitem name="(UTC +2) Athens, Istanbul, South Africa">WET-2;WET</listitem>
				<listitem name="(UTC +3) Moscow, Baghdad">SAUST-3;SAUDT</listitem>
				<listitem name="(UTC +4) Abu Dhabi, Tbilisi, Muscat">WST-4;WDT</listitem>
				<listitem name="(UTC +5) Yekaterinburg, Islamabad">PAKST-5;PAKDT</listitem>
				<listitem name="(UTC +6) Almaty, Dhaka, Colombo">TASHST-6;TASHDT</listitem>
				<listitem name="(UTC +7) Bangkok, Hanoi, Jakarta">THAIST-7;THAIDT</listitem>
				<listitem name="(UTC +8) Beijing, Singapore, Hong Kong">TAIST-8;TAIDT</listitem>
				<listitem name="(UTC +9) Tokyo, Seoul, Yakutsk">JST-9;JSTDT</listitem>
				<listitem name="(UTC +10) Eastern Australia, Guam">EET-10;EETDT</listitem>
				<listitem name="(UTC +11) Vladivostok, Solomon Islands">MET-11;METDT</listitem>
				<listitem name="(UTC +12) Auckland, Wellington, Fiji">NZST-12;NZDT</listitem>
			</object>

			<object type="checkbox">
				<placement x="%col1_medium_x%" y="%row11_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Do you use daylight savings time (DST)?</text>
				<data variable="tw_time_zone_guidst" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row13_text_y%" placement="5" />
				<text>Offset (usually 0): %tw_time_zone_guioffset%</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_medium_x%" y="%row_offsetmedium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>0</text>
				<image resource="medium_button" />
				<action function="set">tw_time_zone_guioffset=0</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_medium_x%" y="%row_offsetmedium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>15</text>
				<image resource="medium_button" />
				<action function="set">tw_time_zone_guioffset=15</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_medium_x%" y="%row_offsetmedium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>30</text>
				<image resource="medium_button" />
				<action function="set">tw_time_zone_guioffset=30</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_medium_x%" y="%row_offsetmedium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>45</text>
				<image resource="medium_button" />
				<action function="set">tw_time_zone_guioffset=45</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Set Time Zone</text>
				<image resource="main_button" />
				<action function="setguitimezone"></action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row17_text_y%" placement="5" />
				<text>Current Time Zone: %tw_time_zone%</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">settings</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="screen">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Screen Settings</text>
			</object>

			<object type="button">
				<placement x="%slidervalue_x%" y="%row3_text_y%" />
				<font resource="font" color="%text_color%" />
				<condition var1="tw_screen_timeout_secs" op="=" var2="0" />
				<condition var1="tw_no_screen_timeout" op="!=" var2="1" />
				<text>Enable screen timeout.</text>
				<image resource="checkbox_false" />
				<action function="set">tw_screen_timeout_secs=60</action>
			</object>

			<object type="button">
				<placement x="%slidervalue_x%" y="%row3_text_y%" />
				<font resource="font" color="%text_color%" />
				<condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
				<condition var1="tw_no_screen_timeout" op="!=" var2="1" />
				<text>Enable screen timeout.</text>
				<image resource="checkbox_true" />
				<action function="set">tw_screen_timeout_secs=0</action>
			</object>

			<object type="slidervalue">
				<condition var1="tw_screen_timeout_secs" op="!=" var2="0" />
				<condition var1="tw_no_screen_timeout" op="!=" var2="1" />
				<placement x="slidervalue_x" y="%row5_text_y%" w="%slidervalue_w%" />
				<font resource="font" color="%text_color%" />
				<colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
				<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
				<text>Screen timeout in seconds:</text>
				<data variable="tw_screen_timeout_secs" min="15" max="300" />
			</object>

			<object type="slidervalue">
				<condition var1="tw_has_brightnesss_file" var2="1" />
				<placement x="slidervalue_x" y="%row12_text_y%" w="%slidervalue_w%" />
				<font resource="font" color="%text_color%" />
				<colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
				<dimensions lineh="%slidervalue_lineh%" linepadding="%slidervalue_padding%" sliderw="%slidervalue_sliderw%" sliderh="%slidervalue_sliderh%" />
				<text>Brightness: %tw_brightness_pct%%</text>
				<data variable="tw_brightness_pct" min="10" max="100" />
				<actions>
					<action function="set">tw_brightness=%tw_brightness_max%</action>
					<action function="compute">tw_brightness*%tw_brightness_pct%</action>
					<action function="compute">tw_brightness/100</action>
					<action function="setbrightness">%tw_brightness%</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">settings</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="Vibrate">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Vibration Settings :</text>
			</object>

			<object type="slidervalue">
				<placement x="slidervalue_x" y="%row3_text_y%" w="%slidervalue_w%" />
				<font resource="font" color="%text_color%" />
				<text>Button Vibration:</text>
				<data variable="tw_button_vibrate" min="0" max="300" />
				<colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
			</object>

			<object type="slidervalue">
				<placement x="slidervalue_x" y="%row7_text_y%" w="%slidervalue_w%" />
				<font resource="font" color="%text_color%" />
				<text>Keyboard Vibration:</text>
				<data variable="tw_keyboard_vibrate" min="0" max="300" />
				<colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
			</object>

			<object type="slidervalue">
				<placement x="slidervalue_x" y="%row11_text_y%" w="%slidervalue_w%" />
				<font resource="font" color="%text_color%" />
				<text>Action Vibration:</text>
				<data variable="tw_action_vibrate" min="0" max="500" />
				<colors line="%slidervalue_line_clr%" slider="%slidervalue_slider_clr%" />
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">settings</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="advanced">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Advanced</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Copy Log to SD</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=advanced</action>
					<action function="set">tw_action=copylog</action>
					<action function="set">tw_text1=Copy Log to SD Card?</action>
					<action function="set">tw_action_text1=Copying Log to SD Card...</action>
					<action function="set">tw_complete_text1=Log Copy Complete</action>
					<action function="set">tw_slider_text=Swipe to Confirm</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Fix Permissions</text>
				<image resource="main_button" />
				<action function="page">fixperms</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Terminal Command</text>
				<image resource="main_button" />
				<action function="page">terminalfolder</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>ADB Sideload</text>
				<image resource="main_button" />
				<action function="page">sideload</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_allow_partition_sdcard" var2="1" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Partition SD Card</text>
				<image resource="main_button" />
				<action function="page">partsdcard</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>File Manager</text>
				<image resource="main_button" />
				<action function="page">filemanagerlist</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Reload Theme</text>
				<image resource="main_button" />
				<action function="reload"></action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_show_dumlock" var2="1" />
				<placement x="%col4_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>HTC Dumlock</text>
				<image resource="main_button" />
				<action function="page">htcdumlock</action>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="partsdcard">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Partition SD Card</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_sdext_x%" y="%row1_sdext_y%" />
				<font resource="font" color="%button_text_color%" />
				<text></text>
				<image resource="minus_button" />
				<action function="addsubtract">tw_sdext_size-128</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_sdext_x%" y="%row1_sdext_y%" />
				<font resource="font" color="%button_text_color%" />
				<text></text>
				<image resource="plus_button" />
				<action function="addsubtract">tw_sdext_size+128</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row_extsize_y%" placement="5" />
				<text>EXT Size: %tw_sdext_size%</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_sdext_x%" y="%row2_sdext_y%" />
				<font resource="font" color="%button_text_color%" />
				<text></text>
				<image resource="minus_button" />
				<action function="addsubtract">tw_swap_size-32</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_sdext_x%" y="%row2_sdext_y%" />
				<font resource="font" color="%button_text_color%" />
				<text></text>
				<image resource="plus_button" />
				<action function="addsubtract">tw_swap_size+32</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row_swapsize_y%" placement="5" />
				<text>Swap Size: %tw_swap_size%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row8_text_y%" placement="5" />
				<text>File system: %tw_sdpart_file_system%</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_medium_x%" y="%row4_medium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>EXT3</text>
				<image resource="medium_button" />
				<action function="set">tw_sdpart_file_system=ext3</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_sdext_disable_ext4" var2="0" />
				<placement x="%col3_medium_x%" y="%row4_medium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>EXT4</text>
				<image resource="medium_button" />
				<action function="set">tw_sdpart_file_system=ext4</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row12_text_y%" placement="5" />
				<text>You will lose all files on your SD card!</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row13_text_y%" placement="5" />
				<text>This action cannot be undone!</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_back=partsdcard</action>
					<action function="set">tw_action=partitionsd</action>
					<action function="set">tw_has_action2=1</action>
					<action function="set">tw_action2=set</action>
					<action function="set">tw_action2_param=tw_zip_location=/sdcard</action>
					<action function="set">tw_action_text1=Partitioning SD Card...</action>
					<action function="set">tw_action_text2=This will take a few minutes.</action>
					<action function="set">tw_complete_text1=Partitioning Complete</action>
					<action function="page">action_page</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Confirm Partition</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advanced</action>
			</object>

			<object type="template" name="footer" />
		</page>


		<page name="htcdumlock">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>HTC Dumlock</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_show_dumlock" var2="1" />
				<placement x="%col1_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Restore Original Boot</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=htcdumlock</action>
					<action function="set">tw_action=htcdumlockrestoreboot</action>
					<action function="set">tw_text1=Restore original boot image?</action>
					<action function="set">tw_action_text1=Restoring Original Boot...</action>
					<action function="set">tw_complete_text1=Restore Original Boot Complete</action>
					<action function="set">tw_slider_text=Swipe to Confirm</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_show_dumlock" var2="1" />
				<placement x="%col2_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Reflash Recovery->Boot</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=htcdumlock</action>
					<action function="set">tw_action=htcdumlockreflashrecovery</action>
					<action function="set">tw_text1=Reflash recovery to boot?</action>
					<action function="set">tw_action_text1=Flashing recovery to boot...</action>
					<action function="set">tw_complete_text1=Recovery Flash to Boot Complete</action>
					<action function="set">tw_slider_text=Swipe to Confirm</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_show_dumlock" var2="1" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Install HTC Dumlock</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_back=htcdumlock</action>
					<action function="set">tw_action=installhtcdumlock</action>
					<action function="set">tw_text1=Install HTC dumlock files to ROM?</action>
					<action function="set">tw_action_text1=Installing HTC Dumlock...</action>
					<action function="set">tw_complete_text1=HTC Dumlock Install Complete</action>
					<action function="set">tw_slider_text=Swipe to Confirm</action>
					<action function="page">confirm_action</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advanced</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="lock">
			<background color="#000000A0" />

			<object type="image">
				<image resource="unlock-icon" />
				<placement x="%lock_x%" y="%lock_y%" />
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<action function="overlay"></action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Unlock</text>
			</object>
		</page>


		<page name="filemanagerlist">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>File Manager: Select a File or Folder</text>
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%fileselector_folder_x%" y="%fileselector_install_y%" w="%fileselector_folder_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>Folders:</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter folders="1" files="0" />
				<path name="tw_file_location1" default="/sdcard" />
				<data name="select" />
				<selection name="tw_selection1" />
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%fileselector_file_x%" y="%fileselector_install_y%" w="%fileselector_file_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>%tw_file_location1%</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter folders="0" files="1" />
				<path name="tw_file_location1" default="/" />
				<data name="tw_filename1" />
				<selection name="tw_selection1" />
			</object>

			<object type="template" name="sort_options" />

			<object type="action">
				<actions>
					<action function="set">tw_fm_type=File</action>
					<action function="set">tw_fm_isfolder=0</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advanced</action>
			</object>

			<object type="action">
				<condition var1="tw_filename1" op="modified" />
				<actions>
					<action function="page">filemanageroptions</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Select Folder</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filename1=tw_file_location1</action>
					<action function="set">tw_fm_isfolder=1</action>
					<action function="set">tw_fm_type=Folder</action>
					<action function="page">filemanageroptions</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="filemanageroptions">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>%tw_fm_type% Selected:</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5"/>
				<text>%tw_filename1%</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_fm_isfolder" var2="0" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Copy File</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_command=cp</action>
					<action function="set">tw_fm_text1=Copying</action>
					<action function="page">choosedestinationfolder</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_fm_isfolder" var2="1" />
				<placement x="%col1_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Copy Folder</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; && cd .. && cp -R</action>
					<action function="set">tw_fm_text1=Copying</action>
					<action function="page">choosedestinationfolder</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col2_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Move</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_command=mv</action>
					<action function="set">tw_fm_text1=Moving</action>
					<action function="page">choosedestinationfolder</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col3_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>chmod 755</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_command=chmod 755</action>
					<action function="set">tw_fm_text1=chmod 755</action>
					<action function="set">tw_fm_text2=</action>
					<action function="set">tw_fm_text3=</action>
					<action function="set">tw_include_text3=0</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerconfirm</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col4_x%" y="%row2_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>chmod</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_rename=0000</action>
					<action function="set">tw_fm_text2=</action>
					<action function="set">tw_fm_text3=</action>
					<action function="set">tw_include_text3=0</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerchmod</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col1_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Delete</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_command=rm -rf</action>
					<action function="set">tw_fm_text1=Deleting</action>
					<action function="set">tw_fm_text2=</action>
					<action function="set">tw_fm_text3=</action>
					<action function="set">tw_include_text3=0</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerconfirm</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_fm_isfolder" var2="0" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Rename File</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_rename=tw_selection1</action>
					<action function="set">tw_fm_text1=Renaming</action>
					<action function="set">tw_filemanager_command=mv</action>
					<action function="page">filemanagerrenamefile</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_fm_isfolder" var2="1" />
				<placement x="%col4_x%" y="%row1_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Rename Folder</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_filemanager_rename=tw_selection1</action>
					<action function="set">tw_fm_text1=Renaming</action>
					<action function="set">tw_filemanager_command=cd &quot;%tw_file_location1%&quot; && cd .. && mv</action>
					<action function="page">filemanagerrenamefolder</action>
				</actions>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">filemanagerlist</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="choosedestinationfolder">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>Browse to Destination Folder & Press Select</text>
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>%tw_file_location2%</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<filter folders="1" files="0" />
				<path name="tw_file_location2" default="/sdcard" />
				<data name="tw_filename2" />
			</object>

			<object type="template" name="sort_options" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Select Folder</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_fm_text2=to</action>
					<action function="set">tw_fm_text3=%tw_file_location2%</action>
					<action function="set">tw_include_text3=1</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerconfirm</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="filemanagerrenamefile">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<font resource="font" />
				<text>Please Enter a New %tw_fm_type% Name</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_filemanager_rename%</text>
				<data name="tw_filemanager_rename" />
				<restrict minlen="1" maxlen="128" />
				<actions>
					<action function="set">tw_fm_text2=to</action>
					<action function="set">tw_fm_text3=&quot;%tw_file_location1%/%tw_filemanager_rename%&quot;</action>
					<action function="set">tw_include_text3=1</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerconfirm</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="filemanagerrenamefolder">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<font resource="font" />
				<text>Please Enter a New %tw_fm_type% Name</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_filemanager_rename%</text>
				<data name="tw_filemanager_rename" />
				<restrict minlen="1" maxlen="128" />
				<actions>
					<action function="set">tw_fm_text2=to</action>
					<action function="set">tw_fm_text3=%tw_filemanager_rename%</action>
					<action function="set">tw_include_text3=1</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerconfirm</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="filemanagerchmod">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<font resource="font" />
				<text>Please Enter New Permissions</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_filemanager_rename%</text>
				<data name="tw_filemanager_rename" />
				<restrict minlen="3" maxlen="4" allow="0123456789" />
				<actions>
					<action function="set">tw_filemanager_command=chmod %tw_filemanager_rename%</action>
					<action function="set">tw_fm_text1=chmod %tw_filemanager_rename%</action>
					<action function="set">tw_back=filemanageroptions</action>
					<action function="page">filemanagerconfirm</action>
				</actions>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">filemanageroptions</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="filemanagerconfirm">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>%tw_fm_text1%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5"/>
				<text>%tw_filename1%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" placement="5"/>
				<text>%tw_fm_text2%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5"/>
				<text>%tw_fm_text3%</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row10_text_y%" placement="5"/>
				<text>Press back button to cancel.</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<action function="page">filemanageracction</action>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Confirm</text>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">%tw_back%</action>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="filemanageracction">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>%tw_fm_text1%</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="template" name="progress_bar" />

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_back=filemanagerlist</action>
					<action function="set">tw_complete_text1=File Operation Complete</action>
					<action function="page">action_complete</action>
				</actions>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" op="!=" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_complete_text1=File Operation Complete</action>
					<action function="page">action_complete</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_include_text3" var2="0" />
				<actions>
					<action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot;</action>
				</actions>
			</object>

			<object type="action">
				<condition var1="tw_include_text3" var2="1" />
				<actions>
					<action function="cmd">%tw_filemanager_command% &quot;%tw_filename1%&quot; &quot;%tw_fm_text3%&quot;</action>
				</actions>
			</object>
		</page>

		<page name="decrypt">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Please Enter Your Password</text>
			</object>

			<object type="input">
				<placement x="%input_x%" y="%row3_text_y%" w="%input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_crypto_display%</text>
				<data name="tw_crypto_password" mask="*" maskvariable="tw_crypto_display" />
				<restrict minlen="1" maxlen="254" />
				<actions>
					<action function="page">trydecrypt</action>
				</actions>
			</object>

			<object type="text" color="%text_fail_color%">
				<condition var1="tw_password_fail" var2="1" />
				<font resource="font" />
				<placement x="%center_x%" y="%row4_text_y%" placement="5" />
				<text>Password Failed, Please Try Again</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%cancel_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Cancel</text>
				<image resource="main_button" />
				<actions>
					<action function="set">tw_page_done=1</action>
					<action function="page">main</action>
				</actions>
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="template" name="footer" />
		</page>

		<page name="trydecrypt">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5" />
				<text>Trying Decryption with Your Password</text>
			</object>

			<object type="template" name="action_page_console" />

			<object type="template" name="progress_bar" />

			<object type="action">
				<action function="decrypt"></action>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" op="!=" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_password_fail=1</action>
					<action function="page">decrypt</action>
				</actions>
			</object>

			<object type="action">
				<conditions>
					<condition var1="tw_operation_state" var2="1" />
					<condition var1="tw_operation_status" op="=" var2="0" />
				</conditions>
				<actions>
					<action function="set">tw_page_done=1</action>
					<action function="page">main</action>
				</actions>
			</object>
		</page>

		<page name="terminalfolder">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>Browse to Starting Folder</text>
			</object>

			<object type="fileselector">
				<highlight color="%fileselector_highlight_color%" />
				<placement x="%col2_x%" y="%fileselector_install_y%" w="%fileselector_folderonly_width%" h="%fileselector_install_height%" />
				<header background="%fileselector_header_background%" textcolor="%fileselector_header_textcolor%" separatorcolor="%fileselector_header_separatorcolor%" separatorheight="%fileselector_header_separatorheight%" />
				<fastscroll linecolor="%fastscroll_linecolor%" rectcolor="%fastscroll_rectcolor%" w="%fastscroll_w%" linew="%fastscroll_linew%" rectw="%fastscroll_rectw%" recth="%fastscroll_recth%" />
				<text>%tw_terminal_location%</text>
				<separator color="%fileselector_separatorcolor%" height="%fileselector_separatorheight%" />
				<sort name="tw_gui_sort_order" />
				<icon folder="folder_icon" file="file_icon" />
				<background color="%fileselector_background%" />
				<font resource="font" spacing="%fileselector_spacing%" color="%text_color%" highlightcolor="%fileselector_highlight_font_color%" />
				<filter folders="1" files="0" />
				<path name="tw_terminal_location" default="/" />
				<data name="tw_terminal" />
				<selection name="tw_terminal_selection" />
			</object>

			<object type="template" name="sort_options" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advanced</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%filemanager_select_x%" y="%filemanager_select_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Select Folder</text>
				<image resource="main_button" />
				<actions>
					<action function="page">terminalcommand</action>
				</actions>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="terminalcommand">
			<background color="#000000FF" />

			<object type="console">
				<placement x="%console_x%" y="%terminal_console_y%" w="%console_width%" h="%terminal_console_height%" />
				<color foreground="%console_foreground%" background="%console_background%" scroll="%console_scroll%" />
				<font resource="fixed" />
			</object>

			<object type="text" color="%text_color%">
				<placement x="%input_x%" y="%terminal_text_y%" placement="0" />
				<font resource="font" />
				<text>Starting Path: %tw_terminal_location%</text>
			</object>

			<object type="input">
				<condition var1="tw_terminal_state" var2="0" />
				<placement x="%input_x%" y="%terminal_text_y%" w="%terminal_input_width%" h="%input_height%" placement="0" />
				<background color="%input_background_color%" />
				<cursor color="%input_cursor_color%" hasfocus="1" width="%input_cursor_width%" />
				<font resource="font" color="%text_color%" />
				<text>%tw_terminal_command%</text>
				<data name="tw_terminal_command" />
				<restrict minlen="1" />
				<action function="terminalcommand">%tw_terminal_command%</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<condition var1="tw_terminal_state" var2="1" />
				<placement x="%filemanager_select_x%" y="%terminal_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>KILL</text>
				<image resource="medium_button" />
				<action function="killterminal"></action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%home_button_x%" y="%terminal_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text></text>
				<image resource="home_icon" />
				<condition var1="tw_busy" var2="0" />
				<action function="key">home</action>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%back_button_x%" y="%terminal_button_y%" />
				<font resource="font" color="%button_text_color%" />
				<text></text>
				<image resource="back_icon" />
				<condition var1="tw_busy" var2="0" />
				<action function="key">back</action>
			</object>

			<object type="action">
				<touch key="power" />
				<action function="overlay">lock</action>
			</object>

			<object type="action">
				<touch key="power+voldown" />
				<action function="screenshot" />
			</object>

			<object type="template" name="keyboardtemplate" />

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">terminalfolder</action>
			</object>
		</page>

		<page name="sideload">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>ADB Sideload</text>
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row3_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Wipe Dalvik Cache.</text>
				<data variable="tw_wipe_dalvik" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="checkbox">
				<placement x="%col1_x%" y="%row4_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Wipe Cache.</text>
				<data variable="tw_wipe_cache" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_back=advanced</action>
					<action function="set">tw_action=adbsideload</action>
					<action function="set">tw_action_text1=ADB Sideload</action>
					<action function="set">tw_action_text2=Usage: adb sideload filename.zip</action>
					<action function="set">tw_complete_text1=ADB Sideload Complete</action>
					<action function="set">tw_has_cancel=1</action>
					<action function="set">tw_show_reboot=1</action>
					<action function="set">tw_cancel_action=adbsideloadcancel</action>
					<action function="page">action_page</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Start Sideload</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advanced</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="fixperms">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>Fix Permissions</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col2_x%" y="%row2_text_y%" />
				<text>Note: Fixing permissions is rarely needed.</text>
			</object>

			<object type="checkbox">
				<placement x="%col2_x%" y="%row3_text_y%" />
				<font resource="font" color="%text_color%" />
				<text>Also fix SELinux contexts</text>
				<data variable="tw_fixperms_restorecon" />
				<image checked="checkbox_true" unchecked="checkbox_false" />
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%col2_x%" y="%row4_text_y%" />
				<text>Fixing SELinux contexts may cause your device to not boot properly.</text>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_back=advanced</action>
					<action function="set">tw_action=fixpermissions</action>
					<action function="set">tw_action_text1=Fixing Permissions...</action>
					<action function="set">tw_complete_text1=Fix Permissions Complete</action>
					<action function="set">tw_slider_text=Swipe to Confirm</action>
					<action function="set">tw_show_reboot=1</action>
					<action function="page">action_page</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Fix Permissions</text>
			</object>

			<object type="action">
				<touch key="home" />
				<action function="page">main</action>
			</object>

			<object type="action">
				<touch key="back" />
				<action function="page">advanced</action>
			</object>

			<object type="template" name="footer" />
		</page>

		<page name="installsu">
			<object type="template" name="header" />

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row1_text_y%" placement="5"/>
				<text>Install SuperSU?</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row2_text_y%" placement="5"/>
				<text>Your device does not appear to be rooted.</text>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%row3_text_y%" placement="5"/>
				<text>Install SuperSU now? This will root your device.</text>
			</object>

			<object type="button">
				<highlight color="%highlight_color%" />
				<placement x="%col_center_x%" y="%row2_medium_y%" />
				<font resource="font" color="%button_text_color%" />
				<text>Do Not Install</text>
				<image resource="main_button" />
				<action function="set">tw_page_done=1</action>
			</object>

			<object type="slider">
				<placement x="%slider_x%" y="%slider_y%" />
				<resource base="slider" used="slider-used" touch="slider-touch" />
				<actions>
					<action function="set">tw_action=installsu</action>
					<action function="set">tw_action_text1=Installing SuperSU</action>
					<action function="set">tw_action_text2=</action>
					<action function="page">singleaction_page</action>
				</actions>
			</object>

			<object type="text" color="%text_color%">
				<font resource="font" />
				<placement x="%center_x%" y="%slider_text_y%" placement="4" />
				<text>Swipe to Install</text>
			</object>
		</page>
	</pages>
</recovery>