FORUMS
Remove All Ads from XDA

How to make patch/[noob friendly]

14 posts
Thanks Meter: 19
 
By pritam dutta, Junior Member on 11th May 2017, 12:13 PM
Post Reply Email Thread
HERE IS MY PORTING TECHNIQUE : CLICK ME

WHY WE NEED PATCH

Quote:

Porting a ROM lot of bugs are coming
and using a patch we can fix them easily because we do not have to flash the whole ROM again

This tutorial show you how to make patch ::

At first make a folder name patch ::

Next step ::

Quote:

Copy META-INF folder from any other working ROM of your device

Quote:

Open the meta-imf/com/google/

Next Step ::

In this step you need notepad++

Quote:

open the updater-script and delete all the lines

And then add this lines ::

Code:
ui_print("Mounting System...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p6", "/system");
package_extract_dir("system", "/system");
unmount("/system"); 

ui_print("extract boot.img");
package_extract_file("boot.img", "/dev/bootimg");
The red line depend upon your mount point of your device

NEXT STEP ::

now create a system folder in the patch folder and Next steps i hope you can understand
[LIST=1]Place the files you want with proper address

And zip the file and flash it

You can find a example zip bellow ::

Give a tums up if it is helpful
Attached Thumbnails
Click image for larger version

Name:	patch-folder.jpg
Views:	212
Size:	104.0 KB
ID:	4145801  
Attached Files
File Type: zip patch-example.zip - [Click for QR Code] (372.3 KB, 270 views)
The Following 9 Users Say Thank You to pritam dutta For This Useful Post: [ View ] Gift pritam dutta Ad-Free
 
 
Yesterday, 11:49 AM |#2  
samuel.freitos's Avatar
Senior Member
Flag Tutóia
Thanks Meter: 34
 
More
Thank u sir! i will try soon on MIUI
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes