[Kitkat][Nightlies] CM11 Android 4.4 for the Defy(+)

roo^y

Member
Aug 21, 2015
13
3
0
The local signal from the telco tower 20KMs/12+miles away were very weak for a week. oneplus 6 (with 3G SIM card) & 3G-only iphone 5 weren't worth using, having one bar, or non at all. This defy(+) mb52(x) was the only phone getting a good enough signal. Best tool in the toolbox! Not summer down here yet, but using it to broadcast wifi hotspot had it pumping out heat, with the tower signal low. Battery cover off & sat on a laptop cooler did the trick.
 
Last edited:

jkd3v

New member
Mar 10, 2019
3
3
0
Karlsruhe
Status 0 error

Several years ago, I flashed my Defy to CyanogenMod7 and now I wanted to flash this ROM. I was able to update/install TWRP recovery ROM, but run into issues when installing the provided zip files.

Code:
-- Install /sdcard/new_bootstrap.zip ...
Finding update package...
Opening update package...
installing update...
E:Error in /tmp/sideload/package.zip
(Status 0)
 * Verifying filesystems...
 * Verifying partion sizes...
Error flashing zip '/sdcard/new_bootstrap.zip'
Note: I re-downloaded the zips (thanks, Walter79!!!), validated the checksums, but the same error for all 3 zip-files (new_bootstrap.zip, resize.zip, <kitkatrom>.zip)
I searched and found:
* https://forum.xda-developers.com/showthread.php?t=1797227
Suggests to install TWRP: I tried both TWRP 2.1.0 and 2.1.1 (same error)

* https://forum.xda-developers.com/htc-sensation/help/eerror-status-0-trying-to-flash-t2905140
Suggests to flash the image via adb/fastboot. However, I am unsure how/whether this is possibel on defy.

Note: If I go to recovery (pwr down on blue light flashing), I have Android Bootmenu 1.1.5. Then I select "Recovery"->"Stable Recovery" to get to TWRP. Maybe something is wrong here...
 

YetAnotherForumUser

Senior Member
Oct 31, 2008
470
1,665
0
Several years ago, I flashed my Defy to CyanogenMod7 and now I wanted to flash this ROM. I was able to update/install TWRP recovery ROM, but run into issues when installing the provided zip files.

Code:
-- Install /sdcard/new_bootstrap.zip ...
Finding update package...
Opening update package...
installing update...
E:Error in /tmp/sideload/package.zip
(Status 0)
 * Verifying filesystems...
 * Verifying partion sizes...
Error flashing zip '/sdcard/new_bootstrap.zip'
Note: I re-downloaded the zips (thanks, Walter79!!!), validated the checksums, but the same error for all 3 zip-files (new_bootstrap.zip, resize.zip, <kitkatrom>.zip)
I searched and found:
* https://forum.xda-developers.com/showthread.php?t=1797227
Suggests to install TWRP: I tried both TWRP 2.1.0 and 2.1.1 (same error)

* https://forum.xda-developers.com/htc-sensation/help/eerror-status-0-trying-to-flash-t2905140
Suggests to flash the image via adb/fastboot. However, I am unsure how/whether this is possibel on defy.

Note: If I go to recovery (pwr down on blue light flashing), I have Android Bootmenu 1.1.5. Then I select "Recovery"->"Stable Recovery" to get to TWRP. Maybe something is wrong here...
The Defy does not support fastboot so that is not an option. Releases are installed through recovery, this means TWRP in later releases - earlier releases used ClockWorkMod.

The quickest way to get the Defy(+) to CM11 from rooted stock or another 'old partition layout' distribution like CM7 is probably to dump the new_bootstrap partition image contained in new_bootstrap.zip directly to the correct partition (/dev/block/mmcblk1p21 on a device with the stock partition scheme, /dev/block/mmcblk1p1 on a resized device - using this partition on a non-resized device will brick it) as described in #5848. Push bootstrap_ext3.img, resize.zip and the CM11 distributrion you want to install to the sdcard before you start so you can do everything in one go. From stock to CM11 it can look like this:

  1. Flash SBF
  2. root (Framaroot, 'Gimli' exploit)
  3. 'cat' new bootstrap image to /dev/block/mmcblk1p21 from adb shell or terminal
  4. reboot to TWRP
  5. install 'resize.zip'
  6. reboot
  7. install distribution
  8. ready.

For completeness sake I'll add some links to the required files, these are the versions I use on my devices so they 'should work'. Extract new_bootstrap.zip on a PC and push the resulting cache/bootstrap_ext3.img to the sdcard. Push resize.zip and cm-11-20150109-UNOFFICIAL-mb52x.zip to the card as well. Now follow the instructions in #5848, once rebooted in TWRP install resize.zip, reboot to TWRP again and install cm-11-20150109-UNOFFICIAL-mb52x.zip. Reboot and enjoy your 'new' Defy.

new_bootstrap.zip

resize.zip

cm-11-20150109-UNOFFICIAL-mb52x.zip
 
Last edited:

jkd3v

New member
Mar 10, 2019
3
3
0
Karlsruhe
The Defy does not support fastboot so that is not an option. Releases are installed through recovery, this means TWRP in later releases - earlier releases used ClockWorkMod.

The quickest way to get the Defy(+) to CM11 from rooted stock or another 'old partition layout' distribution like CM7 is probably to dump the new_bootstrap partition image contained in new_bootstrap.zip directly to the correct partition (/dev/block/mmcblk1p21 on a device with the stock partition scheme, /dev/block/mmcblk1p1 on a resized device - using this partition on a non-resized device will brick it) as described in #5848. Push bootstrap_ext3.img, resize.zip and the CM11 distributrion you want to install to the sdcard before you start so you can do everything in one go. From stock to CM11 it can look like this:

  1. Flash SBF
  2. root (Framaroot, 'Gimli' exploit)
  3. 'cat' new bootstrap image to /dev/block/mmcblk1p21 from adb shell or terminal
  4. reboot to TWRP
  5. install 'resize.zip'
  6. reboot
  7. install distribution
  8. ready.

For completeness sake I'll add some links to the required files, these are the versions I use on my devices so they 'should work'. Extract new_bootstrap.zip on a PC and push the resulting cache/bootstrap_ext3.img to the sdcard. Push resize.zip and cm-11-20150109-UNOFFICIAL-mb52x.zip to the card as well. Now follow the instructions in #5848, once rebooted in TWRP install resize.zip, reboot to TWRP again and install cm-11-20150109-UNOFFICIAL-mb52x.zip. Reboot and enjoy your 'new' Defy.

new_bootstrap.zip

resize.zip

cm-11-20150109-UNOFFICIAL-mb52x.zip
Thank you very much for your reply, YetAnotherForumUser! I finally was able to get my Defy to CM11/KitKat!
As it may be helpful for someone, I quickly add some remarks/observations (likely beginner topics):

  • As I already had a rooted device with CM installed, I started from step 3 ("'cat' bootstrap"). I tried to work with adb, but the /sdcard was always empty, once I connected with adb shell. Solution was to use the Terminal app on the Defy itself. There, the files I copied to the SD card where visible/accessible.
  • When I installed the distribution you provided (cm-11-20150109-UNOFFICIAL-mb52x.zip), I had an issue with Android Keyboard (AOSP) - it always crashed if the keyboard should be shown. I googled and deleted app data, but it did not solve the issue. Finally, I went with the build from walter79 (lineage-11-20180813-UNOFFICIAL-mb52x.zip), which is working without any (yet observed) issues.
 

linolino

Member
Aug 4, 2008
40
8
38
Nuremberg
. Finally, I went with the build from walter79 (lineage-11-20180813-UNOFFICIAL-mb52x.zip), which is working without any (yet observed) issues.
Hi,

still no issues?
I wonder - is this LOS11 with new-life partitioning? I got (had) Quarx' new-life running. But it is F**ked up "files in lost+found" so need to start with new installation :'(
And am not sure if I should do with CM11 or LOS11.

Cheers
 

jkd3v

New member
Mar 10, 2019
3
3
0
Karlsruhe
Hi,

still no issues?
I wonder - is this LOS11 with new-life partitioning? I got (had) Quarx' new-life running. But it is F**ked up "files in lost+found" so need to start with new installation :'(
And am not sure if I should do with CM11 or LOS11.

Cheers
Depends on what you consider issues... It is slow and using it rather converts into a mindfullness exercise, but stuff works from calling, taking photos, sending them via signal, etc.
Regarding 'new-life partitioning'. If you refers to installing 'resize.zip', then the answer is yes.
HTH
 
  • Like
Reactions: linolino

Stoku

Senior Member
Feb 16, 2014
85
47
0
I just wanna thank you @Quarx and @TJKV for your great work on this phone. Many good memories with Defy, when cm and slimkat we're updated. Great roms and great job! I would try it again, but the battery in my Defy is swollen :(
 
Last edited:

jasonmerc

Senior Member
Dec 14, 2012
1,669
880
143
www.ixquick.com
Pulled my now 10-year-old Bravo from my shelf to reflash some ROMs on. Reliving the simpler days. Quarx, thanks for keeping all these old download links up for all the Defy/Bravo stuff you did. That's rare to see for phones as old as these are. Attempting to flash the TWRP image now so I can resize my phone's partitions and get the latest CM11.

EDIT: Just flashed and it's up and running now. Only issue is, my Bravo now thinks it has 4 haptic buttons instead of 3 and they aren't lined up properly with the button lights. Anyone know a fix for this?
 
Last edited: