aboutsummaryrefslogtreecommitdiffstats
path: root/roots.cpp
Commit message (Collapse)AuthorAgeFilesLines
* recovery: rename remount_for_wipePat Erley2016-02-081-3/+3
| | | | | | We need to re-use this to get read access to OTA files. Change-Id: Iaab91150ff30422f25139372c5cd9076f1670bd3
* recovery: Offer to format if data wipe failsTom Marshall2016-02-041-1/+4
| | | | Change-Id: I76587c4fa234c5aab52882492da295e70029f522
* recovery: Fix mount_for_wipePat Erley2016-01-281-0/+1
| | | | | | | | During a rebase, a line was dropped that shouldn't have been. CYNGNOS-1747 Change-Id: I9c9729ba11599baad267d3769685124b422033f8
* recovery: Fix recursive rm wipe of dataPat Erley2016-01-281-0/+28
| | | | | | | | | | Android 6 re-introduced MCS/MLS SELinux contexts. Unforunately, this broke our previous SELinux model for walking /data and unlinking everything but media. Fix this by mounting /data with a temporary SELinux context that works with the previous model. Ticket: CYNGNOS-1747 Change-Id: Id87ad3bb357102c3a8bd7c1417183d788ef858a0
* recovery: Fix mounting f2fs partitionsTom Marshall2015-12-011-0/+1
| | | | Change-Id: I9d94b611ab9a873b6b57a6d22bf78de131e3c8e5
* recovery: autodetect filesystem typeDan Pasanen2015-11-251-1/+22
| | | | | | | | | | | | | | | * Multiple fstab lines (supported in android) cause recovery to fail to mount partitions if the fs type is not the same as the first fstab entry. So when we attempt to find an fstab entry that matches a path for an f2fs, ext4 or vfat type, check it against blkid's determination of what filesystem type it is. If there is a discrepancy, query fs_mgr for the next possible entry that matches that path until either we find one that is good, or run out of fstab entries. * Also attempt to autodetect the filesystem type for mounting from update.zips. Change-Id: Ib6f4535dd88ef714ae1ca6fb0ffae1c7dac0f7ce
* recovery: Handle oemunlock commandTom Marshall2015-11-251-2/+2
| | | | | | | * Conditionally compile support based on TARGET_HAVE_OEMLOCK. * Use liboemunlock for device specific support. Change-Id: I1cf1fef8e30075b0586bb86625b7df49723974cb
* recovery: datamedia supportTom Marshall2015-11-251-1/+86
| | | | Change-Id: I4cef82973a15111bee92cd7c81f0e1db8d211991
* recovery: bu: Implement backup/restoreTom Marshall2015-11-251-6/+31
| | | | Change-Id: I9e684868ce15aaaed3a40338dadc20b003b50ade
* recovery: Awakening of MiniVoldTom Marshall2015-11-251-10/+102
| | | | | | A minimal vold client for recovery. Change-Id: Id25d955dc1861a910e5f5fc27d9a19e245d66833
* sr: Puke out an /etc/fstab so stuff like Busybox is happySteve Kondik2015-11-201-0/+26
| | | | | | | * And disregard special mount flags on purpose because of certain dubious packages which "exec busybox mount". Change-Id: I163702c9bd7fca3d40676fd6d8476e8deb13acc0
* recovery: Allow "Mount /system" for system_root_image.Tao Bao2015-11-071-8/+18
| | | | | | | | | | | When system images contain the root directory, there is no entry of "/system" in the fstab. Change it to look for "/" instead if ro.build.system_root_image is true. We actually mount the partition to /system_root instead, and create a symlink to /system_root/system for /system. This allows "adb shell" to work properly. Bug: 22855115 Change-Id: Ibac493a5a9320c98ee3b60bd2cc635b925f5454a
* Allow f2fs to reserve bytes for footer when formattingKeith Mok2015-10-191-13/+13
| | | | | Ticket: SAMBAR-729 Change-Id: I66630d2e24434e5b5587f0b0cb43e3e7543c960c
* am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-021-0/+1
|\ | | | | | | | | * commit '0ddfa329acb1e6464fe5d66b58257013abf21116': Allow mounting squashfs partitions
| * Allow mounting squashfs partitionsMohamad Ayyash2015-07-011-0/+1
| | | | | | | | | | Change-Id: Ic023eb7d8a11e2a65172a23ff39fa902ef566183 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
| * DO NOT MERGE Revert "Erase PST partition if its marked to be erased."Andres Morales2015-04-011-37/+0
| | | | | | | | | | | | | | | | | | This now gets done at the framework level. Doing it here breaks the signature on the partition. This reverts commit ee19387905650cab5da7dd97ada5502cd17ac93d. Bug: 19967123 Change-Id: I447b926b733ca145f11a916d9569ce39889db627
* | Merge "always use volume mount option when mounting a partition"Tao Bao2015-03-311-1/+1
|\ \
| * | always use volume mount option when mounting a partitionGaelle Nassiet2015-03-241-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From ROS, if enable adb using the vol.up and vol.down buttons, the /system partition is mounted by the function ensure_path_mounted() but with hardcoded mount options. As a consequence, the blocks are modified and the reboot in MOS is blocked by the dm_verity feature that detects a corruption. This patch forces the function ensure_path_mounted() to use the mount options from the volume structure, that were previously read from the fstab. Change-Id: I748d32c14cb821f4aae5bcc430089dab45375515 Signed-off-by: Gaelle Nassiet <gaellex.nassiet@intel.com> Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
* | Revert "Erase PST partition if its marked to be erased."Andres Morales2015-03-311-37/+0
|/ | | | | | | | | | | This now gets done at the framework level. Doing it here breaks the signature on the partition. This reverts commit ee19387905650cab5da7dd97ada5502cd17ac93d. Bug: 19967123 Change-Id: I2a977cb0f0ba94defa1bf9091219398ddc1d3528 (cherry picked from commit 037444642bc32d8fed3bb996823b6a62faa57195)
* Merge "Erase PST partition if its marked to be erased." into lmp-devAndres Morales2014-08-051-0/+37
|\
| * Erase PST partition if its marked to be erased.Andres Morales2014-08-061-0/+37
| | | | | | | | | | | | | | | | | | | | | | We need to wipe the challenges on this partition if OEM unlock is enabled, as this is a signal that the user has opted out of factory reset protection. go/factory-reset Bug: 16633064 Change-Id: Icb8f1433bf99ca57813f5b72d5a3dd15fa94a263
* | Fix length printing + formatsJP Abgrall2014-08-041-3/+3
|/ | | | | | | | | Fix wrong argument order. Fix for 32 vs 64 bit. (reported by htc) Change-Id: Ie37a280bed2848199bcc075500e1326e371cd326
* Support F2FS for the data partitionJP Abgrall2014-06-161-13/+49
| | | | | | | | | | | | This adds F2FS support - for wiping a device - for the install "format" command. Note: crypto data in "footer" with a default/negative length is not supported, unlike with "ext4". Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870 Signed-off-by: JP Abgrall <jpa@google.com>
* am ecf1f6c9: am 558f2700: Merge "Change filesystem add entry API call."Sasha Levitskiy2014-04-121-1/+1
|\ | | | | | | | | * commit 'ecf1f6c9299c0cae2f2bf1647f5d7d3a2690f819': Change filesystem add entry API call.
| * Change filesystem add entry API call.Sasha Levitskiy2014-04-111-1/+1
| | | | | | | | | | | | Needs fs_mgr matching change from: Icf23e659265d71d5226d527c2b40cfbc132320ee Change-Id: I9adb470b04e4301989d128c9c3097b21b4dea431 Signed-off-by: Sasha Levitskiy <sanek@google.com>
* | do verification and extraction on memory, not filesDoug Zongker2014-01-161-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes minzip and recovery's file signature verification to work on memory regions, rather than files. For packages which are regular files, install.cpp now mmap()s them into memory and then passes the mapped memory to the verifier and to the minzip library. Support for files which are raw block maps (which will be used when we have packages written to encrypted data partitions) is present but largely untested so far. Bug: 12188746 Change-Id: I12cc3e809834745a489dd9d4ceb558cbccdc3f71
* | recovery: wipe encryption metadata along with data partitionDoug Zongker2013-12-121-1/+26
|/ | | | | | | | | This assumes that the metadata is correctly defined in fstab. Which apparently some devices don't do. Bug: 8766487 Bug: 12112624 Change-Id: I1b14b9d4c888e9348527984be3dce04bdd9f4de0
* recovery: install packages in a known mount environmentDoug Zongker2013-08-211-0/+19
| | | | | | | | | | | When installing a package, we should have /tmp and /cache mounted and nothing else. Ensure this is true by explicitly mounting them and unmounting everything else as the first step of every install. Also fix an error in the progress bar that crops up when you do multiple package installs in one instance of recovery. Change-Id: I4837ed707cb419ddd3d9f6188b6355ba1bcfe2b2
* Move to using the new unified fstab in recovery.Ken Sumrall2013-02-191-110/+30
| | | | | | | Instead of reading it's own fstab, have recovery invoke fs_mgr to read the unified fstab. Change-Id: I80c75d2c53b809ac60a4a69f0ef7ebfa707c39e9
* resolved conflicts for merge of 0b1fee1b to masterKenny Root2012-03-301-1/+3
| | | | Change-Id: I2e8298ff5988a96754f56f80a5186c9605ad9928
* turn recovery into a C++ binaryDoug Zongker2011-10-311-0/+282
Change-Id: I423a23581048d451d53eef46e5f5eac485b77555