5,595,000 Members 38,661 Now Online
XDA Developers Android and Mobile Development Forum

Possible to port Nexus 4 ROMs? The kernel source is out.

Tip us?
 
r00tb33r
Old
#1  
r00tb33r's Avatar
Member - OP
Thanks Meter 2
Posts: 43
Join Date: Apr 2010

 
DONATE TO ME
Default Possible to port Nexus 4 ROMs? The kernel source is out.

Is it possible to port over Nexus 4 ROMs (including 4.4 KitKat) to HTC First? HTC has released the kernel source code for our phones. I like the Nexus experience, and don't really want CM. If HTC made Nexus handsets for Google I would have bought that instead, but the minimalist nature of the First really appeals to me.
 
russian392
Old
#2  
russian392's Avatar
Senior Member
Thanks Meter 66
Posts: 560
Join Date: Apr 2012
Quote:
Originally Posted by r00tb33r View Post
Is it possible to port over Nexus 4 ROMs (including 4.4 KitKat) to HTC First? HTC has released the kernel source code for our phones. I like the Nexus experience, and don't really want CM. If HTC made Nexus handsets for Google I would have bought that instead, but the minimalist nature of the First really appeals to me.
um that isnt quite as easy as you think. porting cm is easier cause our phone has hardware relatives like the HTC One mini which use the same drivers and stuff like that. also our screen size matches the One mini so porting it would be as easy as 1-2-3. it does take time but it will be a hell of alot faster than BUILDING an AOSP rom. to make aosp work 1, you would need screensize and other hardware compatibility, then 2, the rom was never made for htc and 3, there is not flashable zip of the stock rom to base the OS off of, so it would requre alot more work. trust me , cm and and aosp arent much different so dont worry.
Motorola Atrix HD - Cyanogenmod 11 - Benchmark: 17260 @1.9GHz

HTC First - Rooted and S-OFF - Benchmark: 15980 @1.4GHz

LG Thrive - Cyanogenmod10.1 @Rashed97 - Benchmark: 5600 @800MHz

ZTE Avai - AOSP 2.3.7

Owner Of XDA Premium App
 
r00tb33r
Old
#3  
r00tb33r's Avatar
Member - OP
Thanks Meter 2
Posts: 43
Join Date: Apr 2010

 
DONATE TO ME
Quote:
Originally Posted by russian392 View Post
um that isnt quite as easy as you think. porting cm is easier cause our phone has hardware relatives like the HTC One mini which use the same drivers and stuff like that. also our screen size matches the One mini so porting it would be as easy as 1-2-3. it does take time but it will be a hell of alot faster than BUILDING an AOSP rom. to make aosp work 1, you would need screensize and other hardware compatibility, then 2, the rom was never made for htc and 3, there is not flashable zip of the stock rom to base the OS off of, so it would requre alot more work. trust me , cm and and aosp arent much different so dont worry.
Since I have no experience porting Android I can't say that you are incorrect, but isn't the binary architecture of applications the same (ARMv7-A Krait instruction set?), the screen is reasonably similar (1280x720 vs 1280x768, or Nexus 4 having 48 extra pixels on the width in portrait mode). Basically, it's not possible to just stick our device-specific kernel (and kernel modules, aka drivers) in there and have everything else just work? Before Android, I had no problems compiling a new Linux kernel for my distro with new options and applications worked just fine.

By the way, HTC promised a 4.4 KitKat update for HTC One Mini which AFAIK is 95% same as our First. Would it be possible to port that ROM? I'd still prefer Nexus though.
 
Kendosis
Old
#4  
Kendosis's Avatar
Member
Thanks Meter 14
Posts: 74
Join Date: May 2009
Location: New York
Yeah it would be possible to port 4.4 from the the One Mini, I'm not to sure how stable it would be though I'd foresee the usual bluetooth,camera,wifi issues.
 
r00tb33r
Old
(Last edited by r00tb33r; 8th December 2013 at 04:03 AM.)
#5  
r00tb33r's Avatar
Member - OP
Thanks Meter 2
Posts: 43
Join Date: Apr 2010

 
DONATE TO ME
Quote:
Originally Posted by Kendosis View Post
Yeah it would be possible to port 4.4 from the the One Mini, I'm not to sure how stable it would be though I'd foresee the usual bluetooth,camera,wifi issues.
Why would there be bluetooth/camera/wifi issues? We would use our own kernel with correctly configured modules. Both First and One Mini kernel source is out, can't we just run a comparison to see what's different? From the look of it they use the same Linux kernel release, so differences should be few (at least no false positives from different module versions). If newer Android builds will use newer Linux kernel, we can add those differences that we will know of after we do the First vs One Mini source comparison.

I think running the patch program would be an easy way to find the affected source files, as files with no differences will generate no patch lines.
 
russian392
Old
#6  
russian392's Avatar
Senior Member
Thanks Meter 66
Posts: 560
Join Date: Apr 2012
Quote:
Originally Posted by Kendosis View Post
Yeah it would be possible to port 4.4 from the the One Mini, I'm not to sure how stable it would be though I'd foresee the usual bluetooth,camera,wifi issues.
It's a darn LG. It would like either 1. Take for ever or 2. Impossible
We are using an HTC lol

Sent from my HTC first using xda app-developers app
Motorola Atrix HD - Cyanogenmod 11 - Benchmark: 17260 @1.9GHz

HTC First - Rooted and S-OFF - Benchmark: 15980 @1.4GHz

LG Thrive - Cyanogenmod10.1 @Rashed97 - Benchmark: 5600 @800MHz

ZTE Avai - AOSP 2.3.7

Owner Of XDA Premium App
 
r00tb33r
Old
#7  
r00tb33r's Avatar
Member - OP
Thanks Meter 2
Posts: 43
Join Date: Apr 2010

 
DONATE TO ME
Quote:
Originally Posted by russian392 View Post
It's a darn LG. It would like either 1. Take for ever or 2. Impossible
We are using an HTC lol

Sent from my HTC first using xda app-developers app
I don't follow what you mean about incompatibility of LG. It's still the same CPU architecture, and neither the Linux kernel nor the Android operating system are the developments of LG. Explain please.

I'm a computer engineer with a bit of custom hardware core development experience for embedded systems running Linux. I just don't see why there's a problem swapping out all the hardware-specific stuff from underneath Android as long as CPU architecture remains the same.
I have years of Linux experience, just not Android-specific.
 
russian392
Old
#8  
russian392's Avatar
Senior Member
Thanks Meter 66
Posts: 560
Join Date: Apr 2012
Quote:
Originally Posted by r00tb33r View Post
I don't follow what you mean about incompatibility of LG. It's still the same CPU architecture, and neither the Linux kernel nor the Android operating system are the developments of LG. Explain please.

I'm a computer engineer with a bit of custom hardware core development experience for embedded systems running Linux. I just don't see why there's a problem swapping out all the hardware-specific stuff from underneath Android as long as CPU architecture remains the same.
I have years of Linux experience, just not Android-specific.
well.
1. ive seen people try, its not as easy as it seems.
2. think of it as windows. you install it on your pc, it will take another several hours just to download and install various drivers and software for your hardware.
the thing is not just in the android OS. the os should be able to auto adapt itself to any android capable device. BUT we have to consider 1. drivers for the adreno 305 and the snapdragon 400. we also need kernel/baseband capability. the nexus is pretty much a BLANK device with absolutely nothing on it, and they install a stock kernel and stock rom. we would have to go in and make the kernel work, which hopefuly we can just use a ready built one, and then tweak the rom + kernel to fit the harware, whcih will include the capatative side of the screen, and camera, and everything else, and the ram. and that. although technicaly some of it will be there, its not as easy as you might think.[COLOR="Silver"]

edit

see, ive worked on an ARMv6 device, and its like much harder than an ARMv7 which has alot of similarities. and mind you, im not saying its IMPOSSIBLE, and im not saying its extremely hard. im sure it can be done, but porting cm form a mimic device like the One Mini would be easier than a Nexus 4, or a Nexus 5 at that.
Motorola Atrix HD - Cyanogenmod 11 - Benchmark: 17260 @1.9GHz

HTC First - Rooted and S-OFF - Benchmark: 15980 @1.4GHz

LG Thrive - Cyanogenmod10.1 @Rashed97 - Benchmark: 5600 @800MHz

ZTE Avai - AOSP 2.3.7

Owner Of XDA Premium App
 
russian392
Old
#9  
russian392's Avatar
Senior Member
Thanks Meter 66
Posts: 560
Join Date: Apr 2012
here. maybe this will make my point clear...its not easy eve for big companies, not just for a single person

http://www.androidcentral.com/why-yo...ersion-android
Motorola Atrix HD - Cyanogenmod 11 - Benchmark: 17260 @1.9GHz

HTC First - Rooted and S-OFF - Benchmark: 15980 @1.4GHz

LG Thrive - Cyanogenmod10.1 @Rashed97 - Benchmark: 5600 @800MHz

ZTE Avai - AOSP 2.3.7

Owner Of XDA Premium App
 
abrahammmmmmm_
Old
#10  
abrahammmmmmm_'s Avatar
Member
Thanks Meter 22
Posts: 98
Join Date: Oct 2013
Location: Salem
Wouldn't it be easier and more connivent to port from the HTC one xl? It does have a good amount of great ROMs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes