[Q] How to compile AOSP 4.2.2 for Nexus 4 - Nexus 4 Q&A, Help & Troubleshooting

Hi, I would like to learn how to build a vanilla AOSP ROM with ubuntu.
Is the first time for me, so I need a complete guide. :angel:
thanks

Or someone can compile it for me... Pure Aosp without any tweak or mod...
And of course future update of aosp.

There are several guides, no this isn't a LMGTFY link, but it is a Google link. The first two are good guides.
Point being, you may need to refer to more than one guide until you have your build environment set up properly, and all the other variables in place. Might take you some time before you've built successfully, but it's a worthwhile experience.
Edit: obviously the links above point to some 4.2.1 resources, you can work your way around that with additional Google Ninja stuff. Seriously, go for it, it's fun.

No one is going to write you a personalized step-by-step guide on how to do it you need to read up and learn to do it yourself.
Start here:
http://source.android.com/
This section will tell you how to set up you pc to run it
http://source.android.com/source/building.html
As an example here is a guide to setting up an AOSP build environment, yes its for another device but it will give you an idea of what is involved in setting it up.
http://androidforums.com/optimus-m-all-things-root/619804-guide-building-aosp-more.html

Related

Need Help Compileing Linux Kernel

Hello,
I am wanting to learn how to build my own custom kernel and eventually rom.
I have done some "cooking" with kitchens but am more interested in complete build from source - This would include the kernel itself and stock set of apps that go along. I have googled many subjects but what I find seems to be outdated or just doesnt work. Can someone please point me in the right direction.
Thanks
I have only built the kernel. Have not been able to build the whole ROM.
Look up the relevant stuff on Cyanogenmod wiki
I'll Give it a try. How did you learn to build the kernels?
Thanks

HDX Toolkit & Your Input

As most of you may know, my HDX Toolkit is quite useful for the hdx. I have been trying my best changing and adding features that are useful for you guys but may not have the understanding to develop the toolkit better. I'm not dropping bad news, I feel as if the toolkit should be a community project. I'm still new to Android development but I feel like I'm missing something. I need your help!
The toolkit I put together is written in batch and then compiled into a exe. Currently it is a little messy (not in a bad way) because of some compiler code I used through the toolkit. My plan is to keep my compiled toolkit active* and also start a development toolkit project but have the code completely open and allow you guys to make and post additions and iterations specifically for the hdx.
Why did I type this?
I am looking for proper suggestions and guidance about, how to make the thread, what features or additions can at the time be added to the toolkit, and who is possibly willing at some point in time contribute.
My expectations are just a proper toolkit for this device. More details will be give at a later time.
The copyright will be CC BY-NC-SA 4.0 just in case one is needed.
It will be some time to fix things but I'm guessing around late September early October I'll post it.
*I am running short on time lately and may not compile new versions in the far future.**
**I'm going to be updating the toolkit soon.

[REQ] Development Environment Setup for Moto G 2014

Hey there,
INTRO:
I'm a relatively new member to XDA and the Android Community as well. The Moto G (2014) is my first Android phone since ever. I was using iPhones (4,4S,5,5S), iPads and Mac and have Jailbroken and Developed Tweaks, Apps etc for iOS.
Now that I got my hands on this amazing device, I would love to contribute to the Community by developing and porting ROMs for the Moto G 2014.
WHAT? WHY?:
So if it isnt too much trouble could someone post a device-specific instructions, checklist and downloads to setup a development environment for Moto G (2014). I'm a pretty fast learner so any crude form of instructions would suffice. With the right heading and instructions I'm sure that I can contribute to this community.
PAST CONTRIBUTIONS:
If you're curious about what I've preciously done, just Google "Krishna Sagar iPhone" and you'll see. I've developed apps, Jailbreak tweaks and I've even been mentioned and credited by CNET.com for discovering the first solid evidence about 4G in the iPhone 5. (Before it was announced or released. Yea!! )
So any help at all is appreciated! You know.. Help Me to Help You!
Regards
Krishna Sagar
http://www.krishna.bz
PS: I've searched XDA and found some tutorials but I'm looking for some device specific instructions and downloads such as Device Tree, Kernal, ROM sources etc.. and crude up-to-date instructions on how to setup a Build-Environment. Thanks
Reserved by OP:
Once I get a working set of instruction and successfully setup my Dev Environment, I will post concise step-by-step instructions on how I set it up so that others can use it as a reference.
Okay....i just learned these things past month.
So tell me where you reached so that i can guide you.
N.K.V. said:
Okay....i just learned these things past month.
So tell me where you reached so that i can guide you.
Click to expand...
Click to collapse
I am at the very beginning... From the start would be great. Like i said.. I dont want a lengthy tutorial.. I'll find the instructions myself
For eg: just say setup Android Kitchen instead of walking me through the installation setup.
I just need a crude checklist to begin. I've doing some searxhing of my own.. But like i said, i need a bit more devicr specific approach!
Device specific approach would start once you have downloaded the repo.
Till then.... Approach for all the devices would be same.
Que: You are talking about building the rom from source right??
Or you just want to modify the stock rom!?
N.K.V. said:
Device specific approach would start once you have downloaded the repo.
Till then.... Approach for all the devices would be same.
Que: You are talking about building the rom from source right??
Or you just want to modify the stock rom!?
Click to expand...
Click to collapse
Havent decided really.. Might start by porting ROMs initially.. then gradually work on my own ROM
Thanks btw for your help
KrishnaSagar said:
Havent decided really.. Might start by porting ROMs initially.. then gradually work on my own ROM
Thanks btw for your help
Click to expand...
Click to collapse
And where can I download these device repos?
For Porting ROMs : Usually ports are done from working Cyanogen build or AOSP build, which we doesn't have yet. But, k2wl and shawn are main developers working towards that. Once we get those fully working then only you will be able to port another roms.
Regarding Device Repo: It's required to build rom from source, not for porting one.
repo is a "Source Code" file, which is approx 25-30 GB in size.

Help for Noob trying to compile first CM kernel.

Hello all.
Like the title says, I am trying to compile my first kernel.
I really like the CM11 i9505 nightly kernel, but it would be amazing in my world if it also had voltage/overclock/and gov additions.
It is my understanding that if I compile the kernel myself adding these features would be easy as they mostly exist in a single file that I could copy from similar kernels.
I have been trying to build my first build environment, but it seems that I am failing in amazing ways by trying to follow the CM guides on the their wiki. :crying:
I have an i3 dell 6420 laptop with Ubuntu (installed and functional) that I am dedicating to this effort, but I seem to need spoon feeding on this first attempt.
Does any one have a good step by step guide that I could follow for building the CM11 kernel?
Failing that does anyone have the time to chat in a live state on a weekend or late evening to help build this?
Of course if someone has a CM11 nightly kernel with the added features, I wouldn't object to using that and not reinventing the wheel.
Wrong section,
Ask a forum moderator (any one) to move your thread to the developer only section(of this subfroum)[emoji6]
Sent from my GT-I9505 using Tapatalk
He could just read the kernel tutorials in the android or chef central sections

REQ rooted kernel 5.1.1 for Sm-t235 (source was published a month or two back)

sometime back this was posted
http://forum.xda-developers.com/showpost.php?p=63556533&postcount=135
unfortunately moonbutt closed his thread just when I and another member posted boot image etc on the board..understand he may have moved on to better things
not knowledgeable here but appreciate if someone can take this up or redirect this to some dev who can make a rooted kernel since the source has been published
thanks
SM-T237P
Would love to root my 5.1.1 tab , so I too would be begging for another developer to step in to fill this need. I need a kernel with UVC video support.
OKAY so now I know my posts were getting deleted when I asked for T235 kernel root
zitomd said:
Would love to root my 5.1.1 tab , so I too would be begging for another developer to step in to fill this need. I need a kernel with UVC video support.
Click to expand...
Click to collapse
yesterday or may have been on Sat night, on the T533 thread I tried to catch moonbutt's attention by pointing to the T235 source (when apparently he was saying the T533 had no source but was addressing that kernel) and now that post has gone like on his closed thread (just when it seemed he was taking an interest thanking me for providing boot.img and other files)
anyway...need some dev who can volunteer to work on this and at least someone who would respond yes or no (deleting posts maybe to avoid a side conversation)
I pulled the source started to look it up and looked up on how to modify kernel..looked doable to a point but this is from a total novice (all i know is to mod some apk, compile/re-compile but no building stuff)
mac231us said:
yesterday or may have been on Sat night, on the T533 thread I tried to catch moonbutt's attention by pointing to the T235 source (when apparently he was saying the T533 had no source but was addressing that kernel) and now that post has gone like on his closed thread (just when it seemed he was taking an interest thanking me for providing boot.img and other files)
anyway...need some dev who can volunteer to work on this and at least someone who would respond yes or no (deleting posts maybe to avoid a side conversation)
I pulled the source started to look it up and looked up on how to modify kernel..looked doable to a point but this is from a total novice (all i know is to mod some apk, compile/re-compile but no building stuff)
Click to expand...
Click to collapse
mac,
i had your post removed because it was interfering in H's thread. I tried with this device a little while ago but testers seem to think they are at liberty to not follow instruction, or just change their minds mid-stream like they haven't just wasted my time and resources. . The upside would be if you have the source and the setup to compile it and thereby test your own work then, i can absolutely run you through what you need to do, The tricky part is knowing which tools you need for the packing/unpacking of the ramdisk.
If this is a qcom/msm device you will need AIK which is the best solution.
If this is a marvell variant you will need ketut's degas bootimg toolkit which is the best solution.
You need [likely] to apply the patch mentioned in my thread to security/selinux/selinuxfs.c
Be aware that samsung's source releases are usually incredibly sloppy and the defconfigs for devices are usually somewhat off, missing config settings.
Check for sdcardfs xattrs, virtual xattrs, etc . you need to make sure those are selected in order for your internal and external storage to mount.
Find the correct defconfig for your device and post it as a zipped attachment. or check my thread and look at my sources on git, specifically the commit history [msm devices mostly] to get an idea of what you need. You can get a linux os running in a virtual machine and compile just fine as long as you have all the pre-requisites installed. The getting started link in my signature is a rough/general guide to help get you up and running.
m
ps, my thread is just locked, not closed, i was getting too many OT/non-dev postings. I open it when/if i have something new and then close it again.
thanks moonbutt74...totally understand...appreciate the links in your signature and other resources...will start looking into it (long long journey but gotta try)
mac231us said:
thanks moonbutt74...totally understand...appreciate the links in your signature and other resources...will start looking into it (long long journey but gotta try)
Click to expand...
Click to collapse
mac,
no prob, recommended step 1, get your linux distro set up, stongly recoommend kali/debian 2.0, either in vm or better as 2nd os in a dual boot scenario.
m

Categories

Resources