Commit Graph

901 Commits

Author SHA1 Message Date
1e2da51172 Merge branch 'ics' of github.com:CyanogenMod/android_bootable_recovery into ics 2012-06-07 11:58:13 +01:00
Evan McClain
8ba9a6335b Fix build on gcc 4.6.
Several programs were not linked against libcrecovery which has the __system
function.

Change-Id: I12b33a9157ab74825129896d0f2177fa83638464
Signed-off-by: Evan McClain <aeroevan@gmail.com>
2012-05-18 01:28:26 -04:00
eaut
9a7615326e use TARGET_RECOVERY_FSTAB location if defined
If TARGET_RECOVERY_FSTAB is defined use this location to find
recovery.fstab

Change-Id: Ic4cd26f5be064586359f39ff82d7f9b09ce57f53
2012-05-06 11:14:41 +02:00
Koushik Dutta
08bedb21d8 remove copyright, switch to AOSP license
Change-Id: I53485386d68726f5c0596ac842e6a480d4463b74
2012-04-10 13:23:50 -07:00
Koushik Dutta
7ba8a30150 Merge pull request #21 from IEF/ics
Fix BCB clearing for eMMC devices.
2012-04-09 09:34:19 -07:00
IEF
21b8a12300 Always call set_bootloader_message(), not just for MTD-devices. set_bootloader_message has a built-in check for MTD/eMMC via fstab. 2012-03-07 16:50:26 +01:00
Robert Burns
d87b8df56d Remove random offset message during installation
Change-Id: I2281a571e37ba9fac2b99806ce9c63e591b4d39f
2012-02-13 16:18:53 -05:00
Koushik Dutta
1c50ff29e6 Fix ui menu bug for long menus.
Change-Id: If009dee6b7597daeec62dd65baa7ad35e1adec5d

Conflicts:

	ui.c
2012-01-31 20:28:36 -08:00
Koushik Dutta
a465962667 use source built e2fsprogs! thanks cvpcs!
Change-Id: Id3067d4da53643ae1af0b9f15445262afda7b197
2012-01-30 22:51:36 -08:00
Koushik Dutta
e2a66586a3 fix up key value parsing
Change-Id: I05e821cd1215c44be780694644e568676fd67565
2012-01-29 14:03:04 -08:00
Koushik Dutta
10034aabc9 Merge "Always run adbd as root in recovery." into ics 2012-01-28 09:26:53 +03:00
Koushik Dutta
638103922f more derpage
Change-Id: I878386195a408d2a98137816515f5eaaa52ccf79
2012-01-27 02:58:40 -08:00
Koushik Dutta
67e73e1559 fix build
Change-Id: Iac099f5a275b9633ed30d9e4a84acb99a57c4434
2012-01-27 02:46:19 -08:00
Koushik Dutta
3cdfd138fa Various fixes to fix rendering of text. There will always be 3 lines of log shown. The menu can have long items in it now, rather than being truncated. The log text will be bottom aligned.
Change-Id: I09289e053c8ab673814318da55302efaab0404de

derp

Change-Id: I3fc31f5ea311c73c0ec999aa77d3fa0d01238001
2012-01-26 22:56:33 -08:00
Koushik Dutta
ccc1fdb386 derp
Change-Id: I5ffece3af80c0c328c61975d46f4de4cb22f2282
2012-01-26 16:49:58 -08:00
Koushik Dutta
18e3f62ad2 Fix up the mess around fonts and defines.
Change-Id: I3df3dae482ac6f8e9ddcbe2946dba43428bf46b1
2012-01-26 16:49:33 -08:00
Koushik Dutta
b20a4812ba reversed the logic
Change-Id: I62c104ee0c9218f929c10eda31f4bf5828b0de22
2012-01-26 15:29:08 -08:00
Danesh Mondegarian
5617056cb8 Recovery : Show menu if in non user initiated mode and error occurred
When using rom manager and applying a zip, if one encounters an error in recovery,
they're left on a screen with no visible controls (Forcing to hard reset phone).

Change-Id: Ia9b2f396fc95c7972a5a5580e1a50adf4af26060
2012-01-26 15:20:57 -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
cd3705e4ab remove power off. not useful in the main menu.
Change-Id: I8923d1e878994c3516798118961b4cdaa82ddc88
2012-01-26 15:09:08 -08:00
CEnnis91
4f78176329 Misc tweaks / bug fixes
- readd "power off" to the main menu
- fix bug where stdout overflows into menu text
- remove +++++Go Back+++++ from main menu as there is nothing to go back to (detects menu depth)

Change-Id: Icb84ac86e55712412d07add0ab76955d7902f07c
2012-01-26 15:08:15 -08:00
CEnnis91
de338e56b3 Big Font Mod and Roboto Fonts (XHDPI, HDPI, and MDPI)
- lets xhdpi devices (Galaxy Nexus, Xoom, etc) have a bigger font size (15x24)
- port Google's Roboto font into recovery for both XHDPI, HDPI, and MDPI font size, make them optional (LDPI is too small!)

(credits to gweedo767 for big font)

Change-Id: I621dbc7c8ac30a8f16039ce64720512e3e63881a
2012-01-26 14:57:07 -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
Mike Kasick
059db9bfb6 Always run adbd as root in recovery.
At present, invoking "adb shell" while in recovery results in:

- exec '/system/bin/sh' failed: No such file or directory (2) -

"adb shell" should invoke /sbin/sh, but cannot as /sbin and /sbin/recovery
lack other-user execute permission.  Invoking "adb root" to restart adbd as
root _does_ work, however this behavior may not be intuitive to users who
encounter the above error.

The solution implemented here is to always run adbd as root in recovery, so
it has permission to run /sbin/sh.  Furthemore, user shells in recovery are
not particularly useful and "su" doesn't exist, thus "adb root" is likely
to be invoked anyways.

Change-Id: Iaaa25090e85d970e9a076fef068f5fae8202ab0b
2012-01-26 16:05:56 -05: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
4e50004a0e fix yes/no issue where the index is 0 and not 7 2012-01-13 14:16:03 +00:00
d43f5a01bf merge, and fix extendedcommands.c for yes/no 2012-01-11 11:10:07 +00:00
1cb1ce343b fix yes/no 2012-01-11 11:08:31 +00:00
Koushik Dutta
9487d2965f add comments around /data/media
Change-Id: I35ad822ed602e2b1018f1e1a0d67499867b60a40
2011-12-18 13:49:52 -08:00
Koushik Dutta
d4c04cb00b Merge branch 'ics' of git://github.com/CyanogenMod/android_bootable_recovery into ics 2011-12-18 13:40:30 -08:00
Koushik Dutta
e9039792c9 5.5.04
Change-Id: Idb2f70a8a02d2f9418356f011c9392f8d9b1d1d2
2011-12-18 11:53:08 -08: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
Steve Kondik
db524c28b4 Merge "Fix wipe from android settings for devices with /datadata" into ics 2011-11-30 08:14:02 +03:00
Koushik Dutta
a64c697333 Fix up the autoinclusion rules for the recoveryimage target. 2011-11-27 14:07:29 -08:00
Pawit Pornkitprasan
1659814576 Fix wipe from android settings for devices with /datadata
Change-Id: I2d80d580bc2ccdc756f411dbe514270d5c245816
2011-11-26 22:44:29 +07:00
Koushik Dutta
a9017dabc5 remove redundant fix 2011-11-23 14:07:06 -08:00
Koushik Dutta
ddc1241a36 fix missing prebuilts in recovery. mmc bootloader message support. fix segfault happening due to C structs not being zeroed out. 2011-11-23 14:06:26 -08:00
Ricardo Cerqueira
edae7a5b0f Merge "recovery: fix non-MTD mounting (uninitialized variables)" into ics 2011-11-22 21:45:36 +03:00
Chris41g
d2eecca360 Update extendedcommands.c one "No". 2011-11-21 14:37:29 -08:00
Koushik Dutta
b062713ee0 Merge pull request #13 from chris41g/gingerbread
Update extendedcommands.c one "No".
2011-11-21 14:37:00 -08:00
Koushik Dutta
d280f6e0d8 rewrite mtd_restore_raw_partition to use the new aosp code 2011-11-21 11:22:04 -08:00
Chris41g
b0a63d857f Update extendedcommands.c one "No". 2011-11-20 15:26:53 -06:00
Pawit Pornkitprasan
ff316eb739 recovery: fix non-MTD mounting (uninitialized variables)
Mounting failed due to invalid (garbage) fs_options
2011-11-19 13:31:21 +07:00
Koushik Dutta
21ad8d04dd remove dedupe 2011-11-16 18:28:20 -08:00
Koushik Dutta
0e7d88613a Support custom graphics.c. Set the recovery timeout to 1 hour. 2011-11-16 16:47:53 -08:00
Koushik Dutta
0df56f4db4 wip 2011-11-16 16:00:35 -08:00
070dafc6fe fix flashing, which was breaking 2011-11-16 23:48:50 +00:00
63fb0eedbd Merge branch 'gingerbread' of git://github.com/CyanogenMod/android_bootable_recovery into gingerbread 2011-11-12 01:30:08 +00:00