[Vibrant Android Development] hayn_pryde46:
Porting SGS4G Roms To Vibrant For Gingerbread....

I Take No Responsibility For Any Damages Caused By This Remember You Wanted To Try It And Therefore Makes You Responsible For Your Own Phones...

TOOLS :

1. Install Android SDK

2. Download smali.jar & baksmali.jar From http://code.google.com/p/smali/

3. Both Files Will Have Version Numbers On The End, Take Those Off.

4. Place Both Files In /tools directory In Sdk Or Open A New Folder Place smali.jar & baksmali.jar In Folder And To Open A Comand Prompt Press Shift And Right Click...

5. Download Beyond Compare.

6. Download 7 Zip Or Winrar.

7. Download Any Apk Tool Like (Formatter)

http://xdaforums.com/showthr ... ?t=1108798

------------------------------------------------------------------------------------------------

8. Download A FLASHABLE i9000 ROM.

9. Download The SGS4G You Wish To Port.

INSTRUCTIONS :

Note:

To DECOMPILE (FROM /TOOLS) "java - jar baksmali.jar -o directory_out/ classes.dex"

To COMPILE (FROM /TOOLS) "java -Xmx512M -jar smali.jar source_directory/ -o New_Classes.dex"

1.)There Are Four Files That Need To Be Edited. They Are Framework.jar, Services.jar, Android_policy.jar And Settings.apk...

2.)Using 7-zip Or Winrar, You Need To Extract The Classes.dex From Each File Mentioned, On Both Roms The One You Are Porting And The Flashable i9000 Rom You Are Comparing It To. This Has To Be Done, Since The Vibrant And SGS4G Have Swapped Partitions.

3.)Extract One At A Time. Place classes.dex Into /tools Or New Folder With smali.jar & baksmali.jar In It, Decompile To Directory_Out Using Linux Codes Under Note. ( i.e, if using KI3 Flashable And Extracting Framework.jar, Then Name Directory_Out To KI3_Framework)

4.)Once You Have Extracted & Decompiled The Classes.dex From Each Of The Four Files On Each Rom, Open Beyond Compare.

5.)Load The Two Directoies You Want To Compare And Hit The Compare Button. Select Binary.

Example Of Directorys : Framework And Framework Or Android Policy And Android Policy From Each Rom

6.)Look For Anything With Storage Information. Anything To Do With Storage or /Sdcard. Here's The Problem ... The Reason Why We Are Doing This Is Because Internal Storage And External Storages Are Swapped, So You Must Right Click And Copy i9000s Storage Binerys To SGS4Gs

7.) You Replace Only Storage And Sd Part And Only Those Parts Thats All You Need.

8.)You Will See A Lot Of Differences .. Ignore Any Line Differences. ALL YOU NEED IS STORAGE AND SD.

9.)There Might Not Be Differences In Every File, Depending On The Rom To Be Ported With The Exception Of Settings.apk. USB Mounting Will Not Work If Not Edited Properly!

Examples : Grey Folders Are No Difference, Red Folders Are The Same Binerys But Different Depend On Build, The Blue Is Not The Same At All Depending On Build... Once Again All You Need Is Storage And Sd Card So Dont Mind The Colors To Much...

10.)Once Edited, Change Names Back To "classout" And Go Back Into Command Prompt And Compile. The New_classes.dex Will Appear In The /tools Category Or Your Folder.

11.)Open The SGS4G In 7 Zip or Winrar And Go Back To The Location Of Which The Original classes.dex File Came From That You'd Extracted Earlier. Delete It And Or Just Copy Over The New_classes.dex.

12.)Repeat This Process For Each classes.dex Edited.

So That's The Jar Files!

A.)The Apk File Is A Little Different Find The File With Formatter Write In .rar In Set Format And The Name Where It Says Name And Press The Big Rename It Will Become A rar File Inside Will Have The classes.dex You Must Edit Then Start From Number Three...

B.)When You Have Recompile The New classes.dex Go Back To Formatter Find The File And This Time In Set Format Put Apk, In Name Put "Settings" And Press The Big Rename Then Start On Number Ten...

So Thats The Apk File!

CHANGING THE MODEM & KERNEL.

1.)Open the Vibrant Rom in 7 Zip Or Winrar and Delete Kernel and Modem Or Just Copy Over

2.)Use An SGS4G Kernel With Vibrant Specifics and Copy over A Vibrant Modem.bin

Right Now We Don't Have A Vibrant Specific Kernel Yet So Just Wait On That...

3. Copy Over System/Etc/Vold Config. From I9000 To SGS4 Rom

Thats It... Edited By: hayn_pryde46

Original From : Bobbit And Dr Honk

http://xdaforums.com/forumdisplay.php?f=1068

Team Infinity Members :

Administrators :

Mr. Apocalypse

Serendipityguy

Moderators :

Ali1276

Episinagogue

Hayn_pryde46

Kevho00

Majin_X

Neobuddy89

Philliple97

Ronhoover88

Come Check The Team Out On The Team Infinity Forum :

http://www.techbonafide.com/index.php

IVE TRYED IT AND IT WORKS GREAT...Test Run Of Valhalla KI3 Only At Team Infinity Members Only Forum