Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,983 Members 45,989 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Why is it so difficult to port a ROM from one device to another

Tip us?
 
Kenchinito
Old
#1  
Senior Member - OP
Thanks Meter 7
Posts: 190
Join Date: Jul 2011
Default [Q] Why is it so difficult to port a ROM from one device to another

What's up guys, I've always wondered about it. You can get technical on me.

Now, I'm not saying it is an easy task. I know it is quite time consuming and I appreciate all the developers out there that invest their time in ROM Cooking. I just don't understand why.

As far as I understand, android is just a virtual machine, that's why it's so easy to install into anything (even some windows phones) and that's why we need huge processing power to get a smooth interface in comparison to an iPhone 4.

If it's just a virtual machine, shouldn't it be easy to port ROMs? you know, like how I would install MAC OS on my Windows computer without much trouble with a virtual machine. I know we have drivers to take into account and all that stuff, but drivers are already available.

For example, there is NexSense (a Sense 6 port for the Nexus 5) and the camera doesn't work (I would assume because of driver issues). Can't I just take the camera driver from my stock ROM and shove it into the Sense ROM and call it a day? I know it's not that easy, but why isn't it?

I feel like I'm debating the meaning of life here hahaha...

Thank you for all your answers in advance
 
zelendel
Old
#2  
zelendel's Avatar
Moderator Committee - The Dark Knight
Thanks Meter 10818
Posts: 14,179
Join Date: Aug 2008
Location: Watching from the Shadows

 
DONATE TO ME
Quote:
Originally Posted by Kenchinito View Post
What's up guys, I've always wondered about it. You can get technical on me.

Now, I'm not saying it is an easy task. I know it is quite time consuming and I appreciate all the developers out there that invest their time in ROM Cooking. I just don't understand why.

As far as I understand, android is just a virtual machine, that's why it's so easy to install into anything (even some windows phones) and that's why we need huge processing power to get a smooth interface in comparison to an iPhone 4.

If it's just a virtual machine, shouldn't it be easy to port ROMs? you know, like how I would install MAC OS on my Windows computer without much trouble with a virtual machine. I know we have drivers to take into account and all that stuff, but drivers are already available.

For example, there is NexSense (a Sense 6 port for the Nexus 5) and the camera doesn't work (I would assume because of driver issues). Can't I just take the camera driver from my stock ROM and shove it into the Sense ROM and call it a day? I know it's not that easy, but why isn't it?

I feel like I'm debating the meaning of life here hahaha...

Thank you for all your answers in advance
This is because most apps are connected to the main frameworks files. Like your camera apk. The app is not completely self contained. It requires HTC framework files which is built to run on only HTC devices. Then you add in the needed kernels which are device dependent. And that is just the beginning. Not to mention a lot of this stuff is closed sourced so porting is not easy.





If hard work pays off then easy work is worthless
SearchFu
Never Ask someone to do something your not willing to at least try to do yourself.
"Gotham is the work of a madman"- NunHugger Current Nexus 5-12 Nightly


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes