yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] Noobla_Khan:
Just grab the latest cm10 grouper nightly and extract it, you will find keystore.grouper.so in system/lib/hw. Alternately you can use a rooted file explorer and copy it from your Nexus 7 from the same directory.

I wouldn't try the empty file method if I were you although I'm not sure keystore.grouper.so actually does anything as sparksco pointed out but the build process wants it so...I would recommend giving it a good file.
[Nexus 7 Android Development] Seferi:
This time it builded successfully, thanks for the help mate. When i repo sync now, at the end of the checking packages it gives a warning like this:

Fetching projects: 88% (278/315) WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

Fetching projects: 89% (281/315) WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

Fetching projects: 90% (284/315) WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

Fetching projects: 91% (287/315) WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

Fetching projects: 92% (290/315) WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

Fetching projects: 93% (293/315) WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-9UCYiW/pkcs11: No such file or directory

Fetching projects: 99% (312/315) remote: Counting objects: 7, done.

remote: Compressing objects: 100% (2/2), done.

remote: Total 4 (delta 3), reused 3 (delta 2)

Unpacking objects: 100% (4/4), done.

From git://github.com/CyanogenMod/android_vendor_cm

67a18b3..242141b jellybean -> github/jellybean

Fetching projects: 100% (315/315), done.

Syncing work tree: 100% (315/315), done.

Is that normal?

---------- Post added at 09:46 AM ---------- Previous post was at 09:12 AM ----------

Also having a little trouble with the adb, when device is in bootloader adb doesn't see the device (adb devices), but when i'm in the system it shows the device. I can't push the zip in bootloader nor the recovery.img. In recoverymode device also doesn't mount the sdcard... Any ideas?
[Nexus 7 Android Development] sparksco:
Please use pastebin.com

You can't use adb in fastboot. This is why rootkits are a bad idea :/
[Nexus 7 Android Development] Seferi:
Sorry for the paste. What would you advise me to do about pushing the file to device? Can i flash the recovery.img and push the file while the device booted?
[Nexus 7 Android Development] sparksco:
The syncing is not normal there is something definitely not right there just not sure what it is. You can push files to your sdcard while booted. The path is /storage/sdcard0

So when you push a file it should be like

adb push nameoffile.zip /storage/sdcard0/nameoffile.zip

You can flash your recovery while booted with flash image GUI from the market as well or with ROM manager. Try to reflash your recovery to see if that fixes the sdcard mounting issue.
[Nexus 7 Android Development] Noobla_Khan:
You should be able to fastboot flash recovery while in bootloader, then reboot bootloader and then go to your new recovery. Once in recovery you should be able to adb push your file but you need to push it to /data/media/ I believe to get it to the sdcard.

Edit: Oops...sparksco beat me to it!
[Nexus 7 Android Development] z1gackly:
You can just use sdcard/nameoffile.zip on the N7 if you want to save typing.
[Nexus 7 Android Development] sparksco:
Hmm, well I tried that before and it didn't end up on my sdcard. See my screenshots there's no /sdcard mounted. Its mounted as /storage/sdcard0
[Nexus 7 Android Development] z1gackly:
Strange, I use it all the time! which N7 do you have, the 8Gb or the 16Gb? Mine would be a UK one too, which may make a difference. Finally, would the use of a different kernel potentially affect it? Mine's built from CM10 stock.
[Nexus 7 Android Development] sparksco:
Not that I'm aware of no. All the kernels mount the same way. All the kernels are based on googles kernel source. CM's kernel is about as "bone stock" as you can get. Its not much different/better than googles kernel... Maybe its that /sdcard is linked to /storage/sdcard0

But /sdcard is not the absolute path...
[Nexus 7 Android Development] z1gackly:
I know it's not the absolute path, but I posted it because I find it convenient. I'm not saying CM10's kernel is any better, in fact I expect the opposite is true. I haven't begun dabbling with kernels yet, so my respect to those who do.
[Nexus 7 Android Development] Seferi:
I think my nexus 7 is bricked. Device is going into a bootloop.. It doesn't go into recovery mode. I can only go into the bootloader and fastboot doesn't work... It seems to me like there is no way to fix it. Do you guys see a way?
[Nexus 7 Android Development] z1gackly:
You will probably get better specialist knowledge in the Q&A section. I've never managed to brick a device yet!
[Nexus 7 Android Development] Seferi:
Thanks mate. Downloaded a toolkit and flashed a factory image. Somehow fastboot didn't work, toolkit also said device not found but somehow managed to send the data to the device... Strange..
[Nexus 7 Android Development] z1gackly:
Result.
[Nexus 7 Android Development] Seferi:
As a result, i have the stock rom now. I should update the bootloader and see if that fixes the problem. Then flash the build i made compiled..
[Nexus 7 Android Development] Seferi:
Keep getting ´WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-ed60a2/pkcs11: No such file or directory´ error with repo sync. Couldn't figure out what's wrong..
[Nexus 7 Android Development] fattire:
I've noticed this happens in ubuntu when you su into an account that isn't the same one you're logged into... if the thing finishes, I think you can probably ignore it.
[Nexus 7 Android Development] z1gackly:
I no longer seem to get system/media/bootanimation-encrypted.zip in either my grouper or wingray builds. Has it been deprecated, or have I done something wrong?
[Nexus 7 Android Development] Fallon9111:
Can anyone answer this for me??

see here: http://xdaforums.com/showthread.php?t=1937146&page=7

Can anyone help me here??

Also, when adding anything into my rom (including apps and binaries like supersu) do i need to add to / edit current app / remove item from ~/android/system/out/target/product/grouper/installed-files.txt ?

Thanks a bunch :)

(P.S I ask this as when adding apps to my builds to the ~/android/system/out/target/product/grouper/system/app folder, the flash fails :L )
[Nexus 7 Android Development] Seferi:
My build dates doesn't change. How can i fix that? Thanks.
[Nexus 7 Android Development] sparksco:
This question has been answered numerous times already in this thread...

---------- Post added at 11:43 PM ---------- Previous post was at 11:41 PM ----------

I don't think this guide covers things like that. It's more or less just to build a stock cm kang.
[Nexus 7 Android Development] Nark.GA60:
Answered here.

http://xdaforums.com/showpost.php?p=32663844&postcount=292

Edit: Beaten to it. D'oh!
[Nexus 7 Android Development] Seferi:
Thanks, i was on the mobile so i didn't search, i should have. Sorry about that..
[Nexus 7 Android Development] Fallon9111:
Yeah..

I know, but I was hoping that someone here has made a custom rom, not just stock CM. Someone must have??? If you see my question, al I want is to include a custom kernel (motley 4.1.2 Unofficial) in my build :)
[Nexus 7 Android Development] sparksco:
Might want to ask Motley about that.
[Nexus 7 Android Development] Fallon9111:
Custom romming

I'm still looking at the best way to include a kernel...

But also I've seen Circle battery mod

I tried this:

git fetch http://r.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/36/24736/7 && git cherry-pick FETCH_HEAD

But I get this error:

fatal: Not a git repository (or any of the parent directories): .git

What did I do wrong :L

Thanks for all teh help guyz XD

Edit: Wooops (like big time wooopps) i forgot to do "git init", i haven't used git much before, if you couldnt tell :P

Also, I was in the directory '~/android/system/out/target/product/grouper/system/framework'

i tried in several other directories including '~/android/system'

here is the website for circle battery mod
[Nexus 7 Android Development] sparksco:
The circle battery mod is already merged in so you don't need to add it.
[Nexus 7 Android Development] z1gackly:
I wrote something on another thread about how to pull in someone elses commits from github. Hopefully it will help someone:

The one you are looking at, apart from the fact that as sparksco says, it is already merged into the CM10 base, is slightly different in that with a gerrit review you can simply cherry pick it using a copy and paste after pressing the cherry pick button on gerrit, exactly like you tried to do, but you were in the wrong di.rectory.

You needed to be in frameworks/base under your source root where your .repo directory is.
[Nexus 7 Android Development] Noobla_Khan:
Thanks for this, was wondering how to cherry-pick from github.
[Nexus 7 Android Development] sparksco:
Speaking of cherry-picks you guys should try out z1gackly's extended desktop patch. It's still under review but I think it works great and he did a great job of work on it :)
[Nexus 7 Android Development] z1gackly:
I think the original author and the person who did all the work doing the patch sets for the review should take some credit for that too ;)

If you hadn't submitted it and worked tirelessly on the review comments it wouldn't have been as good.

Doesn't look as if it will make it into CM10, but yes it is a nice feature by D4rKn3sSyS. I kanged another feature of his by the way; the recent apps clear all button. Both can be found on my github in the frameworks/base project if anyone wants to try them.
[Nexus 7 Android Development] jamesst20:
Thanks I think you're right :)
[Nexus 7 Android Development] Noobla_Khan:
Perfect...thanks for the heads up.
[Nexus 7 Android Development] z1gackly:
I forgot to mention, if you cherry-pick the extended desktop feature you need to take the other part from packages/apps/Settings as well.
[Nexus 7 Android Development] sparksco:
Just thought I would point out Sun Java 1.6.0_37 is out for those of you that are building with Sun Java and not open jdk. Changelog indicates new bug fixes for XML's. You will probably want to make clean and do a fresh build after updating.

http://www.oracle.com/technetwork/java/javase/6u37-relnotes-1863283.html

If you need more info on how to install and use this to build over the open jdk let me know and I'll write up a little guide.
[Nexus 7 Android Development] Noobla_Khan:
Got it, cherry-picked the expanded desktop and the kill all feature from your repo, working great.

Thanks for the knowledge bro!
[Nexus 7 Android Development] sparksco:
I went ahead and wrote up a little guide on installing Sun Java Oracle on Ubuntu 12.04+. I'm currently building on Ubuntu 12.10 and everything works great. The thread is here.

http://xdaforums.com/showthread.php?t=1947412
[Nexus 7 Android Development] Noobla_Khan:
Good to know, I was going to load it up on a thumb drive to check it out but if it's building fine I may just do a perm install.
[Nexus 7 Android Development] freezer2k:
Compiled CM10 last night for my Nexus7 :)

I already had Touch-CWM installed with ParanoidAndroid ROM.

I did a data/cache wipe and installed my ROM .zip and motley #220 kernel.

This resulted in an endless boot of CM10 (CM bootup animation looping for 20min).

Noticed that Recovery was somehow gone as well. Started into bootloader mode and flashed the recovery.img from the build process. CWM (non-touch) was back now. Did a wipe data/cache again, flashed my ROM again and no motley kernel this time.

After that it booted just fine and now runs the kernel from the build process. Not sure what went wrong here? Will it not work with external kernels?

BTW, did all this under Fedora17. Would write up a tutorial for this if there is enough demand!
[Nexus 7 Android Development] z1gackly:
Is Motley #220 an Android 4.1.2 kernel? You won't be able to use a 4.1.1 kernel with Android 4.1.2.
[Nexus 7 Android Development] sparksco:
I think the "unofficial" motley kernel is for 4.1.2, but that kernel isn't set up to build with CyanogenMod ROMs. You have to change the dependencies in the build and grouper repos. Its probably easier just to use a prebuilt kernel like Google does. But you'd still need to change some things around in build and grouper repos. I'm not going to get into specifics on it because cm does not support other kernels they only support official cm kernel.
[Nexus 7 Android Development] apascual89:
I'm getting the following error when I choose #18 for grouper:

Which would you like? [full-eng] 18

Traceback (most recent call last):

File "build/tools/roomservice.py", line 41, in <module>

authtuple = netrc.netrc().authenticators("api.github.com")

File "/usr/lib/python2.7/netrc.py", line 31, in __init__

with open(file) as fp:

IOError: [Errno 2] No such file or directory: '/root/.netrc'

** Don't have a product spec for: 'cm_grouper'

** Do you have the right repo manifest?

Any Ideas?

Thanks
[Nexus 7 Android Development] z1gackly:
I fixed it with "touch ~/.netrc".
[Nexus 7 Android Development] myepicyear:
Same here man! I'm so glad I'm not the only one. Thought I screwed up my whole configuration, which I'm not up to redoing right now, lol. I now have to believe it's something to do with the repo sync I did just before I got the error. I'm building on the Toroplus(done a few Grouper builds also), and have been for weeks without any sort of problems. Things have been 100% smooth up until this morning, so it's gotta be whatever was in that batch of additions/changes.

I'm assuming this happened to you following a repo sync as well?
[Nexus 7 Android Development] apascual89:
That fixed it, thanks! Now I get the following error:

Checking build tools versions...

************************************************************

You are attempting to build with an unsupported version

of java.

Your version is: java version "1.7.0_07".

The correct version is: Java SE 1.6.

Please follow the machine setup instructions at

https://source.android.com/source/download.html

************************************************************

************************************************************

You are attempting to build with the incorrect version

of javac.

Your version is: javac 1.7.0_07.

The correct version is: 1.6.

Please follow the machine setup instructions at

https://source.android.com/source/download.html

************************************************************

build/core/main.mk:155: *** stop. Stop.

Have you seen that?
[Nexus 7 Android Development] sparksco:
Looks like you installed java 1.7 somehow. Follow my guide I linked an few post back and you'll have java 1.6.
[Nexus 7 Android Development] apascual89:
Thanks, but I did that already. Should I try and redo?
[Nexus 7 Android Development] fattire:
On blobs...

Not sure if this is your issue, but the google-provided blobs don't give you all the props that you have on the device. Any build using only google's props may be missing funcitonality like camera and possibly some other stuff. To get all the props you must pull them from your stock device (or the factory image, I assume) using the extract-files.sh and setup-makefiles.sh scripts.
[Nexus 7 Android Development] Rafase282:
I will try to go to stock rooted them. Either way I'm still unable to build and I still don't know why the computer shutdown, is it over heat or what?
[Nexus 7 Android Development] fattire:
The whole computer just shut down... as it restarted? Do you mean the vm or the whole machine?

It shouldn't do that. Sounds like overheating or hardware failure or something... what OS?
[Nexus 7 Android Development] Rafase282:
Ubuntu 12.04 64 bits Desktop 6 cores amd/ati 16 gb ram

The whole machine would shutdown. It doesn't always do it. But since yesterday it has been 3 times when trying to build.
[Nexus 7 Android Development] fattire:
Kernel panic maybe? Are you overclocking? Use something like gkrellm to monitor the system before it goes down and check the logs after you reboot...
[Nexus 7 Android Development] Rafase282:
Still a no go. I'm not getting the shutdown, it is very random i guess. But I still cant compile. I used the stock image to get the files but still no build.

Also the first error I notice is the src directory not found.
[Nexus 7 Android Development] Valkyrie743:
i know this is a random question but i have downloaded one of the official nightly builds off of cyanogenmod's site.

i want to know how to disable the software key fuction of holding the home key bringing up the recents app menu. im trying to use google now but it keeps bringing up recent apps menu and its driving me insane
[Nexus 7 Android Development] fattire:
To use google now, I believe if you simply swipe up from the apps icon to the "google" icon which will appear, that should take you to google now.

As for two posts up, your computer should NEVER just shut down spontaneously. Can you do a memtest or stress test (download and run mprime's stress test) and see if you have bad memory or perhaps a bad cpu?
[Nexus 7 Android Development] rsxtypes72:
This is correct. I have been compiling AOSP for my GN and for the N7 and on the N7 the camera and gyro did not work on my builds. I figured out how to get the camera working but still need to extract files for gyro fix. I have compiled CM9 in the past but still haven't tried CM10.

Sent from my Galaxy Nexus
[Nexus 7 Android Development] dsuycott:
uhg...have everything downloaded and running on VBox/Linux on a Win7 Compaq 6910p 2Ghz duo 2gig ram @32bit...sluggy(ish) but working...i have another one of these laptops with a dead drive, i think i'm just going to buy a 500gb SSD/Hybrid and install just Ubuntu on it. regardless, very exciting thread! will there be a Q&A thread started for this or is this going to be it?
[Nexus 7 Android Development] fattire:
I was just thinking you can post any questions or issues you have here and everyone can help each other. Less a Q&A, and more of an on-the-fly assistance thing.
[Nexus 7 Android Development] antiochasylum:
Very nice, I used your CM9 for the touch pad to learn how to build about 4 months ago. I have expanded since then however your guide helped me to get started. Anyone looking to build, read it, read it again. Learn it.

Fattire is a man of greatness. :)
[Nexus 7 Android Development] marty331:
Great guide, I know what I'll be doing this weekend!
[Nexus 7 Android Development] gigoo25:
Hmm I have followed your guide carefully I seemed to be able to sync the repos and all the code but when I try to compile it gives me an error of not finding the "src" file or directory. The compiling process seems to keep going but does not completely finish and in my out folder I do not have any .zip files. Any help would be greatly appreciated! Thanks in advanced :)
[Nexus 7 Android Development] fattire:
build log, please?

Can you paste a bit of your log to pastebin.com and provide the link...? I'm not sure which project is missing a src directory (usually it's Android java apps that have a /src directory, fwiw) Also, try to repo sync and then build again just to make sure it wasn't a momentary break in the source upstream (that hopefully, if it was the case, has been fixed)...
[Nexus 7 Android Development] gigoo25:
Thank you for the reply :) I have sync the repo once again as you will see in the pastebin link that I will post, it seems to complete just fine. Here is the link to the pastebin http://pastebin.com/P9XVLGwi also after it gives me a bunch of

frameworks/base/core/res/res/values/public.xml:####: warning: No comment for public symbol android:(with different results where the red text is)

P.S. Not sure if this matter but I am running on Ubuntu 11.10 JDK 6 on virtual box 8GB RAM and 6 Cores Dedicated
[Nexus 7 Android Development] CyberCitizen:
Sorry for my ignorance, but besides bragging rights, what is the whole point of self compiling stock cm10 for your device?
[Nexus 7 Android Development] marty331:
One reason is to have the very latest updates without waiting on someone else to compile for you.
[Nexus 7 Android Development] fattire:
Why in the world would you ever do this?

Off the top of my head...

You never, ever have to wait for a nightly

You can add or remove as-yet uncommitted features with ease.

You learn how Android works under the hood

You learn how to use Linux

You'll learn how to use git

You may, even accidentally, pick up a little C, Java, C++, and learn about the build system.

You can personalize Android-- make your own tweaks, replace kernels, modules, graphics, add or remove projects, overclock, underclock etc. In other words, you have control over every aspect of your device's functionality. Your build is custom to you.

You can audit the code for potential security issues such as back doors or trojans (as opposed to just trusting a random person who posts a build). Since CM10 source is open, you can examine every commit, and there are many eyes looking at the code. (does not apply to proprietary blobs, but these are pulled from your device, so you have and are using them already)

You can contribute features/fixes back upstream

You can start ports to other as-yet-unsupported devices (start by copying folders from similar devices to devices/manufacturer/model)

You come to really understand that Android phones and tablets are full-fledged any-purpose computers just like laptops and desktops.

AAAAND....you get huge bragging rights

The extent to which you delve into the above is entirely up to the individual. The walkthrough is an introduction to that world. If N7 is anything like the NookColor/NookTablet/TouchPad, some people will build once and never do it again... but others will start to tinker and make changes to their own build and want to share them with others, and soon some will start making contributions back to official CM10 upstream... or port to new devices... and by fixing bugs and all this... everyone benefits.

Plus...

It's fun.
[Nexus 7 Android Development] sparksco:
The change is here.

https://github.com/CyanogenMod/android_build/commit/5afda3b99133295be736e37e3d790fdeaa93a9eb

Read the comments and there's a solution on there.

echo "" > ~/.netrc
[Nexus 7 Android Development] myepicyear:
Nevermind..I'm smarter than I give myself credit for ;)
[Nexus 7 Android Development] sparksco:
After you installed java 1.6 and the .bashrc edits did you open a new terminal or reboot?
[Nexus 7 Android Development] apascual89:
Yes, but it got fixed somehow. I think its building!!!
[Nexus 7 Android Development] z1gackly:
That does exactly the same thing as I suggested. It's just creating an empty net config file.