blob: c014bb63c302c3e3f411fc5a25150ae8a611a09d [file] [log] [blame]
Dees_Troy51a0e822012-09-05 15:24:24 -04001/*
2 * Copyright (C) 2007 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _VARIABLES_HEADER_
18#define _VARIABLES_HEADER_
19
Dees_Troy84ab3c32013-01-28 22:33:15 +000020#define TW_VERSION_STR "2.4.0.0"
Dees_Troy51a0e822012-09-05 15:24:24 -040021
22#define TW_USE_COMPRESSION_VAR "tw_use_compression"
23#define TW_IGNORE_IMAGE_SIZE "tw_ignore_image_size"
24#define TW_FILENAME "tw_filename"
25#define TW_ZIP_INDEX "tw_zip_index"
bigbiff bigbiff9c754052013-01-09 09:09:08 -050026#define TW_ZIP_QUEUE_COUNT "tw_zip_queue_count"
Dees_Troy51a0e822012-09-05 15:24:24 -040027
28#define MAX_BACKUP_NAME_LEN 64
Dees_Troyb46a6842012-09-25 11:06:46 -040029#define TW_BACKUP_TEXT "tw_backup_text"
Dees_Troy51a0e822012-09-05 15:24:24 -040030#define TW_BACKUP_NAME "tw_backup_name"
31#define TW_BACKUP_SYSTEM_VAR "tw_backup_system"
32#define TW_BACKUP_DATA_VAR "tw_backup_data"
33#define TW_BACKUP_BOOT_VAR "tw_backup_boot"
34#define TW_BACKUP_RECOVERY_VAR "tw_backup_recovery"
35#define TW_BACKUP_CACHE_VAR "tw_backup_cache"
36#define TW_BACKUP_ANDSEC_VAR "tw_backup_andsec"
37#define TW_BACKUP_SDEXT_VAR "tw_backup_sdext"
38#define TW_BACKUP_SP1_VAR "tw_backup_sp1"
39#define TW_BACKUP_SP2_VAR "tw_backup_sp2"
40#define TW_BACKUP_SP3_VAR "tw_backup_sp3"
41#define TW_BACKUP_AVG_IMG_RATE "tw_backup_avg_img_rate"
42#define TW_BACKUP_AVG_FILE_RATE "tw_backup_avg_file_rate"
43#define TW_BACKUP_AVG_FILE_COMP_RATE "tw_backup_avg_file_comp_rate"
44#define TW_BACKUP_SYSTEM_SIZE "tw_backup_system_size"
45#define TW_BACKUP_DATA_SIZE "tw_backup_data_size"
46#define TW_BACKUP_BOOT_SIZE "tw_backup_boot_size"
47#define TW_BACKUP_RECOVERY_SIZE "tw_backup_recovery_size"
48#define TW_BACKUP_CACHE_SIZE "tw_backup_cache_size"
49#define TW_BACKUP_ANDSEC_SIZE "tw_backup_andsec_size"
50#define TW_BACKUP_SDEXT_SIZE "tw_backup_sdext_size"
51#define TW_BACKUP_SP1_SIZE "tw_backup_sp1_size"
52#define TW_BACKUP_SP2_SIZE "tw_backup_sp2_size"
53#define TW_BACKUP_SP3_SIZE "tw_backup_sp3_size"
54#define TW_STORAGE_FREE_SIZE "tw_storage_free_size"
Dees_Troyb46a6842012-09-25 11:06:46 -040055#define TW_GENERATE_MD5_TEXT "tw_generate_md5_text"
Dees_Troy51a0e822012-09-05 15:24:24 -040056
Dees_Troyb46a6842012-09-25 11:06:46 -040057#define TW_RESTORE_TEXT "tw_restore_text"
Dees_Troy51a0e822012-09-05 15:24:24 -040058#define TW_RESTORE_SYSTEM_VAR "tw_restore_system"
59#define TW_RESTORE_DATA_VAR "tw_restore_data"
60#define TW_RESTORE_BOOT_VAR "tw_restore_boot"
61#define TW_RESTORE_RECOVERY_VAR "tw_restore_recovery"
62#define TW_RESTORE_CACHE_VAR "tw_restore_cache"
63#define TW_RESTORE_ANDSEC_VAR "tw_restore_andsec"
64#define TW_RESTORE_SDEXT_VAR "tw_restore_sdext"
65#define TW_RESTORE_SP1_VAR "tw_restore_sp1"
66#define TW_RESTORE_SP2_VAR "tw_restore_sp2"
67#define TW_RESTORE_SP3_VAR "tw_restore_sp3"
68#define TW_RESTORE_AVG_IMG_RATE "tw_restore_avg_img_rate"
69#define TW_RESTORE_AVG_FILE_RATE "tw_restore_avg_file_rate"
70#define TW_RESTORE_AVG_FILE_COMP_RATE "tw_restore_avg_file_comp_rate"
71#define TW_RESTORE_FILE_DATE "tw_restore_file_date"
Dees_Troyb46a6842012-09-25 11:06:46 -040072#define TW_VERIFY_MD5_TEXT "tw_verify_md5_text"
73#define TW_UPDATE_SYSTEM_DETAILS_TEXT "tw_update_system_details_text"
Dees_Troy51a0e822012-09-05 15:24:24 -040074
75#define TW_SHOW_SPAM_VAR "tw_show_spam"
76#define TW_COLOR_THEME_VAR "tw_color_theme"
77#define TW_VERSION_VAR "tw_version"
78#define TW_SORT_FILES_BY_DATE_VAR "tw_sort_files_by_date"
79#define TW_GUI_SORT_ORDER "tw_gui_sort_order"
80#define TW_ZIP_LOCATION_VAR "tw_zip_location"
81#define TW_ZIP_INTERNAL_VAR "tw_zip_internal"
82#define TW_ZIP_EXTERNAL_VAR "tw_zip_external"
83#define TW_FORCE_MD5_CHECK_VAR "tw_force_md5_check"
84#define TW_SKIP_MD5_CHECK_VAR "tw_skip_md5_check"
85#define TW_SKIP_MD5_GENERATE_VAR "tw_skip_md5_generate"
86#define TW_SIGNED_ZIP_VERIFY_VAR "tw_signed_zip_verify"
87#define TW_REBOOT_AFTER_FLASH_VAR "tw_reboot_after_flash_option"
88#define TW_TIME_ZONE_VAR "tw_time_zone"
89#define TW_RM_RF_VAR "tw_rm_rf"
90
91#define TW_BACKUPS_FOLDER_VAR "tw_backups_folder"
92
93#define TW_SP1_PARTITION_NAME_VAR "tw_sp1_name"
94#define TW_SP2_PARTITION_NAME_VAR "tw_sp2_name"
95#define TW_SP3_PARTITION_NAME_VAR "tw_sp3_name"
96
97#define TW_SDEXT_SIZE "tw_sdext_size"
98#define TW_SWAP_SIZE "tw_swap_size"
99#define TW_SDPART_FILE_SYSTEM "tw_sdpart_file_system"
100#define TW_TIME_ZONE_GUISEL "tw_time_zone_guisel"
101#define TW_TIME_ZONE_GUIOFFSET "tw_time_zone_guioffset"
102#define TW_TIME_ZONE_GUIDST "tw_time_zone_guidst"
103
104#define TW_ACTION_BUSY "tw_busy"
105
106#define TW_ALLOW_PARTITION_SDCARD "tw_allow_partition_sdcard"
107
108#define TW_SCREEN_OFF "tw_screen_off"
109
110#define TW_REBOOT_SYSTEM "tw_reboot_system"
111#define TW_REBOOT_RECOVERY "tw_reboot_recovery"
112#define TW_REBOOT_POWEROFF "tw_reboot_poweroff"
113#define TW_REBOOT_BOOTLOADER "tw_reboot_bootloader"
114
115#define TW_HAS_DUAL_STORAGE "tw_has_dual_storage"
116#define TW_USE_EXTERNAL_STORAGE "tw_use_external_storage"
117#define TW_HAS_INTERNAL "tw_has_internal"
118#define TW_INTERNAL_PATH "tw_internal_path" // /data/media or /internal
119#define TW_INTERNAL_MOUNT "tw_internal_mount" // /data or /internal
120#define TW_INTERNAL_LABEL "tw_internal_label" // data or internal
121#define TW_HAS_EXTERNAL "tw_has_external"
122#define TW_EXTERNAL_PATH "tw_external_path" // /sdcard or /external/sdcard2
123#define TW_EXTERNAL_MOUNT "tw_external_mount" // /sdcard or /external
124#define TW_EXTERNAL_LABEL "tw_external_label" // sdcard or external
125
126#define TW_HAS_DATA_MEDIA "tw_has_data_media"
127
128#define TW_HAS_BOOT_PARTITION "tw_has_boot_partition"
129#define TW_HAS_RECOVERY_PARTITION "tw_has_recovery_partition"
130#define TW_HAS_ANDROID_SECURE "tw_has_android_secure"
131#define TW_HAS_SDEXT_PARTITION "tw_has_sdext_partition"
132#define TW_HAS_USB_STORAGE "tw_has_usb_storage"
133#define TW_NO_BATTERY_PERCENT "tw_no_battery_percent"
134#define TW_POWER_BUTTON "tw_power_button"
135#define TW_SIMULATE_ACTIONS "tw_simulate_actions"
136#define TW_SIMULATE_FAIL "tw_simulate_fail"
137#define TW_DONT_UNMOUNT_SYSTEM "tw_dont_unmount_system"
138// #define TW_ALWAYS_RMRF "tw_always_rmrf"
139
140#define TW_SHOW_DUMLOCK "tw_show_dumlock"
141#define TW_HAS_INJECTTWRP "tw_has_injecttwrp"
142#define TW_INJECT_AFTER_ZIP "tw_inject_after_zip"
143#define TW_HAS_DATADATA "tw_has_datadata"
144#define TW_FLASH_ZIP_IN_PLACE "tw_flash_zip_in_place"
145#define TW_MIN_SYSTEM_SIZE "50" // minimum system size to allow a reboot
146#define TW_MIN_SYSTEM_VAR "tw_min_system"
147#define TW_DOWNLOAD_MODE "tw_download_mode"
148#define TW_IS_ENCRYPTED "tw_is_encrypted"
149#define TW_IS_DECRYPTED "tw_is_decrypted"
150#define TW_HAS_CRYPTO "tw_has_crypto"
151#define TW_CRYPTO_PASSWORD "tw_crypto_password"
152#define TW_DATA_BLK_DEVICE "tw_data_blk_device" // Original block device - not decrypted
153#define TW_SDEXT_DISABLE_EXT4 "tw_sdext_disable_ext4"
154
155// Also used:
156// tw_boot_is_mountable
157// tw_system_is_mountable
158// tw_data_is_mountable
159// tw_cache_is_mountable
160// tw_sdcext_is_mountable
161// tw_sdcint_is_mountable
162// tw_sd-ext_is_mountable
163// tw_sp1_is_mountable
164// tw_sp2_is_mountable
165// tw_sp3_is_mountable
166
bigbiff bigbiff3bf2b0e2013-01-21 21:26:43 -0500167// Max archive size for tar backups before we split (1.5GB)
168#define MAX_ARCHIVE_SIZE 1610612736LLU
Dees_Troy51a0e822012-09-05 15:24:24 -0400169
Dees_Troy6a042c82013-01-23 18:50:52 +0000170#ifndef CUSTOM_LUN_FILE
171#define CUSTOM_LUN_FILE "/sys/devices/platform/usb_mass_storage/lun%d/file"
172#endif
173
Dees_Troy01b6d0c2013-01-22 01:41:09 +0000174// For OpenRecoveryScript
175#define SCRIPT_FILE_CACHE "/cache/recovery/openrecoveryscript"
176#define SCRIPT_FILE_TMP "/tmp/openrecoveryscript"
177
Dees_Troy51a0e822012-09-05 15:24:24 -0400178#endif // _VARIABLES_HEADER_