yashsingh1/xdaforums huggingface dataset:
[TouchPad Development] maxawesome:
Went ahead and built it in a VirtualBox VM, on top of an SSD, with the device settings in VBox set to reveal to the guest OS that the host HDD is an SDD. Seems very fast. I configured my VM with a Dynamic drive, and set the max space to 64GB (doubt I'll ever come close to that) with 4GB RAM, 4 virtual CPU cores, and 4GB of swap space.

The current size of the virtual disk after my first build of the tenderloin source is 33GB. I'd say if you were going to set up an actual hard drive partition that 40GB would be a minimum, and probably closer to 64GB would be wise depending on if you want to build two versions simultaneously.

For those who struggle with the initial setup, if you're using Ubuntu 11.10, you won't be able to add sun-java6-jdk via apt-get simply by adding Canonical's partner repos. Sun is no longer making the package available via the partner repo's.

Instead, open a terminal window and do the following:

cd ~/
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh

This downloads a shell script from flexion.org, which is the group that used to provide the sun-java6-jdk packages in Canonical's partner repo's before Canonical decided to block them for what they view as violating copyright law. The script is just a wrapper for steps you could take manually, and if you're curious what it does, before the last line above, you can always do the following to view the contents of the script:

cat oab-java6.sh

Obviously, use of this script presumes you've read and accepted Oracle's license terms, etc., found here:

http://www.oracle.com/technetwork/java/javase/terms/license/

Hopefully this helps some of our members who are getting stuck with the basics.
[TouchPad Development] O.a.T.:
I've been building on a 32-bit VM for some time. Pretty good guide here...

https://www.evernote.com/shard/s102...03022e318722/5b04667c8934a25489b86623805bfb31
[TouchPad Development] suren21:
I was able to successfully build the image. Can someone point me to how contributing back. How do i send files for review. How to revert back a file to original state if the modifications I made dont work.

If someone could point in the right direction , I would try to contribute something to the community.
[TouchPad Development] Nburnes:
http://git-scm.com/documentation
[TouchPad Development] drewtang:
I found this in another guide in the sensation forum for compiling cm9, seemed to work for me

sudo add-apt-repository ppa:ferramroberto/java

sudo apt-get update

sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin
[TouchPad Development] drewtang:
Noob question

I keep getting an error message, not sure how to fix it;

running: java -Xmx2048m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpamHamk out/target/product/maguro/aokp_maguro-ota-eng.mandrew.zip
Could not create the Java virtual machine.

ERROR: signapk.jar failed: return code 1

make: *** [out/target/product/maguro/aokp_maguro-ota-eng.mandrew.zip] Error 1
[TouchPad Development] avary:
open build/tools/releasetools/common.py file and

Change: java -Xmx2048m to java -Xmx1024m or java -Xmx512m
[TouchPad Development] drewtang:
That did the trick. Thank you.

sent from my nexus prime
[TouchPad Development] bajee11:
Solved
[TouchPad Development] scott.hart.bti:
Hey Sorry to bring this back to life, but i need some help here... Im getting frustrated with this as i have no idea what im doing wrong?

I am running Ubuntu 10.04 64bit as recommended and have followed all instructions on OP... I do the make otapackage j2 command and it goes for about 30 minutes or so and i get the following:

make: *** No rule to make target `out/host/linux-x86/framework/kxml2-2.3.0.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/layoutlib_intermediates/javalib.jar'. Stop.

Any ideas? Possibly related to my version of java? Thanks in advance.
[TouchPad Development] drewtang:
This guide has been very helpful for me http://xdaforums.com/showthread.php?t=1505006

[GUIDE]Compile AOKP and CM9 for HTC Sensation on Ubuntu (ONLY 64-bit)
[TouchPad Development] maxawesome:
I'm attempting this now on Ubuntu 12.04 64-bit. So far so good.

FYI -- the command to sync has changed. OP should really update it for those new to Linux and Git, however maybe it's technical Darwinism? ;)

Anyhow, the command switch for initializing repo is now either:

repo init -u git://github.com/AOKP/platform_manifest.git -b ics

Or:

repo init -u git://github.com/AOKP/platform_manifest.git -b jb

...depending upon whether you want to sync with the ICS or JellyBean repositories.

I've attached a shell script for syncing. Right now it assumes that you have a 4-core CPU and that you want to build from ICS. If you want to change that, just open the script in a text editor of your choice and change the repo init line from above, and the "-jX" value to whatever is appropriate for your computer, where X again is the # of CPU cores.

To run it, simply extract the script from the zip file, open up terminal wherever you extracted the script and type:

sudo sh aokp_sync.sh

I'll make a second script for compilation when I get there. As well as provide info on how to make compilation work in Ubuntu 12.04 64-bit (if there are any tricks).
[Captivate Q&A, Help & Troubleshooting] mikeyw8187:
i just updated my at&t Samsung SGH-I897 captivate to firmware version to 2.3.5. which unrooted my phone, so i re rooted it and now i got everything working, But when I go into wifi i can enable it and then it says that it's searching for wifi connections and then shuts off. can anyone give me any ideas on whats wrong? thanks!
[Captivate Q&A, Help & Troubleshooting] jayRokk:
Stock rom??

what did you flash to root it??

a little more details would be helpful :)
[Captivate Q&A, Help & Troubleshooting] motiv8d365:
your device access point names may need tweakin...I had the same problem on my cappy...ur in prime position to flash cyanogen...guarantee that will fix the problem whatever it is.
[Captivate Q&A, Help & Troubleshooting] mikeyw8187:
My phone got messed up! it just keeps restarting and showing the at&t then reboots. it will not do a recovery either. So I got a new one today and it has 2.2 firmware. can someon post me the stuff to re root it to be sure i done mess this one up? thanks
[Captivate Q&A, Help & Troubleshooting] mrhaley30705:
SuperOneClick by CLShortfuse. I've always been partial to v1.9 or lower for 2.2 ROMS.
[Captivate Q&A, Help & Troubleshooting] mikeyw8187:
thanks alot! i re rooted my phone using super1click. Just wanted to make sure it was still safe to use.
[Samsung Galaxy Nexus] ProTekk:
This is strictly just a reference guide/tutorial! If you cannot simply follow directions and copy/paste, I'm not going to help you! This is idiot-proof.

Build Environment​

Operating system -- Tested on Ubuntu 10.04 (64bit)

Terminal

Decent hardware (minimum of at least a dual core CPU and 4 GB of RAM)

Optimally have an SSD (standard mechanical drives work as well but slow down the process drastically)

Must have required packages for building installed, I will list them further down

Required Packages​

Simply copy and paste this in a terminal window:

sudo apt-get install curl git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib

Let that install and then proceed.

Getting the Source​

Make required directories

Obtain repo binary

Add repo binary to your path

Give repo binary proper permissions

Initialize empty repo

Sync repo

Grab device tree and vendor tree which are not included in the AOKP manifest

Add Mecha to the vendor setup

Alright, so now we're getting there. I have outlined the basics of what we're about to do and broke them down as I know them. This is all pretty much going to be copy/paste so it'll be fairly difficult to screw this up :)

Copy/paste:

Make directory for repo binary

mkdir ~/bin

Add directory for repo binary to your path

PATH=~/bin:$PATH

Download repo binary and place it in the proper directory

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

Give the repo binary the proper permissions

chmod a+x ~/bin/repo

Create directory for where the AOKP repo will be stored and synced

mkdir ~/aokp

Move to our new AOKP directory

cd ~/aokp

Initialize the AOKP repo and download the manifest

repo init -u git://github.com/AOKP/platform_manifest.git -b master

Sync AOKP source

repo sync -jX

X == Number of cores your CPU has

Start the build​

This is probably the EASIEST part of all, simply copy/paste this command and walk away!

. build/envsetup.sh && lunch aokp_toro-userdebug && make otapackage -jX

Where X == cores per CPU again.

Syncing the repo is dependent upon your Internet connection. It can take anywhere from 30 minutes to several hours to fully sync. Same thing goes for build times. Don't expect this to be short. If you have patience and have no build errors, you'll end up with a flashable zip in ~/aokp/out/target/product/toro! Happy crack-flashing!
[Samsung Galaxy Nexus] WormDoes:
This is awesome! Thanks for taking the time to do this. Looks like I'm be building a custom AOKP for myself very soon :D
[Samsung Galaxy Nexus] luckylui:
Looks like I have me a nice little project! :)

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] vdub804:
tried to follow your guide but had to find a workaround I'm using 11.10 64bit, sdk and java jdk installed and working properly here's the error sorry for the huge output

"sudo apt-get install curl git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib

[sudo] password for plagueis:

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package lib32readline5-dev is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

However the following packages replace it:

lib32readline-gplv2-dev

E: Package 'lib32readline5-dev' has no installation candidate

E: Unable to locate package gcc-4.3-multilib

E: Couldn't find any package by regex 'gcc-4.3-multilib'

E: Unable to locate package g++-4.3-multilib

E: Couldn't find any package by regex 'g++-4.3-multilib'

btw here's the howto I used combined with yours to get everything working on 11.10. http://xdaforums.com/archive/index.php/t-1188298.html
[Samsung Galaxy Nexus] zeppelinmad4:
Type this instead:

sudo apt-get install curl git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-4.3-multilib g++-4.3-multilib

Replacing lib32readline5-dev with lib32readline-gplv2-dev.
[Samsung Galaxy Nexus] titto503:
anybody can help me in getting this error when i downloading the source

Fetching projects: 99% (252/254) fatal: remote error:

AOKP/packages/apps/Mms is not a valid repository name

Email support@github.com for help

error: Cannot fetch AOKP/packages/apps/Mms
[Samsung Galaxy Nexus] beekay201:
try resync again, sometimes that error happens

also, passing -jX (where X is not the number of "cores" - it's the number of jobs that can be run by the cpu at the same time) is not very good for github's health. Do 'repo sync -j1'.

from gnu make wiki:
[Samsung Galaxy Nexus] MrTechnikron:
does this work for the maguro too? the unlocked version.
[Samsung Galaxy Nexus] cjward23:
Well i have been trying, and I don't know if I have missed something or I'm just being a noob but this is what I am getting.

cj@cj-ubuntu:~$ cd aokp
cj@cj-ubuntu:~/aokp$ repo sync -j2
Fetching projects: 100% (254/254), done.
Syncing work tree: 100% (254/254), done.

cj@cj-ubuntu:~/aokp$ . build/envsetup.sh && lunch aokp_maguro-userdebug && make otapackage -j2
including device/hp/tenderloin/vendorsetup.sh
including device/htc/inc/vendorsetup.sh
including device/htc/supersonic/vendorsetup.sh
including device/htc/vivow/vendorsetup.sh
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including vendor/htc/vivow/vendorsetup.sh
including sdk/bash_completion/adb.bash
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[vendor/aokp/products/otter.mk]]: "device/amazon/otter/device.mk" does not exist. Stop.
Device maguro not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for maguro not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:196: *** _nic.PRODUCTS.[[vendor/aokp/products/otter.mk]]: "device/amazon/otter/device.mk" does not exist. Stop.

** Don't have a product spec for: 'aokp_maguro'
** Do you have the right repo manifest?

cj@cj-ubuntu:~/aokp$

I don't enough about how this stuff works to diagnose whats going wrong. Hopefully someone can help because I would hate the 24 hours (yeah my connection is that bad) it took me to do the initial repo sync to be for nothing.

Cheers
[Samsung Galaxy Nexus] MrTechnikron:
Hey man i figured that out and it worked but took like 6 hours to build. you have to install java six. if you already have it installed do it again because that is what happened to me.

---------- Post added at 06:02 PM ---------- Previous post was at 05:59 PM ----------

know i can't find where it downloaded to. it said it finished then i looked in the root folder and it was in there but i couldn't take it out of the root folder. so i cant get my rom. :(
[Samsung Galaxy Nexus] tnap1979:
i keep getting errors while trying to sync the repo...

root@tnap1979-stevin:~/aokp# repo init -u git://github.com/AOKP/platform_manifest.git -b master

... A new repo command ( 1.15) is available.
... You should upgrade soon:

cp /root/aokp/.repo/repo/repo /root/bin/repo

Your identity is: Nicholas W. <abc123@gmail.com>
If you want to change this, please re-run 'repo init' with --config-name

repo initialized in /root/aokp
root@tnap1979-stevin:~/aokp# repo sync -j1

... A new repo command ( 1.15) is available.
... You should upgrade soon:

cp /root/aokp/.repo/repo/repo /root/bin/repo

remote: Counting objects: 59553, done.
remote: Compressing objects: 100% (17905/17905), done.
error: RPC failed; result=18, HTTP code = 200B | 37 KiB/s

and this is happening everytime i try to sync
[Samsung Galaxy Nexus] mbroeders:
Just do a "cp /root/aokp/.repo/repo/repo /root/bin/repo" and sync again.

EDIT:

Maybe some more explanation would be nice :) There is newer version of repo available. It has been downloaded to /root/aokp/.repo/repo/repo. So you manually have to copy the new repo file to the location of the older file. You do that with the command I mentioned above.
[Samsung Galaxy Nexus] tnap1979:
here is the result of the commands you mentioned

tnap1979@tnap1979-stevin:~$ sudo -i
[sudo] password for tnap1979:
root@tnap1979-stevin:~# cd ~/aokp
root@tnap1979-stevin:~/aokp# cp /root/aokp/.repo/repo/repo /root/bin/repo
root@tnap1979-stevin:~/aokp# repo init -u git://github.com/AOKP/platform_manifest.git -b master

Your identity is: Nicholas W. <abc123@gmail.com>
If you want to change this, please re-run 'repo init' with --config-name

repo initialized in /root/aokp
root@tnap1979-stevin:~/aokp# repo sync -j2
remote: Counting objects: 59553, done.
remote: Compressing objects: 100% (17905/17905), done.
Fetching projects: 4% (12/297) Receiving objects: 0% (182/59553), 44.00 KiBerror: RPC failed; result=18, HTTP code = 200KiB | 5 KiB/s
error: The requested URL returned error: 403 while accessing https://android.googlesource.com/device/generic/goldfish/info/refs

fatal: HTTP request failed

EDIT: also to clarify, im running 10.04 ubuntu LTS 64bit on a core i5-430m 2.26ghz 8gb ddr3 on a 160gb hd with a clean updated ubuntu install as per the tutorial also and ive followed every step in the tutorial except for the java sdk, i had to manually install oracle java 7 jdk as i kept getting errors trying to install java according to the tutorial

---------- Post added at 06:32 AM ---------- Previous post was at 06:13 AM ----------

here is the most recent errors...

this is frustrating me to high hell... and its not my internet i know that....

tnap1979@tnap1979-stevin:~$ sudo -i
[sudo] password for tnap1979:
root@tnap1979-stevin:~# cd ~/aokp
root@tnap1979-stevin:~/aokp# cp /root/aokp/.repo/repo/repo /root/bin/repo
root@tnap1979-stevin:~/aokp# repo sync
remote: Counting objects: 59553, done.
remote: Compressing objects: 100% (17905/17905), done.
Fetching projects: 5% (15/297) Receiving objects: 0% (120/59553), 36.00 KiBException in thread Thread-18:59553), 460.00 KiB | 52 KiB/s
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/root/aokp/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/root/aokp/.repo/repo/project.py", line 978, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/root/aokp/.repo/repo/project.py", line 1519, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/root/aokp/.repo/repo/project.py", line 1583, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: github.com: <urlopen error [Errno -2] Name or service not known>

remote: Counting objects: 1725, done.
remote: Compressing objects: 100% (790/790), done.
remote: Counting objects: 89, done.
remote: Compressing objects: 100% (62/62), done.
error: RPC failed; result=18, HTTP code = 200B | 46 KiB/s
error: RPC failed; result=18, HTTP code = 200B | 26 KiB/s
error: The requested URL returned error: 403 while accessing http://github.com/AOKP/android_device_htc_inc/info/refs

fatal: HTTP request failed
[Samsung Galaxy Nexus] mbroeders:
I'm not sure about the error, but I do know you should never perform any of these actions as root! So I'd suggest to start again, repeat all steps, but without the 'sudo'.

Edit:

Your build system is fine, however, you could be getting an error when -in the next step- you're gonna build with java7. But that's easy to overcome (just comment out the check in one of the make files).

I really think the errors you're getting now are caused by sudo.
[Samsung Galaxy Nexus] etoy:
what's the average time for build on a good machine?

i have a q9650 quadcore at 4ghz with 4gb ram and a raid0 array, it took around 35 minutes for a full aokp build for my maguro.

i flashed it and works fine but i thought it should take like 4/5 hours..
[Samsung Galaxy Nexus] mbroeders:
Sounds about right. For comparison: on my i3 dual core it takes about 1.5 hours, on my i7 quadcore about 40 minutes, and on CMs build servers with dual Xeon X5675's, 12 cores and 32gb ram it takes about 9 minutes. But for us 'normal' people, everything between 30mins and 2 hours is normal ;)
[Samsung Galaxy Nexus] etoy:
wow, great then! i thought there was some error giving such short build time. wanted to leave the pc building overnight but if it takes only 35 mins i can easily make mods and check if they work within an hour or even less. looks like my 3 years old gaming rig has still got enough muscles for ICS :)
[Samsung Galaxy Nexus] tnap1979:
this is for those who are having trouble getting java 6 jdk

https://github.com/flexiondotorg/oab-java6

follow that and you should have a working java 6 jdk installed in ubuntu 10.04

apparently the jdk was removed from the apt-get sources due to some stupid licensing issues from oracle
[Samsung Galaxy Nexus] etoy:
i used this guide to update jdk to 1.6.0_31 on both mint 12 (which has already jdk 1.6.0_26) and ubuntu 10.04/11.10, worked fine for each of them.

http://askubuntu.com/questions/67909/how-do-i-install-oracles-jdk-6
[Samsung Galaxy Nexus] adrynalyne:
It takes me 11 minutes on an i7-2600 and 16gb of ram :p
[Samsung Galaxy Nexus] trentreed:
Trying to resync for a couple days now any ideas?

fatal: HTTP request failed

error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/external/opencv/info/refs

fatal: HTTP request failed

error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/nist-sip/info/refs

fatal: HTTP request failed

Solved... if using a VM network settings to bridge adapter, and advanced use Virtual Machine. worked for me
[Samsung Galaxy Nexus] scott.hart.bti:
Hey Sorry to bring this back to life, but i need some help here... Im getting frustrated with this as i have no idea what im doing wrong?

I am running Ubuntu 10.04 64bit as recommended and have followed all instructions on OP... I do the make otapackage j2 command and it goes for about 30 minutes or so and i get the following:

make: *** No rule to make target `out/host/linux-x86/framework/kxml2-2.3.0.jar', needed by `out/host/common/obj/JAVA_LIBRARIES/layoutlib_intermediates/javalib.jar'. Stop.

Any ideas? Possibly related to my version of java? Thanks in advance.
[Samsung Galaxy Nexus] linkstupid:
I had the same question, thanks !
[Samsung Galaxy Nexus] Grondinm:
just a head up. using:

repo init -u git://github.com/AOKP/platform_manifest.git -b master

as in the op i was having a bunch of missing files that command should be

repo init -u https://github.com/AOKP/platform_manifest.git -b ics
[EVO 4G Q&A, Help & Troubleshooting] dahauss:
I am on MIKROM 2.61 and have had no issues sending and receiving pictures through text messages... UNTIL TODAY. I could not send or receive them as it said "GENERAL NETWORK FAILURE" ... When I looked ayt ##data@ and use my MSL code, I noticed the MMS server was BLANK and I could not change it as every time I typed something in, it would revert back to blank...

I then found http://aangaero.wordpress.com/2011/09/13/htc-evo-4g-not-sendingreceiving-mms-messages/ and I followed the instructions. Now, the MMS server under ##data# is filled in, BUT I still can not send or receive MMS messages in TEXT. I can receive regular text messages.. any ideas?
[EVO 4G Q&A, Help & Troubleshooting] bigshotrob22:
Try deleting your telephony.DB file located in /data/data/com.android.providers/telephony databases and then reboot your phone.
[Galaxy Tab 8.9 General] gi0v3:
Hi everybody, my problem is simple and dumb... i bought a Gtab 8.9 for Christmas, it's working fine and i'm very satisfied, but i'm stuck with the default firmware, honeycomb 3.1, and sometimes it kinda freezes, and i wanted to try a newer, 3.2 or maybe ICS firmware... and before flashing some mod i would like to see if there's any available from kies... well, it's been more than a month and i can't seem to be able to properly connect it to my pc/laptop with kies and the usb cable... i tried re-installing several times kies, did the connection error/unplug/uninstall drivers/reinstall driver stuff countless times on both desktop and laptop, but kies always ends up saying "device error-unplug" or "device error-reboot"... kies wireless works fine but i can't search for new firmwares, the cable works fine and i can charge and/or transfer files in a breeze... i looked for some usb settings on the tab but found nothing... what am i missing? :confused: every time i plug the tab it goes straight on autoplay, and kies won't recognize it... if i turn it off and plug it kies doesn't find it either, nothing changes.... can anyone help?