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
This commit is contained in:
Brandon Bennett 2011-06-05 16:40:00 -06:00
parent b3aac3c367
commit cdcb773cea

View File

@ -494,7 +494,7 @@ int is_safe_to_format(char* name)
{
char str[255];
char* partition;
property_get("ro.recovery.format_ignore_partitions", str, "/misc,/radio,/bootloader,/recovery");
property_get("ro.cwm.forbid_format", str, "/misc,/radio,/bootloader,/recovery");
partition = strtok(str, ", ");
while (partition != NULL) {