Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Step 1.

Create Folder
Create a New Folder anywhere in you computer and rename it system
Inside the system folder create 2 new folders and rename them as

etc
lib

Step 2. Copy Files

Now You have to


copy some files
from your Stock
Rom to newly
created system fold
er. Open your Stock
Rom folder
and system folder.

Copy From
Stock Rom
etc folder
to system\et
c folder

Folder

firmware
permission
security
wide-dhcpv6

Files

vold.fstab
vold.fstab.nand

Copy From Stock Rom lib folder to system\lib folder

Folder

hw
drm
modules
soundfx

Files

libaudio.primary.default.so
libcamalgo.so
libmhaldrv.so
libcamera_client.so
libcameracustom.so
libcameraprofile.so
libcameraservice.so

Now copy full usr and vendor folder from Stock Rom to system folder

Step 3. Porting
Go to the Port Rom folder.
You need to delete some 3 folders from Port Rom system folder are below:

system\etc\firmware
system\lib\hw
system\lib\modules

Now paste system folder (Created with Stock Rom files) and replace files and folders to
the port rom system folder (Not inside the port rom system folder)

File copied
completed.

Now you have to


edit Mount Point

Go to Port
Rom META-
INF\com\google\android open updater-script with Notepad++ change the mount point.

Find the line /dev/block/mmcblk0p and you will get the line like below.
format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/data");

Mount point I marked in red color 5 & 7 now change it as per your device mount point.
(Do not need to change the whole line.) If your device mount point for system is 3 then
make it 3 instead of 5. If your device mount point for data is 5 then make it 5 instead
of 7. To know your device mount point run MTK Droid Root and Tools and connect your
device. Then click Block Map.

Port Kernel from


Stock Rom to Port
Rom. Here is
the MTKKernel
Porting Guide.

Now make your


ported rom ZIP file for flash.

First time it will take time for create system folder but after that you can port rom for
your device with in five minutes.

Overview:

1. Delete mentioned folders for Port Rom and Replace the system (mentioned in
guide) folder to the Port Rom

2. Edit updater-script for Mount Point.

3. Replace Stock kernel to the Port kernel. Use


andDownload QURepack MTK porting tool.

You might also like