[Guide] How to port Cwm or CTR recovery for any device - Android Software Development

Port recovery to any Device, snapdragon, mediatech doesn't matter​
Hi guys...
Once again i am back with an Extreme guide...
Its about porting Recovery if you don't have source or if you like to use your own thing...
Ok lets start......​
Do it with your own risk, I am not responsible for anything happens to your mobile, friends, family and etc
Click to expand...
Click to collapse
Requirements:
1. Android Kitchen or Android image kitchen (Search on xda or
google)
2.NOTEPAD++ (Search on google)
3. Flash tool (flashify, rashr etc)
4. Cygwin ( if you are using Windows)
5. Recoveries that you want to port, must be from same structured chip set device, and same resulotion
Tips: Search on Google on how to set up android kitchen with cygwin
Step:1
Frist take your stock boot.img, stock recovery.img and
any other recovery like CWM or CTR (Without
TWRP)
Tips: If you don't know how to get a dump of boot.IMG or recovery.IMG, Google is there to help you! You can also use Diskinfo to get partition info, download it from play
Now put them in safe folder and unpack boot.img in a
new folder, then unpack Stock recovery in another
folder and unpack your cwm or CTR recovery in
Another folder.......
All done!!
Tips: search Google how to unpack .IMG with android kitchen or android image kitchen
Click to expand...
Click to collapse
Step:2
Now go to your unpacked boot.img and then go to "ramdisk" folder then copy these files and paste it
to your recovery (whitch you want to port)
1.meta_init.modem.rc
2.meta_init.project.rc
3.meta_init.rc
Done! :3
Click to expand...
Click to collapse
Step 3:
Now go to your unpacked stock recovery and copy "(#Kernel)" and paste it to your unpacked recovery (Which you want to port).Then again go to unpacked stock recovery>ramdisk and copy these files and paste them in your unpacked recovery>ramdisk (which you want to
port) and replace them all...
1.fstab
2.ueventd.rc
3.ueventd.goldfish.rc.
Done!
Click to expand...
Click to collapse
Step 4:
Now go to your stock unpacked CWM or CTR and go to
ramdisk/etc and copy ( recovery.fstab ) and paste
it to you unpacked recovery (which you want to
port) /ramdisk/etc and replace......
Done!Now go to your unpacked recovery (whitch
you want to port) then go to ramdisk and open
default.prop and ask also open the default.prop. compare them, change the values of port recovery according to stock recovery.
All Done!
Click to expand...
Click to collapse
Finel step :
Repack the ported cwm, take it to your phone and open any flash tools and flash your new recovery!!
Click to expand...
Click to collapse
N.B.--> This method will not work in TWRP porting beacuse porting TWRP is different...
Sometimes your new recovery may not work...if it does not work then try again with new recoveries from different device or redo the whole thing
I hope this post was helpfull and if you
successed to port your new recovery then dont
forget to give me some credits
if you like this post then click on :good: button... It may increase the rate of
giving new guides...​ :highfive:

Hi, I am trying to do a CWM recovery for Amazon fire phone which is a Snapdragon 800 - unfortunately i cannot find any custom recoveries which have the amazon fire phones resolution of 1280 x 720 can you advise if there is a workaround for this situation?

Hey there, if you are porting cwm, the resolution isn't gonna be a problem. Find same structured device and you would be good to go.
Edit: the fonts will maybe look smaller.

But if you are porting CTR recovery the resolution would be a problem, it will cause you touch problem in recovery

Thanks. One problem right at the first hurdle is in step 2
i do not have these files in my boot ramdisk folder
1.meta_init.modem.rc
2.meta_init.project.rc
3.meta_init.rc
Attached is a screenshot of what i have in mine?!?

Can I get a screenshot of the unpacked recovery ( that you want to port)? I want to compare these files

The screenshot of the unpacked Recovery's ramdisk folder actually

Sure, attached. This is my recovery from my Amazon phone and also the recovery for a nexus 5 which uses the same processor

Init.rc, ueventd.rc, replace these two files

Snapdragon device's boot and recovery structure is different, I thing I have to do the tutorial again with snapdragon details

BTW is there any other version of cwm available for your device? You can take a look inside that recovery for more info. And if your device has source, I recommend that building it from source would be best for you

Hi, I actually just built from source but nothing happens when phone should go into recovery. Just stays on the Amazon screen. I then flash the stock recovery back and it works fine. I'm pretty sure that i compiled it correctly as i got no errors used CM11 as source. (Attached if it helps)
To be honest it was a shot in the dark anyway as the phones bootloader is locked and i was trying with flashify.apk

Have you tried grabbing a logcat after rebooting from recovery?

Thats my next step

And what does the logcat says?

Please help.
I have got an android device with Broadcom Processor with android 4.4.2. I had tried to learn using Ubuntu and tried to build recovery from source. But, it seems a clumsy path and hard to understand. I could not finish syncing repo and retired from my trial a month ago. Can I use this tutorial to port recovery to my device? How can I know which CWM for an android can be ported to mine?

bro this is not working for snapdragon devices. as i am not getting meta files into its recovery not even in the ported one.

I can't understand the which recovery is which, like in Step 3 you said Stock recovery and unpacked recovery (Which you want to port) where i guess stock is the original recovery and unpacked is CWM/CTR.
But on Step 4 you said:
"go to your stock unpacked CWM or CTR and go to
ramdisk/etc and copy ( recovery.fstab ) and paste
it to you unpacked recovery (which you want to
port) /ramdisk/etc and replace."
so stock unpacked CWM is CWM but which one is he unpacked recovery now?

bro i have micromax a108 with mt6582m chipset and i want to port ctr for my device but i am not getting and recovery developed for mt6582m devices

Please write a new guide for Qcom Chipset !
Sent from my redmi note 4 using xda Forums PRO

Related

Porting Clockworkmod recovery from existing image file from another device

Hi,
I don't know if this is the correct section to get this question answered, but I'll try:
I have a new tablet, which is not really known at the moment. I managed to root it and next step would be to port Clockworkmod Recovery to it. Since I only found guides where I always have to repo sync the entire CyanogenMod github (which is 19GB+ as I heard), I searched for an alternative where I could save some traffic
I found a clockworkmod recovery from another tablet and wondered if it was just possible to unpack it, modify the recovery.fstab and repack it again.
Is this possible or do I have to modify more than the recovery.fstab? If yes, could you point me to the right direction?
Regards
dump your stock recovery
unpack the stock recovery and save the vold.fstab somewhere.
upload the stock recovery here
http://builder.clockworkmod.com/
get the output and flash`it
if the key`s are not working, unpack the new cwm, and the old recovery, and put the keys from the old recovery.
if you get some mount points erros, you will have to upload also the saved vold.fstab on the clockwork site when you cook the image.
if this does not offer you a good result, you will need to find a similar device (processor, resolution) that has allready a cwm, and try it
the recovery file is ramdisk/sbin/recovery
Hi,
thanks for showing me a way. Unfortunately builder.clockworkmod.com says it didn't find Android magic. This makes sense, as the image is a uImage with lzma compressed data inside. It seems koush's builder handles only "plain" recoveries...
Bad luck
I guess I'll try your second advice and search for a CWM for a similar device, unpack it, replace the fstab file and repack it again.
Thanks again!
hello I have made the porting on http://jenkins.cyanogenmod.com/job/recovery/lastBuild/console
I end up having a zip archive, how can I make my tablet to read that. I have installed cwm recovery and it is rooted. Let me know how can install it and replace my recovery with this.
BTW I have the original stock firmware of my tablet.
let me know thanks

Pro 5 ubuntu edition system dump and flashing Flyme on it...

Hi, i have from a couple of day the ubuntu edition of pro 5, for various reason i want to run android on it and also make an image of system to give the opportunity for android users to get the ubuntu experience... any help?
- i have flashed the recovery from canonical (recovery-turbo) with unlocked ADB
- i can access to fastboot and to adb trough recovery
- i have make a map of partitions (ls -al /dev/block/platform/*/by-name)
- i have try to copy the system to sd card ( dd if=/dev/block/sda41 <--- system partition of=/media/F49C-xxxx <--- my sdcard) but it not find the sd
- on the side of android flash i think that the procedure on this post maybe ok http://forum.xda-developers.com/show...53&postcount=3 but the software (MultiUpgrade 4.8.5) fail to start
- ever for android flash, i have also think to put a complete update.zip to the root of device but the / folder is read only system.
Any help for both purpose are welcome
some news...
some news... i have successfuly install TWRP and maked a backup of system/data/boot if anyone want to play with backup or try to flash it i can upload it (it's a 5gb folder, tell me wich file hosting you want)
i have try after backup to flash the CM rom and some Flyme but i have always the same error: "could not find 'meta-inf/com/google/android/update-binary' in the zip file"
Any suggestion?
ps: if anyone has a TWRP backup of his pro 5 i can try to restore on my...
Hi,
I also got my Meizu Pro 5 Ubuntu Edition a couple of days ago, and even I expected it to be not-so-polished, I couldn't believe the number of features missing and the number of unresolved bugs. Being a long-term Linux/Ubuntu user I will (from now on) closely watch the development process, but meanwhile I would like to use my new phone.
If you make it to flash Flyme, please share the full process.
It would be great if we could go back-and-forth Android/Ubuntu to check the progress from time to time (as Nexus can)
Toroman said:
Hi,
I also got my Meizu Pro 5 Ubuntu Edition a couple of days ago, and even I expected it to be not-so-polished, I couldn't believe the number of features missing and the number of unresolved bugs. Being a long-term Linux/Ubuntu user I will (from now on) closely watch the development process, but meanwhile I would like to use my new phone.
If you make it to flash Flyme, please share the full process.
It would be great if we could go back-and-forth Android/Ubuntu to check the progress from time to time (as Nexus can)
Click to expand...
Click to collapse
As we find someone that want share his TWRP backup, i think that a deep wipe and a restore from backup work...
mobilezonerm said:
As we find someone that want share his TWRP backup, i think that a deep wipe and a restore from backup work...
Click to expand...
Click to collapse
In this thread there is a link:
http :// forum.xda-developers. com/meizu-pro-5/development/rom-cyanogenmod12-1-temasek-unofficial-t3358744
http :// xep.8800.org/ pro5/
But also on the Canonical site:
https ://wiki.ubuntu. com/Touch/ Devices
(Sorry for the spaces the policy doesn't allow me to post urls yet.)
I somehow thought that we can use official Flyme download from the Meizu website and the official Ubuntu turbo image without the need of installing TWRP or anything - and flash both via USB.
Functionality with TWRP would be a plus.
Well I think you can. Press both Volume up + power button, that's the stock recovery where you can flash images from meizu. So you probably can get Flyme when you have Ubuntu, but when you want to go back I think you'll have to flash the ubuntu turbo recovery back through fastboot. I think you can go without TWRP.
Pleytos said:
Well I think you can. Press both Volume up + power button, that's the stock recovery where you can flash images from meizu. So you probably can get Flyme when you have Ubuntu, but when you want to go back I think you'll have to flash the ubuntu turbo recovery back through fastboot. I think you can go without TWRP.
Click to expand...
Click to collapse
Well the power + up gives (a kind of) recovery that shows a screen with the Ubuntu logo in the center - nothing else. I believe the android version has a different recovery?
Ah I never saw that screen. Yes Android/Flyme has a different screen: like this
You can try to to use the Ubuntu recovery to flash a Flyme Rom. I did it with TWRP, but never tried it with the Ubuntu recovery.
The Flyme Rom replaces the recovery and boots with both TWRP and the Flyme recovery, maybe even with a Ubuntu recovery (I can't image it to be that different.).
Edit:
You might want to back up your current recovery. I just flashed the recovery from Canonicals website, and its just the English/Chinese Flyme one.
just a moment... thank's Pleytos, but we need the TWRP backup folder... on yours link there are the CM rom and on the Canonica site there are only the update.zip....
Keep in mind, also the partitons are different on Pro 5 Ubuntu, for this the best is to have the entire backup of an android phone, both CM rom and Update.zip are not flashable by TWRP (i have try)
and Toroman the recovery that you see is the original recovery, if you flash the recovery on Canonical website you have the screen posted by Pleytos BUT with this recovery you obtain only the unlock of ADB in recovery and, as you can read from the screenshoot to make an update you have to put a "update.zip" on root directory of the phone that, unfortunally in ubuntu edition, is read-only file system... i have just unlock it from linux terminal with a "remount,rw" but if you try to copy update.zip (many versions) to root fonder there aren't space enough...
I've make lot of try in this day and i have find two possible solutions:
- flash a rom with MultiUpgrade 4.8.5 (official software used by Meizu, that not start because some token is missing)
as reported in a big russian forum
- make a total erase of internal memory and rewrite it with a image from android Pro 5 phone (TWRP Backup)
Pleytos, one answer, wich room have you flash via TWRP? (both Ciano and Flyme, wich version)
All done... guide in details:
- on windows install driver: Samsung_USB_Drivers_for_Mobile_Phones_1.5.9.0
- on linux: run from terminal "$ sudo add-apt-repository ppa:ubuntu-sdk-team/ppa" and "$ sudo apt-get install phablet-tools"
- download from here (http://people.canonical.com/~plars/touch/recovery-turbo.img) the recovery image with unlocked ADB
- turn off the phone and turn on with volume down pressed to enter in fastboot mode
- in windows go to the folder where you have fastboot / in linux open the terminal and give "sudo -s"
- make a flash of recovery (fastboot flash recovery recovery-turbo.img)
- now download the TWRP recovery (i've used the 3.0.0 on this forum) and from terminal flash it (fastboot flash recovery "nomerecovery")
- now you have to copy first a CM rom on the phone or sd, before flash the CM rom erase completely the system partition, flash it whit TWRP and only after you are able to flash Flyme rom
keep in mind to make a full backup by TWRP and save it on external archive before operate. (it's less complicate for future restore and help you if something goes wrong)
if someone need the backup of Ubuntu for his phone, ask me...
Ubuntu Dump
mobilezonerm said:
if someone need the backup of Ubuntu for his phone, ask me...
Click to expand...
Click to collapse
Hello, can you provide me full Ubuntu dump? Im very interesting to install native Ubuntu touch on Meizu Pro 5. Share the link, for example, on Mega or Google Drive
Need you help
mobilezonerm said:
Hi, i have from a couple of day the ubuntu edition of pro 5, for various reason i want to run android on it and also make an image of system to give the opportunity for android users to get the ubuntu experience... any help?
- i have flashed the recovery from canonical (recovery-turbo) with unlocked ADB
- i can access to fastboot and to adb trough recovery
- i have make a map of partitions (ls -al /dev/block/platform/*/by-name)
- i have try to copy the system to sd card ( dd if=/dev/block/sda41 <--- system partition of=/media/F49C-xxxx <--- my sdcard) but it not find the sd
- on the side of android flash i think that the procedure on this post maybe ok http://forum.xda-developers.com/show...53&postcount=3 but the software (MultiUpgrade 4.8.5) fail to start
- ever for android flash, i have also think to put a complete update.zip to the root of device but the / folder is read only system.
Any help for both purpose are welcome
Click to expand...
Click to collapse
can any one help me remotely to install android on miuze pro 5 which coming with Ubuntu , i download every thing but lost with steps, or can you provide clear steps so i can follow
mobilezonerm said:
Pleytos, one answer, wich room have you flash via TWRP? (both Ciano and Flyme, wich version)
Click to expand...
Click to collapse
Hi! I flashed CyanogenMod 12.1 from Faust93, AICP 12.1 Rom from Faust93, and Flyme 5.1.6.0G & Flyme 5.1.5.0G via TWRP, It worked for me. I haven't been able to go back to Ubuntu though. Ubuntu-device flash doesn't work for me.
I can also flash Flyme with the standard recovery/ Canonical recovery by putting it on /sdcard/
tamyou2020 said:
can any one help me remotely to install android on miuze pro 5 which coming with Ubuntu , i download every thing but lost with steps, or can you provide clear steps so i can follow
Click to expand...
Click to collapse
Yes I can help you, are you running Ubuntu on your PC or Windows?
Before flashing Android, could you maybe help me with getting some Ubuntu files back? I can also help you through a chat or something if that is easier. Never mind I finally did it!I can still help you though, if you need me
Hi , Am running Ubuntu over windows ( virtual box ) we can go with team viewer , or if you want i can install Ubuntu in separate machine , Please let me know how we can communicate
Pleytos said:
Hi! I flashed CyanogenMod 12.1 from Faust93, AICP 12.1 Rom from Faust93, and Flyme 5.1.6.0G & Flyme 5.1.5.0G via TWRP, It worked for me. I haven't been able to go back to Ubuntu though. Ubuntu-device flash doesn't work for me.
I can also flash Flyme with the standard recovery/ Canonical recovery by putting it on /sdcard/
Yes I can help you, are you running Ubuntu on your PC or Windows?
Before flashing Android, could you maybe help me with getting some Ubuntu files back? I can also help you through a chat or something if that is easier. Never mind I finally did it!I can still help you though, if you need me
Click to expand...
Click to collapse
Hi,
I've been away for some time, and I can see some nice progress in making Android work on the Ubuntu edition.
I might be repeating myself but it would be ideal if we (who own the Ubuntu edition) can go back and forth seamlessly. Unfortunately my flashing skills are buried in the ancient time of the HTC HD2 so I need some assistance (as probably more of us do). Here are some questions, I appreciate the effort and the help (assume I'm using Ubuntu on the desktop) (if something is easier in windows - please note). This would be a full circle:
1 Is it possible and how to make a COMPLETE backup of the Ubuntu edition phone (including the recovery and everything) to be able to get back to the factory condition (and using what tools/steps). I think I have read somewhere that OTA updates does not work with custom recovery or something similar.
2 after making the backup from question 1 - assume flashing official flyme to make it like a factory android device. (orig.recovery, OTA and so)
3 flash ubuntu back using backup provided with one.
I guess the ubuntu edition has the bootloader unlocked factory default.
Info on flashing CM or similar can than be like flashing it on original android - assuming (2) is working
As already said, just a remainder - Ubuntu recovery screen that came with the original phone is just ubuntu logo on the center on the screen - I don't know if it is important for any feature (OTA or something)
Best regards!
Also, looking around I have found this - seems interesting also
https://wiki.ubuntu.com/Touch/DualBootInstallation
Toroman said:
Also, looking around I have found this - seems interesting also
https://wiki.ubuntu.com/Touch/DualBootInstallation
Click to expand...
Click to collapse
Actually this is most interesting! I would love to buy this phone, ubuntu edition. But since it would be my primary device and ubuntu touch not quite there yet, I'm not. That page about dual boot seems outdated though. And it is about nexus devices
Being able to have dual boot with android or even as someone said above have a back up and every 2 months restore ubuntu and check the progress would be great.

[SOLVED][REQ] Stock RAMDISK or BOOT image for A3(2016) - SM-A310F

Hello,
I am just new with Samsung smartphones, previously I was on some other devices such Nexus which are easier to mod.
I would like to tweak the kernel( I already got the sources) to add few things but I need for that eventually the ramdisk and the kernel image to make a boot image.
I wanted to download the latest firmware, hoping a default boot image was integrated in it and that I could unpack but I got issue and connection loss so I can't even take a look at it.
I think I will be able to get the boot image with the dd command but to do so I need to be in a mod recovery(such twrp) and currently I can't.
Thx u
Firstly you've created a voting thread. If this is a standard question I suggest in future you leave the options at default.
Why can't you use TWRP?
My build also supports raw image backup of the boot partition.
Sorry about creating wrong thread type
I have extended this feature to include BOOT
Click to expand...
Click to collapse
Woot Yeah I didn't know about that!
So I can just get the current boot image, unpack it, replace with my kernel image, repack and done.
And then flash the boot image throw a zip install or your extended function.
Btw, I am was looking over the net but couldn't find an exact answer to this extra Q, is there any fastboot mode ? So I can just boot in a custom kernel image before flashing it.
Yep, just backup the boot partition using twrp.
Locate the boot image backup in the twrp backup folder.
Unpack it, make your mods, rename it boot.img, copy it to internal or external storage and flash it with TWRP using the INSTALL button.
Samsung devices dont have a fastboot mode.
@ashyx answered my questions, thx to him!
>Samsung devices dont have a fastboot mode.
My latest Samsung Tablet has a fastboot mode but it was manufactured around the end of 2012 ... So it is not quite recent
I've never known a Samsung device to use FASTBOOT, so that's news to me.
Samsung uses its own proprietary ODIN mode.
Which device is this?
Ahhah you gonna say I am half of a lier.
It was my nexus 10. Built by Samsung and running the 5250 exynos chip

Lemfo lem5 custom recovery - twrp

Was able to port twrp recovery of blitz smartwatch after unpacking and replacing the kernel file with the lemfo lem5's stock kernel file extracted from unpacking stock recovery of lemfo lem5 and then repacking and flashing it to lemfo lem5. The recovery got successfully installed and all features are working except the recovery screen is flipped / inverted but not the touch response. The touch inputs are the same as non inverted screen and using the touch is pain in the a**s. If the touch input field is at 45 degrees then to access it, need to tap at 225 degrees and on the same radius distance. Can anyone let me know how to flip the recovery screen without affecting the touch fields or is there a similar custom recovery for mtk6580 lollipop smartwatch with flipped screen.
I have not found solution
Same problem with kw88h
And all twrp apk from playstore does not recognize as twrp
Recovery
Flashify can make the job
Only commands from adb... for wipe.
There is not enough space to backup or restore and i think only root and flasify is all you need.
geowolf1000 said:
I have not found solution
Same problem with kw88h
And all twrp apk from playstore does not recognize as twrp
Recovery
Flashify can make the job
Only commands from adb... For wipe
There is not enough space to backup or restore and i think only root is all you need
Click to expand...
Click to collapse
I have got everything working in twrp recovery. The flip recovery is no more a problem now as with some practice now I am comfortably able to use this inverted twrp touch with ease. It works like a charm and just like the official twrp recovery. No problems at all. Now everything is set : bootloader unlocked, rooted with latest binary supersu, custom twrp recovery installed. I also have the stock recovery img backup file, hence can switch back and forth between stock and custom recovery whenever required. No space issue on lemfo lem5 as it has 8gb rom. lastly only xposed installer is to be installed which is not much of a problem as they are available for lollipop with supported sdk and for which as of now I don't see the use of xposed installer right now, hence will install when required. If I am able to somehow flip the recovery screen then that's it! ?
Gautam_Gundap said:
I have got everything working in twrp recovery. The flip recovery is no more a problem now as with some practice now I am comfortably able to use this inverted twrp touch with ease. It works like a charm and just like the official twrp recovery. No problems at all. Now everything is set : bootloader unlocked, rooted with latest binary supersu, custom twrp recovery installed. I also have the stock recovery img backup file, hence can switch back and forth between stock and custom recovery whenever required. No space issue on lemfo lem5 as it has 8gb rom. lastly only xposed installer is to be installed which is not much of a problem as they are available for lollipop with supported sdk and for which as of now I don't see the use of xposed installer right now, hence will install when required. If I am able to somehow flip the recovery screen then that's it! ?
Click to expand...
Click to collapse
If your rom size is not sufficient enough for backup then you can create full rom backup on pc and can restore the same from pc when the need arises. There are software packages available for the same
geowolf1000 said:
I have not found solution
Same problem with kw88h
And all twrp apk from playstore does not recognize as twrp
Recovery
Flashify can make the job
Only commands from adb... for wipe.
There is not enough space to backup or restore and i think only root and flasify is all you need.
Click to expand...
Click to collapse
Gautam_Gundap said:
If your rom size is not sufficient enough for backup then you can create full rom backup on pc and can restore the same from pc when the need arises. There are software packages available for the same
Click to expand...
Click to collapse
I have with chainfire but never had any problem to recover
Thanks
Gautam_Gundap, fantastic work - You've beaten me to the punch as I had been messing with this device since yesterday (already fixed two bootloops I had induced myself -_- ) and I've been looking for a method for porting a TWRP img that wouldn't brick the LEM5.
Would you mind sharing the port? ..Despite the mirrored display/input issues you have so far, having any recovery method right now is very appealing to me considering the hell I had luckily sidestepped, and want to dig further into their stock images: if only to rebuild them with better icons for starters....
If not, can you just run me through your steps for full-backup, and your modification of TWRP for use with LEM5? I don't mind doing the legwork but would rather not walk this firepath alone!
(After 4 years, finally signed up and posted. Feels good to be here, guys! )
cassettesgoboom said:
Gautam_Gundap, fantastic work - You've beaten me to the punch as I had been messing with this device since yesterday (already fixed two bootloops I had induced myself -_- ) and I've been looking for a method for porting a TWRP img that wouldn't brick the LEM5.
Would you mind sharing the port? ..Despite the mirrored display/input issues you have so far, having any recovery method right now is very appealing to me considering the hell I had luckily sidestepped, and want to dig further into their stock images: if only to rebuild them with better icons for starters....
If not, can you just run me through your steps for full-backup, and your modification of TWRP for use with LEM5? I don't mind doing the legwork but would rather not walk this firepath alone!
(After 4 years, finally signed up and posted. Feels good to be here, guys! )
Click to expand...
Click to collapse
There are many advantages of twrp custom recovery, one of them being very fast full rom backup and even faster full rom restore and that too with compression, the pc whereas takes at least 10 times the time to do the same. full rom restore for me does it within 4mins and backup size of full compressed rom is only 1.64GB whereas the pc takes 7GB for the same backup. Needless to say about advantages of other features like customized wipe, flash image and zip files etc. Now for the procedure for porting twrp custom recovery is as follows
Download latest version of mtk extractor for PC. I tried all other methods, but only this one worked for me.
Download custom twrp recovery of blitz or i2 smartwatch which you will find in this forum.
You will require your stock recovery image file for this method. Your watch needs to be rooted to extract the same. Flashify app from playstore will do the job.
Connect watch to pc. Hope you know how to do this. rename stock recovery img to boot. Open mtk extractor and unpack this renamed file. You will find the unpacked files in mtk folder.
Cut these files and paste in a new folder stock recovery.
now rename the custom twrp recovery img you are going to port to boot.
Unpack it, the files will be placed in mtk folder.
Now copy kernel file from the stock recovery folder and paste it in the new unpacked files of ported twrp. PC Prompts replace - yes.
Now repack and you will get boot.img. Rename to recovery.img.
Flash this via fastboot or Flashify. Done. You have now successfully installed twrp recovery.
Note: In the mtk extractor software use the boot feature for all above steps.
If you encounter any problems post here and I will fix it.
To use pc for full rom backup and restore and many other features use cracked version of miracle box v2. 27A. Mtk Droid tools and SP flash tools do not support this watch, so don't waste time trying with it.
Xposed framework installed successfully!
Anyone need full power button menu for lemfo lem5 install advance power menu app from playstore. It works well. Once you long press the power button you get options for power off, reboot, download, recovery, UI restart , screen shot, soft reboot and safe mode reboot. Select floating mode from settings. looks and works nice on smart watch display
Gautam_Gundap said:
There are many advantages of twrp custom recovery, one of them being very fast full rom backup and even faster full rom restore and that too with compression, the pc whereas takes at least 10 times the time to do the same. full rom restore for me does it within 4mins and backup size of full compressed rom is only 1.64GB whereas the pc takes 7GB for the same backup. Needless to say about advantages of other features like customized wipe, flash image and zip files etc. Now for the procedure for porting twrp custom recovery is as follows
Download latest version of mtk extractor for PC. I tried all other methods, but only this one worked for me.
Download custom twrp recovery of blitz or i2 smartwatch which you will find in this forum.
You will require your stock recovery image file for this method. Your watch needs to be rooted to extract the same. Flashify app from playstore will do the job.
Connect watch to pc. Hope you know how to do this. rename stock recovery img to boot. Open mtk extractor and unpack this renamed file. You will find the unpacked files in mtk folder.
Cut these files and paste in a new folder stock recovery.
now rename the custom twrp recovery img you are going to port to boot.
Unpack it, the files will be placed in mtk folder.
Now copy kernel file from the stock recovery folder and paste it in the new unpacked files of ported twrp. PC Prompts replace - yes.
Now repack and you will get boot.img. Rename to recovery.img.
Flash this via fastboot or Flashify. Done. You have now successfully installed twrp recovery.
Note: In the mtk extractor software use the boot feature for all above steps.
If you encounter any problems post here and I will fix it.
Click to expand...
Click to collapse
Very cool - seems straightforward enough. I'll see if I can find something to fix up or workaround to get the rotation back while I'm at it. First thing's first is to give this a shot though. Need to get a windows machine so I'll get it going at work tomorrow!
Will update again soon. Thanks so much for the steps!
Hi guys.. root + twrp ok.. but there are Custom ROM with full smartwatch function (not only standalone)? Or the only one solution (partial solution) is M2D?
Well done! :laugh: I've configured Lem5 TWRP how u can see here:
https://forum.xda-developers.com/smartwatch/other-smartwatches/twrp-lemfo-lem-5-twrp-t3544569
I think/hope i've solved recovery flipped screen issue, because X5 TWRP haven't this problem.
X5 TWRP + Lem5 kernel = solution? I hope so!
If someone want try, please post the result. Thanx at all...!
Sent from my S7 Edge using XDA Labs
I'm trying to flash the recovery through fastboot and I'm getting:
C:\platform-tools>fastboot flash recovery recovery.img
target reported max download size of 134217728 bytes
sending 'recovery' (9676 KB)...
OKAY [ 0.366s]
writing 'recovery'...
FAILED (remote: download for partition 'recovery' is not allowed
)
finished. total time: 0.383s
I tried rooting with Kingroot and it really bloated up my device. Factory reset still keeps Kingroot, so I kinda want to start over fresh with TWRP and a clean image. How do you flash TWRP on this watch?
---------- Post added at 02:53 PM ---------- Previous post was at 02:39 PM ----------
Update: I made sure OEM unlock was checked in developer settings and eventually was able to flash TWRP via Fastboot.
My watch is now bootlooping over and over again in TWRP, says:
"Done processing script file, renamed stock recovery file in /system to prevent the stock ROM from replacing TWRP."
dimex said:
I'm trying to flash the recovery through fastboot and I'm getting:
C:\platform-tools>fastboot flash recovery recovery.img
target reported max download size of 134217728 bytes
sending 'recovery' (9676 KB)...
OKAY [ 0.366s]
writing 'recovery'...
FAILED (remote: download for partition 'recovery' is not allowed
)
finished. total time: 0.383s
I tried rooting with Kingroot and it really bloated up my device. Factory reset still keeps Kingroot, so I kinda want to start over fresh with TWRP and a clean image. How do you flash TWRP on this watch?
---------- Post added at 02:53 PM ---------- Previous post was at 02:39 PM ----------
Update: I made sure OEM unlock was checked in developer settings and eventually was able to flash TWRP via Fastboot.
My watch is now bootlooping over and over again in TWRP, says:
"Done processing script file, renamed stock recovery file in /system to prevent the stock ROM from replacing TWRP."
Click to expand...
Click to collapse
if your bootloader is locked, it will not allow you to flash twrp recovery via fastboot . Use SP FLASH TOOLS for this purpose. Once you flash recovery do not reboot to system. Reboot to recovery for the first time and then it should be ok. Else root your watch first and flash recovery using Flashify. This method will also do the job.
Gautam_Gundap said:
if your bootloader is locked, it will not allow you to flash twrp recovery. Use SP FLASH TOOLS for this purpose. Once you flash recovery do not reboot to system. Reboot to recovery for the first time and then it should be ok. Else root your watch first and flash recovery using Flashify. This method will also do the job.
Click to expand...
Click to collapse
Did you read my update? It's bootlooping TWRP.
dimex said:
Did you read my update? It's bootlooping TWRP.
Click to expand...
Click to collapse
If you are unable to reboot to system, then you need to re flash complete stock rom. You can do this using cracked miracle software. I have already uploaded full stock rom for flashing via cracked miracle box software except data/userdata partition . you can find it in one of the lemfo lem5 threads here. After re flash you can use the steps explained earlier to flash twrp recovery
I just released a fully working TWRP 3.0.2 recovery for X5+ and LEM5 here:
http://roundandroidwatches.proboards.com/thread/1016/twrp-recovery-port-x5-lem5
Don't forget to read all the instructions.

Updating Asus Zenfone 3 Zoom ZE553KL by TWRP : some errors and difficulties

From the first time i was not able to upgrade my phone to another new version of Android.
The phone was bought on chinese store with Android version : WW V10.40.47.107 (Android MM)
When i checked availability of new versions, phone showed me no result available.
Then following instructions i unlocked bootloader and then install TWRP as recovery system.
I tried to install updates of ROM downloaded from Asus website using this methods with this results :
installing by TWRP with ROM transfered to internal memory of phone KO
installing by "ADB sideload" command KO
I partially resolved after many attempts updating only to Version V11.41.87.2 (Android MM)
I solved in this way :
i used TWRP installing from file transfered directly in microSD
i extracted from zipped file "updater-script" file that is possible to find in the following folder path :
META-INF > com > google > android
and then deleted this rows :
(!less_than_int(1494697617, getprop("ro.build.date.utc"))) || abort("Can't install this package (2017年 05月 14日 星期日 01:46:57 CST) over newer build (" + getprop("ro.build.date") + ").");
.....
getprop("ro.build.asus.sku") == "WW" || abort("Please use the right SKU for updating...");
.....
and then save file extracted and compress into zip file.
During TWRP install process i got some error updates, it seems connected to System folder/partition update
but at the end i was able to update Android to my phone
I tried to do the same method with an other update Version V20.32.67.25 i got a corrupted System folder/partition
It seems essential to update this phone to use original recovery system. Can anyone give it to me?
Or is there someone who has been able to install updates using TWRP without any error ?
Also after installation I wiped the Boot, System, Data, Cache partitions and then I restored from Nandroid backup done by TWRP.
But the phone did not start at the reboot.
I then had to reinstall the update with the method described above to get the working phone back
Why did Nandroid backup with TWRP not correctly restore the phone?
Many thanks to anyone can help me
https://forum.xda-developers.com/showthread.php?p=72448182
There is a link to a rom in this post. In that zip you will find recovery.img. Flash it with adb, like you flashed twrp.
Then you can flash the last M official rom, and subsequently the first and last N roms.
That's the way I did it. I had to end up wiping data, to make it work correctly.
I'm also looking for a Nougat recovery.img.
I wouldn't like to go thru all the process again if there is another update.
Good luck.
Sent from my ASUS_Z01HD using Tapatalk
betche99 said:
https://forum.xda-developers.com/showthread.php?p=72448182
There is a link to a rom in this post. In that zip you will find recovery.img. Flash it with adb, like you flashed twrp.
Then you can flash the last M official rom, and subsequently the first and last N roms.
That's the way I did it. I had to end up wiping data, to make it work correctly.
I'm also looking for a Nougat recovery.img.
I wouldn't like to go thru all the process again if there is another update.
Good luck.
Sent from my ASUS_Z01HD using Tapatalk
Click to expand...
Click to collapse
I already downloaded that file but i didn't find any recovery.img file inside.
I try again
Many thanks :good::good::good:
johnjohnmel said:
I already downloaded that file but i didn't find any recovery.img file inside.
I try again
Many thanks :good::good::good:
Click to expand...
Click to collapse
i think you need flash full firmware bro ,
1. Download newer version firmware
2. You need Convert system.New.DAT to system.img
3. Move system.img and boot.img to minimal adb & fastboot folder
4. Open minimal adb & fastboot
5. Flash boot.img and system.img
halim_wijaya58 said:
2. You need Convert system.New.DAT to system.img
Click to expand...
Click to collapse
Hi Halim
Can I change *.DAT to *.img? or I should convert DAT to IMG with special app.?
Hi all.
I have the same room and can't seem to upgrade to N does anyone have a solution?
halim_wijaya58 said:
i think you need flash full firmware bro ,
1. Download newer version firmware
2. You need Convert system.New.DAT to system.img
3. Move system.img and boot.img to minimal adb & fastboot folder
4. Open minimal adb & fastboot
5. Flash boot.img and system.img
Click to expand...
Click to collapse
Just to let you know I did this then downloaded each update from Asus website. You have to do it in order ie newest MM to oldest N to newest N. Takes a lot of time but it works. I now have N on my phone.
Thanks everyone for all your help.
mikejasonsmith said:
Just to let you know I did this then downloaded each update from Asus website. You have to do it in order ie newest MM to oldest N to newest N. Takes a lot of time but it works. I now have N on my phone.
Thanks everyone for all your help.
Click to expand...
Click to collapse
Boss, I have Asus Zenfone 3 Zoom. I want to update Android nougat. Please help me . Already I unlocked bootloader and convert CN to WW Rom ........
Please help me ....... Please help me....... Please help me
???
---------- Post added at 12:13 PM ---------- Previous post was at 12:10 PM ----------
mikejasonsmith said:
Just to let you know I did this then downloaded each update from Asus website. You have to do it in order ie newest MM to oldest N to newest N. Takes a lot of time but it works. I now have N on my phone.
Thanks everyone for all your help.
Click to expand...
Click to collapse
Boss, I have Asus Zenfone 3 Zoom. I want to update Android nougat. Please help me . Already I unlocked bootloader and convert CN to WW Rom ........
Please help me ....... Please help me....... Please help me
???
Dear boss , please give me Asus Zenfone 3 Zoom Nougat flashable Rom or any easy solutions........
???
After 11 hours trying out finally solved!!!
I originally just wanted to do a factory reset, and swiped then not only data/cache, but unfortunally - because of lack of expirience - also system partition. After that all the problems occured like described above and partitionally in https://forum.xda-developers.com/zenfone-3/help/unbricking-zenfone-3-ze552kl-dm-verity-t3563970 (there was no OS anymore, twrp warned me this every time I wanted to power off, but I couldn't install the firmware again through fastboot neither through twrp -> install zip; have got error 7 or 6).
Afer a lot of fears and hours of trying aroud possibilities above as well as ideas from articles here:
https://forum.xda-developers.com/zenfone-3/help/unbricking-zenfone-3-ze552kl-dm-verity-t3563970
https://www.getdroidtips.com/v20-31-49-2-nougat-asus-zenfone-3-zoom/
https://forum.xda-developers.com/ze...om-ze553kl-t3612990/post72448182#post72448182
https://forums.oneplus.net/threads/twrp-failed-to-mount-system-invalid-argument.508967/
https://android.stackexchange.com/questions/165370/restoring-system-partition-in-twrp
https://4pda.ru/forum/index.php?showtopic=810939&st=240#entry63616813
I have finally founded a solution!!! This is in FIRSTLY restoring original recovery and just then flashing the stock ROM. Here the steps to do for it:
a.) Download original stock rom (raw-version!) from https://cloud.mail.ru/public/HuMJ/wEybSNsQA (raw is to flash through AFT - asus flash tool) or from any other source you can find online; official name seems to be "WW-ZE553KL-20.31.49.2-MR2-user-20170620235128-release_raw.zip"
b.) Exctract and move recovery.img to your adb-folder on PC
c.) Boot your phone into fastboot/boot mode, connect to PC through USB-Cable
d.) Run cmd in adb folder, then type in the command "fastboot flash recovery recovery.img"
e.) Reboot and choose recovery mode - now you have no twrp anymore, but the original recovery menue
f.) Install update, which means, original stock from your sd-card.
Be happy!
It would be nice if you could give me feedback, whether my solution was helpful for you, because it took time to write it and hope it will usefull
figulus said:
I originally just wanted to do a factory reset, and swiped then not only data/cache, but unfortunally - because of lack of expirience - also system partition. After that all the problems occured like described above and partitionally in https://forum.xda-developers.com/zenfone-3/help/unbricking-zenfone-3-ze552kl-dm-verity-t3563970 (there was no OS anymore, twrp warned me this every time I wanted to power off, but I couldn't install the firmware again through fastboot neither through twrp -> install zip; have got error 7 or 6).
Afer a lot of fears and hours of trying aroud possibilities above as well as ideas from articles here:
https://forum.xda-developers.com/zenfone-3/help/unbricking-zenfone-3-ze552kl-dm-verity-t3563970
https://www.getdroidtips.com/v20-31-49-2-nougat-asus-zenfone-3-zoom/
https://forum.xda-developers.com/ze...om-ze553kl-t3612990/post72448182#post72448182
https://forums.oneplus.net/threads/twrp-failed-to-mount-system-invalid-argument.508967/
https://android.stackexchange.com/questions/165370/restoring-system-partition-in-twrp
https://4pda.ru/forum/index.php?showtopic=810939&st=240#entry63616813
I have finally founded a solution!!! This is in FIRSTLY restoring original recovery and just then flashing the stock ROM. Here the steps to do for it:
a.) Download original stock rom (raw-version!) from https://cloud.mail.ru/public/HuMJ/wEybSNsQA (raw is to flash through AFT - asus flash tool) or from any other source you can find online; official name seems to be "WW-ZE553KL-20.31.49.2-MR2-user-20170620235128-release_raw.zip"
b.) Exctract and move recovery.img to your adb-folder on PC
c.) Boot your phone into fastboot/boot mode, connect to PC through USB-Cable
d.) Run cmd in adb folder, then type in the command "fastboot flash recovery recovery.img"
e.) Reboot and choose recovery mode - now you have no twrp anymore, but the original recovery menue
f.) Install update, which means, original stock from your sd-card.
Be happy!
It would be nice if you could give me feedback, whether my solution was helpful for you, because it took time to write it and hope it will usefull
Click to expand...
Click to collapse
Boss,
This solutions can work with ASUS ZENFONE 3 ZOOM.........???
I have ZenFone 3 zoom. Already I successfully convert CN to WW Rom by following this introduction ... https://forum.xda-developers.com/zenfone-3-zoom/how-to/transfer-cn-rom-to-ww-rom-ze553kl-t3612990
But, I can't update android nougat any way. I convert system.new.dat to system.img...... And try to flash it but unfortunately that's not working......
Please help me .......:crying:
Yes, I did it with my Zenfone 3 Zoom (ze553kl). So, you have firstly to flash the original recovery - to find, as described, in the raw stock rom zip archive. Or, you can find all original recovery's also here: (not tested by myself) https://mega.nz/#F!p90wgAaY!l1JbJilmAUEKTKWu43pT9w
Copy recovery.img to adb-folder, then flash it in fastboot mode in the cmd with "fastboot flash recovery recovery.img". Also copy the original stock rom with Android N to your sd-card and put it into your phone.
Then reboot your phone into recovery - now you have no twrp anymore, but original recovery. Install now the zip with Android-N-stock-firmware from sd-card. Enjoy!
figulus said:
Yes, I did it with my Zenfone 3 Zoom (ze553kl). So, you have firstly to flash the original recovery - to find, as described, in the raw stock rom zip archive. Or, you can find all original recovery's also here: (not tested by myself) https://mega.nz/#F!p90wgAaY!l1JbJilmAUEKTKWu43pT9w
Copy recovery.img to adb-folder, then flash it in fastboot mode in the cmd with "fastboot flash recovery recovery.img". Also copy the original stock rom with Android N to your sd-card and put it into your phone.
Then reboot your phone into recovery - now you have no twrp anymore, but original recovery. Install now the zip with Android-N-stock-firmware from sd-card. Enjoy!
Click to expand...
Click to collapse
Boss ,
Thank you very much ...... Your solution absolutely excellent and work very well . I am very happy for your support . But unfortunately I found new problem on my phone ...... After update nougat a white line found on the display......
How can I solved it .......
Waiting for solution.......
Thanks again for your support ........
Glad to hear, that it worked for you as well. About white line I have no idea, but on other pages I have already seen somewhere, that other users also reported about this problem. Try to look at google "ze553kl update white line". You can also search a solution for ze552kl instead of ze553kl, because, as far as I know, the ze552kl (ZenFone 3, without "Zoom") is almost the same device, just with a little worse cam. Therefore, it seems to be longer on the market and to have more users, so there are also more solutions for problems which can occure to this device in the internet. Wish you a good luck!
figulus said:
I originally just wanted to do a factory reset, and swiped then not only data/cache, but unfortunally - because of lack of expirience - also system partition. After that all the problems occured like described above and partitionally in https://forum.xda-developers.com/zenfone-3/help/unbricking-zenfone-3-ze552kl-dm-verity-t3563970 (there was no OS anymore, twrp warned me this every time I wanted to power off, but I couldn't install the firmware again through fastboot neither through twrp -> install zip; have got error 7 or 6).
Afer a lot of fears and hours of trying aroud possibilities above as well as ideas from articles here:
https://forum.xda-developers.com/zenfone-3/help/unbricking-zenfone-3-ze552kl-dm-verity-t3563970
https://www.getdroidtips.com/v20-31-49-2-nougat-asus-zenfone-3-zoom/
https://forum.xda-developers.com/ze...om-ze553kl-t3612990/post72448182#post72448182
https://forums.oneplus.net/threads/twrp-failed-to-mount-system-invalid-argument.508967/
https://android.stackexchange.com/questions/165370/restoring-system-partition-in-twrp
https://4pda.ru/forum/index.php?showtopic=810939&st=240#entry63616813
I have finally founded a solution!!! This is in FIRSTLY restoring original recovery and just then flashing the stock ROM. Here the steps to do for it:
a.) Download original stock rom (raw-version!) from https://cloud.mail.ru/public/HuMJ/wEybSNsQA (raw is to flash through AFT - asus flash tool) or from any other source you can find online; official name seems to be "WW-ZE553KL-20.31.49.2-MR2-user-20170620235128-release_raw.zip"
b.) Exctract and move recovery.img to your adb-folder on PC
c.) Boot your phone into fastboot/boot mode, connect to PC through USB-Cable
d.) Run cmd in adb folder, then type in the command "fastboot flash recovery recovery.img"
e.) Reboot and choose recovery mode - now you have no twrp anymore, but the original recovery menue
f.) Install update, which means, original stock from your sd-card.
Be happy!
It would be nice if you could give me feedback, whether my solution was helpful for you, because it took time to write it and hope it will usefull
Click to expand...
Click to collapse
Very helpful, thanks!
I must've messed something up when I flashed TWRP.
TWRP ran fine, but when I tried to start it up, it stayed stuck at the Android logo.
Then errors popped up when I tried to install the stock rom through TWRP.
I never would've thought or had the guts to restore stock recovery first.
This should get its own thread.
Edit: I think my mistake was unchecking "Mount system partition read-only."
halim_wijaya58 said:
i think you need flash full firmware bro ,
1. Download newer version firmware
2. You need Convert system.New.DAT to system.img
3. Move system.img and boot.img to minimal adb & fastboot folder
4. Open minimal adb & fastboot
5. Flash boot.img and system.img
Click to expand...
Click to collapse
After many days i finally found enough time to try to use your tips.
I tried to convert system.New.DAT to system.img but without success using this program Autotool 3.0
http://www.droidviews.com/convert-and-extract-system-img-and-system-new-dat-files-on-windows/
After this attempt i used a ROM provided by chinese store to flash its content :
system.img
boot.img
recovery.img
Original recovery.img is essential to install other updates.
After that i tried to install other updates recognized directly starting by phone but always without success.
So i have had to install updates using original recovery tool.
Now i got Android 7.1.1 last version installed on my phone but it's impossible to use
TWRP recovery tool.
Obviously it's possible to install TWRP instead of original recovery tool and also possible to make a nandroid backup
but it's impossible to use it to install original ROMs released from Asus and it's not possible
to use to restore nandroid backups.
Is it eventually possible to use a custom ROM ? If it's, which one and possibly compatible with TWRP ?
i solved issue of update, but TWRP ?
halim_wijaya58 said:
i think you need flash full firmware bro ,
1. Download newer version firmware
2. You need Convert system.New.DAT to system.img
3. Move system.img and boot.img to minimal adb & fastboot folder
4. Open minimal adb & fastboot
5. Flash boot.img and system.img
Click to expand...
Click to collapse
After many days I finally found enough time to try to update my Asus Zenfone 3 Zoom to Android Nougat.
To solve the issue, I used an original Rom from the Chinese store because it contains useful files for purpose without any conversion:
boot.img
system.img
recovery.img
I flashed all 3 IMG files.
Recovery.img that it's necessary to get original recovery without which any update can be done.
You must use a microSD and the original recovery tool to be able to upgrade your system.
The problem is that it does not seem possible to use TWRP. It is possible to install it in place of the original recovery and you can do also a nandroid backup but in practice you can not use it to install any updates and restore any nandroid backups.
Is there a custom rom that you can use instead of the original one?
SUJAN SN HW said:
Boss,
This solutions can work with ASUS ZENFONE 3 ZOOM.........???
I have ZenFone 3 zoom. Already I successfully convert CN to WW Rom by following this introduction ... https://forum.xda-developers.com/zenfone-3-zoom/how-to/transfer-cn-rom-to-ww-rom-ze553kl-t3612990
But, I can't update android nougat any way. I convert system.new.dat to system.img...... And try to flash it but unfortunately that's not working......
Please help me .......:crying:
Click to expand...
Click to collapse
how did you convert the .dat to .img?
josejbs said:
how did you convert the .dat to .img?
Click to expand...
Click to collapse
Here's a link to the tool
https://forum.xda-developers.com/android/general/tools-extract-dat-t3467581

Categories

Resources