Commit Graph

143 Commits

Author SHA1 Message Date
Koushik Dutta
a465962667 use source built e2fsprogs! thanks cvpcs!
Change-Id: Id3067d4da53643ae1af0b9f15445262afda7b197
2012-01-30 22:51:36 -08:00
Koushik Dutta
b20a4812ba reversed the logic
Change-Id: I62c104ee0c9218f929c10eda31f4bf5828b0de22
2012-01-26 15:29:08 -08:00
Pawit Pornkitprasan
aa3c3d429b Respect volume length when formatting ext4 when restoring
This is needed for device encryption to work properly (there must
be space for a 16 KB footer at the end of the partition, which is
usually specified by the length option).

And yes, the old signature of make_ext4fs was wrong, but worked
anyway because the related header was not included and the compiler
let it pass an as implicit delcaration.

Change-Id: Ied7ec70bebc120cc2917771f59eeaeb7ea76bf8d
2012-01-26 15:16:53 -08:00
Koushik Dutta
5a44ceb692 remove hacky board define around usb storage mounting on /data/media devices.
Change-Id: I2d382762271a2cfc6d83454160ed127b7457c88c
2012-01-26 14:56:56 -08:00
Koushik Dutta
4c8e2482a6 Who approves this stuff... use get_volume_for_path('/sdcard') and check for null...
Revert "Hide "mount USB storage" option from mount menu when the board has a virtual sdcard"

This reverts commit e510810c71.
2012-01-26 14:47:34 -08:00
CEnnis91
e510810c71 Hide "mount USB storage" option from mount menu when the board has a virtual sdcard
Change-Id: I4e59768e9f34f0fb33d88ad382feaa2515d70bc4
2012-01-15 02:37:34 -05:00
Prashant Somashekar
f0c389ddcd nandroid/root/extendedcommands: attenuate for /data not being auto in fstab
Change-Id: I0e7bec03bb29f1ae72f23321f89cf704e54ff4d9
2011-12-18 02:52:30 -05:00
Prashant Somashekar
357a2f5109 extendedcommands/nandroid: remove internal options if no sdcard and is_data_media
-force /data as backup_path if volume for /sdcard is null and the same is true

Change-Id: I927b723cde5b519d81402c6d841f2424627253e8

Conflicts:

	nandroid.c
2011-12-18 02:52:21 -05:00
Chris41g
d2eecca360 Update extendedcommands.c one "No". 2011-11-21 14:37:29 -08:00
Koushik Dutta
0df56f4db4 wip 2011-11-16 16:00:35 -08:00
Koushik Dutta
2291705c41 Merge pull request #12 from DRockstar/gingerbread
Add RFS format support
2011-11-11 00:27:25 -08:00
Koushik Dutta
7ef88155e0 fix advanced restore
Change-Id: I0805799343800912f8ea2caf9d06be4d59e9f4bf
2011-11-11 00:26:32 -08:00
Donovan Bartish
a8f265dd6f Add RFS format support
Change-Id: Ifd1e5ce9875c3eaacc1cec1759b67e672894e279
2011-11-10 15:54:14 -06:00
Koushik Dutta
c9ea117b56 actually implement internal sdcard restore
Change-Id: I10799352768a2babb46dc9b74671fd3b1049583d
2011-10-29 18:48:18 -07:00
Koushik Dutta
4fcd523ded fix driver looking for recovery, rather than checking the basename. fix badness in nandroid menu generation.
Change-Id: I7d7011e36583509f07534e4bc85ed8d567022d3e
2011-10-28 11:47:02 -07:00
Koushik Dutta
89ed0b7355 support backup and restore on internal sdcard
Change-Id: I6295b5bb7ada967ca223758be58d555c1a2ff462
2011-10-26 21:25:34 -07:00
Koushik Dutta
95fb821c19 shuffle some code
Change-Id: Ifb5afe8ef6de7b6de58dfc07a30c1f89b5c1eb08
2011-09-23 03:57:25 -07:00
Koushik Dutta
81a61516c9 fix text
Change-Id: I56e682be485d1bb8191f54b5df1fc2634b6d9ad5
2011-09-22 15:10:20 -07:00
Koushik Dutta
30a937a954 cwr 5
Change-Id: I70cbb4df78b0bbc9d227d19aa6d9434eba2b540d
2011-09-05 21:14:06 -07:00
j_r0dd
3f2e286747 adding text output for battery stats wipe. just a confirmation that it completed successfully
Change-Id: I8c00521081b12f123c35239212f2b53dde3a7c8e
2011-07-10 22:48:39 -04:00
Tanguy Pruvot
aaad77fc80 move choose zip option first in apply zip menu, update.zip is on main menu 2011-07-08 10:11:27 -07:00
Tanguy Pruvot
67d358cf4e Add a new 'Show log' extended function.
Could also be used to report last lines from log on error.

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>

Change-Id: I3d9e51f4e81e48f20120e2449ccde651efae8d07
2011-06-30 01:26:13 +02:00
Koushik Dutta
fb3bd71038 fix crash bug.
Change-Id: I1afbc75815ffc72508942b73e40f67307f330ddf
2011-06-16 14:13:02 -07:00
Austen Dicken
7126ef404c use new libreboot static lib for rebooting
relevant commit is here: http://review.cyanogenmod.com/#change,6128

Change-Id: Id8587cba4017c322b3a5b89c1f994ade684f424a
2011-06-14 15:53:57 -05:00
Koushik Dutta
38a921435a make tar backups opt in.
Change-Id: Ib01131f3a65ce4114e73abe2c7ba42263d281844
2011-06-10 09:45:52 -07:00
Koushik Dutta
94caefedb7 move the sdcard symlinker into process_volumes
Change-Id: I863fbeadea8428c7809260522316c493a6ea33ea
2011-06-10 09:17:30 -07:00
j_r0dd
14d9e75577 added the efs partition to the do not format list since this holds the imei info.
Change-Id: I2644327c1dbaa63420b7eb7b1bce10377c0e0837
2011-06-09 18:37:28 -04:00
Koushik Dutta
5082299146 tar nandroid and /data/media support.
Change-Id: I9405e701887fc83c422c63c1dbf5ff087fff880d
2011-06-08 19:03:27 -07:00
Brandon Bennett
cdcb773cea Rename format_ignore_partitions to a forbid_format
There is a max length for system property names at 32 characters. The
old recovery property name was over this length.

Renamed the property to one much shorter so it is read properly.

Change-Id: Iecadd1218a64cab0c4fb94c5e910b920217580f1
2011-06-05 16:40:00 -06:00
Tanguy Pruvot
88efbfb82b Fix 6 extentedcommands declaration warnings
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
2011-05-30 13:27:05 +02:00
Koushik Dutta
4187347329 fix formatting
Change-Id: Ic6162e5044b50544fab2d5aa83e1e22f373419d7
2011-05-26 17:30:43 -07:00
Koushik Dutta
7adeadce47 fix up some implicit declarations
Change-Id: Ia98bb5bea04a9cb87bf1993687e7f91f46022509
2011-05-26 11:47:56 -07:00
Koushik Dutta
8a6bc77423 test
Change-Id: I25bd6846aea09247459c89ba98e6ac34c3debaa3
2011-05-26 11:14:15 -07:00
Brandon Bennett
9ad8ba21b3 Allow per device unsafe-to-format partition list
The change switches is_safe_to_format() from a hard coded list
to a list that can be overwritten by system property.

Change-Id: Ie536044a912c3e88462831851d288a60fdc30e2b
2011-05-12 17:11:31 -06:00
atinm
54815c9dc9 Use TARGET_RECOVERY_PRE_COMMAND before calling __reboot() recovery
For the Power menu,
frameworks/base/core/jni/android_os_Power.cpp#L180
already uses TARGET_RECOVERY_PRE_COMMAND if
TARGET_RECOVERY_PRE_COMMAND is defined in the
BoardConfig.mk for a device to make a system() call before
calling __reboot() for recovery. This commit adds
the same thing to the other places that we know we are
getting into recovery using __reboot().

Change-Id: Ifd0394fed1e87b63d80d95e0e2a049004518e27e
2011-05-07 15:36:56 -04:00
wjb
cea6eba92d recovery: display mount point when confirming format
Change-Id: I474a511774b9e7ecf92f9fcedb1952d4c0adfdbc
2011-04-30 21:04:04 -04:00
mik_os
df3004bd16 Try to mount vol->device2 partition to UMS.
Stock sd-card that ships with LG-P500 formatted with no partitions.
This issue can be handled with device2 in recovery.fstab.
But UMS didn't.
We will try to mount second device (if it was defined) if first failed.

Change-Id: Ia8b58b9fdfa3e63f703a1dd5870cb76936cec88e
2011-04-26 19:15:22 +03:00
Koushik Dutta
eee085415f remove old chargemode crap
Change-Id: I6ca88be821ebb713a796251f416b02c1f7144c44
2011-04-17 15:56:30 -07:00
Koushik Dutta
fdd4766c1e Revert "allow precise device detection"
This reverts commit ed7d296dfa.
2011-04-17 00:49:15 -07:00
Koushik Dutta
ed7d296dfa allow precise device detection
Change-Id: Ie837500d459c95df0b1a5f849b3eba718cf8cf09
2011-04-16 13:45:53 -07:00
Steve Kondik
0d87851037 recovery: Prevent the users from doing stupid things.
Don't allow formatting of special partitions like radio, bootloader,
or misc. No sense in formatting recovery from recovery either dawg.

Change-Id: I0f935aad103574b17be237993730afaeae623871
2011-04-09 14:49:09 -04:00
Koushik Dutta
67fa0c375f fix erroneous detection of device flash type when device is explicitly provided. fix bugs in mount generation.
Change-Id: I54a35390550b1384f12c4b12267029d77bef8fa3
2011-03-17 11:37:21 -07:00
Kolja Dummann
92796ec949 build "mount & storage" menu from fstab 2011-03-07 13:06:07 +01:00
Koushik Dutta
ab1f8b836e more fixes for sammy
Change-Id: Ie11c673a204a328a82f767a2610c5f1d9a51233c
2011-02-27 17:28:30 -08:00
jt1134
47d86a35bc option to specify usb_mass_storage device in device overlay 2011-02-27 17:07:53 -08:00
Koushik Dutta
e8bc2c808c Support fs mount options.
Change-Id: I8b0dc79dd054c4d1af599d9b68b5478196bdd183
2011-02-27 14:00:19 -08:00
Koushik Dutta
a9f0e7fdfe remove unused defines. dont try to mount boot if it is emmc or bml either.
Change-Id: I835f74785938be940111f03a6b092b926681d745
2011-02-12 10:21:11 -08:00
Koushik Dutta
49ee9a8b09 Defer to fstype2 if found. Use auto fs if two fstypes are specified
Change-Id: Id6ee1fed1eebbaa6d3a9e6117910f00a56378da4
2011-02-09 16:15:54 -08:00
Brandon Bennett
6d0604bf34 Add support to mount /boot for systems that have a mountable /boot.
This is checked at runtime to see if /boot is a mountable parition (i.e not mtd), if so it adds an entry into /etc/fstab.

This will allow us to mount /boot from an edify script and push certain files without completely imaging the parition which can contain other files such as the bootloader (u-boot), and recovery kernel and ramdisks as is the case with the encore (NookColor)

Test on NookColor and passion.  Correct entry was added to the NC and not added to the passion as expected.

Change-Id: I9850dee866b77653bf400bb5193905e55da3f25f
2011-01-28 13:42:14 -07:00
Christopher Lais
a25cf5ec4f Use erase_raw_partition for unknown named partitions
Change-Id: I84014a851ebdfb2c228cff43879580a761c22708
2011-01-16 06:05:22 -06:00