From 17fd32d0a2f0aa042cdac1c0d31d6401ba10c7c5 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 22 Oct 2011 22:34:58 -0700 Subject: [PATCH 1/3] zero the partiiton before writing to it. Change-Id: I4717fd45c822a2026f907914c900cf8c60d8a48d --- mmcutils/mmcutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c index 492dadc..ed058c4 100644 --- a/mmcutils/mmcutils.c +++ b/mmcutils/mmcutils.c @@ -599,6 +599,7 @@ int cmd_mmc_restore_raw_partition(const char *partition, const char *filename) return mmc_raw_copy(p, filename); } else { + mmc_raw_dump_internal("/dev/zero", partition); return mmc_raw_dump_internal(filename, partition); } } From 04fae9d67ef1dd17c95c1794811c2b1e0b5e755d Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 23 Oct 2011 13:20:50 -0700 Subject: [PATCH 2/3] fix the disabled states in init.htc.rc.... Change-Id: I475f470bc9d638383f0fd69ba0c43fe7c7928179 --- etc/init.htc.rc | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/etc/init.htc.rc b/etc/init.htc.rc index 43d31d6..cf794ae 100644 --- a/etc/init.htc.rc +++ b/etc/init.htc.rc @@ -31,28 +31,26 @@ service ueventd /sbin/ueventd critical service choice_fn /sbin/choice_fn -oneshot + oneshot service recovery /sbin/recovery -disabled service power_test /sbin/power_test -disabled -oneshot + disabled + oneshot service offmode_charging /sbin/offmode_charging -disabled -oneshot + disabled + oneshot service detect_key /sbin/detect_key -disabled -oneshot + disabled + oneshot service htcbatt /sbin/htcbatt -oneshot + oneshot service adbd /sbin/adbd recovery - disabled on property:persist.service.adb.enable=1 start adbd From 6cf153cd505b811ac172c7c35caa7c9241f84839 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 23 Oct 2011 13:28:53 -0700 Subject: [PATCH 3/3] Revert "zero the partiiton before writing to it." This reverts commit 17fd32d0a2f0aa042cdac1c0d31d6401ba10c7c5. --- mmcutils/mmcutils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c index ed058c4..492dadc 100644 --- a/mmcutils/mmcutils.c +++ b/mmcutils/mmcutils.c @@ -599,7 +599,6 @@ int cmd_mmc_restore_raw_partition(const char *partition, const char *filename) return mmc_raw_copy(p, filename); } else { - mmc_raw_dump_internal("/dev/zero", partition); return mmc_raw_dump_internal(filename, partition); } }