Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

Angry [Guide] [Port] TWRP recovery in 5 minute's easy and Simple way...

OP Md.Shafikul.islam

15th September 2014, 06:35 AM   |  #1  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Hi guys...
Here is my Xtreme and Simple guide for porting TWTRP Recovery from mobile in 5 minutes... Maybe not works in snapdragon devices...
Though there are a lot of guides in XDA But i didn't find any Simple guide...
So i write this Specially for Noobs Friendly...
I hope you will enjoy it...


Wants to port CTR or CWM recovery?!!
Follow my Another Guide Here ->

http://forum.xda-developers.com/show....php?t=2862806
_____________________________________

Post ->

1.Post 1 -> Setting up invaiourments...

2.Post 2 -> Finding EMMC BLK no...

3.Post 3 -> Unpacking...

4.Post 4 -> Porting...

5.Post 5 -> Repacking...

6.Post 6 -> Simple bug fixing...

_____________________________________
The Following User Says Thank You to Md.Shafikul.islam For This Useful Post: [ View ]
15th September 2014, 06:36 AM   |  #2  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Angry Post 1
_____________________________________

Post -> 1
-----------
Setting up Envaiourments
--------------------------

For Mobile Users
------------------

First Download Letast Apktools From Here-> ( http://code.google.com/p/android-apktool/downloads/list )

Now Extract the zip in your sdcard not in any folder...
Then you will see apktool folder in your Sdcard...go to apktools folder and install Apktool4.4.1.apk...But Don't open it...

Now Download Letast Busybox pro.apk from here -> http://forum.xda-developers.com/atta...5&d=1288878272

Then install it and open it...wait there untill the loading finished...After 100% loading Click on install botton in left Corner...Done!

Now download Root Explorer From play store...

install it and open...go to /data folder then you will need Root permission.Click in grant... Done!

Then install Notepad++..this for mobile user ->

http://goo.gl/mbwgkr

Now you Can open your Apktools...
_____________________________________
Last edited by Md.Shafikul.islam; 17th September 2014 at 06:00 AM.
15th September 2014, 06:38 AM   |  #3  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Angry Post 2
_____________________________________

Post->2
---------
Finding Emmc BLK no
---------------------

To port any Recovery you must need to know about this BKL no...

1.System BLK no...
2.Cache BLK no...
3.Data BLK no...
4.Vfat BLK no...

If you don't know then follow this post...

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

Open Root Explorer...Go to Root Tab..(/)...Find these files in Root Tab...

1.emmc@android...(This is your system blk no)
2.emmc@cache...(this is your cache blk no)
3.emmc@userdata...(this is data blk no)
4.emmc@fat...(and this is vfat blk no)

After finding these just see Down of this files Name...you will see all BLK no...
like in my device ->

1.emmc@amdroid
01 jan 70 06.00.00 ->mmcblk0p4 rwxrwxrwx...

2.emmc@cache...
01 jan 70 06.00.00 ->mmcblk0p5 rwxrwxrwx...

3.emmc@fat...
01 jan 70 06.00.00 ->mmcblk0p7 rwxrwxrwx...

4.emmc@userdata...
01 jan 70 06.00.00 ->mmcblk0p6 rwxrwxrwx...
_____________________________

just copy these mmcblk on with there name...in a notepad like ->

1.emmc@android -> mmcblk0p4,

2.emmc@cache...->mmcblk0p5,

3.emmc@fat->mmcblk0p7,

4.emmc@userdata->mmcblk0p6,

...Done!

N.B -> These blk no's are not same in all device...So,Don't copies another devices blk no... :P
_____________________________________
15th September 2014, 06:39 AM   |  #4  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Angry Post 3
_____________________________________

Post -> 3
-----------
Unpacking
-----------

First make a new folder name (Porting Recovery) in your sdcard.Then open it and create two new folders like ->

1.Stock
2.TWRP

Now take your stock recovery...(If you don't have then ask another users...)
Then copy the Stock Recovery in Stock folder...

Now download TWRP Recovery...(If you download twrp of another device,then your device.But one thing if your device has 6 mb recovery pertitions,your downloaded TWRP recovery must be under 6 mb...and you can port you recovery from (mtk <-> mtk)....

Now copy your downloaded TWRP recovery in TWRP folder...

Now open Apktools and Go to Stock folder click on Stock recovery.img and click on (Expack->65xx needs root)...and Wait some minutes...
Done!!

Now unpack your TWRP recovery.img in the same way...
Done!!!
_____________________________________
15th September 2014, 06:40 AM   |  #5  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Angry Post 4
_____________________________________

Post -> 4
-----------
Porting
---------

After unpacking go to Stock folder...then you will see these folder and files there...

1.Ramdisk (Folder)...
2.Karnel...
3.ramdisk.cpio.gz...
______________________

Copy (Karnel) in a new folder...
Then go to Ramdisk folder again and copy these files to new folder ->

1.ueventd.goldfish.rc...
2 ueventd.rc...
______________________

Now open your New folder and copy the (karnel).go to TWRP Folder and paste it there and click on Replaced...
Now again go to new folder and Copy

1.ueventd.goldfish.rc...
2 ueventd.rc...

Then go to TWRP folder...Open Ramdisk Folder and Paste them there...And Replaced...Done!
______________________

Now again go to TWRP Folder...Then in Ramdisk folder...Then go to etc folder and open (recovery.fastab) in notepad...
You will see sometings like this ->

______________________

(# mount point fstype device [device2]
/boot emmc /dev/bootimg flags=display="Boot";backup=1
/recovery emmc /dev/recovery flags=display="Recovery";backup=1
/misc emmc /dev/misc flags=display="Misc";backup=1
/nvram emmc /dev/nvram flags=display="Nvram";backup=1
/uboot emmc /dev/uboot flags=display="Uboot/LK";backup=1
/logo emmc /dev/logo flags=display="Boot Logo";backup=1

/system ext4 /dev/block/mmcblk0p5 flags=display="System";backup=1
/cache ext4 /dev/block/mmcblk06 flags=display="Cache";backup=1
/data ext4 /dev/block/mmcblk0p7 flags=display="Data";backup=1

/emmc vfat /dev/block/mmcblk0p8 flags=display="Phone Storage";storage;wipeingui
/sdcard vfat /dev/block/mmcblk1p1 /dev/block/mmcblk1 flags=display="SDcard";storage;wipeingui
/sd-ext vfat /dev/block/mmcblk1p2 /dev/block/mmcblk2 flags=display="SD-ext";storage;wipeingui

/usb-otg auto /dev/block/sda1 /dev/block/sda flags=display="USB-OTG";storage;wipeingui;removable)


__________________________

First find this line ->

system ext4 /dev/block/mmcblk0p5 flags=display="System";backup=1

Here paste the mmcblk no of -> emmc@android...Which you copied in notepad..
Like my emmc@android blk no is -> mmcblk0p4...
So just replaced mmcblk0p4 with mmcblk0p5 and the line will look like. ->

system ext4 /dev/block/mmcblk0p4 flags=display="System";backup=1

Do same with this lines ->

/cache ext4 /dev/block/mmcblk06 flags=display="Cache";backup=1

In this line just replaced your emmc@cache blk no...like myone is -> mmcblk0p5...

So the line will look like this ->

cache ext4 /dev/block/mmcblk05 flags=display="Cache";backup=1

Now search this line ->

/data ext4 /dev/block/mmcblk0p7 flags=display="Data";backup=1

Here just replaced your emmc@usersdata blk no...like myone is -> mmcblk0p6

So the line must look like this ->

/data ext4 /dev/block/mmcblk0p6 flags=display="Data";backup=1

Now search this line ->

/emmc vfat /dev/block/mmcblk0p8 flags=display="Phone

and Replaced your emmc@fat blk no...like myone is -> mmcblk0p7

so the line must be look like this ->

/emmc vfat /dev/block/mmcblk0p7 flags=display="Phone

all done now save it...

Now go to TWRP folder again...and open Default.prop...this file are same like your build.prop...So change this as your edit your build.prop...but don't change all line...just product names,etc,etc...

N.B -> Sometimes you may not find this file (ueventd.goldfish.rc)...If you don't find it in your unpacked TWRP,then don't copy it from Stock Recovery and just ignore this file...I hope you understand...
____________________________________
15th September 2014, 06:42 AM   |  #6  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Angry Post 5
____________________________________

Final Post -> 5
-----------------
Repacking
-----------

Go to TWRP and click on Ramdisk and You will repack option... just click on (repack-mt65xx(need root))...and after repacking you will see (new.img)...Done!You did it man...now just flash it via Recovery tools.apk or Rashr.apk...and go to recovery and see magics... :P

_____________________________________
15th September 2014, 06:43 AM   |  #7  
Md.Shafikul.islam's Avatar
OP Member
Flag Narayanganj,Dhaka
Thanks Meter: 28
 
58 posts
Join Date:Joined: Jul 2014
Donate to Me
More
Angry Post 6
_____________________________________

Post -> 6
-----------
Simple bug fixing
-------------------

Sometimes ported TWRP may be showed a large Icons which is so disgusting...Now to fixing it see my.simple tips ...
___________________

First download a new themes for twrp...like -> your device regulations is 480*800...So go to google and search some themes ..like -> (TWRP V2.7.0.0 Themes 480*800 XDA )...This and you will find a batter results... Now download some themes and copy them in a folder name Themes...then Extract one theme...then you will see somethings like these ->

1.images
2.fonts
3.ui.xml....

Now Unpack your ported TWRP in a new folder...then go to themes folder (Where you extracted these themes) And copy ->

1.images
2.fonts
3.ui.xml....this files

Now go to New folder (Where you unpacked your ported recovery)...then go to res folder and paste thats there...and Replaced...Done! Now repack your recovery again And flash it via Recovery tools or Rashr.apk...and See Magics again

Sometimes you may fall in this problems like ->

1.Can't take backup...

2.System wasn't mounted...

3.Can't find Recovery and boot pertition...

4.bla..bla...

if you fall in thats problems then unpack your recovery and go to Ramdisk/etc and open recovery.fastab and see that you made any mistake in Replacing thats mmcblk no...Or if you can't understand then post in here..may i can help you...
_____________________________________

Done Everything guys...now you are a developer... :P ...lol... B|

Facing problems?!!Comments here...i try my best to help you...Thanks for reading... and Sorry for my bad English :P
_____________________________________

Happy Porting and never stop customizations...

All post written by: MD.S...
____________________________________
15th September 2014, 07:14 AM   |  #8  
Account currently disabled
Thanks Meter: 1
 
1 posts
Join Date:Joined: Sep 2014
Nice Guide Man... :D
Now trying it...
The Following User Says Thank You to Robin.Sejar For This Useful Post: [ View ]
15th September 2014, 07:27 AM   |  #9  
Account currently disabled
Sedny,Australia
Thanks Meter: 2
 
2 posts
Join Date:Joined: Sep 2014
Nice job bro...
Hi, @Md.Shafikul.islam
First thanks for this guide...But I have some problems...
I can't take backup from my Recovery...Can you help me Please
The Following User Says Thank You to Reko.Reko For This Useful Post: [ View ]
15th September 2014, 05:02 PM   |  #10  
Member
Thanks Meter: 2
 
32 posts
Join Date:Joined: Dec 2013
Nice job!
Good work!
But not working on my Wiko Cink Peax 2 (mtk 6589).
I followed step by step your guide. But.....
Thank you.

The Following User Says Thank You to Bouziane_Dr For This Useful Post: [ View ]
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes