[SCRIPT]Automatic Porting![Windows and Linux][Works with all devices now!]

Search This thread

cpu999

Senior Member
Sep 7, 2011
528
608
I just wrote a script that would automatically port ANY carrier's gs3 roms to ANY other carrier's devices :)
So now u can use all the roms other carriers get :)
Let me know if there are any errors(not including not found errors)

THIS ON OMG! DROID
http://omgdroid.com/script-released...-iii-custom-rom-to-any-other-carriers-device/


The future of this:
1. Ill add all the proprietary files from all the carriers so u dont have to have a base. DONE
2. UNIVERSAL ZIPS FOR ALL US GS3S THIS WILL TAKE A LONG TIME CUZ I HAVE TO LEARN HOW TO USE AROMA OR WRITE AN UPDATER-SCRIPT BUT IT WILL COME!!!(If anyone wants to teach me how to do those just pm me.) DONE BUT NOT GONNA RELEASE YET
3.Ability to automatically port ANY phones ROM to ANY other phone as long as they have the same dpi, manufacturer, and arm version. WORKING ON THIS. LEARNING PYTHON

How to use:

Linux:
1. download the rom u want to port and a rom on the SAME android version as the rom u want to port
2. unzip both of them and place both folders in the same folder
3. download the script and place it in the folder with the two rom folders
4. open a terminal and cd to the directory
5. run:
Code:
chmod +x portscript.sh
./portscript.sh
6. PROFIT

FOR WINDOWS I RECOMMEND CYGWIN AND THE LINUX VERSION. THE WINDOWS VERSION IS KINDA MESSED UP.


Windows(experimental):
1. download the rom u want to port and a rom on the SAME android version as the rom u want to port
2. unzip both of them and place both folders in the same folder
3. download the script and place it in the folder with the two rom folders
4. rename the rom you want to port's folder to port
5. double-click on portscript.bat
6. PROFIT

How to port rom from galaxy nexus or any other xhdpi armv7 samsung device:
1. inside ur base rom, open META-INF/com/google/android/updater-script as a text file and copy the mount points (like mount(/dev/block/mmcblk0p8, /system) you would copy /dev/blockmmcblk0p8)
2. Download script and do the porting procedure
3. open up the rom u are porting's META-INF/com/google/android/updater-script and replace the mounting with the values u copied.
4. save and move the updater-script to ur base's META-INF/com/google/android/ and replace


NEW!!!
NO NEED FOR BASE:
1. download the nobase script zip and extract it somewhere
2. download a device's proprietary files zip and extract it into the folder of the script
3. run the script and follow directions!

how to add a device to the nobase script:

download and unpack the zip with ur desired carrier/android version
run the portdiffs.sh and follow directions!

Disclaimer:
Im not responsible for anything that might go wrong :)

Changelog:
v3: more fixes
v2: fixed update-binary being update_binary

DLs:

.bat s are windows, .sh is linux.
portscriptnobase is linux

https://docs.google.com/folder/d/0B2qlFDXo6JOreUY3RjFkRm1aeFU/edit

Thanks to d3athsd00r for helping
 
Last edited:

mocsab

Senior Member
Aug 16, 2011
3,723
1,372
West Milwaukee
www.shimmeringglass.com
I just wrote a script that would automatically port ANY carrier's gs3 roms to ANY other carrier's devices :)
So now u can use all the roms other carriers get :)
Let me know if there are any errors(not including not found errors)

How to use:
1. download the rom u want to port and a rom on the SAME android version as the rom u want to port
2. unzip both of them and place both folders in the same folder
3. download the script and place it in the folder with the two rom folders
4. open a terminal and cd to the directory
5. run:
Code:
chmod +x portscript.sh
./portscript.sh
6. PROFIT

Disclaimer:
Im not responsible for anything that might go wrong :)

DLs:
Realease 1 (Prealpha)

I am probably treading into an area that I have no business going to - but I would love to try this - and don't have enough knowledge to follow your instructions - was hoping you could explain the last few steps - I am going to sound like a real noob - but I don't understand some of the language -

what do you mean when you say "open a terminal and cd to the directory" ? if you can simplify that a little - I think I can do this and would love to try -

I think it means that I need to put save the roms and the script you have provided and place them in my C drive - then open a command prompt in that file (shift and right click I believe) is that correct?

second question - when I tried to download the file you provided from the lnk - it opened GOOGLE DRIVE and said I needed to request permission to access the file - ? I clicked request and am now waiting for some kind of response

?
 

iBotPeaches

Recognized Developer
Apr 8, 2011
951
4,500
Tampa
connortumbleson.com
Probably

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

No that will not work. If this does simple recovery mount point changes & build prop changes that will work for the family of SGS3 that share the same hardware. It will not work for i9300 as that has a different set of hardware. Thus, different libs and what not.

I doubt this script has the ability to decompile & merge correctly smali. Or has a downloadable collection of libs for i9300. Probably only works for the SGS3 variants like AT&T, telus, tmobile, etc.
 
  • Like
Reactions: Jenks0503

cpu999

Senior Member
Sep 7, 2011
528
608
No that will not work. If this does simple recovery mount point changes & build prop changes that will work for the family of SGS3 that share the same hardware. It will not work for i9300 as that has a different set of hardware. Thus, different libs and what not.

I doubt this script has the ability to decompile & merge correctly smali. Or has a downloadable collection of libs for i9300. Probably only works for the SGS3 variants like AT&T, telus, tmobile, etc.

Thanks :)
will be adding that to the OP
 

cpu999

Senior Member
Sep 7, 2011
528
608
I am probably treading into an area that I have no business going to - but I would love to try this - and don't have enough knowledge to follow your instructions - was hoping you could explain the last few steps - I am going to sound like a real noob - but I don't understand some of the language -

what do you mean when you say "open a terminal and cd to the directory" ? if you can simplify that a little - I think I can do this and would love to try -

I think it means that I need to put save the roms and the script you have provided and place them in my C drive - then open a command prompt in that file (shift and right click I believe) is that correct?

second question - when I tried to download the file you provided from the lnk - it opened GOOGLE DRIVE and said I needed to request permission to access the file - ? I clicked request and am now waiting for some kind of response

?

this script only works in linux for now.
Ill create a windows one once I have time
 

Greatminds

Senior Member
Jan 4, 2011
143
30
even if it ports the wifi calling from tmobile..it won't work on att. it'll not be recognized as it requires tmobile service to really work.

Sent from my SAMSUNG-SGH-I747 using xda premium
 

mocsab

Senior Member
Aug 16, 2011
3,723
1,372
West Milwaukee
www.shimmeringglass.com
Being a windows user I have to wait until you create a version for that - can't wait to try i t- I am not a developer but if this works - it opens all kinds of opportunties to try new thing s- I am adventurous = and I ahve insurance on my phone - lol - looking forward to giving this a shot -
 

Jirv311

Senior Member
Mar 30, 2008
1,136
303
Johnstown
I was wondering when someone was going to do this. I was going to if I could ever get time away from my real job. :D Thanks for the contribution!

Sent from my GS3 using xda premium
 

wwevoxnj

Senior Member
Sep 20, 2011
221
73
New Jersey
Sorry of this is a dumb question but if this script works then I could use this to use T-Mobile roms on my att s3?

Sent from my htc_jewel using xda app-developers app
 

wwevoxnj

Senior Member
Sep 20, 2011
221
73
New Jersey
Wow I can't wait for a windows version of this!! I'm addicated to flashing roms haha.

Sent from my htc_jewel using xda app-developers app
 

edmondt

Senior Member
Mar 21, 2006
700
295
Toronto
I've flashed many T-Mobile roms on my at&t / rogers s3 already...

FreeGS3 r6, Gigajule, Wicked v5 all works great as long as you flash the right kernel and never flash a modem...



Sent from my SGH-T999 using Tapatalk 2
 
  • Like
Reactions: wwevoxnj

Top Liked Posts

  • There are no posts matching your filters.
  • 34
    I just wrote a script that would automatically port ANY carrier's gs3 roms to ANY other carrier's devices :)
    So now u can use all the roms other carriers get :)
    Let me know if there are any errors(not including not found errors)

    THIS ON OMG! DROID
    http://omgdroid.com/script-released...-iii-custom-rom-to-any-other-carriers-device/


    The future of this:
    1. Ill add all the proprietary files from all the carriers so u dont have to have a base. DONE
    2. UNIVERSAL ZIPS FOR ALL US GS3S THIS WILL TAKE A LONG TIME CUZ I HAVE TO LEARN HOW TO USE AROMA OR WRITE AN UPDATER-SCRIPT BUT IT WILL COME!!!(If anyone wants to teach me how to do those just pm me.) DONE BUT NOT GONNA RELEASE YET
    3.Ability to automatically port ANY phones ROM to ANY other phone as long as they have the same dpi, manufacturer, and arm version. WORKING ON THIS. LEARNING PYTHON

    How to use:

    Linux:
    1. download the rom u want to port and a rom on the SAME android version as the rom u want to port
    2. unzip both of them and place both folders in the same folder
    3. download the script and place it in the folder with the two rom folders
    4. open a terminal and cd to the directory
    5. run:
    Code:
    chmod +x portscript.sh
    ./portscript.sh
    6. PROFIT

    FOR WINDOWS I RECOMMEND CYGWIN AND THE LINUX VERSION. THE WINDOWS VERSION IS KINDA MESSED UP.


    Windows(experimental):
    1. download the rom u want to port and a rom on the SAME android version as the rom u want to port
    2. unzip both of them and place both folders in the same folder
    3. download the script and place it in the folder with the two rom folders
    4. rename the rom you want to port's folder to port
    5. double-click on portscript.bat
    6. PROFIT

    How to port rom from galaxy nexus or any other xhdpi armv7 samsung device:
    1. inside ur base rom, open META-INF/com/google/android/updater-script as a text file and copy the mount points (like mount(/dev/block/mmcblk0p8, /system) you would copy /dev/blockmmcblk0p8)
    2. Download script and do the porting procedure
    3. open up the rom u are porting's META-INF/com/google/android/updater-script and replace the mounting with the values u copied.
    4. save and move the updater-script to ur base's META-INF/com/google/android/ and replace


    NEW!!!
    NO NEED FOR BASE:
    1. download the nobase script zip and extract it somewhere
    2. download a device's proprietary files zip and extract it into the folder of the script
    3. run the script and follow directions!

    how to add a device to the nobase script:

    download and unpack the zip with ur desired carrier/android version
    run the portdiffs.sh and follow directions!

    Disclaimer:
    Im not responsible for anything that might go wrong :)

    Changelog:
    v3: more fixes
    v2: fixed update-binary being update_binary

    DLs:

    .bat s are windows, .sh is linux.
    portscriptnobase is linux

    https://docs.google.com/folder/d/0B2qlFDXo6JOreUY3RjFkRm1aeFU/edit

    Thanks to d3athsd00r for helping
    4
    Quote: Originally Posted by drwx

    seriously? what do you think it means? terminal = command prompt... cd = change directory.

    Whoa Bro, everyone was a noob once. 2

    I am a s 60 year old dude who has no technical background and is only trying to learn - when people ask me questions about things I am an expert in - I don't try to make them feel small - but instead try to help them so they can learn - what threw me about his oringal instruction was the term "terminal' - I understand Command Prompt - but didn't understand the other in that context - I am self taught - spoiled by windows - and actualy can do much more than youmight think -- I am not an expert - not a dev or a themer - I just love playing around with this awesome phone and try to get the most out of it - I just don't know the language. I have learned a phenomenal amount from others who have had the patience and willingness to to teach or explain and for those I am very grateful. Next time you want to help someone - leave the wise cracks and offer what you can - it is and will be appreciated.
    2
    i've always used slashes on all windows releases, despite architecture.

    I believe i've got all the errors corrected. Not going to flash the port right now cause I've got some studying to do, but here you go. Had to rename it to .txt to upload.

    There was also an issue with some of your delete commands, you were trying to use rmdir \directory\* and i changed it to del /f /s/q \directory\* but i think that deleted too much actually, probably didn't need to delete the sub directories. Thats what the /s argument does.


    Dang it, just noticed that you need to change copy to

    xcopy /s \directory\*
    1
    Probably

    Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

    No that will not work. If this does simple recovery mount point changes & build prop changes that will work for the family of SGS3 that share the same hardware. It will not work for i9300 as that has a different set of hardware. Thus, different libs and what not.

    I doubt this script has the ability to decompile & merge correctly smali. Or has a downloadable collection of libs for i9300. Probably only works for the SGS3 variants like AT&T, telus, tmobile, etc.
    1
    miui porting to get you booting maybe

    MIUI just to boot with bugs

    base= already works on your phone
    port= what you want to work on your phone.

    *always delete folders before moving in another. never merge folders, could jack some **** up.

    This is just to hopefully get you booting. you will have to run ddms or logcat so you can iron out your bugs.
    I am using an evo lte 4g and this is a minimum port that i would do just to boot.
    Also make sure you are porting JB-JB and ICS-ICS, It will save you alot of time,And if possible If you are using a sammy try to port from a sammy.

    1. take boot image from base and put into port.
    2. go into the ports meta-inf and open the updater. ,you will then see Blk number that pertains to system, data somtimes, and kernel or boot,img
    you will be changing those numbers to match the updater that goes with your phone. also check the getprop up top if you have one or just remove it.

    3. go into ports build prop and change all phone specific crap in there, ie. htc_ville to htc_jewel and also ville to jewel. because i would be porting a ville rom and i have a jewel. you may also have to change the density ie 240 - 320

    4. go into ports system folder and look for usr, and replace it with one from base

    5.go into etc folder and replace out the firmware folder
    also replace out the apns-conf.xml

    6.go into lib folder in port and replace out egl,hw and modules from base rom(working rom)

    i can alwyas use this method and boot right up on aosp versions for my EVO LTE 4G. you will have bugs but thats the fun part.

    Thats it guys! have fun and read, read, read! i know it sucks but it has to be done.

    OP i put this here only for refference and is not a way to port all roms. if you want me to remove just lemme know and i will do so promptly.

    * No that if you try this method and you jack your **** up.. XDA the Op nor I are responsible.
    common things that can cause you to brick when porting are.....the wrong boot.img or kernel , writing files to the wrong partition ie. system kernel and data blks---see updater script.