summaryrefslogtreecommitdiffstats
path: root/twinstall.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-10Use one mizip for allEthan Yonker1-22/+2
The new minzip did not compile in older trees due to needing mmap64. For older trees we will just use mmap instead. Remove all files and code pertaining to minzipold. Updater should now build properly in older trees as well. Eliminate use of PLATFORM_VERSION in favor of PLATFORM_SDK_VERSION which should be more consistent and reliable. Change-Id: I38d2b604a73d1b17a2072c7d60e990b81ece0c10
2014-12-02 Make the android-5.0 branch compile in 4.4 to 4.1Ethan Yonker1-4/+21
Migrate previous minzip to minzipold replacing the existing minzipold. This will break compatibility with trees that do not support selinux (ICS and older). Migrate former verifier files to verifierold. Add fuse.h to recovery source because older trees do not have it. Add LOCAL_MODULE_TAGS where needed for 4.1 tree. Change-Id: Iade57cb2b0115af7fce9f56aa98636b1744a1ef4
2014-11-08Release map after zip installEthan Yonker1-1/+5
Change-Id: I4ae145669786ad0932297ae0ae095cbc6f3f696b
2014-11-08Update adb sideload featureEthan Yonker1-5/+13
Change-Id: Ib503d0e87434e1a28430779302d6565211c26592
2014-11-07Fix up install functionsEthan Yonker1-2/+9
Change-Id: I62110806f60cd923fb761f5e5f2544da3d5b68b1
2014-04-16More MD5 verification error handlingMatt Mower1-7/+3
Distinguish between skipped md5 verification cases: - .md5/.md5sum file not found - .md5/.md5sum file unreadable Move MD5 error messages to twrpDigest Change-Id: I912e3d9ebe64e78bed76eab8aa468d619b45972f
2014-04-15Force zip verification in OEM buildsEthan Yonker1-1/+3
Change-Id: Ie894b5f5cda64f83b1bb58bb977024230b0337f2
2014-03-27Allow disabling legacy propertiesMatt Mower1-0/+4
Introduce TW_NO_LEGACY_PROPS flag for users that build TWRP in non-kitkat trees and don't need the legacy prop environment. Change-Id: Iacb2d9af7d7069acb3d0a96bb34f32ded6317a20
2014-03-27Add basic error checking to legacy property initMatt Mower1-14/+48
Let init and rename funcitons return success or failure values. Change-Id: Ieed86cac8a0dcfd770a89dacc57fd306e7a6ad8d
2014-03-09Support pre-KitKat properties for update-binarythat1-1/+31
Google changed the in-memory format for storing properties in 4.4. Zips containing an older update-binary expect the old format, otherwise assertions on properties in the update script fail. This is just enough of the old property service to copy the properties to the legacy format before running the updater. Change-Id: I404680384bdc5e952609e295029ab0a0faf743a5
2013-10-24Update licenses to all matchDees Troy1-0/+17
Change-Id: I3be70a897e563658736b2dec3a9ea2697b69b225
2013-10-22Update licenses to all matchDees Troy1-0/+17
2013-09-10Kang in older minzip for building in CM9 & CM7Dees Troy1-0/+5
CM7 and CM9 do not have libselinux needed in the newer minzip.
2013-09-05Extract file_contexts from zips if it existsDees_Troy1-1/+32
Update binary will now extract file_contexts if it exists in the root of the zip to /tmp Recovery will replace the existing /file_contexts in the ramdisk if file_contexts exists in the root of the zip. This ensure that the proper contexts are used during zip installs. Change-Id: If22c41101868643b67e6dba6177677c078fcd877
2013-08-24Unify indentation and little clean-up in TWRP filesVojtech Bocek1-26/+26
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-04-04Move all AOSP code out of recovery binaryDees_Troy1-252/+97
Improves license compatibility between GPL and Apache Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-03-07use md5.c for computation of md5sumsbigbiff bigbiff1-4/+7
create a framework for computing digests and reading digests in TWRP add space for backwards compatibility with bb md5sum Change-Id: Ia18e3f430eed5eba22e5052d39b9b8d88ecd4536
2013-01-30Disable the forced MD5 checkDees_Troy1-8/+2
2012-09-27Update sdcard partitioning to C++Dees_Troy1-5/+0
2012-09-20Various fixesDees_Troy1-1/+1
Modify AOSP mount and wipe functions to use Partition Manager. Update wipe code to reset the log file index when wiping cache. Add ADB sideload to 540x960 theme.
2012-09-14Move to shared libmincryptDees_Troy1-162/+3
Remove mincrypt source from TWRP and add rule to make libmincrypt as a shared library. No more crashes during zip signature verification and less code to maintain in TWRP.
2012-09-14Add wipe functions, compiles in CM7, text shows in UI, zips installDees_Troy1-93/+2
Zip install works, had to move mincrypt code into TWRP to prevent a crash when checking the zip signature. Added wipe functions Made it compile in CM7 Made text show up in console and logging
2012-09-12Make text appear in GUI console, Zip install works.Dees_Troy1-0/+580
Move TW zip install code to C++ so that it can use the ui->functions. Bring in mincrypt code to fix a crash during signature checking.