mjs1015
Member
How do you apply patches. Sorry for the noon question. Just running into the make/SRC errors. Thanks for this great tutorial!
How do you apply patches. Sorry for the noon question. Just running into the make/SRC errors. Thanks for this great tutorial!
To make up for my useless rambling earlier, on my build using Ubuntu 10.04, the methods listed in the OP for Java didn't work. What worked for me was:
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk
Hopefully that helps the next person that has issues. I discovered that tip from here.
OP thank you so much for the guide. I am having one issue though.
When i go to compile or make the rom. it gives me this
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_24".
The correct version is: Java SE 1.6.
Please follow the machine setup instructions at
https://source.android.com/source/download.html
i am using the open jdk as i could not get the sun jdk to install, i have even tried several ways to get the sun jdk to install with no luck. please help
Hello,
First, I would like to thank the OP for creating this guide.
I would like to create a stock, fully-working, and as close to a factory image as possible Jelly Bean ROM for my VZW Galaxy Nexus. I would like to be able to do this *without* downloading any additional tools (like clockwork mod, or nandroid, etc.). I would only like to use the official tools, such as adb to perform this task.
I get that the AOSP needs to be downloaded, along with the proprietary drivers for the GN. That then needs to be built, and then flashed over to the device utilizing ADB.
So far, it appears to building OK for me following the instructions posted.
The problem, however, is GAPPS. Another user asked earlier how GAPPS are actually obtained. It was suggested that the GAPPS should be obtained from one of the other JB ROMS. However, I am still curious as to how those other ROM maintainers obtained the GAPPS in the first place, and how to actually flash them onto the device.
Thus, these are my questions:
1.) Can they (GAPPS) simply be included with the ROM during the build phase (much like the proprietary drivers)?
2.) If not #1, then how can they be flashed over with ADB?
3.) Which GAPPS would work with the VZW Galaxy Nexus if building a ROM in this manner? (Assume that I was a Google employee making this ROM for the device)
4.) Can the built rom image itself be run in the android emulator? I would much rather not have to use my phone, which I need to use and be stable, as a testing device to play around with this.
I really don't understand why Google doesn't just include the GAPPS as a proprietary component similarly to the proprietary drivers.
Thank You
Thank you for replying.
The only reason why I would need GAPPS is to get the Market app installed. Without it, you can't install any apps.
Working with the .zip files, I would assume that you would need to use nandroid/CWR... How exactly can you use them temporarily? Are they simple to uninstall? (Sorry for asking uber-beginner questions)
The big thing that I would like to achieve is to use Jelly Bean right now, and then go back and use the official Verizon approved Jelly Bean ROM once they decide to release it. So, I guess I could always use nandroid/CWR (What's the main difference btw? The last time I did any rooting and ROM installing was with the OG Droid), and then completely wipe the phone with the official ROM when it's released.
Again, thank you so much for the help!
$ fastboot flash recovery recoveryimage.img
$ fastboot boot recovery recoveryimage.img
I presume you're unlocked now, and if you're not, I'd do it, but be cautious--it will wipe everything including the "sdcard" folder. So back your stuff up . Unlocking allows you to flash unsigned packages and gives you a load of freedom when testing. I'm also 90% sure you need to be unlocked to flash a custom recovery, but that's only because I've never done one (flash a recovery) without the other. Perhaps someone will chime in with regards to that.
I was able to fix the second part of this error thanks to the guide, but I'm still getting the find: 'src' and "PRODUCT_COPY_FILES *** ignored." errors. I stopped it to look and wasn't too concerned because it looked like most of the ignored files were ringtones (I use my own, so no big deal) but then I noticed this line:What follows is a series of head scratching errors that all the Googling in the world hasn't helped me with:
find: `src': No such file or directory...
dmmarck said:See the difference? You're telling fastboot that you want to boot the recovery image instead of installing it to the recovery "partition" or area.
I was able to fix the second part of this error thanks to the guide, but I'm still getting the find: 'src' and "PRODUCT_COPY_FILES *** ignored." errors. I stopped it to look and wasn't too concerned because it looked like most of the ignored files were ringtones (I use my own, so no big deal) but then I noticed this line:
PRODUCT_COPY_FILES frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml ignored.
Which seems like it would, without a doubt, result in a nonworking build. At the very least, a build that couldn't get a signal.
Any advice?
[Edit: Well, I finished the build and flashed it... and it works fine! Though the version number is 4.0.9.99.999.9999.99999 for some reason. Sigh.]
Thank you dmmarck for explaining the bootloader setup, and thank you plasmoidia for showing the backup commands.
In the command you pasted in, where is the recoveryimage.img stored? Is that stored on the device, or locally on the system? (I would assume adb would take the local .img file and send it to the phone to run.) Can you easily download the CWR recovery image without installing it?
I still haven't unlocked my phone yet. Honestly, I'm still on the fence on whether or not I want to go through with this just yet, especially since I read some articles about all other GN's getting JB within the next month or two. However, you have convinced me that CWR is the way to go, since it does make it much easier to do this.
I was able to successfully build JB from AOSP, but, unfortunately, I was unable to run it in the Android device emulator.
The primary reason why I'm on the fence is that this is my primary phone, and I *need* the phone to be stable and work 100%. I don't really want to take a chance and screw it up, especially since this would be first time I would build it from source. Has anyone tried this had any missing features? Does the camera, wifi, and all other features work fine?
Thanks.
Thanks for taking the time to put together a tutorial--nice work.
I'm working on a similar build of CM10 for toro. What are you doing for the camera, gps, and nfc binaries since google cannot provide them?
Honestly, I presume they're ready to rock with cm10. I had an issue just syncing with them so I put that project off.
Sent from my Galaxy Nexus using Xparent Cyan Tapatalk 2