FORUMS

[Tutorial]MAKE YOUR OWN CUSTOM ROM FOR LG G2M :)

547 posts
Thanks Meter: 379
 
By WYPIERDAALAAC, Senior Member on 8th May 2015, 04:59 PM
Post Reply Subscribe to Thread Email Thread
Hi all! I want to show you how to create custom rom based on stock lg firmware and stock rom ready to install by recovery

1. Making stock rom ready to install by recovery
1. Download latest LG KK Firmware KDZ: IS HERE
PASSWORD: firmware-lg-d620r-poland-62010

then this programme:
this: Click!

2. Run KDZ Extractor and open kdz (downloaded file) in it.
3. Click extract KDZ
4. Open extracted DZ file, wait and then click on merge system bin (you must check every file in programme)
5. Now you have some more files, look on:
-system.img
and
-boot_327680.bin (rename it to boot.img)
-cust_704512.bin (rename it to cust.bin)
6. Download attach file: attach file is here
7. Make some folder on your disc and put there META-INF folder (which you downloaded), system.img, boot.img and cust.bin.
8. Make zip package by 7zip.
9. Now you have ready zip package, you can install it by moded-Recovery.

2. Making custom rom based on stock
1. Make all points from first tutorial to 5*
2. Download here
3. Open system file in downloaded programme and save what you want.
4. Download "META-INF for custom":
Here

Example:
Code:
Your text here

ui_print("*****************************");
ui_print("*        Your mod           *");
ui_print("*****************************");
ui_print("*       for LG G2M          *");
ui_print("*****************************");
ui_print("First part of installation...");

run_program("/sbin/mount", "/system");
run_program("/sbin/busybox","mount","/data");

Delete system folder, in example you see  "media" folder

delete_recursive("/system/media");

package_extract_dir("system", "/system");
mount("ext2", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
symlink("../xbin/su", "/system/bin/su");
symlink("../xbin/busybox", "/system/bin/busybox");
set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Second part of installation...");

About deleting apps, for example Books apk and odex file

delete("/system/app/Books.apk");
delete("/system/app/Books.odex");

set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print("Please wait... ");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
unmount("/system");
ui_print("Clearing cache");
delete_recursive("/data/dalvik-cache");
ui_print("Now UnMounting partitions");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
show_progress(0.1, 0);

Last words for ending intsallation

ui_print("*******************************");
ui_print("*          Thank you!         *");
ui_print("*******************************");
show_progress(0.1, 10);
If you want add kernel installation put boot.img to your folder and add to your script this command:
Code:
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
*** NEW UPDATER-SCRIPT, WITH FORMATING SYSTEM AND CLEAN INSTALLATION:
here!

FOR EDITING UPDATER SCRIPT ETC USE ALWAYS NOTEPAD++ (NotepadPP)
HOMEPAGE of N++
Thats all
Attached Files
File Type: zip META-INF.zip - [Click for QR Code] (169.1 KB, 262 views)
File Type: zip META-INF for custom.zip - [Click for QR Code] (170.7 KB, 120 views)
File Type: zip 100 updater-script.zip - [Click for QR Code] (2.6 KB, 78 views)
Last edited by WYPIERDAALAAC; 27th May 2015 at 03:46 PM.
The Following 16 Users Say Thank You to WYPIERDAALAAC For This Useful Post: [ View ]
 
 
9th May 2015, 05:08 PM |#2  
Junior Member
Thanks Meter: 5
 
More
Thumbs up great work
Quote:
Originally Posted by WYPIERDAALAAC

Hi all! I want to show you how to create custom rom based on stock lg firmware and stock rom ready to install by recovery

1. Making stock rom ready to install by recovery
1. Download latest LG KK Firmware KDZ: CLICK

then this programme:
this: Click!

2. Run KDZ Extractor and open kdz (downloaded file) in it.
3. Click extract KDZ
4. Open extracted DZ file, wait and then click on merge system bin (you must check every file in programme)



5. Now you have some more files, look on:
-system.img
and
-boot_327680.bin (rename it to boot.img)
-cust_704512.bin (rename it to cust.bin)
6. Download attach file: attach file is here
7. Make some folder on your disc and put there META-INF folder (which you downloaded), system.img, boot.img and cust.bin.
8. Make zip package by 7zip.
9. Now you have ready zip package, you can install it by moded-Recovery.

2. Making custom rom based on stock
1. Make all points from first tutorial to 5*
2. Download here
3. Open system file in downloaded programme and save what you want.
4. Download "META-INF for custom":
Here

Example:

Code:
Your text here

ui_print("*****************************");
ui_print("*        Your mod           *");
ui_print("*****************************");
ui_print("*       for LG G2M          *");
ui_print("*****************************");
ui_print("First part of installation...");

run_program("/sbin/mount", "/system");
run_program("/sbin/busybox","mount","/data");

Delete system folder, in example you see  "media" folder

delete_recursive("/system/media");

package_extract_dir("system", "/system");
mount("ext2", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
symlink("../xbin/su", "/system/bin/su");
symlink("../xbin/busybox", "/system/bin/busybox");
set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Second part of installation...");

About deleting apps, for example Books apk and odex file

delete("/system/app/Books.apk");
delete("/system/app/Books.odex");

set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print("Please wait... ");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
unmount("/system");
ui_print("Clearing cache");
delete_recursive("/data/dalvik-cache");
ui_print("Now UnMounting partitions");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
show_progress(0.1, 0);

Last words for ending intsallation

ui_print("*******************************");
ui_print("*          Thank you!         *");
ui_print("*******************************");
show_progress(0.1, 10);
If you want add kernel installation put boot.img to your folder and add to your script this command:
Code:
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
Thats all

The Following User Says Thank You to elhattak7 For This Useful Post: [ View ]
12th May 2015, 07:25 PM |#3  
Tse™'s Avatar
Senior Member
Flag Athens
Thanks Meter: 101
 
Donate to Me
More
Very good tutorial !
I made a flashable v10j ! I can upload it if anyone is interested.
The Following 3 Users Say Thank You to Tse™ For This Useful Post: [ View ]
13th May 2015, 01:28 PM |#4  
WYPIERDAALAAC's Avatar
OP Senior Member
Flag Warszawa
Thanks Meter: 379
 
More
Quote:
Originally Posted by Tse™

Very good tutorial !
I made a flashable v10j ! I can upload it if anyone is interested.

why not maybe it will help someone back from cm to stock
13th May 2015, 02:38 PM |#5  
Senior Member
Thanks Meter: 64
 
More
question: would it be possible to copy the part of the stock of sw Gps CM12? I'm fine with CM12 but GPS signal ... dancer stock with stable signal
13th May 2015, 03:07 PM |#6  
Tse™'s Avatar
Senior Member
Flag Athens
Thanks Meter: 101
 
Donate to Me
More
Quote:
Originally Posted by WYPIERDAALAAC

why not maybe it will help someone back from cm to stock

Ok! I am uploading!
The Following User Says Thank You to Tse™ For This Useful Post: [ View ]
13th May 2015, 05:20 PM |#7  
AntonPanos's Avatar
Senior Member
Flag Herakleio
Thanks Meter: 55
 
More
Just tell if this is for d620 or d61*

Sent from my D620fr [SlimKat]
The Following User Says Thank You to AntonPanos For This Useful Post: [ View ]
13th May 2015, 05:23 PM |#8  
Tse™'s Avatar
Senior Member
Flag Athens
Thanks Meter: 101
 
Donate to Me
More
D620R V10J unbranded. Here is the link until i get 10 posts and i am able to open a thread.
https://www.dropbox.com/s/xv3ftorno1...D620R.zip?dl=0
The Following User Says Thank You to Tse™ For This Useful Post: [ View ]
13th May 2015, 05:36 PM |#9  
AntonPanos's Avatar
Senior Member
Flag Herakleio
Thanks Meter: 55
 
More
Quote:
Originally Posted by Tse™

D620R V10J unbranded. Here is the link until i get 10 posts and i am able to open a thread.
https://www.dropbox.com/s/xv3ftorno1...D620R.zip?dl=0

Just add the link in this thread

Sent from my D620fr [SlimKat]
The Following User Says Thank You to AntonPanos For This Useful Post: [ View ]
13th May 2015, 05:40 PM |#10  
Tse™'s Avatar
Senior Member
Flag Athens
Thanks Meter: 101
 
Donate to Me
More
Already done! I think I'll start playing a bit with the ROM .
The Following User Says Thank You to Tse™ For This Useful Post: [ View ]
15th May 2015, 05:30 PM |#11  
WYPIERDAALAAC's Avatar
OP Senior Member
Flag Warszawa
Thanks Meter: 379
 
More
Quote:
Originally Posted by baggino

question: would it be possible to copy the part of the stock of sw Gps CM12? I'm fine with CM12 but GPS signal ... dancer stock with stable signal

You can use gps file from stock to cm12, below link:
Attached Files
File Type: zip gps.zip - [Click for QR Code] (1.3 KB, 22 views)
The Following User Says Thank You to WYPIERDAALAAC For This Useful Post: [ View ]

Read More
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