Android Tablets Forum banner

Compatibility zip maker and CWM-recovery maker

57K views 102 replies 18 participants last post by  cxz 
#1 · (Edited by Moderator)
Two (or four) experimental tools. Flashed in recovery mode.
For making compatibility zips for Christian Troy's ROMs
and to convert stock into the bnmguy's CWM recovery.

Check also my other thread "Portable versions of custom recoveries, CWM and TWRP"
That version now also includes a converter so it is now a better way to test + install the CWM recovery.


------------------------------

The original thread of the CWM based recovery by bnmguy
http://www.slatedroid.com/topic/71985-cwm-recovery-updated-new-version/

The original thread of the TWRP recovery by Christian Troy
http://www.slatedroid.com/topic/91617-custom-recovery-twrp-v2630/

------------------------------

Stock2CWMconverter (CWM-recovery maker)

Converts tab's own stock recovery into bnmguy's CWM, which then
has the orig. kernel and uses it own modules.
That way it should be more compatible.

Needs a working system to install properly, i.e. rec, misc, system.

Download: http://yadi.sk/d/I0tjqlQQJBq2x

Custom Recovery Tester (for CWM and TWRP)

Flash this right after flashing a custom recovery.
It makes a custom recovery to revert back to stock
after its first boot. Stock file rec_bak.img must exist!

Can be also used later as a CWM remover tool. As a remover if system
isn't ok, then extract the zip inside and flash it normally yourself.
(or download it from here, Custom Recovery Remover: https://yadi.sk/d/Er8Ov0wNeYyWG )
(edit: above remover gives an error when flashed manually, but it works ok.)
(here is a new one, file rec_bak.img must exist! https://yadi.sk/d/8wRGbg1zmcTXV )

(I don't recommend flashing Ainol TWRP's to other
devices without modifying them first.)

Download: http://yadi.sk/d/S9LMIIPsJL7ah

Boot2CT's Boot Converter (Compatibility zip maker)

Tries to make compatibility zips for Christian Troy's ROMs,
It grabs values etc. from the current (stock) system, so it
must be runned before installing CT's ROM. The stock must
be version 4.2. Version 4.1 won't do.

The install order when using this tool (updated 14-03-18)

1. Install TWRP or CWM recovery
2. Flash Boot2CT's Boot Converter
3. Flash a CT's ROM (and the gapps.)
4. Flash Boot2CT's Boot Converter again
5. Do the factory reset

Download for CT's 4.2 ROM's: http://yadi.sk/d/4vhgriElJKrH6
Download for CT's 4.3 ROM's: http://yadi.sk/d/OtboNOfsJKrJD

Christian Troy's 4.2 ROM's: CM10.1 - AOKP (4.2)
Christian Troy's 4.3 ROM's: CM10.2 - AOKP (4.3) - ParanoidAndroid (4.3)

An example of more advanced usage
(see also http://www.slatedroid.com/topic/102857-compatibility-zip-maker-and-cwm-recovery-maker/?p=1185105)

The way it should work for Hannspad is this (hopefully).

A. Install the 4.22 stock firmware of your choice.
B. Extract following files from the Boot2CT's Boot Converter and edit them (Notepad++)
1. boot2ct-stockfiles.txt (remove all the comments (#comment#) from the file names)
2. boot2ct-add2build.prop (remove the comment (#) from the BT line's start)
3. boot2ct-otherfiles.tar (no editing)
C. Put the above three files to your internal memory (/mnt/sdcard/)
D. Put a Christian Troy's ROM (and the gapps.) to your external memory (/mnt/sd-ext/)
E. Put Boot2CT's Boot Converter there as well (to your external memory (/mnt/sd-ext/) )
F. Enter to recovery. Do the factory reset just in case. Do the flashing sequence below
1. Install TWRP or CWM recovery (if not already installed, reboot the recovery)
2. Flash Boot2CT's Boot Converter
3. Flash a CT's ROM (and the gapps.)
4. Flash Boot2CT's Boot Converter again
5. Do the factory reset
G. Enjoy your new ROM (and if you do, go ahead and click Mr.Troy's donate button)
(For CWM or TWRP see this thread 1st: http://www.slatedroid.com/topic/107322-update-now-includes-converter-portable-versions-of-custom-recoveries-cwm-and-twrp/ )

Before using any of these tools make sure that you have a backup or a working
firmware saved somewhere, and that you are able to restore it too! =@


If you find these tools working, please post the the tablet info to this thread.
 
See less See more
#27 · (Edited by Moderator)
Thanks for testing. :good:

Usually one can enter to adfu mode by booting tablet pressing power and vol+(or home) at the same time.

Then the program should recognize the tab. If not then there is an update.zip at Chili Green's downloads

http://download.chiligreen.com/treiber.asp?s=Tablet&m=HT400&k=update

Edit: oops, it's just the fw files zipped. I see if I can find it elsewhere...

Hopefully it'll work in CWM. If it doesn't you probably can use my Images2partitions tool to write that misc + system back.

http://www.slatedroid.com/topic/68706-tablet-in-sleep-turns-off-then-huge-battery-drain/#entry933505

Edit2: No luck finding a ready made update.zip, but the tool above should do its job just fine.
 
#28 ·
Hi CXZ

Thanks alot for the suggestions!

I managed to put the device in adfu mode. Was a lil fiddly, because of that it didnt work in advance.

I flashed back the stock ROM with the flashtool, and now it works again.

But this lil bas*** is hard to break :)

CWM recovery Flashes fine with the Stock2CWM

But no way to flash a decent ROM.

After following the guide the tablet didn't boot. Flashed about 10times a day :)

I dond like shipped ROM's :)
 
#29 ·
BTW i dont really understand about recovery flashing:

before recovery flash ive got:

recovery.img - cwm from ainol hero 2

rec_bak.img - original recovery

but after flashing script via cwm ive got only stock recovery back and thats all. No modified cwm at all.

As for compatibility script.

I flashed Cyanogenmod on my device but there is no working usb, wifi and partially working touchscreen. Touch screen is inverted by three positions on fourth it works normal but it seems that it is based on another resolution. I cant disable the lockscreen and i cannot scroll. But without your Compatibility zip maker cyanogenmod wont boot at all :)

Ive got the same device that guy from this topic. I mean this rom is my stock.
 
#30 ·
#33 ·
So you could navigate when using the stock recovery...
Which one you flashed? This "cwm-maker" or the one made for Loewenzahn?
You could try the other one too if it works better...(flash over stock recovery)
 
#35 ·
The one button usage is defined in the FW file but if it doesn't work
then it's also defined in drivers or in the recovery program itself.

The "cwm-maker" use your own drivers which might help, but if the tweak
is in the recovery then you'll probably just have to settle to the stock.

One more option is that you use CWM with ADB...

CWM-ADB-Commander (a batch file + some files possibly needed)
https://yadi.sk/d/R84lw4W5ZmXsK

ADB drivers
http://www.slatedroid.com/topic/70585-adb-drivers/
 
#36 ·
One more thing you could try. TWRP test for MPQC784
https://yadi.sk/d/xLXiYkCMZmtqF

Used Discovery's package. I just changed its touch driver.
The screen size match, also rotations look promising to me.
But I can be wrong, as the rotations are quite difficult.
It could be that the touches materialize upside down...
 
#38 ·
Well, you could try the CWM-ADB-Commander if it works in your tab.
Just unzip it to the same folder as adb.exe and run the batch.
CWM ADB Commander by CXZ

setup sendevent command (=toolbox)

[1] goes down (114,VOLUME_DOWN)
[2] goes up (115,VOLUME_UP)
[3] selects (116,POWER)

[4] (139,MENU)
[5] (102,HOME)
[6] (158,BACK)

[A] send any key code
[X] exit to command prompt

[S,1,2,3,4,5,6,A,X]?

There is change that the one button setting will interfere its function,
but the config.xml setting file indicate that it might work anyhow.

Other option is that you flash the stock recovery back using the PAD product tool.
(just recovery, no flash erase nor any formatting settings)
 
#40 · (Edited by Moderator)
Did you do the setup first? By default CWM doesn't come with the sendevent command which is needed.
(yes, some help file would be good). Actually it probably doesn't work anyway because you have only
one button/device unless there is two devices configured and it somehow handles them both...

In Pad tool select the "Advanced config" box and then you can unselect the options you don't want.
 
#46 · (Edited by Moderator)
Me again ;)

So... TWRP flashed and... nothing.

It does not reboot in recovery, I just see a logo MPMan and it switches off :/

Of course, it can be switched to be used normally, but no more recovery :/

Question : which options in PAD Tool do I need to check to just flash a stock recovery ?

Boot one ? Recovery Image ? Which box must be checked and more important : which box not to check ? :)

Thanks !
 
#47 · (Edited by Moderator)
Hmm.... The TWRP for Discovery did similar thing on my Crystal 2 too.

After I changed all its drivers+kernel to mine, it had mirrored touch screen but it worked.

Kind of - its screen was really really dark, so there is some issues that might

show itself even if the touch drivers happened to work ok.

Using the newest PAD Product toll I have flashed just Recovery with just it (+ Multiple Partition Image and Production) checked.

But earlier I have had some issues when the boot partition wasn't checked. So to be certain check

the "Production", "Multiple Partition Image", "Boot Partition" and "Recovery Partition". Uncheck everything else.
 
#49 · (Edited by Moderator)
Yet one more "bnmguy's CWM based recovery v6.0.3.3". A "fake-flash" version.
It doesn't change the orig. recovery, so it could be safer to test.
Download: http://yadi.sk/d/PBT5BnNAbgeHc

Usage: Just "flash" it and CWM recovery soon starts.
On older stocks adb might not work but otherwise it should be ok.
(Haven't really tested it much though. Works as well as the original.)
 
#50 · (Edited by Moderator)
Update: both Stock2CWMconverter and Fake-Flash version

- backup's 1970's date bug fixed.

0_12869e_72970363_L.jpg


edit: and while at it, also the "smaller installer" is now similarly fixed - see the bnmguy's orig. post for the link...
 
#51 ·
Boot2CT's Boot Converter updated (yes, both of them). Download links are the same.

Now it's run before and after flashing a ROM by Christian Troy.

Copying of stock files removed (still possible as "extra" feature).

Read the included README and example files for more info.

for Alv's tab...

to /sdcard/boot2ct-stockfiles.txt

/system/usr/idc/gslX680.idc

guesswork for Hannspree...

extract included boot2ct-otherfiles.tar file to sdcard
to /sdcard/boot2ct-stockfiles.txt
/system/vendor/lib/libbt-vendor.so
/system/etc/firmware/rt*
/system/lib/hw/sensors.ATM702X.so
Thank you very much. With your help I succesfully ported Cyanogen mod 10.1 to my Hannspree Hannspad T71. I have both WIFI and Screen Rotation working.
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top