[Android General] Md.Shafikul.islam:
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... :D

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! :D

______________________

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... :D

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... ;)

____________________________________