yashsingh1/xdaforums huggingface dataset:
[Xperia Play Android Development] Atarii:
what's the output of:

ping 207.97.227.239

and:

ping github.com
[Xperia Play Android Development] acocalypso:
ping 207.97.227.239
PING 207.97.227.239 (207.97.227.239) 56(84) bytes of data.
64 bytes from 207.97.227.239: icmp_req=1 ttl=50 time=125 ms
64 bytes from 207.97.227.239: icmp_req=2 ttl=50 time=103 ms
64 bytes from 207.97.227.239: icmp_req=3 ttl=50 time=108 ms
64 bytes from 207.97.227.239: icmp_req=4 ttl=50 time=97.6 ms
64 bytes from 207.97.227.239: icmp_req=5 ttl=50 time=107 ms
64 bytes from 207.97.227.239: icmp_req=6 ttl=50 time=95.9 ms
64 bytes from 207.97.227.239: icmp_req=7 ttl=50 time=94.2 ms
64 bytes from 207.97.227.239: icmp_req=8 ttl=50 time=101 ms
^C
--- 207.97.227.239 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7012ms
rtt min/avg/max/mdev = 94.248/104.372/125.497/9.358 ms

ping github.com
PING github.com (207.97.227.239) 56(84) bytes of data.
64 bytes from github.com (207.97.227.239): icmp_req=1 ttl=50 time=94.2 ms
64 bytes from github.com (207.97.227.239): icmp_req=2 ttl=50 time=94.9 ms
64 bytes from github.com (207.97.227.239): icmp_req=3 ttl=50 time=100 ms
64 bytes from github.com (207.97.227.239): icmp_req=4 ttl=50 time=94.2 ms
64 bytes from github.com (207.97.227.239): icmp_req=5 ttl=50 time=94.8 ms
64 bytes from github.com (207.97.227.239): icmp_req=6 ttl=50 time=106 ms
64 bytes from github.com (207.97.227.239): icmp_req=7 ttl=50 time=94.6 ms
64 bytes from github.com (207.97.227.239): icmp_req=8 ttl=50 time=104 ms
64 bytes from github.com (207.97.227.239): icmp_req=9 ttl=50 time=95.9 ms
64 bytes from github.com (207.97.227.239): icmp_req=10 ttl=50 time=96.5 ms
^C
--- github.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9015ms
rtt min/avg/max/mdev = 94.201/97.699/106.873/4.412 ms
[Xperia Play Android Development] d31b0y:
So my build went ok (as far as I can tell) but I can't find the flashable zip. I was expectnig it in ~/android/ics/out/target/product/zeus/ but it's not there.

I am currently rebuilding to see if that will make any difference. Maybe I am just being noobish, any ideas? :o

I can post the output from the build if needed.
[Xperia Play Android Development] ICXPlay:
after compiling you can see in the terminal where you can find the zip.
[Xperia Play Android Development] d31b0y:
Yeah, worked on the second build. Must have missed something first time round.
[Xperia Play Android Development] AtomicKoala:
He's right you know, I thought I was being smart by doing this in my existing CM7 repo, but it wouldn't compile! Its been compiling for 1 and a half hours now with my new repo, seems to be going well!

Follow the instructions to the LETTER!

Also, thanks Kieran, hope you aren't doing this on a VM.

Oh, and I'm using Ubuntu 12.04 for anyone who's wondering about compatibility :D

EDIT: Took two hours with one thread maxing out 2.2GHz
[Xperia Play Android Development] aDigitalPhantom:
just for kicks i timed my computers build time...

and it took 43 minutes or less after a make clobber.

it might not have been make clobber but my out folder got emptied.
[Xperia Play Android Development] paxChristos:
Just wanted to say thanks and compiling now!
[Xperia Play Android Development] KeiranFTW:
Ah crap....

some stuff recently got synced in the CM repo (hw decoder, some other stuff) from CAF, which doesn't play nicely. I can no longer compile till some stuff is fixed for us, because I don't have a clue.

will have to wait to see if FXP can fix.
[Xperia Play Android Development] paxChristos:
How recently?
[Xperia Play Android Development] paxChristos:
If you want sources from about 14 hours ago, I synced and compiled just fine...

Also if you could pastebin errors, that'd be fantastic for us mobile users ;)
[Xperia Play Android Development] KeiranFTW:
do you have a qcom folder under vendor?
[Xperia Play Android Development] paxChristos:
Pretty sure I do not... I think just cm and semc...
[Xperia Play Android Development] paxChristos:
Have you tried syncing directly from CAF?

https://www.codeaurora.org/gitweb/quic/la/
[Xperia Play Android Development] KeiranFTW:
Just think I might have solved it. Was missing a few headers.
[Xperia Play Android Development] paxChristos:
Ok, got it built, and am running it, and upon boot com.android.phone dies like this:

E/AndroidRuntime( 343): FATAL EXCEPTION: main
E/AndroidRuntime( 343): java.lang.NullPointerException
E/AndroidRuntime( 343):	at com.android.internal.telephony.gsm.GSMPhone.getState(GSMPhone.java:262)
E/AndroidRuntime( 343):	at com.android.internal.telephony.CallManager.getState(CallManager.java:241)
E/AndroidRuntime( 343):	at com.android.phone.PhoneApp.onConfigurationChanged(PhoneApp.java:612)
E/AndroidRuntime( 343):	at android.app.ActivityThread.performConfigurationChanged(ActivityThread.java:3461)
E/AndroidRuntime( 343):	at android.app.ActivityThread.handleConfigurationChanged(ActivityThread.java:3585)
E/AndroidRuntime( 343):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1220)
E/AndroidRuntime( 343):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 343):	at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 343):	at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 343):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 343):	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 343):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
E/AndroidRuntime( 343):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
E/AndroidRuntime( 343):	at dalvik.system.NativeStart.main(Native Method)

and when i go system settings -> about phone

Baseband shows as the right thing, but,

going -> status, I get unknown under Network, Mobile Network type and My Phone Number. Service State says "Radio off" (tried turning toggling it by going *#*#4636#*#* and com.android.phone dies again)

I tried a few tweaks (build.prop, changing some libs, etc.) to no avail.

Anybody have any pointers I could try?

Pax
[Xperia Play Android Development] KeiranFTW:
Try compiling for GSM then merging CDMA fixes?

Maybe the CDMA configuration for CM9 isn't working too well.
[Xperia Play Android Development] paxChristos:
Trying that now...

1st attempt: Resulted in phone decided the boot splash screen was a good idea... (it was at that point where logcat was telling me that I done screwed up good, and need to rebuild it :P)
[Xperia Play Android Development] Atarii:
Just a quick update that as of 11:25 AM, all CM9 builds from source will now be 4.0.4. :)

Based on this change: http://r.cyanogenmod.com/#change,14137
[Xperia Play Android Development] nickholtus:
I am compiling cm9 with 4.0.4 sources now:)

will use it as base for my AOSP rom.

I think that (hopefully) the battery drain is fixed:D
[Xperia Play Android Development] CrimsonKnight13:
If anyone could provide some clarity...

I've read all of the steps but I'd like to understand how the CDMA components merge into my local copy & what's the best way to get this done. Also, what's the best way to compile a CM9 kernel & possibly modify it. Once I'm good with this info, I'll experiment to the fullest.

I've compiled source code for Linux as far as kernels & apps, so I'm really wanting to build my own ROM/kernel package whenever new updates come out.
[Xperia Play Android Development] AtomicKoala:
If it builds, would you mind uploading? Mine is failing during compilation :(
[Xperia Play Android Development] paxChristos:
Keiran touched on the problem a couple days ago, some of the header files from Code Aurora (CAF) have issues..
[Xperia Play Android Development] KeiranFTW:
I've decided that CDMA users should compile for GSM then merge the changes, because my CDMA branch is way apart from FXP's GSM branch.

And:

Btw, in FXP114, unless FXP fix it, camera is re-broken again due to omx-core and omx-media being merged, and video still doesn't work, recording or playback. Should be fixed soon tho.
[Xperia Play Android Development] aDigitalPhantom:
I last built this earlier today and my camera works.
[Xperia Play Android Development] CrimsonKnight13:
Could you make a new section that explains how to do it correctly for CDMA?
[Xperia Play Android Development] KeiranFTW:
And you did git pull in the device directories?
[Xperia Play Android Development] aDigitalPhantom:
yes, lazy me made a script to navigate to the folders and git pull then repo sync
[Xperia Play Android Development] crono141:
Chevy, are you planning to host a flashable zip for fxp114 as well?
[Xperia Play Android Development] paxChristos:
I've been trying to build the latest from source, and I'm running into the issue where (after porting in the libs for CDMA) that my MEID is screwy, and com.phone.android dies from a null pointer exception when trying to reach GSM. Any Ideas?

Pax
[Xperia Play Android Development] paxChristos:
Nevermind my last post, got it working!

Horray compiling when I want :P

Pax
[Xperia Play Android Development] cj360:
Does the setup in the op contain the sources for cdma? It looks like it but I'm not used to ubuntu or how easy it was to setup the repos haha
[Xperia Play Android Development] KeiranFTW:
Not totally, no.
[Xperia Play Android Development] paxChristos:
That's why I have that link I sent you in pm. I just copy/paste what's needed for porting :p

Sent from my phone, please excuse any Swypos.
[Xperia Play Android Development] KeiranFTW:
You could make a flashable zip for it :)

And check your PM :)
[Xperia Play Android Development] cj360:
edited- fixed I added this line: replace all urls starting with "git://" to "https://" to manifest.xml and that solved the errors.
[Xperia Play Android Development] cj360:
bump- Not sure why I'm getting a "permssion denied" when I try to run envsetup.sh.
[Xperia Play Android Development] paxChristos:
Check the permissions & ownership on envsetup.sh
[Xperia Play Android Development] cj360:
Okay, but now droping the file in terminal does nothing while "build/envsetup.sh"

returns a "bash: build/envsetup.sh: No such file or directory".
[Xperia Play Android Development] paxChristos:
you forgot "."

it should look like

<username>@<computername>: ~/<path_to_cm9_repo>$. build/envsetup.sh

(if you haven't changed your bash setup yet)
[Xperia Play Android Development] cj360:
Tired that first, same error. Is there something related to bash that I'm missing?
[Xperia Play Android Development] cj360:
Nvm
[Xperia Play Android Development] mekayzer:
Hi,

Just a question, what are the steps to recompile another build that include the latest changes, did i simply sync the repo, or do i have to do another thing
[Xperia Play Android Development] cj360:
yup just sync repo again
[Xperia Play Android Development] mekayzer:
Hi

Another question, what about the kernel. Is the last kernel compiled with the last build after sync the repo, or is there another way to build the kernel separetely.
[Xperia Play Android Development] paxChristos:
It uses a kernel image provided by freexperia. If you want to build your own kernel, Here's something I put together: http://db.tt/Zz1QxaS5

Sent from my phone, please excuse any Swypos.
[Xperia Play Android Development] cj360:
Okay, fresh ubuntu install, repo synced no issues. Somthing was missing from my java installation last time. However my list for lunch doesn't have a cm_zeus-userdebug. I'm trying to compile Gummy and use the vendor from ics. If it's prebuilts I'm missing could someone just send me the ones for zeus? Unless its some huge file.
[Xperia Play Android Development] paxChristos:
Did you "git" ;) the device tree from koush? (hint use git ;).)

Sent from my phone, please excuse any Swypos.
[Xperia Play Android Development] cj360:
do you mean this "git" I'm not sure what command to use as

git clone https://github.com/koush/proprietary_vendor_semc.git -b

is missing the argument after -b or I am.
[Xperia Play Android Development] paxChristos:
(The -b tag means branch) (and you need all 4 Keiran listed in the OP)

you're forgetting which branch (ics) you wanna sync :D

Also, if you plan on rebuilding at a later date, you're gonna have to cd to the folders that you cloned & do a

git pull

for any updates to those repositories.

(From the OP: In the terminal again:

cd ~/android/ics/vendor/
git clone https://github.com/koush/proprietary_vendor_semc.git -b ics semc

Then:

cd ~/android/ics/device/
mkdir semc
cd semc
git clone https://github.com/CyanogenMod/android_device_semc_msm7x30-common.git -b ics msm7x30-common
git clone https://github.com/CyanogenMod/android_device_semc_zeus.git -b ics zeus
git clone https://github.com/CyanogenMod/android_device_semc_zeus-common.git -b ics zeus-common

)
[Xperia Play Android Development] cj360:
Well I'm dumb lol. But I merged the zeusc git into my directory and I still only see zeus-eng in the list. Should I be adding cm9 prebuilts for zeusc?
[Xperia Play Android Development] paxChristos:
oooh.... s***

rm -rf that folder & both the cdma folders... somehow those left my computer & entered the internets... we'll pretend like they don't exist because they don't work :P (you'll have to change a couple of files in .repo/ folder to get rid of it re-syncing)
[Xperia Play Android Development] cj360:
Do you mean post #81? Re- syncing the vendor trees just cause.

I do have a zeus-eng in my list but it gives a error saying its incomplete and asking if its the right one.
[Xperia Play Android Development] paxChristos:
I re-sync the vendor & device trees every time I (re)build. Unless you add them into the .repo/ manifests

Sent from my phone, please excuse any Swypos.
[Xperia Play Android Development] cj360:
I still seem to only have zeus-eng in my list besides a couple other devices. Going to work on it more after dinner.
[Xperia Play Android Development] paxChristos:
run either

. build/envsetup.sh

or

vendor/cm/vendorsetup.sh

(envsetup will get all options, vendor/cm/vendorsetup.sh will give you the userdebug options, also you might have to chmod +x vendorsetup.sh)

Pax
[Xperia Play Android Development] cj360:
I get

andrew@andrew-Aspire-5517:~/Gummy$ . build/envsetup.sh
including device/amazon/otter/vendorsetup.sh
including device/semc/zeus/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/Gummy/vendorsetup.sh
including sdk/bash_completion/adb.bash

And cd-ing to the dir of vendorsetup.sh and running it, terminal says

bash: build/vendorsetup.sh: No such file or directory

.

Can't thank you enough for helping me out on this so much :)
[Xperia Play Android Development] paxChristos:
Gummy? Is that the Aokp code? Check (from your Android source dir)

cd vendor/cm

It should be in there.

Sent from my phone, please excuse any Swypos.
[Xperia Play Android Development] cj360:
It's not. I said I'm trying to merge the vendor trees for zeus of ics to make a Gummy rom. It has some simiarites to aokp but seems to have less developers from what I can tell. Wasn't sure if cm should be pulled or should it be in the vendor trees from the 1st posts and from koush?
[Xperia Play Android Development] dtronics:
problems installing java

hi all i am having problems installing java jdk

everytime i run sudo apt-get install sun-java6-jdk

i get

Reading package lists... Done

Building dependency tree

Reading state information... Done

Package sun-java6-jdk 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

E: Package 'sun-java6-jdk' has no installation candidate

how can i install java jdk cause all i get is openjdk not the sun one

any help would be helpful

oh and one more thing after it has built where is the file i need to flash to the phone
[Xperia Play Android Development] paxChristos:
1st question: What version of ubuntu are you running?

2nd question: out/target/product/zeus/ is where your files will be located.

@Keiran -- Do you want to update this for inline kernel building as well?

And do you also want to add in that there's a working (i'm using it) device tree for zeusc? (https://github.com/paxchristos/android_device_semc_zeusc) as well as a my own msm7x30-common & zeus-common & vendor/semc tree :D (vendor/semc is setup for zeusc :D ) so if people want to build for the R800x for cm9, they can do it without messing around with the zeus tree :D

Pax
[Xperia Play Android Development] IE-coRe:
I was about to compile but then I got major problems with jdk. I thought it was already installed but looks like it wasnt. I tried to get it installed i followed about 10 instructions but it never worked. I am using Ubunu 12.04 x64 i hope that is not a problem.

EDIT: Forget it i got it working it is compiling on 32core mtfckn BEAST!!:D

EDIT2: Just finished, took 1 hour. =)
[Xperia Play Android Development] festa20:
mkdir -p ~/android/ics/

cd ~/android/ics/

repo init -u git://github.com/CyanogenMod/android.git -b ics

after this command it doesnt say anything this is what it says when i write it in

root@ubuntu:~# mkdir -p ~/android/ics/

root@ubuntu:~# cd ~/android/ics/

root@ubuntu:~/android/ics# repo init -u git://github.com/CyanogenMod/android.git -b ics

gpg: keyring `/root/.repoconfig/gnupg/secring.gpg' created

gpg: keyring `/root/.repoconfig/gnupg/pubring.gpg' created

gpg: /root/.repoconfig/gnupg/trustdb.gpg: trustdb created

gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported

gpg: Total number processed: 1

gpg: imported: 1

Get https://gerrit.googlesource.com/git-repo

so do i enter my email address straight after this because i tried and it just stays like this foreer

hope to hear reply

cheers
[Xperia Play Android Development] festa20:
-bash: /root/bin/repo: Permission denied

mkdir -p ~/android/ics/

root@ubuntu:~# cd ~/android/ics/

root@ubuntu:~/android/ics# repo init -u git://github.com/CyanogenMod/android.git -b ics

-bash: /root/bin/repo: Permission denied

what am i getting wrong i got further than this last time but not appearing to be working at all any help would be great thanks
[Xperia Play Android Development] paxChristos:
You should copy repo to ~/bin/ not /root/bin/

Edit 1: Check ownership

Otherwise, do the following

cd ~/bin/

ls -l

check the ownership of the file, it might be root, which would keep a user profile from using it

if it is do the following

chown <your username> <optional group> repo

Edit 2: Check permissions

chmod a+x repo

might also fix it.

Pax
[Xperia Play Android Development] fareeed:
Almost forgot about this. I began to build on my laptop then after about 4-5 hours it failed due to a java error I think. When I'm on my laptop I'll post the exact message. I just wanted to lnow how I might fix this and what files shall I delete to rebuild? - Thanks :)
[Xperia Play Android Development] festa20:
Thanks pax will try n update this post
[Xperia Play Android Development] unrandomsam:
The CM9 part is fairly obvious. (Or at least similar to any other device).

What isn't obvious is how to get the FXP stuff from https://github.com/freexperia into the build

(Also how to relate the changelog to any of the stuff in there).

I should be able to provide a diff to the standard CM9 manifest to allow building straight away.

(Better that way as the CM9 manifest is more likely to change than the diff).
[Xperia Play Android Development] nickholtus:
the stuff from github.com/freexperia is kernels and all other things are already pushed to this cm9 repo's!!

so i don't get why you are complaining about that
[Xperia Play Android Development] KeiranFTW:
Yeah, nicks right, FXP repos are now deprecated and new kernels are in CM repository.

Of course it should have been this way all along ;/
[Xperia Play Android Development] sasukekun67:
For people who got this error try this

sudo apt-get update
sudo apt-get install openjdk-6-jdk
[Xperia Play Android Development] festa20:
I got told that openjdk didn't work

And it didn't work for me when I installed openjdk
[Xperia Play Android Development] unrandomsam:
So the very latest changes are in CM gerrit then ?

Nice to know thanks
[Xperia Play Android Development] sasukekun67:
Could anyone make a list of which repos are needed to build for our play? Cloning the whole cyanogen git is way too much for my connection :/
[Xperia Play Android Development] cj360:
Keiran has :eek: the ones in the OP are for the xplay
[Xperia Play Android Development] paxChristos:
If you're talking about repo sync, unfortunately, there is no easy way to pick & choose, it's a download them all or nothing :(

Pax
[Xperia Play Android Development] sasukekun67:
Hell's I'm downloading for 2 days now and due to my internet connection I have to use the "repo sync -f" command every 2 minutes --'
[Xperia Play Android Development] paxChristos:
Try repo sync -j2 & see if it runs better …
[Xperia Play Android Development] cj360:
https://github.com/koush/proprietary_vendor_semc.git

Seems to be down, or removed as I don't see it on his github.
[Xperia Play Android Development] paxChristos:
https://github.com/TheMuppets/proprietary_vendor_semc.git

Is up to date (fxp is adding to it)
[Xperia Play Android Development] acocalypso:
still having connection problems hmmm
[Xperia Play Android Development] fma965:
If your getting

you can try this

wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java.sh

or if the above doesn't work then try the file below :)

wget https://github.com/flexiondotorg/oab-java6/raw/0.2.4/oab-java.sh -O oab-java.sh

And then you need enter these commands.

chmod +x oab-java.sh
sudo ./oab-java.sh
sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin sun-java6-fonts

Hope this helps :),

Side note: MAC OS X (hackintosh) is awesome as a base operating system and then run windows 7 and ubuntu in virtual machines via parallels and in coherence mode :)

I ALSO GOT STUCK ON THE NEXT STEP SO I AM JUST GOING TO USE 11.10 INSTEAD :)
[Xperia Play Android Development] cj360:
@KeiranFTW or pax whoever sees this 1st, you may want to change

apt-get install sun-java6-jdk

as java's changed their links making this line useless. Google should update their page as well.
[Xperia Play Android Development] JunDavis:
I hate how syncing takes so damn long! Good thing I have other things to do while waiting. :)
[Xperia Play Android Development] fma965:
AFAIK java didn't change their links but there was a licensing issue so linux/unbuntu had to remove it.... atleast that is what i read.

Also this - lib32readline5-dev - seems to have been replaced with another package.
[Xperia Play Android Development] cj360:
Yeah your right, still Google could fix their page though :p.
[Xperia Play Android Development] JunDavis:
Wonderful tutorial! Thank you so much!
[Xperia Play Android Development] fma965:
yep they will eventually.... maybe.
[Xperia Play Android Development] CosmicDan:
It seems this repo no longer exists :( So I did this instead:

git clone https://github.com/TheMuppets/proprietary_vendor_semc.git -b ics semc

Is that alright? Is it current? Who the hell are TheMuppets (in this case)? Lol....
[Xperia Play Android Development] KeiranFTW:
I think koush went mad and deleted all of the proprietary repositories on his github, so that's right.
[Xperia Play Android Development] CosmicDan:
Rage against Sony for being so stubborn with driver sources?

Alright well im gonna compile tonight and ill let you know how it goes, maybe update the guide.

Sent from Xperia Play (R800a) with Tapatalk
[Xperia Play Android Development] paxChristos:
Koush used to have all the vendor trees on his git. I think GE just cleaned up/created an organization so everybody on CM team could take care of their own && not have to set individual permissions per repo.

And the muppets are Jim Henson's second greatest creation (to Fraggle Rock (very close second))
[Xperia Play Android Development] b00tbu9:
Hi I have a doubt..

I have managed to Install Play CM 9.1 on NEo L but the screen layout is always in One mode.. its not changing.. can anyone help me in knowing what to do about it... thanks
[Xperia Play Android Development] CosmicDan:
Wrong forum and thread. This is about compiling CM9 for the zeus.