Jump to content

[Recovery] ClockWorkMod 6.0.x.x for ZTE Acqua


Guest KonstaT

Recommended Posts

The Slovak ROM (B07) has name P020120828370020727044

The German ROM (B04) has name P020120822643044970259

The Greek ROM (B02) has name P020120822623227496766

All can be found here: http://wwwen.zte.com.cn

"signature verifivation failed" when update to "The Slovak ROM (B07) P020120828370020727044".

Link to comment
Share on other sites

To bypass the message you get simply change the relevant setting in the recovery. But even then it might not be possible to load firmware from other model/country until you bypass the build.prop check in the updater-script file (or modify build.prop to match the updater-script)..

There are several ways to force the update but I do not recommend any of them unless you know what you are doing.

And I'm not sure this recovery works well. I have some problem with it.

Link to comment
Share on other sites

  • 2 weeks later...
Guest SandStorm_RS

This method worked on me on Win7 (not on XP) after managing to install a weird missing driver.

Now, since I have the CWM5028 and Root, if the ZTE launches a new rom, will it be safe to update with it?

Or if have new updates over OTA?

Link to comment
Share on other sites

Guest MiStAkEmSk

Hello there everyone,

i wasn't able to make the whole procedure work, basically after the phone reboots into bootloader it doesn't get recognized anymore so i can't proceed, any help would be greatly appreciated.

Tested both on XP and Win7.

EDIT: Nevermind, just noticed the bootloader drivers posted above, link should be added in first post so that anyone could see it.

Edited by MiStAkEmSk
Link to comment
Share on other sites

Guest MiStAkEmSk

I only managed on Win7, not on XP

But as long I have root, I'm cool.

With "Tested" i meant "Tried" before i noticed the bootloader drivers. Anyway i can confirm it working on Win7 only because i didn't try to use the above-posted drivers on XP.

About the recovery i have a glitch to report: while in CWM recovery the screen flashes continously, it happens only while not scrolling up or down hence in idle.

Excluding this little glitch everything is perfect.

Link to comment
Share on other sites

  • 2 weeks later...
Guest Lost_Animal

UPDATE.....

I have loaded this Recovery on my Blade III device and Works but i can't use the backup-restore procedure due to different partition layout...

I will try to Port some of the JB roms for this device (AQUA) and for my BLADE III.

AQUA use the almost the same /system/lib/hw - /system/usr/keylayout - /system/usr/keychars - /system/etc/wifi - /system/etc/ppp

but different vold.fstab (different partition layout).

I will try to use the same updater-script from ZTE BLADE to create the correct partition layout.

This is AQUA updater-script


assert(getprop("ro.product.device") == "atlas40" ||

	 getprop("ro.build.product") == "atlas40");

assert(getprop("ro.product.name") == "P740A_WIND");

show_progress(0.500000, 0);

format("ext4", "EMMC", "/data");

format("ext4", "EMMC", "/system");

mount("ext4", "EMMC", "/dev/block/mmcblk0p19", "/system");

package_extract_dir("recovery", "/system");

package_extract_dir("system", "/system");

symlink("/factory/hdcp.keys", "/system/vendor/firmware/hdcp.keys");

symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");

symlink("busybox", "/system/bin/[",

	 "/system/bin/test");

symlink("libwiperjni_v01.so", "/system/lib/libwiperjni.so");

symlink("mksh", "/system/bin/sh");

symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",

	 "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",

	 "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",

	 "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",

	 "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",

	 "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",

	 "/system/bin/kill", "/system/bin/ln", "/system/bin/log",

	 "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",

	 "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",

	 "/system/bin/nandread", "/system/bin/netstat",

	 "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",

	 "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",

	 "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",

	 "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",

	 "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",

	 "/system/bin/smd", "/system/bin/start", "/system/bin/stop",

	 "/system/bin/sync", "/system/bin/top", "/system/bin/touch",

	 "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",

	 "/system/bin/watchprops",

	 "/system/bin/wipe");

symlink("wiperiface_v01", "/system/bin/wiperiface");

set_perm_recursive(0, 0, 0755, 0644, "/system");

set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");

set_perm(0, 1000, 0750, "/system/bin/diag_mdlog");

set_perm(0, 1000, 0750, "/system/bin/iptables");

set_perm(0, 3003, 02750, "/system/bin/netcfg");

set_perm(0, 3004, 02755, "/system/bin/ping");

set_perm(0, 2000, 06750, "/system/bin/run-as");

set_perm(0, 1000, 0750, "/system/bin/tc");

set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");

set_perm(0, 0, 0755, "/system/etc/bluetooth");

set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");

set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");

set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");

set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");

set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");

set_perm(1000, 1000, 0777, "/system/etc/init.qcom.sdio.sh");

set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");

set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");

set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");

set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw.so");

set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/lib");

set_perm(0, 2000, 0755, "/system/vendor/lib");

set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");

set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-r0-ri30.4a/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rn30-ri30.5/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rp30-ri30.5/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");

set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");

show_progress(0.200000, 0);

show_progress(0.200000, 10);

package_extract_file("boot.img", "/dev/block/mmcblk0p16");

package_extract_file("splash.img", "/dev/block/mmcblk0p18");

package_extract_file("qcsbl.mbn", "/dev/block/mmcblk0p2");

package_extract_file("fat.bin", "/dev/block/mmcblk0p13");

package_extract_file("qcsblhd_cfgdata.mbn", "/dev/block/mmcblk0p1");

package_extract_file("OEMSBL.MBN", "/dev/block/mmcblk0p3");

package_extract_file("EMMCBOOT.MBN", "/dev/block/mmcblk0p15");

show_progress(0.100000, 0);

unmount("/system");

and this is BLADE III script

assert(getprop("ro.product.device") == "atlas40" ||

	 getprop("ro.build.product") == "atlas40");

assert(getprop("ro.product.name") == "P772N10_COSMOTE");

show_progress(0.500000, 0);

format("ext4", "EMMC", "/data");

format("ext4", "EMMC", "/system");

mount("ext4", "EMMC", "/dev/block/mmcblk0p19", "/system");

package_extract_dir("recovery", "/system");

package_extract_dir("system", "/system");

symlink("/factory/hdcp.keys", "/system/vendor/firmware/hdcp.keys");

symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");

symlink("busybox", "/system/bin/[",

	 "/system/bin/test");

symlink("libwiperjni_v01.so", "/system/lib/libwiperjni.so");

symlink("mksh", "/system/bin/sh");

symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",

	 "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",

	 "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",

	 "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",

	 "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",

	 "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",

	 "/system/bin/kill", "/system/bin/ln", "/system/bin/log",

	 "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",

	 "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",

	 "/system/bin/nandread", "/system/bin/netstat",

	 "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",

	 "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",

	 "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",

	 "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",

	 "/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",

	 "/system/bin/smd", "/system/bin/start", "/system/bin/stop",

	 "/system/bin/sync", "/system/bin/top", "/system/bin/touch",

	 "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",

	 "/system/bin/watchprops",

	 "/system/bin/wipe");

symlink("wiperiface_v01", "/system/bin/wiperiface");

set_perm_recursive(0, 0, 0755, 0644, "/system");

set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");

set_perm(0, 1000, 0750, "/system/bin/diag_mdlog");

set_perm(0, 1000, 0750, "/system/bin/iptables");

set_perm(0, 3003, 02750, "/system/bin/netcfg");

set_perm(0, 3004, 02755, "/system/bin/ping");

set_perm(0, 2000, 06750, "/system/bin/run-as");

set_perm(0, 1000, 0750, "/system/bin/tc");

set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");

set_perm(0, 0, 0755, "/system/etc/bluetooth");

set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");

set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");

set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");

set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");

set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");

set_perm(1000, 1000, 0777, "/system/etc/init.qcom.sdio.sh");

set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");

set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");

set_perm(0, 0, 0644, "/system/vendor/firmware/libpn544_fw.so");

set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/lib");

set_perm(0, 2000, 0755, "/system/vendor/lib");

set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");

set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/left_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/nose_base-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-r0-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rn7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/multi_pose_face_landmark_detectors.3/right_eye-y0-yi45-p0-pi45-rp7-ri20.2d_n2/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-r0-ri30.4a/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rn30-ri30.5/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/detection/yaw_roll_face_detectors.3/head-y0-yi45-p0-pi45-rp30-ri30.5/full_model.bin");

set_perm(0, 0, 0644, "/system/vendor/pittpatt/models/recognition/face.face.y0-y0-22-b-N/full_model.bin");

set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");

show_progress(0.200000, 10);

package_extract_file("boot.img", "/dev/block/mmcblk0p16");

package_extract_file("splash.img", "/dev/block/mmcblk0p18");

package_extract_file("qcsblhd_cfgdata.mbn", "/dev/block/mmcblk0p1");

package_extract_file("OEMSBL.MBN", "/dev/block/mmcblk0p3");

package_extract_file("EMMCBOOT.MBN", "/dev/block/mmcblk0p15");

package_extract_file("recovery.img", "/dev/block/mmcblk0p17");

package_extract_file("qcsbl.mbn", "/dev/block/mmcblk0p2");

package_extract_file("fat.bin", "/dev/block/mmcblk0p13");

show_progress(0.100000, 0);

unmount("/system");

The problem for CWM is here....... on BLADEIII package_extract_file("recovery.img", "/dev/block/mmcblk0p17"); on AQUA package_extract_dir("recovery", "/system"); The AQUA update.zip Use the directory recovery which contains the recovery img (recovery-from-boot.p) and the install-recovery.sh which is on etc folder... install-recovery.sh script....

#!/system/bin/sh

if ! applypatch -c EMMC:/dev/block/mmcblk0p17:2048:bdd764fbdcbde360b08560ea6c65022bfc577549; then

log -t recovery "Installing new recovery image"

applypatch EMMC:/dev/block/mmcblk0p16:8630272:9e3bac6265759012ecbe8228503b4b0ad1ced29b EMMC:/dev/block/mmcblk0p17 04698c1ab1a562de2e10f245a83a5d63d2a9e2e5 10448896 9e3bac6265759012ecbe8228503b4b0ad1ced29b:/system/recovery-from-boot.p

else

log -t recovery "Recovery image already installed"

fi

Thanks KonstaT for his Great Job..

Edited by Lost_Animal
Link to comment
Share on other sites

Guest papars

I tried to load B11 but failed miserably. Although I loaded up the right image the phone died. I lost boot / recovery and ended up with a brick. My phone was replaced but I'm reluctant to try again.

There is something wrong with this recovery. As I state few posts back, format fails from within script and behaviour in some cases is not as expected.

Unless there is a way to recover the phone from a dead state I cant risk killing it again.

The trecovery tools for blade 1 do work but I can't find the correct files for aqua. I'm going to try again when I feel brave or when the correct tools are found.

By the way my phone is the p740 and I wonder if the hardware is identical to any other model out there.

Link to comment
Share on other sites

After my 2 times brick I'm not trying anything else until I find a recovery procedure that works.

Either from DFU or better from QDL.

Right now I can't even find jtag that works in this phone.

Link to comment
Share on other sites

Guest decapitado

I posted a new recovery for atlas40 here. Would someone be kind enough to test it on Acqua? It should work just fine as far I can tell.

I´m a bit noobish, tell me what´s the point in that if the recovery on this post already works?

Will you be able to port roms if the atlas 40 recovery works?

Link to comment
Share on other sites

Guest KonstaT

I´m a bit noobish, tell me what´s the point in that if the recovery on this post already works?

Will you be able to port roms if the atlas 40 recovery works?

Well, for one it's much newer version of course (5.x vs. 6.x). There's no official changelog for CWM but it has faster and smaller backups, adb sideload support etc. And this time I actually have a device and I can test that everything works as it should.

It's possible that the ROM I posted for Blade 3 will work on other atlas40 devices. It's also possible that it might require some kind of patch to make it work on Acqua. Blade 3 is P772N10, Acqua is P740something. With ZTE that usually means that there's some differences in radio firmware. Most likely it won't work in dual-sim devices (V889D, V880E) without modification and N880E is a CDMA device (and it has different wifi hardware).

We don't know until someone is brave enough to test...

Link to comment
Share on other sites

The 5.x version has problem. Format /system does not work from within updater-script. In order to load a non official version you have to format /system manually and then install the version without this line to work: "format("ext4", "EMMC", "/system");". I wonder if this is fixed in the 6.x version.

Is there a way to get a eMMC backup? (without jtag)

After a failed upgrade I end up in DFU mode. There are no tools to get out of DFU for aqua. I tried to use the DFU tools from Blade III and some other atlas40 model and failed. Then phone is stuck in QDL mode. Even worse than DFU - there are no tools for this either.

Anybody with the skills to make proper recovery files (DFU and/or QDL) for aqua?

Link to comment
Share on other sites

Guest KonstaT

The 5.x version has problem. Format /system does not work from within updater-script. In order to load a non official version you have to format /system manually and then install the version without this line to work: "format("ext4", "EMMC", "/system");". I wonder if this is fixed in the 6.x version.

That is simply not true and how can I fix something that's never been broken?

You are still failing on the assumption that official update packages are something that you should be able to install via custom recovery. IIRC it was you who I told that you need to repack them using e.g. CyanogenMod update zip from another device. I've now done that and it works perfectly fine. Format fails on custom recovery because ZTE has modified update-binary in their official packages. I've also told that it is only safe to flash partitions that ClockWorkMod can backup and restore (system, data, cache, boot, recovery). Flashing radio/etc partitions is something that you are not supposed to do unless you really know what you are doing.

Link to comment
Share on other sites

I'm not trying to flash an official rom, but a "custom" rom.

I only include system directory structure, boot.img, fat.bin and splash.img. (and of course META-INF structure). Recovery and other partitions are not included.

I tested several update-binary files but all gave the same error. You have one that might work?

Link to comment
Share on other sites

Guest epyloxias

After adb -reboot bootloader- command my phone reboots and stays with green android logo. I 'm giving second command and the message i get is: waiting for device.

Is that normal?

Link to comment
Share on other sites

Guest epyloxias
After adb -reboot bootloader- command my phone reboots and stays with green android logo. I 'm giving second command and the message i get is: waiting for device.

Is that normal?

Well i did managed to get the procces till the end, downloading the bootloader in previous post, BUT as it seems i still have stock 3E and not the one it should be.

Does anybody else facing the same problem?

Edited by epyloxias
Link to comment
Share on other sites

Guest epyloxias

No one else?

It's a pitty to leave this model in "stock" mode. I believe it has potentials but they aren't shown up yet....

I wish I was able to develope a functionable cwm or even a custom rom but I don't know how...

Please guys do not abandone the phone... Do not abandone us...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.