Commit Graph

70 Commits

Author SHA1 Message Date
Chaosmaster
ff4f958182 Add option to automatically unmount system before installing ZIP
This adds the option to automatically unmount the system partition
before installing a ZIP-file.
This option is enabled by default, This is usefull on SAR-devices
where system is mounted as system_root and ZIPs (i.e. Magisk)
try to unmount system instead of system_root and fail to install.

Change-Id: Id94ae658964679e23aa7fa137e07edf74ee073df
2020-05-10 15:43:55 -04:00
Ethan Yonker
5a1ae04674 3.3.1
Change-Id: I9c1114d133cd195ce536dc66b6bdc1f0236ddd55
2019-05-16 12:11:32 -05:00
Ethan Yonker
b1a7ae9cd9 Three Dot Three Dot Zero
Change-Id: If58ac0918b78c90071ffe2efa1c8509316a2afb1
2019-04-03 21:34:20 -05:00
mauronofrio
e9a49efe75 Adding Edl button in reboot menu
Edl mode is available only on qualcomm devices and it used to fully
restore the bricked devices. I made the button available only if
TW_HAS_EDL_MODE := true like the download button. I set the edl
button to the right of the download button, so devices can support
edl button and download button. I also added the translation for
all languages.

Change-Id: I69d1058b8c050b722395c7b3da6dce1ccfbe7a91
2019-03-20 10:57:07 -05:00
bigbiff bigbiff
19874f1469 AB/Non AB Devices: updates for moving cache
This patchset updates all the places we touch cache on AB devices
and non AB devices so that we can write to the appropriate
location. AB devices removed the cache partition and moved it to
/data/cache.

Change-Id: I485ec205a604f1f07ceb7700ae9c4e720fd55c3e
2019-03-18 04:49:38 +01:00
Ethan Yonker
840f04f7aa 3.2.3
Change-Id: I4f40c8c83e739c096f6de35b2b06b6426fbf6faf
2018-07-27 15:14:19 -05:00
Ethan Yonker
fac1b3835c 3.2.2
Change-Id: I45600c6af55e1316a5ec97b88b74f76779826597
2018-06-29 16:16:04 -05:00
bigbiff bigbiff
2af13795b9 TWRP Bugfix release
This release fixes restore by forcing regular TWRP Backup by default.
Thanks to jlask for fixing this issue.

Change-Id: I0b2d507d7a2a3e6bfdd00174af89efbe511e90e0
2017-12-08 17:50:41 -05:00
Ethan Yonker
41a5f72b02 3.2.0
Change-Id: I526aaf59a903baccea77e2f731c3166c3d3c05eb
2017-11-28 22:39:21 -06:00
bigbiff bigbiff
56cf564658 twrpDigest refactor
This patch is to refactor twrpDigest using polymorphism
and inheritance to use the same call patterns for creating and
reading a digest. Now a library.
Use SHA2 from libcrypto. SHA2 is default if device has libcrypto.

Change string MD5 everywhere to use digest or Digest instead. Updated
string tags to digest. Translation will be required.

Switch out digest code into a driver class from partitionmanager.

SHA2 is better for digest creation due to decreased collision space
compared to MD5 and SHA1.

See https://en.wikipedia.org/wiki/SHA-2

Change-Id: I74b5546789990b12aa4ce2e389d25f80a3fe213f
2017-06-17 07:05:45 -05:00
Ethan Yonker
805a5dfe89 3.1.1
Change-Id: I6ab4169836e460d1652d29c24ad1c5a55191efe7
2017-05-12 09:37:41 -05:00
Ethan Yonker
76958ae984 3.1.0
Change-Id: Iab21513c7d703304a4591fdf5af1317e2336a8a7
2017-03-07 21:30:46 -06:00
bigbiff bigbiff
584b977489 TWRP device version string
For building through jenkins. Export a variable to the shell
so that we don't monkey patch variables.h and keep the git tag
clean in the version string.
Jenkins will export the variable TW_DEVICE_VERSION=n where n > 0.
The makefile will use this variable to show the device string
in twrp startup. For mass production builds, omit the
environment variable to default to 0.

Change-Id: I0d6eb764255d7069c0fb4a378522a009cfe4054f
2017-01-18 09:44:17 -06:00
Ethan Yonker
f2e3f0c51c Change version to 3.0.3 to support the app release
Change-Id: I2e1afc76edd77208e9e94162a7045453109c74d2
2016-12-16 10:10:31 -06:00
Ethan Yonker
bd7492de28 Support File Based Encryption
Change-Id: Ib688ddd0c32d3999590cacd86b6d9b18eac336e9
2016-12-13 21:16:42 +01:00
Matt Mower
8dc25b7984 Fixup reboot after install variables
* Create correctly named data manager variable 'tw_install_reboot'
* Make configurable through Settings
* Remove closing tag space in theme files (not personal preference,
  but should match surrounding code style)
* Fix the "two presses needed to enable" issue for the checkbox on the
  install screen

Change-Id: I0ceb60b4888a672e2f0ecb5672b03cc86615621a
2016-08-19 11:09:01 -05:00
Matt Mower
bfccfb8822 Finish creating disable_free_space_check variable
* Create data manager variable for 'tw_disable_free_space'
* Make configurable through Settings
* Fix the "two presses needed to enable" issue for the checkbox on the
  backup screen
* No need to capitalize every word, but do specify precedes backup

Change-Id: Id436cef13e4ca9349618420aac03862ec4e3c35e
2016-08-19 10:35:10 -05:00
Ethan Yonker
4b131f70ac 3.0.2-0
Change-Id: I28fa04cb90dd4255db9dc5d771416ab8d456de46
2016-04-04 09:25:59 -05:00
Ethan Yonker
308b1cadc4 Really remove all old SP* flags and code
Change-Id: I5ece02a8721e1b7541fb5182366a55fd0f037a7a
2016-04-01 22:39:22 -05:00
Ethan Yonker
f177066df7 3.0.1-0
Change-Id: Iecf5c3f70559ef90e18f4807f80707fa5a3c78f0
2016-03-31 14:38:42 -05:00
Ethan Yonker
fe91611cb1 DataManager Updates
The goal of this change is to make DataManager use InfoManager to reduce
code duplication.

Change-Id: Ia4f4c4324453a192995e0f442db0a03628c13e46
2016-03-31 15:43:53 +01:00
Ethan Yonker
b7e8b98ce6 3.0.0-0
For better or worse, here we go...

Change-Id: Ic1150b59e4ebf34f06c689b2a1b10ae691a027bd
2016-02-05 14:16:43 -06:00
Tatsuyuki Ishi
548a175182 Improve max brightness handling
If we can detect the directory, why don't we detect maximum as well?

Additional patch by: Matt Mower
Replace clunky /nobrightness handling

Cleanup TWFunc::Set_Brightness() and blanktimer::getBrightness() a
bit, primarily for the purpose of relying on the value in
tw_has_brightnesss_file instead of checking for a phony brightness
path.

Change-Id: Ib22595df53cefa8db7a1172a581984c42ad461c6
2016-01-22 18:06:00 +01:00
Matt Mower
2d50cada06 Remove dead code: TW_HAS_DUAL_STORAGE
Nothing sets TW_HAS_DUAL_STORAGE. Remove this dead code.

Change-Id: Id5d10c9ee3883dad6beef69e09d16b0f1350c91d
2015-12-22 15:15:54 -06:00
Captain Throwback
999219d763 Update CUSTOM_LUN_FILE from AOSP USB config
AOSP has used a standard USB config for the last 3 years.
Time to update TWRP for devices that still use UMS.

Reference: https://android.googlesource.com/platform/system/core/+/master/rootdir/init.usb.rc

Change-Id: I59690f955a7d6db9ae9d607d46299652b52fe8b8
2015-10-15 16:09:02 +02:00
Ethan Yonker
f2786d37af 2.8.7.0
Change-Id: I712e2d51e412ab5c6167f7c7b29ebf987cd6963c
2015-06-20 16:00:24 -05:00
Ethan Yonker
0e9dec8758 2.8.6.0
Change-Id: Ibab69893bee968cfac8e25a4f166acf7cc8b4fc9
2015-03-24 21:56:13 -05:00
Vojtech Bocek
7e11ac5d3c Add UI for entering pattern for device decryption
Change-Id: Ia2d3268a96423e9ca3846500c57e674c4f8fa60b
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2015-03-13 12:12:58 -05:00
Ethan Yonker
f892d0501e 2.8.5.0
Change-Id: I88711ed77244e2275b268f9d3464c5d848aceef3
2015-02-11 21:20:39 -06:00
Ethan Yonker
4a64f63615 2.8.4.0
Change-Id: Iee99e021e8ec721ab1c12fcbcf5e7059b871ea0a
2015-01-12 22:09:59 -06:00
Ethan Yonker
f5c904b2ff 2.8.3.0
Change-Id: If2084a8c8815b079db6b6a6b45ea180ba1282092
2014-12-21 21:56:51 -06:00
Ethan Yonker
9fdd034170 2.8.2.0
Change-Id: I8d689db9c8bf5ff6c5175ee9185e89ab72a1a2fd
2014-11-06 07:55:24 -06:00
Ethan Yonker
b53fcaa35f 2.8.1.0
Change-Id: Idd08b4a2d388fa4d456f53a6794e7e606e9025e7
2014-10-22 14:02:51 -05:00
bigbiff bigbiff
c7eee6fef0 add mtp responder to TWRP.
Big thanks to Dees_Troy for helping with the implementation.

Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
2014-09-02 21:44:49 -04:00
Dees Troy
25ede0547e 2.7.1.0
Change-Id: I5584df4e6db8b611d1975edeba39415ee2387529
2014-06-04 20:18:27 +00:00
Dees Troy
5314a85194 2.7.0.0
Change-Id: I8e0a91ee9fe97c833a4f06ffb83b1b2e3c31f06f
2014-03-06 20:40:45 +00:00
Dees Troy
bb20778f7e 2.6.3.0 2013-09-12 15:49:25 +00:00
Dees_Troy
a7939bbdc8 Update SuperSU for 4.3 SELinux, 2.6.1.0
Change-Id: Ib7f882db8a8c61d1156c03468208205124132b6c
2013-08-30 01:53:54 +00:00
Ricardo Gomez
c9ecd4473c Add a TW_NO_TIMEOUT option
Change-Id: Ifb3a5bd9f1e6c2e9810c90b0aec198e91d5956fc
2013-08-25 21:10:08 +00:00
Dees_Troy
d93bda5916 2.6.0.0
Also copy recovery.fstab to cache and create a storage.fstab in
cache for app/apk use.
2013-07-03 19:55:35 +00:00
Dees_Troy
83bd483f3d Support encrypted backup files
Also includes features merged from:

Update twrpTar by kokotas

Revised function entryExists().
Added function to get archive's uncompressed size.
Added option to exclude item(s) from the archive.
Revised forks()

http://review.teamw.in/#/c/590/

Change-Id: I01fa2c81643161984eff2625247af75990684bd9
2013-06-22 16:16:55 -05:00
Dees_Troy
2673cec07a Move all AOSP code out of recovery binary
Improves license compatibility between GPL and Apache

Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-04-04 18:57:34 +00:00
Dees_Troy
a13d74fc95 Add partition list GUI element
Add partition list GUI element and update backup, restore, mount,
storage selection, and wipe sections of GUI and partition manager
code to reflect the new GUI element. Update ORS engine to handle
new backup and restore setup.

Fix a bug with decrypt.
Add 1080x1920 layout.

Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
2013-03-30 08:56:39 -05:00
Dees_Troy
1357a42ca5 2.4.4.0 2013-03-12 02:41:46 +00:00
Dees_Troy
1148c99790 Change version to 2.4.3.0 2013-02-28 19:38:36 -06:00
Dees_Troy
54f68757c6 Change version to 2.4.2.0 2013-02-25 03:58:41 +00:00
Dees_Troy
8211102b4e Remove ignore image size setting
Move military time setting up and remove the now unused ignore
image size setting from XML layouts.
2013-02-21 21:14:08 +00:00
bigbiff bigbiff
4efe9c3c7d add military time option 2013-02-20 18:58:11 -05:00
bigbiff bigbiff
8a68c31ffc This adds a 60 second screen timeout for TWRP. Might consider making this configurable in the future.
Will also set overlay to lockscreen so we don't have inadvetent screen selections.
Touching the screen will bring the display back up.
add back check script for poweroff
move diff time function to twrp-functions.cpp
make sure we chmod after copy_file
add read_file and write_file functions to twrp-functions.cpp
make single thread
try to force update screen
add forceRender
drop caches after tar processing

Change-Id: I3c5c509dd39dbb05451bbfe5d8b56d53c90d8d1b
2013-02-13 13:16:03 -06:00
Dees_Troy
dababd70c6 2.4.1.0 2013-02-01 17:05:43 +00:00