yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] yuweng:
Thats what i mentioned, use CTR thats why i don't share latest TWRP porting tool, only the Pro & Semi-Pro are able to get it working... :laugh:

Fyi, i did flashing on the Extreme Resize & it does worked ok, may be there are some other function thats why it is not working, Eg. dyulay on her update.zip it uses flash_image to install custom MBR so it doesn't work... :laugh: As said, only basic backup/ restore/ flash zip even adb has been taken out... :o

As mentioned cmoegele is the beta-tester & he confirms it worked on his ThL_W8 & he has the Factory ROM from ThL... :cool: Try using this generic 11Kb secro.img here... :cowboy:

Bro, pls always read the OP & last 5 pages to know what is going on, on this thread or any thread... Now go ahead & DIY... :laugh:
[Miscellaneous Android Development] datasource:
Tried with that secro.img but got error while flashing with spflashtool (SP FLASH TOOL ERROR: (8038) and it suggests to use upgrade firmware instead.:confused:
[Miscellaneous Android Development] yuweng:
As said, this mod is for the Pro & Semi-Pro... :cool:

If you donno how to unbrick your MTK then DON'T do it, however if you are confident enough then do the Firmware->Upgrade & enjoy the 7Mb or 8Mb or max 11Mb recovery partition.... :laugh:

WARNING : After that, if you re-install CWM it will only backup 6Mb of the recovery partition only even though you have increase it to 7Mb... :cool:
[Miscellaneous Android Development] datasource:
Brick:D

No problem with unbrick but i have to repeat some steps. I have working TWRP 2.5.0.0 and all i did was replace sbin folder.

Actually it boots only stops when i try to enter recovery.

Forgot to mention i have a ThL W8s slightly different specs from W8.
[Miscellaneous Android Development] alanvmathew:
Thank you..

[MENTION=4478781]yuweng[/MENTION] thank you bro.. it worked like a charm....... :laugh::laugh::laugh: is restoring option working?????? thank you [MENTION=4981890]dhinesh77[/MENTION]....
[Miscellaneous Android Development] dhinesh77:
Yes everything working perfect :good:
[Miscellaneous Android Development] chleoj:
TWRP Port Tool

Sucecfully ported CWM to CTR on my MT6589 device, thanks for this once again master [MENTION=4478781]yuweng[/MENTION], hope you can share TWRP Port Tool cause this is what i prefer to use on my device...hope I can make it possible...:fingers-crossed:
[Miscellaneous Android Development] KopiJahe:
You can download TWRP auto-porter v2.6.3.0 here

Extract it somewhere, then rename the folder to "michfood-Port-TWRP-V2.5.0.0-Javum" (this is hard-coded in tool's code)

To add/change credit in TWRP:

1. Open ui.xml inside bin/res.7z (Choose the correct resolution folder)

2. Go to line 208, add:

<object type="text" color="%text_color%">
<font resource="font" />
<placement x="120" y="40" />
<text>YOUR CREDIT GOES HERE</text>
</object>

The Original one goes like this:

<object type="text" color="%text_color%">
<font resource="font" />
<placement x="120" y="40" />
<text>Compiled by javum</text>
</object>

Make sure your recovery partition is large enough when you flash the recovery. I take no responsibility to anything that happens to your device.

Confirmed to work on:

ZTE N986 with both partition model (mine)

Hisense EG680 (at least it boots :D )

Acer Liquid Z2 Dual (Z120 5MP SKU)
[Miscellaneous Android Development] chleoj:
thanks for quick reply and for the tool...! so that is one more thing that i need to do now...extend my recovery partition.
[Miscellaneous Android Development] sulez_yudha:
HI Bro. that is great work. Is that CTR work on Sony Xperia C which using MT5689? Thanks :highfive:
[Miscellaneous Android Development] yuweng:
Bro, already mentioned it here... :cool:
[Miscellaneous Android Development] agismaniax:
I try to port TWRP 2.6.3.0 to my device this whole weekend. And finally, I can enable most features that I needed like backup, restore, advanced backup/restore, wipe, file manager, install from zip and backup compression. This is my latest version of TWRP 2.6.3.0 for Gionee's GBW192 Clone (Polytron W8470, Fly IQ4410, BLU Life Play, etc).

Here is the recovery.log from my device.

For anybody who wants to use this recovery for another MTK6589 device which has limited size of the recovery partition (6144KB), feel free to unpack, change the kernel, edit ui.xml in /rmdisk/res, and repack. Make sure your recovery don't exceed that limit, or you must delete unneeded library/binary from /rmdisk/sbin one by one.

Thanks to [MENTION=4478781]yuweng[/MENTION] and [MENTION=2689045]awaaas[/MENTION] for make this happened. :good::good::good:

Btw. The following link is all of the custom recovery I ever ported for Polytron W8470. https://drive.google.com/folderview?id=0BzlaCMusWs2WYzhUdWNhUng4S1k&usp=sharing
[Miscellaneous Android Development] ts_firehawk:
If anyone needs, heres the link for Motorola Razr D3 stock ROM: https://mega.co.nz/#!ZMNjiD6a!Enq-OAAQIXDVymC_HLAdxDOwpWIc35O7oHCRcSkco88
[Miscellaneous Android Development] xylu:
pardon me for being noob, just curious what is UBIFS and how do you know if your device needs UBIFS?
[Miscellaneous Android Development] jimrin:
Wow! Sounds promising for someone with MT6572 phone with UBIFS. I have an iPhone 5s clone. Now, I just need to see if I can find the stock ROM as since it is UBIFS, I can't use MTK Droid Tools to create the ROM for me...
[Miscellaneous Android Development] yuweng:
Bro, a simple search & you would've found the answers here.... :cool: Claim to be un-corruptable, it has been released since 2008 to the linux kernel, however, on Android it is still relatively new... :cool: To know if your latest MTK device uses ubifs refer to here... :cool:

i come to know Master Shifu CT's work thru Ozadroid when he has successfully compile out ubifs supported recovery for his device... :cowboy:

If its not for Master Shifu carliv everyone would still be using stock 3e recovery so refer to the OP & do your part.... :laugh: i myself could never understand those complicated C/C++ ubifs source code to make it work on MTK.... :o
[Miscellaneous Android Development] dhinesh77:
port recovery, do nandroid backup , you will get stock rom :good:
[Miscellaneous Android Development] jimrin:
Thanks for the info. "Port recovery"? Oh, you mean like the MT65xx Lewa OS Porting Tool documented here? http://xdaforums.com/showthread.php?t=2123239

I had seen this post previously but I didn't realize I could utilize it. So I can use the CWM recovery from Nandroid to create the files necessary to use the SP Flash Tool? Cool!
[Miscellaneous Android Development] datasource:
Tried the TWRP 2.6.3.0 port tool but it fails with the message "No recovery.img detected"

Before it stops i can capture the message "failed to copy '/data/tmp/recovery.img' to './recovery.img' permission:denied"

Root folder has R/W permissions. Any idea whats going on?

With manual port the device always freezes at the logo when trying to enter recovery but else it boots normaly.

I have a recovery partition of 8MB as stated if i flash TWRP 2.5.0.0.
[Miscellaneous Android Development] KopiJahe:
Grab TWRP.7z and res.7z and paste it to your TWRP 2.5.0.0 folder (both are in "bin" folder)

Btw, I never once succeded porting TWRP with auto mode, I always use manual port mode, and then flash it with SP Flash Tool later :)
[Miscellaneous Android Development] datasource:
You mean copying TWRP.7z and res.7z and paste inside TWRP 2.5.0.0 recovery file or inside bin folder of TWRP 2.5.0.0 port tool?
[Miscellaneous Android Development] KopiJahe:
Go to TWRP 2.6.3.0 Porting-tool Folder

Go to "bin" folder (it's hidden)

Copy TWRP.7z + res.7z

Go to TWRP 2.5.0.0 Porting-tool Folder

Go to "bin" folder

Paste and overwrite TWRP.7z + res.7z

Try to port again
[Miscellaneous Android Development] datasource:
Thank you. Already did that but the result is always the same. Tried a dozen times to flash with splash but I'm in dead end.
[Miscellaneous Android Development] KopiJahe:
maybe it doesn't compatible with your phone then ;)
[Miscellaneous Android Development] datasource:
TWRP 2.5.0.0 works fine and I had no problem to port it manually and flash it with spflash or zip file. There must be something I missed...

Thank you anyway awaaas.

Just found out that if recovery.img exceeds 6.2 MB the boot just freezes at the THL logo. That's weird because the 7 MB mod seems to be effective.
[Miscellaneous Android Development] yuweng:
i've compiled the latest TWRP branch 4.4 with ubifs support with the latest cm11 source, thanks to dhinesh77 & not forgetting Master Shifu carliv, CT & teamw.in ...

Change the recovery.fstab/ res according to your device & see if it boots as the new cm11 source BoardConfig.mk needs to specify cortex-a7 then only it will compiled out unlike cm10.1... :fingers-crossed:

Download link here
[Miscellaneous Android Development] datasource:
Hi yuweng,

Trying to resolve my problem with recovery.img not booting when the size exceeds 6MB i came across this thread . I'm willing to try that modification on my Thl W8s (1080x1920) because twrp 2.6.3.0 is always bigger than 7MB. Can you give me some hints?
[Miscellaneous Android Development] baran0119:
i had the same problem, but i solved it by requality (lower, so there will be less space) /rmdisk/res/image e.g. use 'paint.net'

and erase some lib in /sbin ... (you have in attachment - my super-less space "sbin")

I also erase line of comment in "init" and other <*.rc> in ramdisk

after compile by this tool make repack (file over 7 MB) by http://xdaforums.com/showthread.php?t=2036528

sorry for me english

[MENTION=4478781]yuweng[/MENTION]

what about update this tool for CTR v2.2?
[Miscellaneous Android Development] yuweng:
As mentioned, the most accurate partition layout command is adb shell -> cat /proc/dumchar_info for emmc & adb shell -> cat /proc/mtd for mtd filesystems. Refer to here... :cool:

i've checked out with Master Shifu carliv awhile ago & he show me the MTK kernel source code it clearly stated that all the partition size layout is embedded inside the kernel, in another word, it is fixed & can't be resize... :cool:

Having said that, many had success in modding the MBR, EBR1, EBR2 to resize various partition, meaning its a hack, same as this 7Mb recovery mod but i donno why it doesn't work on some MTK device... :o i've even contacted few xda members that has this same problem, at the end they have also given up & use CTR... :laugh:

To increase it to 8Mb, simply increase the scatter.txt for secro ( 8 minus 6Mb = 2 )

SEC_RO 0x3380000 [COLOR="Blue"]<- increase it to 0x3[SIZE="4"][B]5[/B][/SIZE]80000

[/COLOR]

Bro, i have a 9 to 5 job & personal life too, since you know how to unpack/ repack then just DIY by replacing /sbin/recovery from 2.2 to your 2.1... :cool:
[Miscellaneous Android Development] datasource:
Thank you,

I will try to resize MBR, EBR1 ...2 wathever, and i will post the outcome.

I have no problem with your mod and even resized sec_ro to 11MB and when i flash twrp 2500 i can see that recovery size in backup.

The problem with CTR is how long it takes to backup/restore compared to TWRP.
[Miscellaneous Android Development] baran0119:
I understand and I'm sorry - a lot of respect for you dev :o

Thank you for your short instruction :) it is very helpful
[Miscellaneous Android Development] KopiJahe:
[MENTION=4478781]yuweng[/MENTION]

The new TWRP portis playing nicely with my phone, the log only showing that my phone doesn't support SELinux

It still don't want to mount my "datamedia" layout, so I delete that part from init.rc and recovery.fstab

And also, the recovery size is gotten bigger than before: 6.95MB Vs. 6.69MB :D

That's my report :D
[Miscellaneous Android Development] baran0119:
[MENTION=4478781]yuweng[/MENTION]

Haha, less than a minute of work and everything works, I did not know about it :) my knowledge is really small ... again a lot of thanks and respect, bro
[Miscellaneous Android Development] datasource:
[MENTION=5127822]baran0119[/MENTION]

Thank you for your file. I already tried extreme resize of images and delete of some files in sbin folder but the twrp2630 recovery file never shrinks behind 6.5MB
[Miscellaneous Android Development] yuweng:
Bro, MBR, EBR1, EBR2 has nothing to do with recovery...

Sorry bro that i sound abit harsh on you, yesterday... :o

Bro, thanks so much for the feedback... ;) i think its time for you to learn to compile from source, my AIO compile TWRP script is ready... :good: i've seen this so may be it'll work on your device... :fingers-crossed:

TW_INTERNAL_STORAGE_PATH := "/data/media/0"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"

Then got a pm from a member here who is also a member at china-iphone & he told me both CTR/ TWRP doesn't mount both the sdcard to PC on the new MT6592... :eek: i suspect may be MTK change the lun file path... i ask him to check it out for me & then he disappear... Then i've sent out a total of 8 pms over at china-iphone & xda here & guess what, nobody reply me...

Yesterday got two reply from fellow xda member here, they will check & let me know the result later, i wouldn't want to be constantly updating the script ... :D When its confirmed then i'll let you know then you can try your hand on compiling your own TWRP... :cowboy:

The size got bigger as its with SELinux & ubifs support even though we don't need it right now... :laugh: MTK is rolling out KitKat this quarter AFAIK custom recovery without it won't work, idk... :o So may be its a good idea that everyone learns to compile from source then we wouldn't have to face SELinux problem that the rest of the devices is facing now... :fingers-crossed:
[Miscellaneous Android Development] datasource:
My last shot to flash twrp 2630 recovery to thl w8s was to hack MBR and change some offsets in scatter file (pure trial and error) and guess what.. it boots with 6.8 MB recovery image. Only thing is twrp freezes when trying to restore a backup.

I just lost my count on many time i bricked my phone (lost imei and baseband included) but finally i think i see the light :)
[Miscellaneous Android Development] yuweng:
WoW, did it really boots... :eek: Haha then you have indeed make a BIG discovery my friend... :laugh: What did you do with the MBR... :cowboy:

From my experience, typically when you change the MBR or EBR at TWRP, you need to do -> Wipe -> Advance Wipe & select one at a time, for the affected partition or it won't work properly... :o
[Miscellaneous Android Development] datasource:
I'm trying to replicate all the steps because it came out of the blue:confused: I will give feedback as soon as i understand what i really did.
[Miscellaneous Android Development] datasource:
I had no luck and had to leave it behind:rolleyes:. I successfully made it boot with hacked MBR but it was only the start of all sort of problems such has freezing recovery and aleatory shutdowns.

Back to CTR or TWRP 2.5.0.0
[Miscellaneous Android Development] yuweng:
Hey, list out what you did then may be others are able to figure it out.... :fingers-crossed:

Hmm, now that i recall, i did ask a fellow xda member to edit MBR for secro size however no change, according to him, still doesn't boot... :cowboy:

MBR

00 00 05 00 00 00 [COLOR="Red"]00 04 00 00 FF FF FF FF[/COLOR] 00 00 [COLOR="Blue"]<- EBR1 (mmcblk0p1) [/COLOR]
00 00 83 00 00 00 [COLOR="red"]00 68 00 00 00 50 00 00[/COLOR] 00 00 [COLOR="blue"]<- protect_f (mmcblk0p2)[/COLOR]
00 00 83 00 00 00 [COLOR="red"]00 B8 00 00 00 50 00 00[/COLOR] 00 00 [COLOR="blue"]<- protect_s (mmcblk0p3)[/COLOR]
00 00 83 00 00 00 [COLOR="red"]00 6C 01 00 [COLOR="Blue"][B]00 30 00 00[/B][/COLOR][/COLOR] 55 AA [COLOR="blue"]<- sec_ro (mmcblk0p4)[/COLOR]

Bold blue is the secro size

00 28 00 00 -> 7Mb recovery

00 20 00 00 -> 8Mb recovery

00 18 00 00 -> 9Mb recovery

00 10 00 00 -> 10Mb recovery

00 08 00 00 -> 11Mb recovery

Have to edit scatter.txt accordingly...

Fyi, i don't have a MT6589 but i did mod it to three different MT6577, all works & even on my old mtd MT6573... :cowboy:
[Miscellaneous Android Development] agismaniax:
hi yuweng, could you show me the edited scatter.txt?
[Miscellaneous Android Development] yuweng:
Bro, everything is already stated at that 7Mb mod on how to mod the scatter.txt accordingly... :cowboy: For more info regarding MBR, EBR, refer to here by Master Shifu nightcraw... :good:
[Miscellaneous Android Development] :
I think, before you are going to brick your phones completely, take a look here and here and here, to understand how your current partitions are defined in your kernel.

Sorry [MENTION=4478781]yuweng[/MENTION] , but I had to intervene my friend, before someone transform his phone in garbage. :laugh:
[Miscellaneous Android Development] yuweng:
Your advice are always welcome, my Master Shifu carliv... :laugh:

Even i've taken down the 7Mb mod tut from the OP, it still come back to this thread.... :D

So here are the WARNINGs to n00bs/ newbies again : It might brick your device in doing so... :cowboy:
[Miscellaneous Android Development] datasource:
Yes . Its kernel dependent and different vendors have slightly different partition layouts built in the kernel. I guess my device is limited to around 6MB and others to 10MB for recovery partition. Well lucky me not to brick my phone definitively but had to take the shot.

Thank you for everything yuweng and carliv.
[Miscellaneous Android Development] ts_firehawk:
How do I determine which file system my phone is using?
[Miscellaneous Android Development] arnabbiswasalsodeep:
Unpack recovery and locate recovery.fstab and open it with notepad++

Press :highfive: thanks :good: if helped
[Miscellaneous Android Development] m3n3chm0:
Hello guys,

I ported CWM successfully to ZOPO ZP 980+ (Octacore - mtk6592)

All options are working fine on this new CTRv2.1 - CWM 6.0.4.0 :) except ONE, the most important for me.. I need to restore only DATA (advanced restore option)

this is not working

... I get no files found, but you can see 2 folders in the next pictures.

Any clue ¿? I have the backup folder in SD card.

:confused:
[Miscellaneous Android Development] lohanbarth:
@ yuweng

You can make automatic port for pairs with custpack thank you to you

because its not working with my alcatel with custpack
[Miscellaneous Android Development] yuweng:
Bro, as said many times on this thread, if you want help in porting to your device then attach your stock recovery.img to your own post...

if i'm not free then i'm sure some other xda members will help you out... :fingers-crossed:

As for the porting tool, mentioned that here i will need beta-tester & beta-tester must know how to unbrick their MTK device b'cos anything can go wrong so r u ready for the job... :cowboy:
[Miscellaneous Android Development] Draky50110:
Hello.

Nice tool :)

How can wen know if we have ext4 or UbiFS ?

Thanks.
[Miscellaneous Android Development] agismaniax:
Port the latest one (CTR v2.2). B'coz advanced restore is missing from CTR v2.1.
[Miscellaneous Android Development] Mawe79:
just look for example in DroidTools (by clicking on map blocks)

The button where you can create a scatter....hope you understand
[Miscellaneous Android Development] ramzidjoudi:
helo nice work

i want to make a cwm for my device with ubifs filesystem

if some one can help me here is my device info and attached scatter and stock recovery

thak you in advance
[Miscellaneous Android Development] bovirus:
Star N9600 MTK6582 - CTR 2.2 tran fine but recovery didn't start

I tried to use CTR v. 2.2 to enable the recovery full touch on Star N9600 (MTK6582 - emmc memory - display 1280x720)

I decompressed all file into root folder of C: driver.

Phone is rooted, connecetd via USB, and rightd etected by PC.

Debug USB is on

USB Storgae (to see memory unit) is OFF (dsiabled).

Quick boot is disabled

Ran the utility. After few seconds

Detect chipset (MTK6582)

Detect memory (emmc)

detect display resolution (1280x720).

then make some activities. No errors reported.

Then switch off the phone/press VOL+ and both POWER/the phone cycle on logo screen - reboot - logo screnn -etc.

What's the matter?

Is there a log file to check the activities and errors (not showed)?

Thanks.
[Miscellaneous Android Development] ramzidjoudi:
quote : ignor the message above

i take a risk and try CTRv2.1-ubifs and automaric port

wow its working with some errors i can now access to carlivs cwm but i have this errors :

- screen is reverted.

- backup doesn't work well (i have E: cannot mount ubifs /dev/ubi1_0 to....) look screenshot

i have only this files in sdcard (look screenshot)

i attached ported CRT

i use : Windows 8.1 enterprise x 64 and folder of crt in desktop
[Miscellaneous Android Development] ramzidjoudi:
after sum test

i found that it don't mount auto /data

i have to go to mounts and storage menu, and mount /data

and then do backup, it work

i don't know if it's safe to restore this backup i am afraid when i read this :

http://xdaforums.com/showpost.php?p=47005386&postcount=630
[Miscellaneous Android Development] ts_firehawk:
Cool, now my Motorola won't even boot. Is there any way to recover it?
[Miscellaneous Android Development] ts_firehawk:
Can't even acess fastboot. It hangs for a few secs then reboots. What the hell went wrong? How could a recovery mess this much with the system?
[Miscellaneous Android Development] KopiJahe:
Maybe because motorola lock the bootloader, and maybe you didn't unlock it before you flashed custom recovery?
[Miscellaneous Android Development] ts_firehawk:
You answer was so helpful! :mad:

Could you, instead, tell me if there is something I can do now? Also, my device doesn't have any way to unlock its bootloader. Motorola hasn't released a tool to unlock it and no dev has unlocked it. My model was only released in Latin America, so we don't have much devs working for it.
[Miscellaneous Android Development] superdragonpt:
Sorry, but if you already known that the boot loader was locked, you shouldn't mess with it in the first place...

Locked boot loader= no way to flash an custom recovery/ROM.

That's well known, an simple search would point you that.

Now regarding your question, if your OEM doesn't have an tool to unlock the boot loader, I'm afraid but you did in fact bricked your device, and there's no way to recover now.

You'll need to send it to repair/ guarantee. :/

Regards
[Miscellaneous Android Development] ts_firehawk:
I didn't knew I had to have it unlocked. I'm trying whatever I can to repair by myself, but if it doesn't works, I'll send it to repair.

Thanks anyway.

Quick update: Managed to make my phone work again! Thanks god, I'll not need to send it to repairs!
[Miscellaneous Android Development] ramzidjoudi:
happy for you, what did you do:confused:
[Miscellaneous Android Development] ts_firehawk:
Found a way to start phone in download mode and used Motorola RSD NetConnected to flash the firmware to phone. It was kinda tough, though.
[Miscellaneous Android Development] ramzidjoudi:
thank you
[Miscellaneous Android Development] m3n3chm0:
Hello guys,

You can find below the ported CTRv2.2_CWM_6.0.0.4 recovery for Zopo ZP980+ MT6592 Octa Core.

recovery_CTRv2.2_CWM_6.0.0.4_ZOPO980+_MTK6592.img

Download link:

https://mega.co.nz/#!jthXTAJJ!Vaej2DNm6DlWUTpXymwKfqJPK5bm6-7CjHN1qHFTp7w

:good:
[Miscellaneous Android Development] mutha88:
Hi guys! I have LG L5 II with MTK6575. Could you be so kind to tell me if I need recovery? And witch version do I need for my phone - 2.1 or 2.2? I have only rooted my phone and that's all. Do I need something else BEFORE installing this recovery. I can't see instructions about installing the recovery either...

Are there any updated firmwares for my phone? Right now I'm using E460-10C version.

My Android is 4.1.2. I wish I could install a newer version of Android, will this recovery help me?

I'm sorry but the phone is new for me and there aren't many users with this phone - there is nowhere else to ask about the phone.

Edit: I don't want to spam here or make useless posts. I'm just confused about this recovery, sorry :(