[HOWTO] Build KitKat for Nexus 5 - Nexus 5 General

Hi all,
I typed my notes on building KitKat AOSP/Kernel for the Nexus 5 (hammerhead) here: http://nosemaj.org/howto-build-android-kitkat-nexus-5 . It's the cumulative result of a lot of hours of hacking! Hope it is helpful.
Best wishes,
Jameson

jhwilliams said:
Hi all,
I typed my notes on building KitKat AOSP/Kernel for the Nexus 5 (hammerhead) here: http://nosemaj.org/howto-build-android-kitkat-nexus-5 . It's the cumulative result of a lot of hours of hacking! Hope it is helpful.
Best wishes,
Jameson
Click to expand...
Click to collapse
Good work, where is your ROM?

jhwilliams said:
Hi all,
I typed my notes on building KitKat AOSP/Kernel for the Nexus 5 (hammerhead) here: http://nosemaj.org/howto-build-android-kitkat-nexus-5 . It's the cumulative result of a lot of hours of hacking! Hope it is helpful.
Best wishes,
Jameson
Click to expand...
Click to collapse
Thank you very much
I have my Ubuntu all set up and ready to go!
Sent from my Nexus 5 using Tapatalk

neobuddy89 said:
Good work, where is your ROM?
Click to expand...
Click to collapse
Hey @neobuddy89 -- I primarily typed that up to help enable other developers, but it could be fun to post a fastboot-compatible update package. Any tips on a good filehost so I don't slam my personal box?
Also I think I personally will stick with Stock on my personal device, but maybe someone will use this as a jumping-off point for an improved ROM.
It's straight AOSP, but with enough proprietary junk to have things like connectivity, location, play store, gmail etc.

In short, just grab the working tree
Click to expand...
Click to collapse
I know this will result in many gigs of data, do you know about how many? I've been downloading for about 24 hours.
Sent from my Nexus 5 using XDA Premium 4 mobile app

koe1974 said:
I know this will result in many gigs of data, do you know about how many? I've been downloading for about 24 hours.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
According to the Android documentation, source is about 8.5GB, then goes up to 30GB for a single build.

Thanks for this OP. Currently learning how to build from source. I was going to start with pure AOSP, but I got too excited for Paranoid Android 4.0. I set everything up and the build is compiling right now as I type this, but your guide is a lot more informative than the one I used. It would be good to build AOSP just because it's base android, but I really wanted PA haha. Anyways it's really in-depth and I'm sure I'll learn a thing or seven from it. Thanks

jhwilliams said:
According to the Android documentation, source is about 8.5GB, then goes up to 30GB for a single build.
Click to expand...
Click to collapse
Your repo builds without a hitch. Great stuff! It was too easy and helped confirm my system is configured correctly.
Now to try using your notes and do it manually. I am going to try to use them on 4.4.1.
Nice winter weekend project.
Sent from my Nexus 5 using XDA Premium 4 mobile app

RoyJ said:
Thanks for this OP. Currently learning how to build from source. I was going to start with pure AOSP, but I got too excited for Paranoid Android 4.0. I set everything up and the build is compiling right now as I type this, but your guide is a lot more informative than the one I used. It would be good to build AOSP just because it's base android, but I really wanted PA haha. Anyways it's really in-depth and I'm sure I'll learn a thing or seven from it. Thanks
Click to expand...
Click to collapse
Building from source isn't hard, it's mostly following directions. Cherry picking and fixing merge conflicts is where the real fun begins! :beer::beer::beer:

du bist krank said:
Building from source isn't hard, it's mostly following directions. Cherry picking is where the fun and fixing merge conflicts is where the real fun begins! :beer::beer::beer:
Click to expand...
Click to collapse
Eager to learn, my friend! Once I get familiar with the build process I plan to learn how to cherry pick commits / fix errors arising from cherry picking said commits. The PA build failed last night, but EvanA told me that would happen. They merged 4.4.1 and updated blobs so the build should work now. I just synced their source again and it is building now. Once I get a few successful builds I'll dive into all that. I really dig threads like this. We had a developer support thread in the gnex forum. I did a lot of reading over there, but hadn't got into building yet. That has to be one of my favorite things about the nexus. Community support. I mean I had a PA team member help teach me how to build their unreleased ROM. Awesome.
Sent from my Nexus 5 using Tapatalk

koe1974 said:
I am going to try to use them on 4.4.1.
Click to expand...
Click to collapse
Cool! Yea, I'm just waiting for the factory images and binary packages to get posted. It may work with the 4.4 binaries, but I'm keen to wait a few days in case it's a waste of time for now.

Wow, never realised such a powerful pc was required.. I don't think my 2GB AMD machine will cut it

jhwilliams said:
Cool! Yea, I'm just waiting for the factory images and binary packages to get posted. It may work with the 4.4 binaries, but I'm keen to wait a few days in case it's a waste of time for now.
Click to expand...
Click to collapse
They are available now.
Sent from my Nexus 5 using XDA Premium 4 mobile app

Thanks for this. I just started upgrading my Ubuntu yesterday. Going from 12.04 to 12.10 to 13.04 to 13.10 lol.
Once I get that going I'm gonna come back and check this out.
Sent from my Hammerhead

EDIT: replacing libmmcamera_interface.so from stock does fix the problem.
Anyone getting a thin green line artifact along the left or bottom edge (depending on orientation) of videos recorded with the rear camera and a wider artifact on the right with front facing camera?
Perhaps a solution. Post 85. http:// forum.xda-developers.com/showpost.php?p=47283918&postcount=85
Sent from AOSP koeMod 4.4.2 w/ Franco kernel

koe1974 said:
They are available now.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Ah, just remembered to update the thread. My blog post is the same, but I have a new tree available:
repo init -u git://github.com/jamesonwilliams/platform_manifest.git -b android-4.4.2_r1

thanks for this man

I need to add a few files to the ramdisk. Any idea how to do this before the final make?
I would prefer not to have to repack to boot.img.
Sent from AOSP koeMod 4.4.2 w/ Franco kernel

this is really helpful,thanks a lot man. Maybe I'll learn it

Related

[REF] Kernel sources for Nexus S released :)

Hello it's my first post in the Nexus S forums, probably not the latest
History for the Nexus S sources begins now.
Original source is here :
http://twitter.com/#!/dnaltews/status/14849739858116608
By Brian Swetland, Android kernel developer
Nexus S kernel source for those wanting an early start: http://android.git.kernel.org/?p=kernel/samsung.git (make herring_defconfig)
Click to expand...
Click to collapse
Thank you Brian !
Google experience -> Kernel source released before the phone
suhas_sm said:
Google experience -> Kernel source released before the phone
Click to expand...
Click to collapse
Yeah, that's wonderful. I think for a developer it's a sufficient reason for itself to get this phone
Awesome
Nero+dow1.4+oclf
So that the devs can keep the "rooted within hours after release" benchmark. Google rock!
lokto7 said:
So that the devs can keep the "rooted within hours after release" benchmark. Google rock!
Click to expand...
Click to collapse
Fastboot oem unlock makes that unnecessary
Hopefully this allows us to have 720p
Sent From The Moon... with a HTC Glacier
Barrel of fun so far! lol
This makes me want this phone. I love my Cappy, but Google is so much more on the ball than Samsung....
Supercurio: get one Nexus S please, your kernel work will be highly appreciated
I feel like I'm going to burst from excitement!
Can anyone who is well versed, take alook around and see if there's video out of 3.5mm or even video over usb setup?
Go on with Galaxy S !!
supercurio said:
Yeah, that's wonderful. I think for a developer it's a sufficient reason for itself to get this phone
Click to expand...
Click to collapse
So then, are YOU getting one?
Viralblack said:
Barrel of fun so far! lol
Click to expand...
Click to collapse
Hey...HEY! What are YOU doing here?! So, you are camping out at Best Buy tonight in the lovely weather you have out that way?
Nexus S kernel (and other resources) will improve software performance on Galaxy S.
Anyone to postulate on this comment?
Need to keep digging, but I could not find the info in the kernel. Is the gps the same infamous bcm4751? All drivers here refer to bcm47xx...
ekin said:
Nexus S kernel (and other resources) will improve software performance on Galaxy S.
Anyone to postulate on this comment?
Click to expand...
Click to collapse
Probably. But making work GPS will require work, and some other feature willl miss.
2.3 Source available now
Now only time will tell what great things the Dev community will do
Just a word of the wise from JBQ:
"Even though Nexus S is designed to be suitable for AOSP work, there
are some caveats. I very strongly recommend against trying to use
Nexus S for anything related to AOSP at the moment. Trying to unlock
or use your Nexus S for AOSP work could easily turn it into a Nexus B
(where B means "brick"); I have two of those, they're not very useful.
I'll send some guidelines about what is currently possible once I've
finished pushing the source code.
@ http://groups.google.com/group/android-building/browse_thread/thread/091172a81604c8a0
Click to expand...
Click to collapse

[KERNEL] Generic Android 3.0 kernel source

I have found sources on the Google git which look like the generic (non device-specific) Android 3.0 kernel sources and have uploaded them to my git https://github.com/Ezekeel/android-3.0. I guess it might be possible to merge these into current Nexus S kernels (and also kernels for other devices) to get a kernel compatible with ICS. I will try that later on; until then I guess other kernel devs probably also find these interesting and useful.
Ezekeel said:
I have found sources on the Google git which look like the generic (non device-specific) Android 3.0 kernel sources and have uploaded them to my git https://github.com/Ezekeel/android-3.0. I guess it might be possible to merge these into current Nexus S kernels (and also kernels for other devices) to get a kernel compatible with ICS. I will try that later on; until then I guess other kernel devs probably also find these interesting and useful.
Click to expand...
Click to collapse
Yes, thanks Ezekeel, I've been browsing through the tree since minutes ago when you opened it and one thing I noticed at least is that it lacks drivers/video/samsung for Nexus S, dunno more of what is missing from our device specific tree, but it might be possible to make this 3.0 working ye.
Lol Ezekeel, I've seen you praying Jean-Baptiste Queru for the Crespo-tree sources! I Think we have to wait one or two weeks...
franciscofranco said:
Yes, thanks Ezekeel, I've been browsing through the tree since minutes ago when you opened it and one thing I noticed at least is that it lacks drivers/video/samsung for Nexus S, dunno more of what is missing from our device specific tree, but it might be possible to make this 3.0 working ye.
Click to expand...
Click to collapse
Pretty much all the device-specific stuff is missing, but maybe we are lucky and no changes have to be made in the device-specific source for the Nexus S and we can simply keep these parts from our current code.
franciscofranco said:
Yes, thanks Ezekeel, I've been browsing through the tree since minutes ago when you opened it and one thing I noticed at least is that it lacks drivers/video/samsung for Nexus S, dunno more of what is missing from our device specific tree, but it might be possible to make this 3.0 working ye.
Click to expand...
Click to collapse
I'm pretty sure this is known, but in case it's being overlooked. The gpu in the galaxy nexus is the same as in the nexus s, just supposedly higher clocked. so if drivers are available for the galaxy nexus gpu, can't they be made to work with nexus s somehow? or does it make a huge difference cause they are on different SoC's?
Luxferro said:
I'm pretty sure this is known, but in case it's being overlooked. The gpu in the galaxy nexus is the same as in the nexus s, just supposedly higher clocked. so if drivers are available for the galaxy nexus gpu, can't they be made to work with nexus s somehow? or does it make a huge difference cause they are on different SoC's?
Click to expand...
Click to collapse
JBQ said that even if gpu is the same (omap4430) in galaxy nexus and in pandaboard he wasn't able to run the gnexus driver on the pandaboard and vice-versa because of some library-dependencies. So I think the drivers will not work out of the box...
awesome!
so your efforts semi paid off. lets hope the device specific stuff gets released shortly.
Nice to know
simms22 said:
awesome!
so your efforts semi paid off. lets hope the device specific stuff gets released shortly.
Click to expand...
Click to collapse
I expect the date we get proprietary files and the date of the ICS OTA to somehow magically be the same.....
Sent from my Nexus S using XDA App
matt2053 said:
I expect the date we get proprietary files and the date of the ICS OTA to somehow magically be the same.....
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
You might be right. It might also coincide quite nicely with the Galaxy Nexus release date. I got a funny feeling that it will not be officially available on the Nexus S before it launches on the Galaxy Nexus.
Maximilian Mary said:
You might be right. It might also coincide quite nicely with the Galaxy Nexus release date. I got a funny feeling that it will not be officially available on the Nexus S before it launches on the Galaxy Nexus.
Click to expand...
Click to collapse
In one of the google groups replies JBQ said that they will always focus on the flagship phone.
Up until recently that was Nexus S.
Now the torch was passed and it's Galaxy Nexus first.
They will not dull the luster of their flagship phone by making libs and drivers for released phones available before the flagship phone has had time to shine.
I merged these sources into the android-samsung-2.6.35 source and got 450 merge conflicts that I would have to resolve manually. That would a giant pain in the ass and probably not worth to effort.
Ezekeel said:
I merged these sources into the android-samsung-2.6.35 source and got 450 merge conflicts that I would have to resolve manually. That would a giant pain in the ass and probably not worth to effort.
Click to expand...
Click to collapse
That will be a huge effort to fix, and it would probably cause more harm than good if you managed to fix the conflicts. I'm sure we'll have our sources in one/two weeks tops, so that's not worth the hassle in my opinion.
Ezekeel said:
I merged these sources into the android-samsung-2.6.35 source and got 450 merge conflicts that I would have to resolve manually. That would a giant pain in the ass and probably not worth to effort.
Click to expand...
Click to collapse
Thanks for all the effort on that, and for "reminding" Google to release that source.
I'm going to guess that this wouldn't work out, but would it be possible to try to crowd source this at all? Is it the type of thing that would require a lot of knowledge about the kernel, or would a competent programmer be able to walk his way through the conflicts and resolve them?
dvgrhl said:
Thanks for all the effort on that, and for "reminding" Google to release that source.
I'm going to guess that this wouldn't work out, but would it be possible to try to crowd source this at all? Is it the type of thing that would require a lot of knowledge about the kernel, or would a competent programmer be able to walk his way through the conflicts and resolve them?
Click to expand...
Click to collapse
I guess one could make a community effort to get this done. However it still is not guaranteed that the sources, even if properly merged without errors, will compile, because some device specific updates may be missing. Or some of the proprietary files included also need an update. It just seems like a lot of work for something that potentially never will work - especially since a properly working kernel with everything in place will be released in a few weeks tops.
Ezekeel said:
I guess one could make a community effort to get this done. However it still is not guaranteed that the sources, even if properly merged without errors, will compile, because some device specific updates may be missing. Or some of the proprietary files included also need an update. It just seems like a lot of work for something that potentially never will work - especially since a properly working kernel with everything in place will be released in a few weeks tops.
Click to expand...
Click to collapse
First thanks for opening this thread, is a good idea.
At this moment I will wait some days to see if the crespo kernel 3.0 goes into public git, otherwise I will join the project to move the kenel since it will have multiple benefits.
Kalim

Cm14 for oneplus 3

Cm14 branch for oneplus 3 is up on github
https://github.com/CyanogenMod/android_device_oneplus_oneplus3/tree/cm-14.0
https://github.com/CyanogenMod/android_kernel_oneplus_msm8996/tree/cm-14.0
Here we go!
That was fast!
Sweeet. Hell even the 6P already has an asop based ROM now. Thing's are gonna get good with this version of Android.
Well that's good news alright it'll just take a while theres not even gapps yet.
I'd totally take an AOSP rom thought to tide over the wait.
Roxas598 said:
Well that's good news alright it'll just take a while theres not even gapps yet.
I'd totally take an AOSP rom thought to tide over the wait.
Click to expand...
Click to collapse
Only a matter of time.
Is there any nightly right now we can install?
prottoman said:
Is there any nightly right now we can install?
Click to expand...
Click to collapse
Are you serious?
prottoman said:
Is there any nightly right now we can install?
Click to expand...
Click to collapse
Yep it's right here go get your nougat on!
nadejo said:
Are you serious?
Click to expand...
Click to collapse
Really? is surprising, 5 months ago we got a Developer Preview, they can start developing since that day, not now, it does not seem so strange people asking for that.
prottoman said:
Really? is surprising, 5 months ago we got a Developer Preview, they can start developing since that day, not now, it does not seem so strange people asking for that.
Click to expand...
Click to collapse
you got this wrong!! the source was released now. since that they can start the developing. the developer Preview was just to test nougat and for the developers to adjust their apps to the new android version.
prottoman said:
Really? is surprising, 5 months ago we got a Developer Preview, they can start developing since that day, not now, it does not seem so strange people asking for that.
Click to expand...
Click to collapse
Not to mention the fact that the Dev Previews were only for Nexus devices, and never had source released until yesterday. Be patient or buy a Nexus.
Sent from my ONEPLUS A3000 using Tapatalk
Nightfire-XX said:
you got this wrong!! the source was released now. since that they can start the developing. the developer Preview was just to test nougat and for the developers to adjust their apps to the new android version.
Click to expand...
Click to collapse
Completely correct
prottoman said:
Really? is surprising, 5 months ago we got a Developer Preview, they can start developing since that day, not now, it does not seem so strange people asking for that.
Click to expand...
Click to collapse
Should've gotten a Nexus man.? Glad i kept mine after buying my 1+3.
Oh, this seems promising! Will wait for future updates!
This may sound like a very dumb question but isn't CM14 the same as Android 7/Nougat, because CM13 was Android 6?
DevSquad said:
This may sound like a very dumb question but isn't CM14 the same as Android 7/Nougat, because CM13 was Android 6?
Click to expand...
Click to collapse
Yes, you got it right.
DevSquad said:
This may sound like a very dumb question but isn't CM14 the same as Android 7/Nougat, because CM13 was Android 6?
Click to expand...
Click to collapse
you were right in your assumption....
LOL j/k welcome to android my friend and if you look back at the history off cm you will see the numbering system matches android numbering system in its own way. So yes CM14 is 7.0
I hope vulkan api will be included.
Well the branch is already up for 14 days. There are also no changes yet so we have to be patient, it still might take a few weeks until we see a nightly. I hope Android will one day be unified for all devices, so that we have a unified interface for all the hardware... This would make developing so much easier. Imagine we you just install a ROM like a OS to your computer and like 95% of the hardware is already ready to go.

Thread Closed

Thread closed to avoid confusion.
Info.
Bobcus Leper said:
On reading up in the Galaxy Nexus forums, I saw that the TI-OMAP 4 was not supported in AOSP Lollipop and above. Is this why our OMAP phones perform poorly on ART based ROMs, while ROMs using the dalvik compiler are smoother? In AOSP Nougat, the Snapdragon 800 and 801 chips using the Adreno 330 GPU are no longer supported as well. I guess my question is if it will it be possible to reverse engineer OMAP-4 drivers for Nougat that can support the new surface view texture renderer?
Sent from my Asus Nexus 7 (2013) using XDA Labs
Click to expand...
Click to collapse
I MIGHT be possible to support it, but would take a bit of work, offloading that stuff to the CPU (which is just what we need, right?) and all of which is above my skill level.
Bobcus Leper said:
On reading up in the Galaxy Nexus forums, I saw that the TI-OMAP 4 was not supported in AOSP Lollipop and above. Is this why our OMAP phones perform poorly on ART based ROMs, while ROMs using the dalvik compiler are smoother?
Click to expand...
Click to collapse
The performance problems are probably a mix of slowish eMMC (have to load the precompiled ART files, and they're not exactly tiny), lack of main memory (ART has a bigger memory footprint), and an unsuitable CPU that was outdated when the phone was built, nevermind nowadays. The latter two are what seem to really kill us in CM13; if we're not stuck reclaiming memory, we're saturating the CPU : \
Having Motorola stroll in and develop some up-to-date, optimized drivers sure would be cool, though...hardware is hardware, but good firmware can make a lot out of little.
Nougat is apparently taking a step back and re-introducing JIT execution...so if our resident maintainer does somehow pull off yet another miracle and we get CM14 on here, I'd expect less I/O and memory pressure at the very least. The stock partitions would become viable again too, what with /data/ not being clogged by ART precompiles, and being able to run off them might also offer a (small) performance increase. /system/ is gonna be a tight fit, though...
But using drivers built in two previous, different eras of Android, most of which were for another device...seems like it's gonna take some serious work.
Sent from my Asus Nexus 7 (2013) using XDA Labs
Galaxy Nexus has Nougat!
MWisBest said:
Nougat build is up. No, I have not died, and neither has the Galaxy Nexus.
Decided to take an extra couple days to get this build stable rather than rushing out something that boots and does nothing else, sorry for the delay.
I can't verify the full functionality of the RIL since I don't have a SIM in my GNex these days, so let me know if there's any issues with that.
Everything else should be working well though.
No idea what to do for GApps at this time. I haven't tried them yet.
Download: aosp_n_tuna_2016-08-27.zip
As usual this was a team effort. @Ziyan helped, and @Hashcode (who I thought had died) helped as well.
Click to expand...
Click to collapse
Sent from my Asus Nexus 7 (2013) using XDA Labs
Last time i talked with i Dev about Andoid 7 on the Droid 4, i was told that it would not be possible because of SELinux. But that Info is almost a year old. Maybe someone has more up to date information about this.
1f5 said:
Last time i talked with i Dev about Andoid 7 on the Droid 4, i was told that it would not be possible because of SELinux. But that Info is almost a year old. Maybe someone has more up to date information about this.
Click to expand...
Click to collapse
Thanks! Maybe we should ask @stargo about it. Although, I know stargo likes to surprise people with a new Android version.
Sent from my Motorola XT912 using XDA Labs
Really hoping this old beast will get CM14 due to the coding magic of stargo or some other guys out there.
I recently aquired a completely new Droid 4 from a Verizon reseller in mint condition. Now I never want to live without a slider again!
It is a bit slow, gets hot sometimes and becomes pretty much unuseable with Google Play installed, but who needs that stuff anyways.
Can keep me warm in winter and after replacing stock apps with Naked Browser and Simple Music Player it runs well and fast.
Please don't let this slider die. The only alternative to this device is the Photon Q and this needs to be soldered due to the missing SIM slot.
Bro i think it will have a cm14 for the droid 4
Bro, there say that it is official for the droid 4 to get cm14 check on gammerson .com
Some new info from JooJooBee666.
u.b.o.o.t said:
Hi folks! I had some spare time to setup CM13 build tool chain and - maybe too late for @Septfox - I made a custom kernel with LMK accounting for swap memory, i.e. LMK does only consider memory pages as free which won't require swapping, now. In order to not spam this thread anymore with LMK issues and memory tuning, I created a new thread: http://forum.xda-developers.com/droid-4/development/wip-custom-kernel-lowmemorykiller-t3470411
Click to expand...
Click to collapse
JooJooBee666--
This is cool. I'll test these out here as well. If things look good I'll see about getting LMK changes added to the cm13 kernel and upcoming cm14 kernels (work just began).:good:
Bobcus Leper said:
CM14 confirmed?:fingers-crossed::good:
Click to expand...
Click to collapse
JooJooBee666 --
Not really confirmed (as in no promises it will ever be fully functional as of yet). Just started working on getting things compiling. After that, it's along ways a way from anything usable as there are some new hurdles to overcome thanks to additional lock-downs on SE Linux. So yeah, :fingers-crossed: is right.
Bobcus Leper said:
Thread closed to avoid confusion.
Click to expand...
Click to collapse
Please ask a Moderator to close your thread - otherwise it isn't actually closed....
I've closed it anyway.

Compiling Unofficial CyanogenMod 14.1 for Nexus 6

Hello XDA Community,
I am interested in using the unofficial build of CyanogenMod 14.1 available here, but I would like to learn how to compile on my own from the repository provided by the developer. Unfortunately, I do not know how to go about doing this. Could someone please help me out? I have looked at the CyanogenMod Wiki entry for how to compile CyanogenMod for the Nexus 6, but the information is out of date according to what I was told in a post I made on Stack Exchange's Android Q&A site. The only thing that I understand about the build process is that I need to use Linux, so I have set up a virtual machine in VMware running the latest version of Ubuntu. Where do I go from here?
Thank you,
David B.
David B. said:
Hello XDA Community,
I am interested in using the unofficial build of CyanogenMod 14.1 available here, but I would like to learn how to compile on my own from the repository provided by the developer. Unfortunately, I do not know how to go about doing this. Could someone please help me out? I have looked at the CyanogenMod Wiki entry for how to compile CyanogenMod for the Nexus 6, but the information is out of date according to what I was told in a post I made on Stack Exchange's Android Q&A site. The only thing that I understand about the build process is that I need to use Linux, so I have set up a virtual machine in VMware running the latest version of Ubuntu. Where do I go from here?
Thank you,
David B.
Click to expand...
Click to collapse
To be honest You will be better off dual booting. Compiling with a VM normally has more issues then not.
Then I would look at Google developer page.
Also keep in mind that compiling from CM means you get all the bugs they never fixed. You would be better off going with AOSP and then finding the features you want to add and then add them yourself.
zelendel said:
To be honest You will be better off dual booting. Compiling with a VM normally has more issues then not.
Then I would look at Google developer page.
Also keep in mind that compiling from CM means you get all the bugs they never fixed. You would be better off going with AOSP and then finding the features you want to add and then add them yourself.
Click to expand...
Click to collapse
I would love to build my own CyanogenMod based on AOSP and then merge in the features, but I don't even know how to build directly from AOSP.
Honestly, all I really want is stock with all of the additional developer mode features that CyanogenMod has along with root access. I love the ability to use root without extra apps, and wireless ADB is sweet when I'm too lazy to go get my USB cable. And of course, I want to be able to use future versions of Android on my phone even though 7.0.1 is supposed to be the last version for Shamu. Could I somehow merge those aspects together and just pull patches from AOSP, build, and flash?
Also what's wrong with using a VM to compile? I've read that problems occur if you don't have enough RAM allocated to the VM, but I've assigned it 16GB so that should not be a problem. As for attaching my phone to the VM, I am using VMware, which has better support for removable devices than VirtualBox.
I'm sorry if I misunderstand something you said. It's probably obvious, but I know pretty much nothing about what I am doing which means I'm likely to ask lots of questions that seem ridiculous to those that are well-versed in this sort of thing.
David B. said:
I would love to build my own CyanogenMod based on AOSP and then merge in the features, but I don't even know how to build directly from AOSP.
Honestly, all I really want is stock with all of the additional developer mode features that CyanogenMod has along with root access. I love the ability to use root without extra apps, and wireless ADB is sweet when I'm too lazy to go get my USB cable. And of course, I want to be able to use future versions of Android on my phone even though 7.0.1 is supposed to be the last version for Shamu. Could I somehow merge those aspects together and just pull patches from AOSP, build, and flash?
Also what's wrong with using a VM to compile? I've read that problems occur if you don't have enough RAM allocated to the VM, but I've assigned it 16GB so that should not be a problem. As for attaching my phone to the VM, I am using VMware, which has better support for removable devices than VirtualBox.
I'm sorry if I misunderstand something you said. It's probably obvious, but I know pretty much nothing about what I am doing which means I'm likely to ask lots of questions that seem ridiculous to those that are well-versed in this sort of thing.
Click to expand...
Click to collapse
You do know that there is an app for SU built into CM right? So it is no extra apps then any other rom.
Could you yes but it will be lots of work due to what CM changes in the source code. It is one of the many reasons (on top of years old bugs that were never fixed) That many teams stopped using them as a source. The Shamu will be supported by 3rd party developers for a while to come.
Normally ram is an issue but other issues also happen.
I dont know anything about having to attach your device to VM as I have never used VM due to advise from the developers here.
Asking questions is not that big of a deal as long as you do your research. There are tons of TUT on the site about setting up a build setup. Just use the search and spend a few days reading. Mainly where the licenses are concerned. Also commit authorship. Which is you make your own rom it is very important.
zelendel said:
You do know that there is an app for SU built into CM right? So it is no extra apps then any other rom.
Could you yes but it will be lots of work due to what CM changes in the source code. It is one of the many reasons (on top of years old bugs that were never fixed) That many teams stopped using them as a source. The Shamu will be supported by 3rd party developers for a while to come.
Normally ram is an issue but other issues also happen.
I dont know anything about having to attach your device to VM as I have never used VM due to advise from the developers here.
Asking questions is not that big of a deal as long as you do your research. There are tons of TUT on the site about setting up a build setup. Just use the search and spend a few days reading. Mainly where the licenses are concerned. Also commit authorship. Which is you make your own rom it is very important.
Click to expand...
Click to collapse
Okay, so I have done some research and have a solution for how to use root with stock Android, but as soon as stock Android support is dropped from the Nexus 6 I will have to compile it myself which I am not sure how to do and would like to learn. Do you have any suggestions for what to go to learn since everything I am finding is not about compiling, but is instead about using an existing build?
David B. said:
Okay, so I have done some research and have a solution for how to use root with stock Android, but as soon as stock Android support is dropped from the Nexus 6 I will have to compile it myself which I am not sure how to do and would like to learn. Do you have any suggestions for what to go to learn since everything I am finding is not about compiling, but is instead about using an existing build?
Click to expand...
Click to collapse
Here you go
https://source.android.com/source/initializing.html
Mind you getting root is more then adding an app for it. You will also have to do some kernel edits.
zelendel said:
Here you go
https://source.android.com/source/initializing.html
Mind you getting root is more then adding an app for it. You will also have to do some kernel edits.
Click to expand...
Click to collapse
Thanks! I also found this. I have not really looked at it too much yet, but it seems like it has the potential to help me with what I want. Why would I need to make kernel edits? I thought all I needed to do was use TWRP to flash SuperSU after flashing the ROM.
David B. said:
Thanks! I also found this. I have not really looked at it too much yet, but it seems like it has the potential to help me with what I want. Why would I need to make kernel edits? I thought all I needed to do was use TWRP to flash SuperSU after flashing the ROM.
Click to expand...
Click to collapse
SuperSU edits the kernel when you flash it. Most of what allows root is in the kernel.
Yes that is a great resource. Just take your time and read it. You could have a working set up and build in about 2 days (given the first sync of the source code could take more then 24 hours depending on your connection.
zelendel said:
SuperSU edits the kernel when you flash it. Most of what allows root is in the kernel.
Yes that is a great resource. Just take your time and read it. You could have a working set up and build in about 2 days (given the first sync of the source code could take more then 24 hours depending on your connection.
Click to expand...
Click to collapse
One thing that I still cannot figure out after all of this reading is what to do to get AOSP to build for devices that are not officially supported by it. Granted, this is not a problem for the Nexus 6 right now, but it will be eventually, and I want to know how to handle it when it does become an issue. I've started cloning the repository. My connection gets a top download speed of 60Mbps so it should be reasonably fast.
David B. said:
One thing that I still cannot figure out after all of this reading is what to do to get AOSP to build for devices that are not officially supported by it. Granted, this is not a problem for the Nexus 6 right now, but it will be eventually, and I want to know how to handle it when it does become an issue. I've started cloning the repository. My connection gets a top download speed of 60Mbps so it should be reasonably fast.
Click to expand...
Click to collapse
At that point you will need to know what you are doing as you will have to make the code changes to make it bootable. I hate to say it but the n6 maybe doa after this as anything after 7.1 will need dual partition setup which the n6 doesn't have
zelendel said:
At that point you will need to know what you are doing as you will have to make the code changes to make it bootable. I hate to say it but the n6 maybe doa after this as anything after 7.1 will need dual partition setup which the n6 doesn't have
Click to expand...
Click to collapse
What's stopping the phone from being repartitioned in the same way you repartition a hard drive?
David B. said:
What's stopping the phone from being repartitioned in the same way you repartition a hard drive?
Click to expand...
Click to collapse
The main issue is none of the software for the n6 are made to work with it. All the drivers have to be rewritten. Also all of the new Vulcan graphics drivers won't work on the n6. This is why it didn't get all the features of 7.0
zelendel said:
The main issue is none of the software for the n6 are made to work with it. All the drivers have to be rewritten. Also all of the new Vulcan graphics drivers won't work on the n6. This is why it didn't get all the features of 7.0
Click to expand...
Click to collapse
I had not heard of this before. I was researching it online a bit and I cannot figure out which features are missing from the Nexus 6 version of Nougat. Also, Nougat has to support older hardware for devices that don't support Vulkan, so there's no reason they can't do that for Android O, and it they don't, surely someone smarter than I will be able to hack it together.
David B. said:
I had not heard of this before. I was researching it online a bit and I cannot figure out which features are missing from the Nexus 6 version of Nougat. Also, Nougat has to support older hardware for devices that don't support Vulkan, so there's no reason they can't do that for Android O, and it they don't, surely someone smarter than I will be able to hack it together.
Click to expand...
Click to collapse
That's the thing is android O will only be official supported by devices that can use it. Remember the nexus 6 support ended in October so there won't be an official O release for it.
Will there be a hacked together set up? Oh I'm sure there will be. It will just be without the Vulcan graphics drivers and the new update system which needs the dual partition layout.
The missing features are no background updates, no Vulcan drivers among other things
zelendel said:
That's the thing is android O will only be official supported by devices that can use it. Remember the nexus 6 support ended in October so there won't be an official O release for it.
Will there be a hacked together set up? Oh I'm sure there will be. It will just be without the Vulcan graphics drivers and the new update system which needs the dual partition layout.
The missing features are no background updates, no Vulcan drivers among other things
Click to expand...
Click to collapse
Well if the only things I lose are Vulkan and background updates, I am cool with that. It sounds like Vulkan is intended for games, and since I hate mobile gaming, an adapted build that works with the existing graphics drivers is not a concern at all. As for background updates, I would rather not have those because I like to know when my phone receives updates.
David B. said:
Well if the only things I lose are Vulkan and background updates, I am cool with that. It sounds like Vulkan is intended for games, and since I hate mobile gaming, an adapted build that works with the existing graphics drivers is not a concern at all. As for background updates, I would rather not have those because I like to know when my phone receives updates.
Click to expand...
Click to collapse
The Vulcan driver will be replacing the graphics drivers for everything soon. I can't think of much as I never use stock software.
zelendel said:
The Vulcan driver will be replacing the graphics drivers for everything soon. I can't think of much as I never use stock software.
Click to expand...
Click to collapse
I am sorry, but I am afraid I do not quite understand what it is that you said. What can't you think of?
David B. said:
I am sorry, but I am afraid I do not quite understand what it is that you said. What can't you think of?
Click to expand...
Click to collapse
There were many features that came with 7.0 like the new advanced doze and some other stuff. I dont use stock software and to be honest most of the stuff from 7.0 wasnt even really worth the update to me.
I have had a nexus since day 1 on and off and this was the first time I wasnt excited about the update. Even less with the new updates coming and google locking android down more as well as them moving most of the new stuff to closed sourced stuff. Heck even just having the bootloader unlocked is causing things not to work.
zelendel said:
There were many features that came with 7.0 like the new advanced doze and some other stuff. I dont use stock software and to be honest most of the stuff from 7.0 wasnt even really worth the update to me.
I have had a nexus since day 1 on and off and this was the first time I wasnt excited about the update. Even less with the new updates coming and google locking android down more as well as them moving most of the new stuff to closed sourced stuff. Heck even just having the bootloader unlocked is causing things not to work.
Click to expand...
Click to collapse
Really? What doesn't work with the unlocked bootloader?
David B. said:
Really? What doesn't work with the unlocked bootloader?
Click to expand...
Click to collapse
Things like android pay and saftynet. They are now starting to look for unlocked bootloaders. then you have those that are blocking apps due to root or xposed.

Categories

Resources