yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] praderj:
It works only for mediatek devices.. it won't work on others.. it was specially coded to modify only mt recovery images... for other types it'll show errors... if yours is mt device surely it ll work.. and don't forget to disable antivirus and user account control before using this tool....

Sent from my Celkon A97i
[Miscellaneous Android Development] andrman1:
Yes I have mtk device.Do I need to put my recovery or boot.img to folder from my device ?

I use this recovery http://techerrata.com/file/twrp2/jfltetmo/openrecovery-twrp-2.6.3.0-jfltetmo.img
[Miscellaneous Android Development] praderj:
you have to copy your stock recovery in to the folder.. not the others.. this tool only unpack your recovery into kernel and ram disk and repack it with the twrp ramdisk with your kernel... your recovery will work only its packed with your own kernel.. use your stock recovery... if you use auto mode, do flash your stock to your mobile using sp flash tool... then try it..

Note:Auto porting needs root access in your mobile..

Cheers...
[Miscellaneous Android Development] praderj:
here is your TWRP 2.5.0.0 recovery.

Here is the link for TWRP recovery ported for your device [MENTION=4259703]wahuka[/MENTION]..

Here is your recovery

Enjoy it.. Definitely it should work.. Reply to this post if it worked.. PM me if you nee anything.. After flashing this recovery.. try the other tools also.. with this recovery flashed in your device other port tools given in the OP will work for sure..

Enjoy!!!!!
[Miscellaneous Android Development] wahuka:
Thanks [MENTION=5325910]praderj[/MENTION], but how install it?

I try with mobileuncletools and nothing happends, rebot into taiwan101 recovery.

Sorry but i´m newbie with mtk chinese mobil
[Miscellaneous Android Development] icoolguy1995:
Rename recovery to Recovery.

Place it in sdcard.

use adb shell or terminal emulator and paste this command

dd if="/sdcard/recovery.img" of="/dev/recovery"
[Miscellaneous Android Development] wahuka:
ufffff

/dev/recovery: cannot open for write: permission denied
[Miscellaneous Android Development] bgcngm:
The command has to be executed with elevated privileges (superuser). ;)
[Miscellaneous Android Development] praderj:
Use sp flash tool... I recommend that only.. its very easy.. or try the command given by [MENTION=2935435]icoolguy[/MENTION]... but before that command type su as said by [MENTION=455439]bgcngm[/MENTION]... surely it ll work...I tried mobile uncle tools several times.. it didn't worked for a single time... sp flash tool is very user friendly... try to google its tutorial.. and follow the steps.. for now use the command in terminal with root privilage...

Sent from my Celkon A97i
[Miscellaneous Android Development] samusalo:
Custom recovery port for Oppo R819

Hi. Could someone please help porting custom recovery for Oppo R819 MT6589 phone? I am a total newbie what comes to porting recoveries.
[Miscellaneous Android Development] praderj:
We can't port the recoveries to all the forum members... read the op first... read it completely and try to port your recovery with the tools by [MENTION=4478781]yuweng[/MENTION].. if you still can't port your recovery.. and you really facing problems in using it surely I'll help you.. just pm me your stock recovery.img to me.. I'll do it for you.. but before that I want you to try these tools in the starter post of this thread..

Sent from my Celkon A97i
[Miscellaneous Android Development] wahuka:
Hello [MENTION=5325910]praderj[/MENTION].

Following your instructions:

Load scatter.txt from my recovery and see this (picture 1), click ok and see capture 2

you can see that the recovery box is not checked when loading the scatter. txt

I dont know if click download or not, panic, i have restore a backup now, jejeje.
[Miscellaneous Android Development] praderj:
load scatter.
[Miscellaneous Android Development] wahuka:
I tried with two command lines.

Install recovery, but when restart into recovery phone blocked in logo, wait 5 minutes but nothing.

Phone dont detect sim card now, so go to install stock rom and restore backup
[Miscellaneous Android Development] praderj:
sorry friend.. I just updated my post.. you tried before that.. extremely sorry.. I'm sure your recovery partition is 6 mb.. read the op. There is link for increasing your recovery partition to 7 mb.. or use cwm latest version.. it'll come around 5 mb only.. surely it will work...

Sent from my Celkon A97i
[Miscellaneous Android Development] wahuka:
I´ll Try 7mb partition.

anyway I'm very grateful for the selfless help and for your time.

People like you are what make this forum great.

Thank you so much friend.

regards :good:
[Miscellaneous Android Development] praderj:
You are welcome dear friend.. I sent you a PM.. read it.. if you want I can give you some tips to efficiently port cwm to your device... or if you need touch recovery you can port cot (canibal open touch) to your device.. separate tool is available for that too...

Sent from my Celkon A97i
[Miscellaneous Android Development] praderj:
Your COT recovery @wahuka

hello friend i manually ported COT recovery for.. Try this and tell me weather it worked for you.. I've optimized the images to make the recovery within 6mb.. try this.. Dont blame if it didnt work..

Here is your recovery
[Miscellaneous Android Development] wahuka:
How install it?

command line or sp-flashtools?
[Miscellaneous Android Development] praderj:
Use sp.. its safe as it won't affect other partitions.. since its less than 6mb.. u can use terminal also.. but go for sp flash tool...

Sent from my Celkon A97i
[Miscellaneous Android Development] yuweng:
i'm getting too many pm & i'm tired of replying the same request & i have already mentioned it here so could someone or anyone get PhilZ to compile a fully working one for MTK device...
[Miscellaneous Android Development] KopiJahe:
in my attempt to port twrp for my device with datamedia layout, I found a very fatal/lethal bug

Whenever I mount the device as usb storage, it's working fine. But, if I unmount it, the sdcard went dead :eek:

I tested it whit two 32GB sdcard, one went straight to warranty, and one still alive

Do anybody knows how to disable this button? I removed my links on forums and groups because of this, and people wouldn't understand altough I already explain it :rolleyes:

Here's what I've tried to do to overcome this bug:

Deleted this lines from init.rc:

write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 17EF
write /sys/class/android_usb/android0/idProduct 7435
write /sys/class/android_usb/android0/functions mass_storage,adb
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
write /sys/class/android_usb/android0/iProduct ${ro.product.model}
write /sys/class/android_usb/android0/iSerial ${ro.serialno}

result: the button is still there

It seems that TWRP need to recompiled with TW_NO_USB_STORAGE flag:

[MENTION=4478781]yuweng[/MENTION] can you recompile twrp for me? I didn't have a decent connection here, sync-ing repos will take days (tried that before, one week and still not completed the sync :eek: )

Thanks in advance
[Miscellaneous Android Development] yuweng:
Thats the thing with modding, worse scenario, whole device brick... :cowboy:

No need to compile, almost all Officially compiled TWRP with emmc will work on MTK devices without the USB mount, thanks to ygorigor just fyi, nobody knows that he is the one that initially submitted Javum's code to TWRP & now we have TWRP officially supported on all MTK devices...

Just unpack this with STD_unpack & copy whole rmdisk/sbin over to replace your existing TWRP, repack it & it'll work without the USB mount b'cos it has a different lun file... :cool:
[Miscellaneous Android Development] KopiJahe:
Thanks!

Although the base is 2.6.3.0, it still showing 2.5.0.0, but it doesn't matter at all, it works!
[Miscellaneous Android Development] praderj:
hello master [MENTION=4478781]yuweng[/MENTION].. why don't you make a port tool for twrp 2.6.3.0.. I tried to port twrp to my device master.. but it didn't boot up... please give an idea to port the latest twrp to my device... you helped me several times.. now also I'm need of your help master...

Sent from my Celkon A97i
[Miscellaneous Android Development] MiLToS_666:
I'm sorry if this has been asked before!:rolleyes:

I have installed a CWM 5.x recovery on my FAEA F2 (MT6589) and it works great.

I used MTK Droid Tool automatic method to create this from the boot.img that I extracted from the latest ROM update zip for this device.

Now, I want to try CWM 6.x recovery with the tools provided in the first post but I don't have an original "clean" recovery.img to work with.:(

If I extract the recovery.img from my device using MTK Droid Tool and SP Flash Tool as it is currently, it will be the already modified one with CWM 5.x recovery.:eek:

Is there a way to get just the original recovery.img for my device from the boot.img included in the ROM update zip? Any other way?:confused:

Thank you!
[Miscellaneous Android Development] praderj:
Unless you download your firmware you can't get your clean recovery.. you can surely try these tools as none of the tool affects your kernel.. so you can try and I'm sure you'll get a working cwm v6.x.x with the recovery you have now...

Sent from my Celkon A97i
[Miscellaneous Android Development] MiLToS_666:
Thank you for the reply!

I have already tried to use the recovery.img I extracted from my device (the modified one with CWM 5.x, the size is 6MB) and use it with michfood-Port-CWM-6.0.3.0-BM.

The whole procedure completes successfully but the resulting recovery.img is 6.04MB and I can't use it with SP Flash Tool because it's too large and will overlap. :(

What am I doing wrong here?
[Miscellaneous Android Development] yuweng:
The reason is i don't want to give you a fish everyday...

Been working on this All-In-One-Auto-Compile-TWRP script for awhile but then few weeks ago, met with car accident & work are piling up so no time to complete it... :o

This script will setup the build environment for compiling, sync CM source, pull boot.img directly from your device, detect your device resolution, auto-config BoardConfig.mk, compile TWRP & flash it back to your MTK device...

Give me some time & i'll finish it... :cool:

i have already mentioned that latest MTK devices most likely will have this region overlap issue... :cowboy:

You have two choice...

1) Use my 7Mb mod at the OP to increase your recovery partition to 7Mb Credits to Master Shifu rua1

OR

2) Use my Auto-Port CWM tool to port my Master Shifu carliv's 6.0.3.7 its source is modded to fit most MT6589 so it should work on yours... :fingers-crossed:
[Miscellaneous Android Development] praderj:
Bro the recovery can be made small by modifying some images.. means if we compress the size of some images it will come below 6mb.. and it will work...

And brother [MENTION=4478781]yuweng[/MENTION] take care of your health.. no hurry master.. we are awaiting for the release... and my doubt is do we need to sync the cm source in windows or in linux master.. why don't you make a port like your cwm port tool.. it doesn't sync anything...

Sent from my Celkon A97i
[Miscellaneous Android Development] yuweng:
Haha, no body harm, only have to pay $$$ to get the car done first instead of waiting for insurance that could take months... :laugh:

i also got myself a 2nd hand car in the mean time for transportation meaning spending more $$$...

Have to work extra hard these few months to earn back those $$$ spent & less time on this Android modding... :D

Bro, as said, you compile your own, no need for any porting tool... :cool:
[Miscellaneous Android Development] praderj:
He he.. I thought you were injured.. anyhow take care master.. relax your mind from this coddings for some days.. earn more and get your car repaired soon..

Sent from my Celkon A97i

Bro you want to port recocery myself.. how is it possible brother.. I don't know these coddings and all master.. just give me an idea.. surely I'll do it... just steps.. actually I was replying to that 6.04mb recovery post.. but forget to quote him bro.. sorry.. you misunderstood me.. I want your port tool.. and I can't do it on my own without your help..don't tell like that bro.

Sent from my Celkon A97i
[Miscellaneous Android Development] yuweng:
Bro, all info is already shared at this thread already... :cowboy: As you said it yourself, use it, trial & error & you'll pick up the skill yourself... :D

Most important the base recovery must be MTK which you already know... For TWRP is almost the same, since almost all Official TWRP with emmc will work, as said delete & copy rmdisk/sbin over to your existing TWRP 2500 & it should boot, awaaas got it booted up but that one doesn't have the USB mount... :laugh:

if you wanna try your hands to port it to your device, my compiled 2630 is here ... :cowboy:
[Miscellaneous Android Development] praderj:
ya sure master.. I'll try it today itself and master today I spent a lot of time to make a sp flash tool flashing tutorial.. it includes all the steps from start to finish with lot of pictures.. you must have a look at it and help me.. master view it and tell weather I've to change anything...

http://www.mediafire.com/view/?v8azn1e22f61j9c

This is the link...

Sent from my Celkon A97i
[Miscellaneous Android Development] praderj:
Brother [MENTION=4478781]yuweng[/MENTION], can you explain me the actual work that your port tool will do.. I got little doubt master.. it will unpack the stock and repack with the cwm ramdisk. I know that.. I want to know other things that this tool is doing.. I need it for manual porting brother.. I tried to manually port a recovery but some functions are not working.. I copied my fastb from etc folder, and init.rc,shub.ko, factory init files from my stock to cwm ramdisk..but didn't worked good.. but the same recovery ported with your tool worked fine.. just give me some details bro.. thanks in advance...

Sent from my Celkon A97i
[Miscellaneous Android Development] praderj:
Bro @ yuweng.. I ported twrp.. its working fine.. no error.. but its missing some option.. usb mounting is missing from mount menu.. why brother and also the back name auto genarated is very long.. whenever I tried to back up the autogenerated name if fails to create folders and didn't get backed up.. but when I change the name its good brother. Help me brother.. when you get time reply me...

Sent from my Celkon A97i

---------- Post added at 02:35 PM ---------- Previous post was at 02:11 PM ----------

Sorry brother its my fault.. I've ported the recovery you gave without usb mount.. that's y I didn't see usb mount option.. and how to change the automatic backup name brother..

Sent from my Celkon A97i
[Miscellaneous Android Development] praderj:
Bro [MENTION=4478781]yuweng[/MENTION] I compiled out a fully functioanal twrp.. the only function that is not working is adb sideload.. give me some solution to make that also to work.. thanks for your help bro...

Sent from my Celkon A97i
[Miscellaneous Android Development] praderj:
Here is the cwm latest version 6.0.3.7 for your device.. I maually ported it for you.. use sp flash tool to flash and comment here if it worked... pm me if you get any error..

http://www.mediafire.com/view/?qeq1irbnubz0fvj

Cheers.. hit thanks if I helped you..

Sent from my Celkon A97i
[Miscellaneous Android Development] dnle71:
bro! something is wrong with the recovery, i can't unpack it..

error: unexpected parameter: "v6.0.3.7" (10)
[Miscellaneous Android Development] praderj:
Bro.. this recovery is meant for some specfic device.. so don't try to flash it. And when asking something make it a little eloborate... did you tried mtk unpack brother.. just try mtk unpack brother. Surely I'll get unpacked...

Sent from my Celkon A97i
[Miscellaneous Android Development] MiLToS_666:
Hello!

As I mentioned in my PM, I successfully managed to use the cwm auto port tool (I had to do the trick with MTKDroidTool running in the background).

I now have a working CWM 6.0.3.7 on my FAEA F2 and I'm happy about it.:laugh:

Thanks for all the help.
[Miscellaneous Android Development] dnle71:
i just found out that the filename itself is causing to not be extracted, maybe because of its spaces. Thanks btw..i already hit it!
[Miscellaneous Android Development] praderj:
bro just change the file name to just recovery.. place it in the tool folder.. open cmd prompt.. navigate into the folder and type MTK_unpack recovery.img. hit enter surely it will get unpacked.. similarly rename your stock recovery to stock and do the same. Now start porting.. transfer files you want.. copy your kernel to recovery folder. After all modifications use the command to repack MTK_pack recovery...
[Miscellaneous Android Development] praderj:
this is the link for my thread.. http://xdaforums.com/showthread.php?t=2465930

It gives you a complete guide for flashing using SP Flash tool. If any one need it you can have a look at it. A pdf version is also available for download.
[Miscellaneous Android Development] sombritagl:
Hi!

I've tried to port COT using the tool with both, a working CWM and a working TWRP, and I get this prompt: "your recovery has no root permissions". Can anyone help me out? Thanks in advance
[Miscellaneous Android Development] praderj:
these tools will surely work for mt devices. If yours is an mt device surely it ll port it without error.. bcoz i had already done porting several recoveried with this tool.. and rename the recoveries to just recovery if it had some other names..

Sent from my Celkon A97i
[Miscellaneous Android Development] sombritagl:
Mine is precisely a MTK6577 and tried with working twrp and cwm recoveries and I got that error... Thanks for your help, anyway
[Miscellaneous Android Development] praderj:
Why don't you try to manually port the recovery... there is a tut by master carliv.. link is in the op..

Sent from my Celkon A97i
[Miscellaneous Android Development] imaulana:
Dear yuweng,

Thank you for your awesome tools. I already port CWM v6.0.3.6 for my device (Amoi N828).

I also succeded in porting COT Recovery to my device.

I have questions, please answer it if you have the time.

When i want to port CWM v6.0.3.7 with your 6036 code, it stuck in the step when synch'ing with CM10. I got this error:

Traceback (most recent call last):
File "/home/indra/cm10.1/.repo/repo/main.py", line 414, in <module>
_Main(sys.argv[1:])
File "/home/indra/cm10.1/.repo/repo/main.py", line 390, in _Main
result = repo._Run(argv) or 0
File "/home/indra/cm10.1/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/home/indra/cm10.1/.repo/repo/subcmds/init.py", line 347, in Execute
self._SyncManifest(opt)
File "/home/indra/cm10.1/.repo/repo/subcmds/init.py", line 200, in _SyncManifest
m.MetaBranchSwitch(opt.manifest_branch)
File "/home/indra/cm10.1/.repo/repo/project.py", line 2348, in MetaBranchSwitch
self.Sync_LocalHalf(syncbuf)
File "/home/indra/cm10.1/.repo/repo/project.py", line 1086, in Sync_LocalHalf
lost = self._revlist(not_rev(revid), HEAD)
File "/home/indra/cm10.1/.repo/repo/project.py", line 2006, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/indra/cm10.1/.repo/repo/project.py", line 2155, in rev_list
p.stderr))
error.GitError: manifests rev-list ('^3fb31dc0d86b27a882c031936561eacdc13e3b76', 'HEAD', '--'): fatal: bad revision 'HEAD'

Traceback (most recent call last):
File "/home/indra/cm10.1/.repo/repo/main.py", line 414, in <module>
_Main(sys.argv[1:])
File "/home/indra/cm10.1/.repo/repo/main.py", line 390, in _Main
result = repo._Run(argv) or 0
File "/home/indra/cm10.1/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/home/indra/cm10.1/.repo/repo/subcmds/sync.py", line 569, in Execute
if mp.HasChanges:
File "/home/indra/cm10.1/.repo/repo/project.py", line 2383, in HasChanges
elif self._revlist(not_rev(HEAD), revid):
File "/home/indra/cm10.1/.repo/repo/project.py", line 2006, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/indra/cm10.1/.repo/repo/project.py", line 2155, in rev_list
p.stderr))
error.GitError: manifests rev-list ('^HEAD', '3fb31dc0d86b27a882c031936561eacdc13e3b76', '--'): fatal: bad revision '^HEAD'

Can you tell me why? And how can i fix it?

Thanks again
[Miscellaneous Android Development] praderj:
Hello friend.. I think this code 6036 will work only for cwm v6.0.3.6 only.. just look at the name and you can understand.. I think brother [MENTION=4478781]yuweng[/MENTION] is busy with his work and that is the reason for no new updates in this thread..:D

Sent from my Celkon A97i
[Miscellaneous Android Development] yuweng:
The tool already mentioned you need ROOT access before starting & when detected no ROOT on your device, it'll abort & there are plenty of guides/ tools for rooting MTK devices out here at xda... :o

Somehow, you must've accidently corrupted the manifest thats why you get all those error... :cowboy:

Master Shifu carliv has updated the same repository so you should be able to compile out 6.0.4.0 instead of 6.0.3.6 even-though the script name is 6036... :cool:

To reset the error use below command then run 6036 script again to sync & you should be able to compile out 6.0.4.0 after that... :cowboy:

Copy whole command below & paste it to terminal & press [ENTER]

cd ~/cm10.1 && rm -rf ~/cm10.1/.repo/manifests && rm ~/cm10.1/.repo/manifest.xml && repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1 && repo sync -f -j4

After that, you should be able to sync cm sources again but without those errors... :cowboy:

Master Shifu carliv has 3# repository

1) <project path="bootable/recovery" name="carliv/mtk6589_bootable_recovery" revision="master" />

2) <project path="bootable/recovery" name="carliv/COT_bootable_recovery" revision="master" />

3) <project path="bootable/recovery" name="carliv/carliv_touch_recovery" revision="master" />

Only the first one is automated by the 6036 script... :cool:

To manually change it, open ~/cm10.1/.repo/manifests/default.xml & change

<project path="bootable/recovery" name="carliv/mtk6589_bootable_recovery" revision="master" /> OR

<project path="bootable/recovery" name="CyanogenMod/android_bootable_recovery" /> to 2) or 3) above then

cd ~/cm10.1 && repo sync -f -j4

DO NOT USE THE 6036 script -> MENU 3 to sync as it will change it back to 1)... :D

BUT to successfully compile out recovery.img, you must refer to the README.MD below each of the 2) & 3) repository...

6036 is a bash script so mod it/ change it/ edit it, it is made to kick-start so that you don't have to crack your head to setup the build environment BUT to compile out a recovery.img you must refer to various tuts & guides on HOW to COMPILE CWM... :cool:

Good Luck.... :cowboy:
[Miscellaneous Android Development] imaulana:
Thank you for your answer Master Yuweng and Mister Praderj.

I will try it soon.

I will report the progress.

---------- Post added at 10:26 PM ---------- Previous post was at 10:18 PM ----------

Thank you for your answer Master Yuweng and Mister Praderj.

I will try it soon.

I will report the progress.
[Miscellaneous Android Development] praderj:
ya friend.. hope that you ll get the working recovery soon.. and don't forget to post your progree here..

Sent from my Celkon A97i
[Miscellaneous Android Development] superdragonpt:
Like said, first install the root "su" binary, an good tool for our phones SoC is the framaroot, you can check the framaroot thread here:

http://xdaforums.com/showthread.php?t=2130276

then re-make the steps for installing an recovery

B.Regards
[Miscellaneous Android Development] praderj:
Bro. Get the root access and the tool will work fine. And the easiest way to root your phone is by using mtk droid tools.. simple and easy when compared to others. When I'm not aware of this mtk droid tool I was using srs one click root.. it was also good but not good as mtk droid tools..

Sent from my Celkon A97i