Commit Graph

575 Commits

Author SHA1 Message Date
Koushik Dutta
4d8c033203 also fix up the /sdcard symlink on startup
Change-Id: Ie7647b3fbb2543761d59b8c33ceeea36e3221c32
2011-06-09 14:19:04 -07:00
Koushik Dutta
967e15c44d 4.0.0.0
Change-Id: Ie7cf932287d5c7a2fed6cb7341a5b86d5baec2d8
2011-06-09 11:04:32 -07:00
Koushik Dutta
5082299146 tar nandroid and /data/media support.
Change-Id: I9405e701887fc83c422c63c1dbf5ff087fff880d
2011-06-08 19:03:27 -07:00
Koushik Dutta
c56768cfb1 3.2.0.1
Change-Id: Ic043cdf147a6bb9f07ff0b1616d9f8fe8d9546dd
2011-06-05 16:28:25 -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
Koushik Dutta
b3aac3c367 Merge "Fix 6 extentedcommands declaration warnings" into gingerbread 2011-06-03 06:44:41 +04:00
Koushik Dutta
01143a5630 remove logging, fix bug
Change-Id: Ie300222a3754a1ed7de5851a2298526a416da5d3
2011-05-30 15:22:04 -07:00
Koushik Dutta
b2d30187d6 remove logging, fix bug
Change-Id: Ia7d0f5e7cdf64235bb2142d9143fff3f289ad605
2011-05-30 15:21:44 -07: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
195e06be59 allow flashing only bml8 if explicitly specified.
Change-Id: Ie0d282105413b3a448436c9ee69206718e924754
2011-05-29 19:33:42 -07:00
Koushik Dutta
cf5195aa79 fix boot image not flashing properly, prevent the error in the future.
Change-Id: I6163e5a519ef28e9e9ea12d5a46d525d1d9d8fb2
2011-05-29 18:45:42 -07:00
Koushik Dutta
30712302e0 more logging
Change-Id: I2f5f37751f16c8b50f5c3ccf1eb56b9b52f44c6b
2011-05-26 17:49:56 -07: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
e62132bb6d more fixes
Change-Id: Ic55d94ef69b6b8ea4ec2a6df708a9444e9d5f4e5
2011-05-26 11:29:29 -07:00
Koushik Dutta
8a6bc77423 test
Change-Id: I25bd6846aea09247459c89ba98e6ac34c3debaa3
2011-05-26 11:14:15 -07:00
Koushik Dutta
d79b7541f3 whoops
Change-Id: Ided86fe1991e5d9d6a707465429ec35ccc09743a
2011-05-25 10:47:41 -07:00
Koushik Dutta
0b4eac9e01 also set UPDATE_PACKAGE in updater for old recoveries
Change-Id: I90e3feb0c1655279d58751ce800f299d9b4f3d03
2011-05-16 13:32:01 -07:00
Koushik Dutta
666053ed26 3.1.0.1
Change-Id: Ia3115a520922254565532bbbb1e9aba6c680e80b
2011-05-16 10:04:53 -07:00
Koushik Dutta
63605f1d45 Merge branch 'gingerbread' of git://github.com/CyanogenMod/android_bootable_recovery into gingerbread 2011-05-15 18:49:22 -07:00
Koushik Dutta
20b516a408 set the env for UPDATE_PACKAGE (the source zip) for update-binary. This allows shell scripts to use the source zip.
Change-Id: Ia8118b31408f687780dd45e14f540a7e76619cba
2011-05-15 18:48:17 -07:00
Koushik Dutta
49553c7561 Do not close the zip archive prematurely. It may be accessed later for a firmware update.
Change-Id: I31c298f75bbcdc7998221aa2b3aa334926343139
2011-05-13 13:01:26 -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
Koushik Dutta
4d5109cfa8 update to 3.1.0.0
Change-Id: I86d5aa2651c297ddf03279269da0c23819a06be1
2011-05-12 13:46:19 -07: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
Koushik Dutta
cde585e3de Merge "Try to mount vol->device2 partition to UMS." into gingerbread 2011-04-27 09:56:27 +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
codeworkx
9c4c8e2c66 bml_over_mtd: Take care of bad blocks on "boot" partition for Samsung Galaxy S Phones.
The Samsung Galaxy S bootloader apparently expects the kernel to be flashed to BML-managed flash - bad erase blocks will be mapped from a reservoir area.
CWM however just skips bad blocks, the usual procedure for mtd-accessed flash.
Consequently, the bootloader sees a corrupt zImage, and will usually crash when the kernel initializes.
This of course will only happen when the "boot" partition has bad blocks.

This patch was written by "eifert" and adds a tool called "bml_over_mtd" for flashing boot images which takes care of bad blocks and maps them to a reservoir area, like BML does.

Change-Id: If570717a19b879d47d70d937a0751cd85853eacd
2011-04-25 11:16:41 -07:00
Koushik Dutta
6a97396572 3.0.2.8
Change-Id: Icce5373f73f349c07bad29763803ba919cf64dc1
2011-04-24 20:16:39 -07:00
Koushik Dutta
7364e82a5f format .android_secure on RM data wipe.
Change-Id: If417334263f577f0f1ca9a8c5bf6b63582dbb09f
2011-04-23 19:01:16 -07:00
Koushik Dutta
1f1a274ecc 3.0.2.7
Change-Id: I43e32be031bf7803ca3ef3c8e77e7955218fd798
2011-04-23 16:35:19 -07:00
Koushik Dutta
803896f62c Merge branch 'gingerbread' of git://github.com/CyanogenMod/android_bootable_recovery into gingerbread 2011-04-22 12:12:33 -07:00
Koushik Dutta
f573510b50 bml fixes
Change-Id: I442ef3c155bab36db578ca5735215aedda353c29
2011-04-22 12:12:32 -07:00
Koushik Dutta
f1bde36572 fix bug where the wrong SD Card block gets partitioned. rely on the ftsab to glean the sdcard mmcblk
Change-Id: Idee8d3e147ba91c45a9f9fe91126c7b5a19ee38d
2011-04-22 11:26:03 -07: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
Koushik Dutta
3a7dc29b24 Merge "add offmode charging for htc" into gingerbread 2011-04-12 00:36:22 +04:00
Koushik Dutta
bab66b40f7 Merge "recovery: Prevent the users from doing stupid things." into gingerbread 2011-04-10 21:30:40 +04:00
Koushik Dutta
6944713e92 add offmode charging for htc
Change-Id: I76ea278c10658e16bf864a8290edc95e4232970e
2011-04-10 10:20:53 -07:00
Tony Layher
7a52627720 Recovery: Fix improper variable check
Change-Id: Ib2bb105c204f4f3f88d9a10056d368d6f54548ed
2011-04-09 20:32:48 -04: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
Sven Dawitz
814a934c8f Recovery: Fix keys for many new devices
cwm 3.0.2.4 had the bad habbit to bind back key to enter,
which is the same function as power key, when there is no
select-button on that device.

many many new (htc) devices got: home | menu | back | search

back should be always back. having back working as enter
button confused the shit out of me.
home/menu was not used. i bound up/down highlight movement to it
back is fixed back. search on the other hand is replacement enter.

so, you can control the whole recovery with those 4 easy-to-reach
keys now. on some devices power/vol+/vol- are kinda hard to reach.

if this patch breaks any other devices i am not aware off, please
handle this issue in another sane way.

Change-Id: Ic9c14e6ae7a8a0f1c9cf5c8895716e5357b3da0e
2011-03-26 18:51:18 +01:00
Koushik Dutta
d2375719d5 reverse the logic cause it weirds me out.
Change-Id: I0203d0713c1cc3085d0df77da4b85c1b99a271de
2011-03-23 23:12:27 -07:00
Koushik Dutta
3bf881539c Merge branch 'gingerbread' of git://github.com/CyanogenMod/android_bootable_recovery into gingerbread 2011-03-23 22:51:57 -07:00
Koushik Dutta
ee9ab1969a 3.0.2.4
Change-Id: Ic727ec267f090bd8f9bc04f02e852184aecccc89
2011-03-23 22:51:53 -07:00
Steve Kondik
5615b2d46a Fix makefile fail
Change-Id: I47e0332d2c8aff8909cc5f0cc75195b1ed3fc688
2011-03-21 20:31:52 -04:00
Tony Layher
3f26366993 Recovery: rearrage defines to fix recovery for mecha and
not break it for toastcfh

Change-Id: If6d4ced872bc04fc5d02803672c8279c82fe9ea3
2011-03-21 08:03:46 -04:00
Koushik Dutta
faa477ec99 fix potential break that toastcfh found?
Change-Id: I590bf171a78380daaa9ea65b4ece726b64c7cd23
2011-03-20 15:44:48 -07:00