Info 2 Advanced ROM porting.

Ok lets say that i want to port a rom from a totally different phone like a xperia phone to galaxy s3. If i want to port the hard way like comparing both the framework files and each other files and decompile them and add the files that are in the sony files to the galaxy like things like the sony folders inside the framework-res and the framework.jar will this in theory work?
CREATOR OF THE XDark ICS ROM