5,595,760 Members 37,635 Now Online
XDA Developers Android and Mobile Development Forum

[Dev] Development of Non-Carrier Specific Roms [Universal Roms For All Carriers]

Tip us?
 
incubus26jc
Old
(Last edited by incubus26jc; 15th July 2012 at 05:31 AM.)
#1  
incubus26jc's Avatar
Recognized Developer - OP
Thanks Meter 3569
Posts: 4,082
Join Date: Feb 2009
Location: Illinois

 
DONATE TO ME
Default [Dev] Development of Non-Carrier Specific Roms [Universal Roms For All Carriers]



Developers,

The Objective of this thread is to create a solution for flashing any rom on any carrier's GS3. (Us/Canada)

Every Rom on Every Carrier Will Be Supported.

Warm Roms developed by Myn, Myself and the rest of the Warm Team will be available on all carriers.

I will keep the OP updated.

Thanks, Incubus



First,

We need to Determine the Diffs and Seperate what each carriers device needs.

We will create an SVN Repo For Carrier Files.

We will Use An Updater.script and include all carrier files with in the Rom.zip and allow the script to determine the device and install the appropriate carrier files.

Any rom dev who wants to use this would place a folder in the rom.zip called "Devices" with all the carrier files seperated by sub-folders (Sprint, Verizon etc...)
The script would call for "Sprint" and install the carrier files from that sub- folder overtop of any carrier files that a rom might have in it. (boot.img, apns, libs etc...)

Example updater.script from Warm twopointthree on the Evo 3d. Worked very well.

Code:
#Mounting
ifelse(
    getprop("ro.product.device") == "shooter",
    (
        mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
    )
);


ifelse(
    getprop("ro.product.device") == "shooteru",
    (
        mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
    )
);


ifelse(
    getprop("ro.product.device") == "shooter",
    (
        mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
    )
);


ifelse(
    getprop("ro.product.device") == "shooteru",
    (
        mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
    )
);

#Install Device Files
ifelse(
    getprop("ro.product.device") == "shooter",
    (
        package_extract_dir("devices/shooter/system", "/system");
    ),
        package_extract_dir("devices/" + getprop("ro.product.device") + "/system", "/system");
);

ifelse(
    getprop("ro.product.device") == "shooteru",
    (
        package_extract_dir("devices/shooteru/system", "/system");
    ),
        package_extract_dir("devices/" + getprop("ro.product.device") + "/system", "/system");
);
So to this point I wonder if ro.product.device returns something different for each carrier device? If not we need another unique identifier.

If folks can
Code:
 adb shell
 getprop ro.product.device
and let us know what carrier they are on and what the getprop returns, we could determine this.

As soon as we obtain all the carrier files and put them into there proper layout, we will provide all files and code necessary to make your rom compatible with all carriers.
The Following 60 Users Say Thank You to incubus26jc For This Useful Post: [ Click to Expand ]
 
incubus26jc
Old
(Last edited by incubus26jc; 6th July 2012 at 06:36 PM.)
#2  
incubus26jc's Avatar
Recognized Developer - OP
Thanks Meter 3569
Posts: 4,082
Join Date: Feb 2009
Location: Illinois

 
DONATE TO ME



Unbrick Mods:

MSkips How-To Unbrick If you have Flashed a International GSM Boot.img
The Following 5 Users Say Thank You to incubus26jc For This Useful Post: [ Click to Expand ]
 
appdroid
Old
#3  
appdroid's Avatar
Senior Member
Thanks Meter 4294
Posts: 2,496
Join Date: Oct 2011
Location: Chicago

 
DONATE TO ME
Well I m No Dev! But if you are thinking about making one Rom to Rule Them All then you will have to get different modems/radios for each carrier & that means may be libs modification? I might be wrong !

Here is what libs i m thinking off.
libsecril-client.so
libril.so
libril-qcril-hook-oem.so
libril-qc-qmi-1.so
libreference-ril.so
Check out my blog, Everything about Android! & Click Here to See Android Tutorials on My Youtube.
New to XDA?? Check this out!!
I hate when People don't Thank after getting help So Got help! Great hit Thnx!!!!
If You Appreciate My work Please Donate & Help me Buy A Desktop Which will help me make Better ROMs!
 
incubus26jc
Old
(Last edited by incubus26jc; 27th June 2012 at 01:25 PM.)
#4  
incubus26jc's Avatar
Recognized Developer - OP
Thanks Meter 3569
Posts: 4,082
Join Date: Feb 2009
Location: Illinois

 
DONATE TO ME
Quote:
Originally Posted by appdroid View Post
Well I m No Dev! But if you are thinking about making one Rom to Rule Them All then you will have to get different modems/radios for each carrier & that means may be libs modification? I might be wrong !

Here is what libs i m thinking off.
libsecril-client.so
libril.so
libril-qcril-hook-oem.so
libril-qc-qmi-1.so
libreference-ril.so

Updated OP with a bit of info.
 
Epix4G
Old
#5  
Epix4G's Avatar
Senior Member
Thanks Meter 824
Posts: 2,126
Join Date: Sep 2011
Location: phoenix
On gnex it was small changes , but all kernels worked gsm and cdma ....it should be easy but don't know about one size fits all roms they have to port to gnex and may be same way here....but it's easy port

Sent from my Galaxy Nexus using Xparent ICS Blue Tapatalk 2
 
MДЯCЦSДИT
Old
#6  
MДЯCЦSДИT's Avatar
Recognized Developer
Thanks Meter 4620
Posts: 6,138
Join Date: Nov 2010
Location: in a box

 
DONATE TO ME
Build.prop - ril stuff
Framework-res.apk/res/xml/eri.xml
Framework.jar/telephony stuff
Libril-*
etc/apns-conf.xml

Sent from my SPH-D700 using Tapatalk 2
The Following User Says Thank You to MДЯCЦSДИT For This Useful Post: [ Click to Expand ]
 
anilkuj
Old
(Last edited by anilkuj; 27th June 2012 at 03:21 PM.)
#7  
Senior Member
Thanks Meter 30
Posts: 542
Join Date: Jul 2007
Location: jersey city

 
DONATE TO ME
I like the second suggestion , that way we can pick any existing Rom flash it and then flash the carrier specific zip. This is exactly what we had with at&t galaxy s ii, not sure who the dev was , but it worked great and we were able to use all the roms from the international s sii

Sent from my SAMSUNG-SGH-I747 using xda premium
 
dpwhitty11
Old
#8  
dpwhitty11's Avatar
Senior Member
Thanks Meter 204
Posts: 1,521
Join Date: Aug 2010
Location: Houston/Waco

 
DONATE TO ME
Quote:
Originally Posted by anilkuj View Post
I like the second suggestion , that way eek can pick any existing Rom flash it and then flash the carrier specific zip. This is exactly what we had with at&t galaxy s ii, not sure who the dev was , but it worked great and we were able to use all the roms from the international s sii

Sent from my SAMSUNG-SGH-I747 using xda premium
I agree, that's the best (and likely easiest) way to do things.

Sent from my ADR6300 using Tapatalk 2
Sprint Moto X
Samsung Galaxy Note 10.1
Creator of the DarkDroid Droid 3 rom.

Visit my website for my work.
 
anilkuj
Old
#9  
Senior Member
Thanks Meter 30
Posts: 542
Join Date: Jul 2007
Location: jersey city

 
DONATE TO ME
Just found the thread , the Dev was Entropy he did some awesome work for ATT Galaxy S II.

http://forum.xda-developers.com/show....php?t=1577015
The Following 2 Users Say Thank You to anilkuj For This Useful Post: [ Click to Expand ]
 
RampageRR
Old
#10  
RampageRR's Avatar
Senior Member
Thanks Meter 588
Posts: 1,006
Join Date: Mar 2011
Location: DC/MD/VA
Off the top of my head, the easiest thing to do after figuring out all the differences is to use Aroma Installer and have it ask which carrier the phone is on, and have it flash any specific files from there along with the rom.

The Following 4 Users Say Thank You to RampageRR For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes