Android 5.0 Favorite Features, Release November 3rd? – XDA TV

Google Confirms Android 5.0 Lollipop for November 3rd! That and much more … more

Prepare Your Build Machines: Ubuntu 14.10 Utopic Unicorn Now Official

Today is an important day for any and all Linux enthusiasts. One of the … more

Track the Time You Waste on Social Media with Socials Addict

When you use your phone, you often don’t even realize how much time you … more

Document the Story of Your Social Life with 8tory

The different forms of social media are growing every day. It’s hard to imagine a day … more
Post Reply

Concept "X"[For Rom Porters Only][$$Save Money$$]

OP digyvijaykumar123

17th May 2014, 03:46 AM   |  #1  
digyvijaykumar123's Avatar
OP Senior Member
Flag Koderma
Thanks Meter: 1,278
 
319 posts
Join Date:Joined: Nov 2013
Donate to Me
More
CONCEPT "X"



Introducing You My Concept For Rom Porting And Uploading."Easier to Upload with Slow and Low Data Pack For Rom Porter Devs."



Concept:-

What Earlier Rom Devs or Porters Were Doing:-They download a rom to port from other device and then port it and upload it for their device.

With Concept X Now Rom Porters can Do:-
Now they need to download the rom they want to port but they will need only to upload 10-25MB file.How?See below...


*Instead of uploading full Rom,you should only upload your changed files flash-able zip via CWM.
For Example:-

Quote:

If i ported a rom by modifying boot.img,apps,libs,firmwares etc....then insted of uploading full rom i will upload only a patch with all files which are to be replaced while porting.Then i will give the users the link of PORT rom from which i ported my rom and also the patch which i created.




Before You begin check that PORT Rom contains no uboot.bin,recovery and assert device line at the top of updater script.This will brick your device.
Try only if your Rom have only folders and files from list below:-
#data(folder)
#META-INF(folder)
#System(folder)
#Boot.img(file)
#Logo.bin(file)


Do not try if Rom have these files or folder structure in the Port Rom zip:-
#uboot.bin
#IK.bin
#recovery.img
#assert device line at the top of updater script.
#Different Mount Points under Updater script.




I ported 6 Roms From A116 to A110Q successfully and applied this method i saved lots of DATA and Money.You can Find my Concept "X" based Roms in my signature Jelly bean section.This method will work perfectly if your PORT Rom meet above criteria.


How To Do:-
1) Download you PORT rom which you wanna port.
2) Port your Rom and Keep in mind the files you changed for porting.
3)Now Download my patch zips from below and open with 7zip.You can do it yourself if you have knowledge about updater scripts.
4)Now make directories according to your files changed during porting and add those files by dragging into my patch zip.
5)Flash the Untouched PORT Rom(in which no changes made) and then after flashing it flash patch zip which you created by above method.
6)Now your Rom should boot if you ported successfully.



How to use My Concept "X" Patch zip:-
1)open my zip with 7zip and you will see following files/folder structure:-
#data
#META-INF
#system
#boot.img
#logo.bin
#uboot.bin


2)Remove the folders/files which you don't need to change in PORT rom.Means if you are not changing uboot.bin,logo.bin,data etc then delete these files/folders from zip without extracting with 7zip.

3)For example if you ports a rom by replacing
[COLOR="rgb(255, 140, 0)"]boot.img
system/etc/firmware
system/lib/modules
system/lib/hw
system/vendor
system/build.prop[/COLOR]

then you will delete uboot.bin,logo.bin.data from my patch zip.Now you only need to modify updater script according to your file/folder changes in patch zip.

4)Drag drop updater script from my zip to anywhere in pc,then edit with notepad++.

5)Above we deleated uboot,data,logo from zip so we will Put "#" in front of the line which executes that folder/file.See below:-
Updater script provided in my zip:-

Code:
ui_print("===================================");      
ui_print("           PATCH                   ");
ui_print("      BASED ON CONCEPT X           ");
ui_print("   by: digyvijaykumar123@xda       ");
ui_print("===================================");
ui_print("");
ui_print("Starting installation....");
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
show_progress(0.200000, 0);
show_progress(0.100000, 0);
ui_print("[*] Flashing partition: BOOT");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
       write_raw_image("/tmp/boot.img", "bootimg"),
       delete("/tmp/boot.img"));
assert(package_extract_file("logo.bin", "/tmp/logo.bin"),
       write_raw_image("/tmp/logo.bin", "logo"),
       delete("/tmp/logo.bin"));	   
package_extract_file("uboot.bin", "/dev/uboot");
show_progress(0.100000, 0);
unmount("/system");
unmount("/data");
ui_print("[*] Installation complete.");
ui_print("");

You need to add "#" like below:-

Code:
ui_print("===================================");      
ui_print("           PATCH                   ");
ui_print("      BASED ON CONCEPT X           ");
ui_print("   by: digyvijaykumar123@xda       ");
ui_print("===================================");
ui_print("");
ui_print("Starting installation....");
show_progress(0.500000, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
#mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/data");
#package_extract_dir("data", "/data");
#set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
show_progress(0.200000, 0);
show_progress(0.100000, 0);
ui_print("[*] Flashing partition: BOOT");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
       write_raw_image("/tmp/boot.img", "bootimg"),
       delete("/tmp/boot.img"));
#assert(package_extract_file("logo.bin", "/tmp/logo.bin"),
#       write_raw_image("/tmp/logo.bin", "logo"),
#       delete("/tmp/logo.bin"));	   
#package_extract_file("uboot.bin", "/dev/uboot");
show_progress(0.100000, 0);
unmount("/system");
unmount("/data");
ui_print("[*] Installation complete.");
ui_print("");


6)So you can see above that "#" is put after the lines which are not be processed.

7)After finishing editing updater script according to your need,you will drag back updater script to my patch(7zip).

8)Now check by flashing Untouched PORT Rom then my patch zip.



My sample patch zip-DOWNLOAD

If you Want to Learn How To Port Then See Here

If you Use My Concept then PlZ add a link to here,its only a request,if you don't add then also NO Issue....
Last edited by digyvijaykumar123; 17th May 2014 at 10:25 AM.
The Following 8 Users Say Thank You to digyvijaykumar123 For This Useful Post: [ View ]
17th May 2014, 03:48 AM   |  #2  
digyvijaykumar123's Avatar
OP Senior Member
Flag Koderma
Thanks Meter: 1,278
 
319 posts
Join Date:Joined: Nov 2013
Donate to Me
More
IF YOU ARE GETTING ERRORS IN FLASHING PATCH ZIP AFTER PORT ZIP THEN USE NOTEPAD++ ONLY.And check updater script Carefully.
Or you can comment any questions below or PM me.I am Happy to help.
Last edited by digyvijaykumar123; 17th May 2014 at 05:31 AM.
The Following 3 Users Say Thank You to digyvijaykumar123 For This Useful Post: [ View ]
18th May 2014, 05:06 AM   |  #3  
Minions_Army's Avatar
Senior Member
Flag 【Gru Laboratories】
Thanks Meter: 155
 
434 posts
Join Date:Joined: Nov 2012
More
let see


is work on armv6?
18th May 2014, 02:20 PM   |  #4  
digyvijaykumar123's Avatar
OP Senior Member
Flag Koderma
Thanks Meter: 1,278
 
319 posts
Join Date:Joined: Nov 2013
Donate to Me
More
Quote:
Originally Posted by Minions_Army

let see


is work on armv6?

Yes,it will work
The Following User Says Thank You to digyvijaykumar123 For This Useful Post: [ View ]
20th May 2014, 06:39 AM   |  #5  
CODE_WORKX's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 506
 
428 posts
Join Date:Joined: Aug 2013
More
Quote:
Originally Posted by digyvijaykumar123

Yes,it will work

i tried porting color os but havind status 7 error in original zip....
20th May 2014, 08:07 AM   |  #6  
digyvijaykumar123's Avatar
OP Senior Member
Flag Koderma
Thanks Meter: 1,278
 
319 posts
Join Date:Joined: Nov 2013
Donate to Me
More
Quote:
Originally Posted by Avenger4droid

i tried porting color os but havind status 7 error in original zip....

Check your Updater Script.....or post here
20th May 2014, 08:20 AM   |  #7  
CODE_WORKX's Avatar
Senior Member
Flag Ahmedabad
Thanks Meter: 506
 
428 posts
Join Date:Joined: Aug 2013
More
Quote:
Originally Posted by digyvijaykumar123

Check your Updater Script.....or post here

ok giving.....

here is the updater script...http://d-h.st/b5U

i am porting from cross a7s mt6577 device

and i myself have mmx a110 canvas 2 .....
Last edited by CODE_WORKX; 20th May 2014 at 08:22 AM.
20th May 2014, 08:23 AM   |  #8  
DroidX77's Avatar
Senior Member
Flag Yogyakarta - Indonesia
Thanks Meter: 177
 
555 posts
Join Date:Joined: Feb 2013
More
For aosp base or manufactur rom? Like touchwiz, sense.
Sorry
21st May 2014, 11:58 AM   |  #9  
Lal Ayer's Avatar
Senior Member
Flag Mahendranagar,Nepal
Thanks Meter: 127
 
287 posts
Join Date:Joined: Mar 2013
Donate to Me
More
i definitely try this method i like your hard work bro u r tooo goood man wow how Awesome Ever I will try bro

---------- Post added at 04:43 PM ---------- Previous post was at 04:41 PM ----------

Quote:
Originally Posted by Avenger4droid

i tried porting color os but havind status 7 error in original zip....

i thing thats kernel error include Boot.img and try
21st May 2014, 05:35 PM   |  #10  
cornelha's Avatar
Senior Member
Flag Durban
Thanks Meter: 584
 
1,286 posts
Join Date:Joined: Dec 2007
More
Quote:
Originally Posted by Lal Ayer

i definitely try this method i like your hard work bro u r tooo goood man wow how Awesome Ever I will try bro

---------- Post added at 04:43 PM ---------- Previous post was at 04:41 PM ----------



i thing thats kernel error include Boot.img and try

No, thats due to the recovery, use the latest CWM or TWRP for the device.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank