summaryrefslogtreecommitdiffstats
path: root/prebuilt/common/bin
Commit message (Collapse)AuthorAgeFilesLines
* backuptool: Preserve the SELinux context of the filesGabriele M2017-02-271-2/+12
| | | | | | | Add a function that allows to copy files preserving their SELinux context that is generic enough to work with both busybox and toybox. Change-Id: If2c245863df5675c18dbf43b6bcedeb33383fc38
* backuptool: Don't rely on the order of the elements in the listGabriele M2017-02-271-2/+2
| | | | | | | We should not test symlinks using -e or -f, otherwise the order in which the files are backed up and restored matters. Change-Id: I9b87972b27a63ef562c0c5f46f943eafd0a08ce1
* cm: Rebrand to LineageOSZhao Wei Liew2016-12-291-1/+1
| | | | Change-Id: Icf53ce2b98306498cfa815e9fc7377e9a6c583a6
* otasigcheck: Avoid long lines in XMLTom Marshall2016-01-041-0/+3
| | | | | | | | | Shells based on busybox, such as found in CM 12.1 recovery and TWRP, do not properly handle pattern based parameter expansion for variables longer than 4kb. This throws our naive little XML parser into an infinite loop. Since all such lines are associated with external app certs, just skip them. Change-Id: I203b65c1ffd62bf3261b3ae315327314a5006952
* otasigcheck: Rewrite for CM 13.0Tom Marshall2015-12-161-5/+62
| | | | | | | | | | | | Rewrite the packages.xml parser to be slightly less brittle. Read lines from packages.xml and save off the interesting values, then compare with expected results afterward. This both avoids using grep's -A option, which is not supported in toybox, and allows the script to recognize the cert tag regardless of its position inside the package tag. Change-Id: Idc0006e38f4a3f9d5aec223a8a1571f5c11fe3bb
* sysinit: use a for loop instead of run-partsSimon Shields2015-12-121-1/+6
| | | | Change-Id: Ifdff2c72ff4f77ff5ceb14cc9614174024b04d1a
* backuptool: Use cut instead of awkTom Marshall2015-11-201-2/+2
| | | | | | | recovery has removed busybox in favor of toybox, and toybox does not currently implement awk. Change-Id: I9d91f52020e8a7b5b02dce27f3d82e6bf0aa1811
* cm: Remove fix_permissionsSteve Kondik2015-11-161-484/+0
| | | | | | * Probably causes more harm than good at this point Change-Id: Ibbea54cd48e5f8de251de38d0b772672d8a08ac9
* cm: Add a wrapper script for Curl which acts like wgetSteve Kondik2015-11-141-0/+184
| | | | | | | | * Lots of stuff in the wild actually uses wget, and Toybox doesn't provide it. We already have Curl which does the same thing just with some different arguments. This wrapper script can handle it. Change-Id: Ic02da709fcd29808b96fabcd1ac4ddd9465f635f
* Updates for cm-13.0Michael Bestas2015-10-073-3/+3
| | | | Change-Id: I6a0efff3bf6ea2e332cacd7cbb2f2b132b2c73dd
* backuptool: Add checks if it makes sense to execute commandsAndreas Schneider2015-09-151-9/+19
| | | | Change-Id: Ic83fc1168ac459b1bba5cef97d184ce2a9db4c68
* Updates for cm-12.1Michael Bestas2015-04-013-3/+3
| | | | Change-Id: I3eefaadce417ed3802f31bd62ee57a3b18561839
* otasigcheck: skip otasigcheck in headless modeBrint E. Kriebel2015-03-041-0/+6
| | | | | | | We should assume that headless mode is going to handle data wipe as needed. Change-Id: Iea01a061458f5b5ecc881e41ec8ac2200722eeed
* init: remove logwrapperGeorg Veichtlbauer2015-02-091-1/+1
| | | | Change-Id: I1e2ecfcbca335afd1c8bf7c6fd76684a221b99ef
* cm: Put install tools in OUT/installTom Marshall2015-01-131-0/+3
| | | | | | * This allows us to avoid modifying /system at install time. Change-Id: I747551d7f38a3eef70ab64f32b6d4a4749c01012
* otasigcheck: Use an explicit exit code for failuresRicardo Cerqueira2014-12-011-3/+4
| | | | Change-Id: I2b5860ea427a4db7e29b55cc632b92c6e2910494
* Updates for CM12Ricardo Cerqueira2014-11-062-2/+2
|
* otasigcheck: Don't fail a signature check if data will be wipedBrint E. Kriebel2014-09-241-0/+6
| | | | | | | | If the --wipe_data command is being passed to recovery, skip the signature check since the data will be wiped after the update is installed Change-Id: I6641f25abd044110faaf170ab2f7982460e77bcb
* otasigcheck: Fix the sed statement for multi-digit indicesBrint E. Kriebel2014-07-111-1/+1
| | | | | | | | It appears that some versions of sed do not work with the + symbol. Instead of checking for one or more digits, check for a digit, followed by zero or more digits. Change-Id: I064df6a2bac4a634a3684ac1a5289dca1f4ba29c
* otasigcheck: include multi-digit cert indicesBrint E. Kriebel2014-07-101-1/+1
| | | | | | If the cert index is greater than 9, we still want to include it. Change-Id: I82787e59557ae0bb7f15da16630d2b0afb7cff06
* otasigcheck: set verification package to com.android.htmlviewerBrint E. Kriebel2014-07-101-1/+1
| | | | | | | We need to use something that will always be there and not replaced by other packages. Change-Id: Ide942865f284239ae2ae2503005ccc7e8272995c
* ota: Validate any installed data's signature against our ownRicardo Cerqueira2014-07-101-0/+18
| | | | | | Try to prevent incompatible-signature system quirkiness Change-Id: I73402d963a1b57ad0ee3c68ced4f2d7f074f927f
* cm: Remove legacy compcache stuffSteve Kondik2014-01-042-84/+0
| | | | | | | | | * Remove all this stuff. If a device wants ZRAM, it should be enabled by the maintainer and properly configured and tuned. * This stuff currently causes a conflict with the ZRAM support added in Kitkat. Kill it. Change-Id: Ib2488ea4463e32ec44b65fe786f732145b5b6e23
* 50-cm.sh: update comment to CM11David Gasaway2013-12-251-1/+1
| | | | Change-Id: I678b9b2815dfda52189e69aa95b9cc0fb12f2d5a
* Updates for CM11Ricardo Cerqueira2013-11-052-2/+2
| | | | Change-Id: Icb527c5aefa0dd86cc91f42f4f691b5fdf7ead48
* Use Package Manager to disable stock OTAPawit Pornkitprasan2013-09-011-10/+0
| | | | | | | | | This reverts commit ea14a88a2ac567104f267fda5a4507d0ae48040c. Using the Package Manager prevents any danling wakelock from killed service/receiver. Change-Id: Ie3162ca4b18a7bc9c55613af39e88ea980407e5f
* otablock: also disable BroadcastReceiverPawit Pornkitprasan2013-08-291-0/+1
| | | | | | otherwise it'll prevent the device from going to sleep Change-Id: I56e20c4b3e33c78f30e095f38240d6663c9d74f5
* Prevent stock OTA activities from running in CMRicardo Cerqueira2013-08-271-0/+9
| | | | Change-Id: I3f586cd246fc351afb82c94f41329bf930f6f41a
* backuptool: Add support for cross-version whitelistsRicardo Cerqueira2013-08-262-3/+31
| | | | Change-Id: I415eb4d64d693a7e150656802be7f7c4a0e5ab8b
* Update version in backuptool.functions tooblunden2013-08-251-1/+1
| | | | Change-Id: Idbdf7ffbec037a78c2d3df4ca2a83c1058c19279
* Underp the backuptoolRicardo Cerqueira2013-07-271-1/+1
| | | | Change-Id: I2510525701070d8c7e59c26693fb0fdb37453fb3
* cm: cleanupjt11342013-01-201-59/+0
| | | | | | | | | | | - remove SpareParts: it's disabled and broken, the options it provides are either useless/broken or available in development settings - remove modelid_cfg.sh: no devices are using this any more - remove opticharger: it's not used any more Change-Id: I68c86b2407486c4b40998288cf1f70b7cb8170f4
* backuptool: Disregard known bad backup scriptsRicardo Cerqueira2012-12-192-0/+17
| | | | | | | Keep a blacklist of md5 sums for scripts known to cause issues, and ignore them when installing new builds Change-Id: I19a88b58194a32da5eb5fe278f2c5b9a145b57be
* backuptool: only restore from same major.minor versionChirayu Desai2012-12-132-4/+4
| | | | Change-Id: I63113fa9b3cbc6b0e1b3df75ef7dfb3160ee5062
* fix for a typo in the comments of 50-cm.shJoseph Stahl2012-09-151-1/+1
| | | | | | Updated the file to reflect its use in CM10. Change-Id: I7d4759798c75d2e2163e34c0d3b6fde8266e4756
* remove mount/unmount capabilities from backuptoolAusten Dicken2012-07-171-19/+0
| | | | | | | | | backuptool should not be messing with whether /system is mounted or not as it screws up the expectations of other scripts run in the install process. instead the mounting/unmounting functionality has been moved to ota_from_target_files Change-Id: I0711afd517638e7d0a0c39369d3a776748245dd2
* backuptool: Update CM versionRicardo Cerqueira2012-07-151-1/+1
| | | | Change-Id: I646a6706faa35908bbca767a03f97172265390ce
* backuptool.sh: Improve check for whether /system is mounted.eyeballer2012-04-111-2/+2
| | | | | | Fixes unable to flash an update.zip over a formatted /system Change-Id: Ia163262585cb2ef414c6996837834c512d774243
* Modular backuptool.sh. Executes backup and restore methods defined in ↵Warren Togami2012-03-083-194/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arbitrary /system/addon.d/*.sh scripts. Tips & Tricks ============= * 50-cm.sh contains only a reference implementation. You may customize the methods however you wish. For example, 20-foobar.sh pre-backup can use a loop with conditionals to generate a dynamic backup list in /tmp/foobar_file_list which is later printed by list_files() so the backup method will act on those files. * Optional methods pre-backup, post-backup, pre-restore, or post-restore may be defined for special purposes. * Inject new files into /tmp/addon.d/ prior to backuptool.sh backup if you want to act during the current CM upgrade. * Delete files from /tmp/addon.d/ during post-restore if you want to permanently remove files from /system/addon.d/ Addons may use this approach to run a script only once. * Scripts run in sort -n order. Prefix with numbers 00 through 99 if want to run in a particular order. * You can have two separate scripts, implementing only backup in one, and only restore in the other with a different number prefix of each. This allows even greater control the backup/restore order even further. * You could use pre-backup to generate a one-time use backup script in /tmp/addon.d/ that deletes itself in post-restore. Patch Series ============ http://review.cyanogenmod.com/#change,13265 CyanogenMod/android_build * edify generator http://review.cyanogenmod.com/#change,13266 CyanogenMod/android_system_core * permissions on /system/addon.d http://review.cyanogenmod.com/#change,13267 CyanogenMod/android_vendor_cm * 50-cm.sh reference backup script * modular backuptool.sh * support backuptool.functions used by /system/addon.d/*.sh scripts Change-Id: Ifd5eaf9dcfd68d92e5043c21d1bae1dc0ad54860
* Fix overridden packages in backuptoolSteve Kondik2012-02-291-2/+2
| | | | | | | - Fix Gallery typo - Add QuickSearchBox override Change-Id: I7ac14e62eebf4289a55d2d1f065d34866cb67abd
* Merge "Ensure backup of voice search" into icsSteve Kondik2012-02-291-0/+1
|\
| * Ensure backup of voice searchShawn Alty2012-02-251-0/+1
| | | | | | | | | | | | | | | | | | Currently the tool only backs up the lib, but not the apk. Seeing as how the market version of voice search is still not up to date with the current release, it should still be backed up with this script. Change-Id: Ia130bb3e289fc3c2206a60ed0fcfd7dab816425d
* | handle_compcache: update props to match MemoryManagement in settingsAndrew Sutherland2012-02-221-7/+7
|/ | | | Change-Id: I74ebcb03d5e096b8e9c71672a23b1c5a70eaef37
* backuptool: Deal with multiple files with the same nameRicardo Cerqueira2012-02-181-3/+5
| | | | | | | | | | | Since the destination for all backed up files during an installation was /tmp, all files sharing a name (like the full_model.bin files from the various face detectors) ended up being restored as copies of the last such file, effectively breaking the backup. As a fix, when backing up files, use the entire original path to make sure they're kept separate and restorable. Change-Id: I399f7a9433a225871d97e0ecaeb051a90e68696b
* Revert "Remove gallery from backuptool"Steve Kondik2012-02-151-0/+1
| | | | This reverts commit 538b4e9eb40857642dd15dc51ccf6a6c42b8ed72.
* Remove gallery from backuptoolSteve Kondik2012-02-101-1/+0
| | | | Change-Id: Ide65c6810955b2be9bc582559c7ba23a0f47cd26
* cm: Update backuptool for calendarSteve Kondik2011-12-301-2/+2
| | | | Change-Id: I882a9e108304649c491b539a7453e29098208b11
* cm: Rename modversion to cm.versionSteve Kondik2011-12-291-2/+2
| | | | Change-Id: I73da7816fec34e892ee54e1782a18ec1c42863b4
* Backuptool: Add missing google apps filesDvTonder2011-12-261-1/+10
| | | | | | This commit adds additional gapps files missing from the backuptool Change-Id: I2848d06c23083def8e92dbf3cf1c024883fb874d
* backuptool: add missing CalendarProvider.apkDvTonder2011-12-261-0/+1
| | | | | | This fixes the broken Calendar Sync after restore Change-Id: I2ea6c328f64d8fa3022238072cde36f6cb92105d