Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,733 Members 54,259 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
cpu999
Old
(Last edited by cpu999; 13th October 2012 at 09:02 PM.)
#1  
Senior Member - OP
Thanks Meter 602
Posts: 524
Join Date: Sep 2011

 
DONATE TO ME
Default [SCRIPT]Automatic Porting![Windows and Linux][Works with all devices now!]

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-...rriers-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/0B2...FkRm1aeFU/edit

Thanks to d3athsd00r for helping
Im just an 8th grade kid who likes linux a lot...

Please Donate to me, as it'll also get you guys faster builds
<<< DONATE LINK
Current projects:
IllusionROM
Build script for total noons (no work needed, just pick things out of a list. Very WIP. http://github.com/chaos agent/buildscript )
The Following 34 Users Say Thank You to cpu999 For This Useful Post: [ Click to Expand ]
 
ice3186
Old
#2  
Senior Member
Thanks Meter 71
Posts: 194
Join Date: Feb 2008
does this apply for international GS3????
 
cpu999
Old
#3  
Senior Member - OP
Thanks Meter 602
Posts: 524
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by ice3186 View Post
does this apply for international GS3????
Probably

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Im just an 8th grade kid who likes linux a lot...

Please Donate to me, as it'll also get you guys faster builds
<<< DONATE LINK
Current projects:
IllusionROM
Build script for total noons (no work needed, just pick things out of a list. Very WIP. http://github.com/chaos agent/buildscript )
 
LuRock
Old
#4  
LuRock's Avatar
Senior Member
Thanks Meter 729
Posts: 1,659
Join Date: Jan 2010
What!! No way dude!!




White Hot! GS3.
Previously known as DJ Lu
 
mocsab
Old
#5  
mocsab's Avatar
Senior Member
Thanks Meter 603
Posts: 2,267
Join Date: Aug 2011
Location: West Milwaukee
Quote:
Originally Posted by cpu999 View Post
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

?
My Phone Galaxy S5 G900T
My Rom: - X-Note TMT v.5 | Alliance 4.1
My Recovery: TWRP
Kernel: KT-SGS5 - NF6 - KTweaker
My Carrier - ATT




Former Devices: ☆Galaxy Note 3☆HTC ONE☆Galaxy S IV☆Galaxy Note II☆Galaxy S3☆EVO 4g LTE☆Nexus☆Epic 4G☆Treo(W)☆Palm Treo☆(P)
 
iBotPeaches
Old
#6  
iBotPeaches's Avatar
Senior Member
Thanks Meter 2074
Posts: 699
Join Date: Apr 2011
Location: KCK

 
DONATE TO ME
Quote:
Originally Posted by cpu999 View Post
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.
The Following User Says Thank You to iBotPeaches For This Useful Post: [ Click to Expand ]
 
cpu999
Old
#7  
Senior Member - OP
Thanks Meter 602
Posts: 524
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by iBotPeaches View Post
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
Old
#8  
Senior Member - OP
Thanks Meter 602
Posts: 524
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by mocsab View Post
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
 
cpu999
Old
#9  
Senior Member - OP
Thanks Meter 602
Posts: 524
Join Date: Sep 2011

 
DONATE TO ME
Quote:
Originally Posted by LuRock View Post
What!! No way dude!!




White Hot! GS3.
Its just an automation of my method of porting
 
smartguy044
Old
#10  
smartguy044's Avatar
Recognized Developer
Thanks Meter 3986
Posts: 1,253
Join Date: Mar 2012
Location: North Carolina

 
DONATE TO ME
yea it def will not work for 9300 youll have to change a lot of stuff just to get it booting







Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes