aboutsummaryrefslogtreecommitdiffstats
path: root/roots.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix mkfs.f2fs calling in rootscm-10.2Skrilax_CZ2014-02-081-2/+3
| | | | Change-Id: I4991732be70a7e9ae7e87fa1395e89b315717049
* fix the following bugs to better handle new vold codephilz-cwm62013-10-191-14/+16
| | | | | | | | | | | - do not show partition sdcard entries for vold managed volumes until we have a valid blk_device2. That also caused a memory overflow - make it possible again to partition old style blk_device volumes - enable format voldmanaged devices to ext2 and ext3 with existing binaries by using optional blk_device2 (defined in recovery to NULL but not currently implemented by fs_mgr - fix unexpected behavior when in format/partition menus and insert an usb key (REFRESH return code) - ensure_path_unmounted() could not unmount /sdcard path on /data/media devices - format_device() and format_volume() properly handle /sdcard path argument on /data/media devices Change-Id: I2d5872690805e70175ba1346fd03978e3c2b879e
* fix f2fs formatting from edify scriptingphilz-cwm62013-10-011-0/+11
| | | | Change-Id: Id117adcc2ab96a32ca61937863f260d760496e19
* Fix extract of tgz multi volumes corruption at split pointphilz-cwm62013-10-011-1/+0
| | | | | | | | Remove roots.c dead code New lines Misc formatting Change-Id: I445fe240b3e5d1fff4c4dbce25e286cec66f69fc
* recovery: don't overallocate for get_android_secure_pathPawit Pornkitprasan2013-08-261-1/+1
| | | | | | | | We simply need the space to fill both strings and a final null. a char pointer is a lot larger than a char ;) Change-Id: I3472e1a9978fb2f6d439d4af9c072a98cec0cd19
* recovery: only use vold format for exact path matchPawit Pornkitprasan2013-08-261-1/+3
| | | | | | | Otherwise when formatting /sdcard/.android_secure, it will be matched to /sdcard and vold will format the entire /sdcard. Change-Id: Ifc26121f982b391b4ccf582b6162ab76feb72cae
* recovery: Revenge of MiniVoldSteve Kondik2013-08-231-1/+89
| | | | | | | | | | | | | | | | | | | * Vold has been refactored to be friendly to an environment such as recovery. Using Vold will eliminate many hacks and add previously unavailable features. * Link with libminivold and create a pseudo-binary to launch as a service in recovery. * Libvoldclient is an event-driven client for controlling the daemon. * Handles device hotplug and automatic mounting, if desired. * Manages USB storage * Can check and format volumes using any supported filesystem * Dynamically generate all storage paths * Dynamically refresh menus affected by storage changes * Fixed wall-of-compile-warnings and const-correctness in extendedcommands.c * Misc cleanups * Say goodbye to "apply /sdcard/update.zip". You have served us well. Change-Id: I13a3d72493f8fce7c19f192f9e94ad22cb60a2d2
* If sd-ext is defined in recovery.fstab, but user did not partition sdcard, ↵philz-cwm62013-08-161-3/+11
| | | | | | silent failure while formatting device (every nandroid restore or wipe data) Change-Id: I3ee2f891899be8e4fe0d722e64357dc5e7bc7428
* Fix issue where android device manager, etc, dont actually wipe data.Koushik Dutta2013-08-151-5/+6
| | | | | | | | | --wipe_data issues via /cache/recovery/command will now completely format data. All other manual wipe commands will preserve data on /data/media. There is another mounts/storage option that will do a true data format. Change-Id: Ie8ecd2b0e14c3bb1d8a404ea868cdf703455d2ab
* unlink() equals remove() in this situation can cause data loss and ↵philz-cwm62013-08-061-1/+0
| | | | | | filesystem corruption if some data is not sync when mount sdcard Change-Id: Ib3ad32842fcbf3b058c986df6901c7744bd5cf1f
* Fix roots.c to use fs_mgrKoushik Dutta2013-07-311-159/+65
| | | | Change-Id: Ie68daba5e014dff0c4998da85576f35abe8ad270
* recovery: use just the mount point instead of the full pathEmilio López2013-06-081-1/+1
| | | | | | | | When resorting to using mount because a block device uses 'auto' filesystem, we should use the mount point and not the full path. This fixes an issue with nandroid to external sd on yuga. Change-Id: Idbff944ea6d5af9112644c2ed46e23ea0a33e5ee
* Fix recovery filesystem table output to logMatt Mower2013-05-241-4/+4
| | | | | | Use fprintf when printing to a specified stream. Change-Id: I863e3b570e3cf560deec9e8bb39cb339f40ae94c
* revert mmcutils. cleanups and fixes.henry j. mason2013-05-091-5/+7
| | | | Change-Id: I2b0c3918528e5f7e6f4d2f8df1592c55f98317d3
* Remove wipe battery stats garbage.Chirayu Desai2012-11-211-1/+6
| | | | | | Add support for doing a true ext4 format of /data on /data/media devices. Change-Id: Ie6706989705e4cf90d0be119c7ffc54b2191d198
* recovery: support for more than 1 sdcard in USB mass storageDavid Ferguson2012-08-161-0/+4
| | | | | | | | | | | | | | | | | | | * Attempts to share any device behind /sdcard, /emmc, and /external_sd (in that order) * New option in recovery.fstab: lun=<path to LUN file> - specifies path to LUN file for given mount point - used when sharing a device over USB mass storage - restriction: only applicable to /sdcard, /emmc and /external_sd * If not specified in recovery.fstab, searches for available LUN files in order: 1. BOARD_UMS_LUNFILE (if defined) 2. /sys/devices/platform/usb_mass_storage/lun%d/file 3. /sys/class/android_usb/android0/f_mass_storage/lun/file 4. /sys/class/android_usb/android0/f_mass_storage/lun_ex/file ** More can be added to this list for better auto detection * Searches for available LUN files using %d replacement - %d is expanded to 0 and 1 only Change-Id: I09e91f9b6c1e2c5e96df8983b1132deeec6395b5
* forward port CWM to jellybeanKoushik Dutta2012-07-151-1/+3
| | | | Change-Id: Ibd66afe03c9a2c183e4c7db35fe34adf0f5e24ff
* fix up datamedia volume detectionKoushik Dutta2012-06-171-7/+2
| | | | Change-Id: Ia853e31e31aebce9e70b1e9500930b14a92ee4bf
* support datamedia on any one volumeKoushik Dutta2012-06-171-24/+43
| | | | Change-Id: I198e789ee01e8a5b10eee33ed59a2d828cfb096a
* fix up key value parsingKoushik Dutta2012-01-291-3/+3
| | | | Change-Id: I05e821cd1215c44be780694644e568676fd67565
* add comments around /data/mediaKoushik Dutta2011-12-181-1/+3
| | | | Change-Id: I35ad822ed602e2b1018f1e1a0d67499867b60a40
* nandroid/root/extendedcommands: attenuate for /data not being auto in fstabPrashant Somashekar2011-12-181-1/+4
| | | | Change-Id: I0e7bec03bb29f1ae72f23321f89cf704e54ff4d9
* remove redundant fixKoushik Dutta2011-11-231-3/+0
|
* fix missing prebuilts in recovery. mmc bootloader message support. fix ↵Koushik Dutta2011-11-231-1/+6
| | | | segfault happening due to C structs not being zeroed out.
* recovery: fix non-MTD mounting (uninitialized variables)Pawit Pornkitprasan2011-11-191-0/+3
| | | | Mounting failed due to invalid (garbage) fs_options
* wipKoushik Dutta2011-11-161-18/+43
|\
| * save a last_install file with the result of the last package install attemptDoug Zongker2011-04-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | When installing a package, create /cache/recovery/last_install, which contains the filename of the package and a 1 or 0 for success or failure. Also, don't mount ext4 and vfat filesystems as read-only (on devices where /cache is ext4, we need it to be read-write). Change-Id: I0cf2a1921bbd65e06343aa74e2006577fac77c2c
| * recovery: mount /sdcard read-onlyIliyan Malchev2011-03-111-2/+3
| | | | | | | | | | Change-Id: Ieffafe00cf82620057cacd0629cb60b0e6aad817 Signed-off-by: Iliyan Malchev <malchev@google.com>
| * store partition length in recovery.fstabDoug Zongker2011-02-171-9/+35
| | | | | | | | | | | | Don't hardcode magical partition behavior in roots.c. Change-Id: I587fc2c066575b51c11efd2e45a50f5b864df484
| * Reserve the last 16 Kbytes of /data for the crypto footer.Ken Sumrall2011-01-191-2/+6
| | | | | | | | | | | | | | When formatting /data, if it's an ext4 filesystem, reserve the last 16 Kbytes for the crypto footer. Change-Id: I7b401d851ee87732e5da5860df0287a1c331c5b7
| * Update make_ext4fs arguments in roots.cColin Cross2011-01-051-1/+1
| | | | | | | | Change-Id: I835e55fb80add6a74cd4d99f77b2528829d9a349
* | allow explicitly provided mount locationsKoushik Dutta2011-08-311-9/+16
| | | | | | | | Change-Id: I3930b2abeb81c09c25c1750f0545c233c0d5a4a2
* | bug fixesKoushik Dutta2011-06-151-2/+2
| | | | | | | | Change-Id: I1125db9cb1a12a95060f7673965fd40994a78c5b
* | fix buildKoushik Dutta2011-06-141-1/+1
| | | | | | | | Change-Id: I3701f71ed9ecf5b6879e12ab6f618d5b678ef2f3
* | cleanups for tar and /data/media supportKoushik Dutta2011-06-141-0/+4
| | | | | | | | Change-Id: I4afe3a8d4484f91b1e689d7b3aa4f137acd66e93
* | make tar backups opt in.Koushik Dutta2011-06-101-4/+14
| | | | | | | | Change-Id: Ib01131f3a65ce4114e73abe2c7ba42263d281844
* | tar nandroid and /data/media support.Koushik Dutta2011-06-081-0/+19
| | | | | | | | Change-Id: I9405e701887fc83c422c63c1dbf5ff087fff880d
* | fix up some implicit declarationsKoushik Dutta2011-05-261-4/+3
| | | | | | | | Change-Id: Ia98bb5bea04a9cb87bf1993687e7f91f46022509
* | more fixesKoushik Dutta2011-05-261-1/+1
| | | | | | | | Change-Id: Ic55d94ef69b6b8ea4ec2a6df708a9444e9d5f4e5
* | bml fixesKoushik Dutta2011-04-221-1/+0
| | | | | | | | Change-Id: I442ef3c155bab36db578ca5735215aedda353c29
* | build "mount & storage" menu from fstabKolja Dummann2011-03-071-2/+10
| |
* | fix buildKoushik Dutta2011-03-021-5/+5
| | | | | | | | Change-Id: If907795c670fb1ca7ba28bbfd40d21ce51405b7d
* | fixesKoushik Dutta2011-03-021-9/+25
| | | | | | | | Change-Id: I28b58fec5ac92463bf189269267b8e1579dbc92c
* | remove redundant codeKoushik Dutta2011-03-011-1/+0
| | | | | | | | Change-Id: I6a24f89068c882b18973c9143a02768531b71ddd
* | remove debug codeKoushik Dutta2011-03-011-1/+0
| | | | | | | | Change-Id: I14a6657a6f875d4305ed72a163bf72e3e9c5dad1
* | forgot to check this in.Koushik Dutta2011-03-011-1/+4
| | | | | | | | Change-Id: I97a7cf0b9bb296bff4b8a80f528082c0c409e9e1
* | build break!Koushik Dutta2011-02-271-1/+1
| | | | | | | | Change-Id: Ia33661ea1c735990528095038b93fd4ecb717341
* | loggingKoushik Dutta2011-02-271-0/+1
| | | | | | | | Change-Id: Id835419f1ed3d9cf9c946f73a35eddc3ac029a2c
* | more fixes for sammyKoushik Dutta2011-02-271-0/+1
| | | | | | | | Change-Id: Ie11c673a204a328a82f767a2610c5f1d9a51233c
* | specify a type on the mount.Koushik Dutta2011-02-271-1/+1
| | | | | | | | Change-Id: I610330e2971aaf235e0420fa7d4387e4f55b0015