summaryrefslogtreecommitdiffstats
path: root/toolbox (follow)
Commit message (Collapse)AuthorAgeFilesLines
* toolbox: Avoid linking toolbox tools to ddlambdadroid2019-05-121-28/+27
| | | | | | | | | | | | | | | | | Having the twrp_dd module definition right within the build rules for the toolbox symlinks causes the toolbox tools (getprop, ...) to be linked to dd instead of toolbox. This happens because the symlinks are created using variables from the "toolbox_recovery" module (e.g. LOCAL_MODULE_STEM). Those are changed by the twrp_dd module definition. Move the twrp_dd module definition to the end of the make file (after the build rules for the symlinks) to fix this. Fixes https://github.com/omnirom/android_bootable_recovery/issues/257 Change-Id: I44973920898fe8a21bc32d621500fe38f9d1ebdd
* bsd dd: include prebuilt bsd dd in twrp for Nougat and greaterbigbiff bigbiff2019-05-051-3/+35
| | | | | | | - Cleaned up toolbox/Android.mk so that BSD dd builds with correct Android versions Change-Id: Idb15811480ec03b05336d54b866233b5ac99dfaf
* Merge AOSP android-9.0.0_r3Ethan Yonker2018-08-242-4/+769
| | | | | | Fix conflicts and make it build in 5.1, 6.0, 7.1, 8.1, and 9.0 Change-Id: Ida0a64c29ff27d339b7f42a18d820930964ac6e4
* toolbox: prevent executing toolsIvan Kutepov2018-06-051-8/+12
| | | | Change-Id: Id3d2b15d6c0dad346282e59eb2f173da2776a905
* DO NOT MERGE Android 8.0 stuffEthan Yonker2017-08-251-7/+7
| | | | Change-Id: I8c8a9734adbf36c33463123844fa6e078934ae34
* build: [FIXUP] Addendum for BusyBox get/setprop & API 24 vs 25D. Andrei Măceș2017-02-231-11/+13
| | | | Change-Id: I9c909bc990210fc3ec2ed3edf0ac106248f613ba
* SELinux can be assumed for Android 4.4+Matt Mower2017-01-181-32/+23
| | | | Change-Id: I7410a0c8e439eec90a955ee9201efd9a92bb9635
* build: AOSP/CM14 fixes (API 24/25, mainly BusyBox-less environment)Hashcode2017-01-121-9/+12
| | | | | | | These changes are needed by any ROM where devices are configured to use TOOLBOX/TOYBOX instead of BUSYBOX (i.e., TW_USE_TOOLBOX := true). Change-Id: I68b88cc9fb857f32864556c4b6c9c8e6ee744051
* Make it backwards compatible with 4.4Ethan Yonker2016-08-253-3/+54
| | | | Change-Id: I668604cddc8e8afbf78709f3f872bea4e9f4aa06
* Update to 7.0Ethan Yonker2016-08-242-1/+589
| | | | Change-Id: I621cc47352f7ac552d9602485825ae3a6f9ae516
* Fix toolbox build issue when using TW_USE_TOOLBOX=trueEthan Yonker2016-01-223-106/+6
| | | | Change-Id: I643873b495318d4886b9f8cfaf1b75555d3166c3
* Add toybox getprop and setprop for M treesEthan Yonker2016-01-155-0/+266
| | | | Change-Id: I5827b3545f3f0118bd0d9407f812bd62fd26d97c
* Merge up to AOSP marshmallow-releaseEthan Yonker2015-10-091-90/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to maintain compatibility with older trees, we now have minadbd.old and minui.old. I had to use a TARGET_GLOBAL_CFLAG to handle ifdef issues in minui/minui.d because healthd includes minui/minui.h and there was no other alternative to make minui.h compatible with older trees without having to modify healthd rules which is outside of TWRP. Note that the new minui does not currently have support for qcom overlay graphics. Support for this graphics mode will likely be added in a later patch set. If you are building in a 6.0 tree and have a device that needs qcom overlay graphics, be warned, as off mode charging may not work properly. A dead battery in this case could potentially brick your device if it is unable to charge as healthd handles charging duties. Update rules for building toolbox and add rules for making toybox Use permissive.sh in init.rc which will follow symlinks so we do not have to worry about what binary is supplying the setenforce functionality (toolbox, toybox, or busybox). Fix a few warnings in the main recovery binary source code. Fix a few includes that were missing that prevented compiling in 6.0 Change-Id: Ia67aa2107d260883da5e365475a19bea538e8b97
* toolbox: Include setenforce into tools.hAndrea Mennillo2015-03-191-7/+7
| | | | | | | setenforce was filtered out of toolbox tools too early. Only filter it out just before symlinking (and only if busybox provides it). Change-Id: Id8c77d12b440416bfc21bf52705f2387ffd897cf
* toolbox: Cleanup MakefileMatt Mower2015-03-111-295/+168
| | | | | | | | | | | | * Do not split the makefile in two to support pre-lollipop trees. Go through and mark sections with PLATFORM_SDK_VERSION. * setenforce: Correct the handling to prevent build warnings -- if busybox provides this tool, then still allow it to be built, but do not write a symlink. * Correct indentation throughout * Remove dead code (LOCAL_STATIC_LIBRARIES) Change-Id: I1b13a0e0be78ea862f7d418d683407ff79d17e4f
* toolbox_recovery should always include setenforceEthan Yonker2014-12-221-1/+5
| | | | | | | | | | | init does not follow symlinks and we need setenforce to be able to set permissive. toolbox_recovery will now always include the setenforce tool even if busybox has it so that our provided init.rc can run /sbin/toolbox setenforce 0 successfully. The symlink for setenforce will remain pointing to busybox if busybox has setenforce. Change-Id: I88a2a99bbed30cef3443ac5d94665e3850872237
* Fix generating symlinks for older treesDees Troy2014-12-121-0/+9
| | | | | | | Symlinks for unpigz, toolbox, and busybox were not generating in older trees. Change-Id: I3ca2a2047510954e66fb3cf49eef6af713d3268e
* Use one mizip for allEthan Yonker2014-12-101-1/+1
| | | | | | | | | | | | 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
* bootable recovery: we upgraded to 5.0.1erikcas2014-12-031-1/+1
| | | | Change-Id: I9e2f359dd7274e1ae885f6a3b392d5ab5ca99ac9
* Make the android-5.0 branch compile in 4.4 to 4.1Ethan Yonker2014-12-021-0/+158
| | | | | | | | | | | | | 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
* Make TWRP compile for arm64Ethan Yonker2014-11-121-83/+123
| | | | | | | | | | | | | | | | -Remove dosfstools for arm64 until we can make it compile -Fix TW_USE_TOOLBOX flag to work again -Fix symlinking and handling of sh when using mksh -Fix legacy properties to find futex_wake function -Fix libcrecovery to not use bsd_signal anymore -Fix rules for building with regards to libcrecovery -Update toolbox_recovery rules to compile tools in lollipop -Fix a few compile errors specific to arm64 Testers report that TWRP does not boot on Nexus 9 and we fail to get a shell for adb shell. At least it compiles without errors. Change-Id: I286be8628defb60cc527b8a548c0bdfcb0ebb574
* Remove dependence on build hax in makefilesMatt Mower2014-11-031-6/+6
| | | | | | | | | Update makefiles to no longer rely on INTERNAL_RECOVERY_FILES. Define LOCAL_ADDITIONAL_DEPENDENCIES instead. Set LOCAL_LDFLAGS to properly link recovery executable. Change-Id: I4542104c69399b5a19674b9772ab89c3709efa72
* Only use SELinux tools from toolbox if not in busyboxMatt Mower2014-09-031-1/+4
| | | | | | | | If busybox has SELinux support, we don't need toolbox to provide SELinux specific tools. Check busybox for restorecon to see if SELinux support is present and then adjust the tools built by toolbox based on this. Change-Id: I30a2b036b97ac3e26510d5e0498c52d7a8af36e1
* Add option to build TWRP with toolbox instead of busyboxEthan Yonker2014-04-041-0/+62
| | | | | | | Makes a smaller TWRP Uses mksh for shell Change-Id: If78d7745dda8919fcb2e9c9b60c6696063c14114
* Fix merge conflicts and update for 4.4 kitkatDees Troy2013-11-021-7/+11
| | | | | | | | Make a copy of libmincrypt in TWRP source so we do not have to ifdef verifier.cpp for various versions of mincrypt. Remove reboot tool from toolbox (it was removed from 4.4 and did not compile properly on some devices in older trees)
* Add toolbox_recovery rulesDees Troy2013-10-161-0/+80
Build special limited toolbox with SELinux tools for recovery Change-Id: Ifc76a6bd0468a72081f15ede2a68adf48af8a0f2