yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] TrymHansen:
Yep, that did the trick. So uninstalling OpenJDK was the culprit, mea culpa.

trym@CMBuilder:~$ ls -la /etc/alternatives/java* && ls -la /etc/alternatives/jar
lrwxrwxrwx 1 root root 44 nov. 7 15:37 /etc/alternatives/java -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/java
lrwxrwxrwx 1 root root 45 nov. 7 15:37 /etc/alternatives/javac -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/javac
lrwxrwxrwx 1 root root 47 nov. 7 22:52 /etc/alternatives/javadoc -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/javadoc
lrwxrwxrwx 1 root root 45 nov. 7 22:52 /etc/alternatives/javah -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/javah
lrwxrwxrwx 1 root root 45 nov. 7 22:53 /etc/alternatives/javap -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/javap
lrwxrwxrwx 1 root root 46 nov. 7 15:37 /etc/alternatives/javaws -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/javaws
lrwxrwxrwx 1 root root 43 nov. 7 22:53 /etc/alternatives/jar -> /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/jar

However, the "sudo update-alternative --config ..." lines seem to be unnecessary if you only have one java-version installed, as they all produce an output like (translated) "There is only one alternative in the linkgroup jar: /usr/lib/jvm/jdk-6u37-linux-x64.bin/bin/jar. Nothing to configure."
[LG Optimus 2x] Raum1807:
Thank you for confirming it!

That is great news! I am glad that it worked out. Soon, I will update the guide. And I will include this for the SUNJDK-only people and a few other things as well. Some FAQ perhaps.

Yes, for you the line update-alternative --config is of no use. It was unneccessary to post these lines in your case. Copy and paste, you know: I wrote the lines to improve the guide so the users will be able to switch between the different JDKs, since they install OpenJDK 6 with the package of post #1 anyway.

Thanks for your support!
[LG Optimus 2x] rugglez:
For learning purposes, i used this as base and built a paranoidandroid ROM.

It is working great, wifi works fine without needing to inject the lib files.

So once again thanks to you all (RC, Raum, PA team and other devs), and dont worry, i wont share the PA build in public ;)
[LG Optimus 2x] slebit:
Im getting some syncing errors when trying to repo sync.

Fetching projects: 69% (218/315) remote: Counting objects: 9, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 5 (delta 3), reused 5 (delta 3)
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/Camera.git'
Unpacking objects: 100% (5/5), done.
From git://github.com/CyanogenMod/android_packages_apps_CMFileManager
7e504da..2a7122c jellybean -> github/jellybean
Fetching projects: 70% (221/315) fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/CellBroadcastReceiver.git'
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/CertInstaller.git'
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/Contacts.git'
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/CertInstaller.git'
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/Contacts.git'
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/Camera.git'
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/CellBroadcastReceiver.git'
error: Cannot fetch CyanogenMod/android_packages_apps_Contacts
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/DSPManager.git'
error: Cannot fetch CyanogenMod/android_packages_apps_CertInstaller
error: Cannot fetch CyanogenMod/android_packages_apps_CellBroadcastReceiver
error: Cannot fetch CyanogenMod/android_packages_apps_Camera
fatal: Not a git repository: '/home/name/cm10/.repo/projects/packages/apps/DSPManager.git'
error: Cannot fetch CyanogenMod/android_packages_apps_DSPManager

error: Exited sync due to fetch errors

I have also tried "repo sync -j1".

What can i do to fix this?
[LG Optimus 2x] Raum1807:
I'd try to resync it again. Sometimes even the github may have problems or your provider is giving you trouble. If that is the case, just wait a bit and resync later again.

If you are already seeing this error for days/many hours, then I would delete the whole /cm10 directory and restart with the guide from the first post at point "III. The source", where you create the working directory 'cm10'. Follow the steps from then on and you will be good.
[LG Optimus 2x] p.valenta:
Hi All,

I still not get working WiFi. :(

I made these steps from official Nigthly (2012-11-05):

1) Factory Reset

2) Format System

3) Format Dalvik Cache

4) Install my kang (yesterday sync source) & reboot & stuck in start WiFi in the setup Android wizard.

WiFi cannot be started. :(

Any other idea how to fix that?

Edit: Just to note before build I made "make clean" to ensure all source will be build again.
[LG Optimus 2x] Raum1807:
Hm. I have an idea. Send me the file size in Bytes of 'wireless.ko' in /system/lib/modules/ from inside the ROM image or from the smartphone.

I want to check something.
[LG Optimus 2x] p.valenta:
Thank you for helping. Compiled wireless.ko attachment. Logcat show same error like before for rugglez:

E/WifiStateMachine( 321): Failed to load driver!
E/WifiStateMachine( 321): DriverFailedState

When I check with with latest Nightly (from 8th) then sizes are different:

My size 222076
Nightly size 220692

I just tried to replace that file on my phone and BINGO! WiFi works with wireless.ko from Nightly, but not with wireless.ko from CM source code. :eek:
[LG Optimus 2x] ethansp:
Removed.
[LG Optimus 2x] Raum1807:
That is exactly what I thought! From time to time the buiding process somehow breaks the 'wireless.ko'. Have to check into this. But in the meantime replacing the wireless.ko file is easy enough as a workaround. Oh, and set the file permissions to 644 after you copy it to '/system/lib/modules'.
[LG Optimus 2x] HerrKuk:
Also, you dont have a lge-ril.so in official builds.. Arcee have made something completley new..

I suggest that you to extract your own blobs from an official build instead of using muppets
[LG Optimus 2x] Raum1807:
Incorrect. Check here.
[LG Optimus 2x] HerrKuk:
So where's the lge-ril.so :D

I built one with muppets and i didn't get any network and 999% battery, a typical RIL crash.

I extracted my own blobs from offical and it suddenly worked. But it was a few days ago and might depend on other stuffs aswell.

I havent tried since then though
[LG Optimus 2x] p.valenta:
Yes, need to fix permission.

Anyway, I always though that prebuilt/wireless.ko is prebuilt, so it will be only copied to the out folder. Now I see it is not as source file have 2.5MB. :(

---------- Post added at 05:10 PM ---------- Previous post was at 05:07 PM ----------

lge-ril.so has been renamed to liblgeril.so

I have it like that in my kang. No RIL problems by me.
[LG Optimus 2x] Raum1807:
Please recheck the link I posted and have a look at the 'p990-vendor-blobs.mk' file. There is no lge-ril.so file at the moment when you build a ROM.

The errors you got a few days ago must be related to something else. Maybe it was the time when Ricardo changed the filename of lib-ril.so and your sources weren't synced properly.

This is exactly what Ricardo did to stop people from messing around with RIL tools. No RIL problems with the own build on my side too.
[LG Optimus 2x] HerrKuk:
Please recheck my first post...

Anyway, it works NOW and thats the important
[LG Optimus 2x] RomWiz:
What is the name *themuppets* that is pasted in the xml file?

Sent from my phone with test release of ics (v28a)
[LG Optimus 2x] tonyp:
CM uses that account to store the vendor files.

Maybe they don't want to host them at their usual github account as it might not be entirely legal to upload and host them (they're proprietary).

But no idea if this is actually true, just speculating.
[LG Optimus 2x] Raum1807:
UPDATE

Hi all,

I have updated the first article to Revision V1.3.

V1.3 20121110 New FAQ, Updates Java section, WIFI fix

Most of your feedback has been added, I put together a FAQ list and included the WIFI fix.

You miss a topic? I am open to suggestions. Found an error? Write me!

I hope you like it!

Check it out: [GUIDE CM10] How to build your own CyanogenMod 10 ROM from sources for LG P990 O2x
[LG Optimus 2x] RomWiz:
I'm building for p970 and i change p990 to p970 and star to sniper in local_manifest.xml but when i then do a repo sync i get this

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

cp /home/daniel/cm10_source/.repo/repo/repo /home/daniel/bin/repo

Traceback (most recent call last):
File "/home/daniel/cm10_source/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/daniel/cm10_source/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/daniel/cm10_source/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/daniel/cm10_source/.repo/repo/command.py", line 45, in OptionParser
self._Options(self._optparse)
File "/home/daniel/cm10_source/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/daniel/cm10_source/.repo/repo/manifest_xml.py", line 256, in default
self._Load()
File "/home/daniel/cm10_source/.repo/repo/manifest_xml.py", line 304, in _Load
self._ParseManifest(nodes)
File "/home/daniel/cm10_source/.repo/repo/manifest_xml.py", line 389, in _ParseManifest
(project.name, self.manifestFile))
error.ManifestParseError: duplicate project CyanogenMod/android_device_lge_p970 in /home/daniel/cm10_source/.repo/manifest.xml
daniel@daniel-Ubuntu:~/cm10_source$ gedit ~/cm10/.repo/local_manifest.xml
daniel@daniel-Ubuntu:~/cm10_source$ gedit ~/cm10/.repo/local_manifest.xml
daniel@daniel-Ubuntu:~/cm10_source$ repo sync

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

cp /home/daniel/cm10_source/.repo/repo/repo /home/daniel/bin/repo

Traceback (most recent call last):
File "/home/daniel/cm10_source/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/home/daniel/cm10_source/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/home/daniel/cm10_source/.repo/repo/main.py", line 122, in _Run
copts, cargs = cmd.OptionParser.parse_args(argv)
File "/home/daniel/cm10_source/.repo/repo/command.py", line 45, in OptionParser
self._Options(self._optparse)
File "/home/daniel/cm10_source/.repo/repo/subcmds/sync.py", line 147, in _Options
self.jobs = self.manifest.default.sync_j
File "/home/daniel/cm10_source/.repo/repo/manifest_xml.py", line 256, in default
self._Load()
File "/home/daniel/cm10_source/.repo/repo/manifest_xml.py", line 304, in _Load
self._ParseManifest(nodes)
File "/home/daniel/cm10_source/.repo/repo/manifest_xml.py", line 389, in _ParseManifest
(project.name, self.manifestFile))
error.ManifestParseError: duplicate project CyanogenMod/android_device_lge_p970 in /home/daniel/cm10_source/.repo/manifest.xml
[LG Optimus 2x] owain94:
first update your repo command :D

cp /home/daniel/cm10_source/.repo/repo/repo /home/daniel/bin/repo

and now check your

/home/daniel/cm10_source/.repo/manifest.xml file

delete this line

CyanogenMod/android_device_lge_p970 (you have this line two times or 2 times in your manifest.xml or once in you manifest and once in your local manifest)

repo sync again
[LG Optimus 2x] RomWiz:
Thank you.

But now it is stuck after 100% resolving deltas :/

Edit: Works now. Just took some time :P
[LG Optimus 2x] rolex0815:
Thanks to your guide, I was able to transform it to compile the Sony Xperia S CM10.
[LG Optimus 2x] Raum1807:
Thank you for confirming that the guide is in fact universal. WIth just a few changes it is possible to build ROMs for all the Support CM10 devices.

Happy building! :good:
[LG Optimus 2x] slebit:
Finally I made my first build! After a couple of problems on the way, I finally made it! Thanks alot Raum for this great guide!
[LG Optimus 2x] fuxmen:
MODVERSION: 10-20121114-UNOFFICIAL-p990
Zipping package...
Signing package...
Cleaning up...

Package complete: /home/fuxmen/cm10/out/target/product/p990/cm-10-20121114-UNOFFICIAL-p990.zip
c5710e574de2f02e1ea86cbd1f65beba cm-10-20121114-UNOFFICIAL-p990.zip

YEA!!!!
[LG Optimus 2x] slebit:
I made a rebuild today. But it is named "cm-10-20121113-UNOFFICIAL-p990.zip", despite that today it is 20121114. Why is that?
[LG Optimus 2x] owain94:
You didn't do a make clean so it uses the date from the build.prop that was already generated

If you don't want to do a make clean then just remove /out/product/p990/system/build prop and then build again

After this it will generate a new build.prop with a new date
[LG Optimus 2x] Raum1807:
You are welcome!

This is the case when your build is just a rebuild. It is using old parts that it has already created. It made, so to say, a rebuild on the base of your last full build: in your case that was on 20121113.

To reflect the actual date and time and to get the new date also in the "about phone" window while running the system on your LG P990, just delete the build.prop file in "cm10/out/target/product/p990/system". Then rebuid and voilà: the new date is everywhere.

EDIT: And Owain beat me to it! But you know, there is no shame in being beaten by Owain. Thanks man for your competent help everywhere!
[LG Optimus 2x] slebit:
Thanks! That did solve it!
[LG Optimus 2x] derealrobert2:
LG P690

can any bony here know how to solve the other issues in LG ONET P690 where still waiting for solve. and we waiting also the petition qualcom :)). hope ICS ON LG P690 have stable os. im suffering my ROM because almost of custom rom was UNSTABLE :(:(
[LG Optimus 2x] slebit:
Im trying to build paranoid android, and im looking for optimus 2x device's proprietary vendor files. What is the proprietary vendor files for o2x?
[LG Optimus 2x] rugglez:
Here you go :)

[
{
"account": "TheMuppets",
"repository": "proprietary_vendor_lge",
"target_path": "vendor/lge",
"revision": "jellybean"
}
]

If you are following the official guide to build PA from sources, replace "samsung" by "lge" at all places, and xyz with p990.

If you want the device specific trees, copy paste the content given by Raum in the OP for local_manifest.xml (without the opening and closing manifest tags).

Works great, tried and tested. Good luck! :)
[LG Optimus 2x] slebit:
Thanks! Will try!
[LG Optimus 2x] Raum1807:
That is right. Or you could just copy the local_manifest.xml file from .repo of your cm10 build environment to the .repo directory of your paranoid environment. Works fine too.
[LG Optimus 2x] rugglez:
Xhdpi can be changed to hdpi,

and a note that while syncing repo, if you get a duplicate entry error in manifest (sometimes you may get for the last 2 lines), then you can delete them, it will work fine (don't try this if you don't have any such problem)

Also, if you want to maintain separate repos for cm10 and PA, and you already have cm10 repo projects already fetched, you can just copy all the project folders inside project folder of cm10 repo into project folder inside this PA ".repo" folder. This will save a huge amount of time while fetching projects during repo sync. (you have to execute that command anyway since some extra stuff has to be fetched, but most of the time would be saved)

Otherwise, seems fine :)
[LG Optimus 2x] tonyp:
Very nice.

When I'm back home in a week I will submit the needed patches upstream, then building will become a lot easier :)
[LG Optimus 2x] fuxmen:
Theres o chance to build CM10 for new bootloader and partition layout?
[LG Optimus 2x] stonebear:
I have no experience at all but I am tempted to try this as a little (big for me!) project. The good thing about this phone is I am not worried about bricking it. :)
[LG Optimus 2x] slebit:
I had never done something like this before. But it was actually pretty easy. This guide is really easy to understand. So thanks to @ Raum1807 for making this awesome guide.
[LG Optimus 2x] owain94:
To be honest building android is pretty easy

The only thing about it that's sucks is setting up the environment...

But luckily you'll only have to do that once

Personally I started back on a old device I stopped quickly because the people there sucked pretty hard everybody was ungrateful

I started again thanks to temasek he announced that he was about to stop kanging

At that moment I thought I will continue his work on cm9

And I was missing some options I would love to have

And that's how Domination and DominationX 2.0 were born
[LG Optimus 2x] rugglez:
Very true :)

Especially When you have someone like RC who has done so much work that makes it simple for us to build it.(the reason we shouldn't release our builds yet ;) )

I set up the environment, built cm10 and paranoid android based on it in a single day when I was just getting started (of course, no cherry picks or anything yet)

Found porting miui much harder than this, took a long time to get it to even boot. :cyclops:
[LG Optimus 2x] winstonxl2:
I wil hold it easy i wil just redownload the source
[LG Optimus 2x] Raum1807:
If I understood you correctly, you are dealing with a PC that has either faulty RAM modules and/or a defective hard drive. Do yourself a favor and isolate the damaged part and replace it. You won't get very far: if the RAM fails you will get at least a lot of errors from the compiler and if the HDD fails you will have at least an inconsistent system with missing files.

So check your system first please. For compiling you need a rock-stable system. And if you cannot build CM10 right now, you won't succeed with Paranoid either.
[LG Optimus 2x] tonyp:
For the people following Raum's instructions for building ParanoidAndroid:

PA renamed the branch, you need to switch to the cm_jellybean one.

ParanoidAndroid is now moving away from CM to an AOSP ROM, so they renamed their branch.

So instead of

$ repo init -u git://github.com/ParanoidAndroid/android.git -b jellybean

init against:

$ repo init -u git://github.com/ParanoidAndroid/android.git -b cm_jellybean

But if you wait 1-2 weeks I will submit everything needed to the ParanoidAndroid sources, then building PA becomes as simple as building CM, no need to do any extra changes from your side.

There's one problem with PA moving to AOSP:

The ParanoidAndroid CM sources became a little outdated - so I'd recommend to "git remote add" the Cyanogenmod sources and merge upstream to refresh the sources before building (at least for the framework and settings).

But you'll probably need to fix lots of conflicts.

Or again - you wait until I do it and publish everything at my Github :D
[LG Optimus 2x] Litderose:
Dear Raum1807,

I followed your guide step by step and the result is : my own CM10 rom running perfectly ! :highfive:

So thank you very much for this awesome guide ! :good:

A little more difficult : I tried to build my own PA rom but unfortunatly, the build did not succeed.

But to be really honest, my goal is to do something else : I want to build a SlimRom.

So I decided to follow your PA guide (with changing PA into slim) : no success too. :(

May I ask you a little update to show me the way to go ?

Perhaps it's not possible to build a SlimRom for the O2X, I can't answer to this because i'm not a dev

Anyway, thank you again !
[LG Optimus 2x] Raum1807:
A little update: if you want to build the newest CyanogenMod CM10.1 (android 4.2.1) for the LG-P990 O2x, please have a look a this thread too.
[LG Optimus 2x] tonyp:
I did set up a manifest for CM10 on the new bootloader for people who want to make their own build.

Just do a

repo init -u git://github.com/tonypp/android.git -b jb-412
repo sync

You don't need to add a local-manifest.xml like described in the first post as I already added these repos to the master manifest. Apart from that you can follow his guide.

It's pointing to pengus77's repos for the new bootloader - additionally I removed the CMUpdater to stop people from trying to update a ROM with it which won't work obviously (as the nighlies are for the old bootloader).

My build isn't ready yet so please don't blame me if there's an error somewhere :D
[LG Optimus 2x] alakyr:
difference betwen new and old apart the different partition size?

Inviato dal mio LG-P990 con Tapatalk 2
[LG Optimus 2x] mivv:
i will try this thanks
[LG Optimus 2x] tonyp:
I will add one for android 4.2.1 soon.
[LG Optimus 2x] mivv:
even better thanks
[LG Optimus 2x] stonebear:
I just got my replacement SSD and want to dual boot Windows and Ubuntu.

It is only a 60gb drive so I was wondering how big do I need to make the Ubuntu partition?

I know it can be really small, like 5 gb minimum or something but would that be ok for rom building?

I would probably choose about 15gb for Ubuntu, would that be enough?
[LG Optimus 2x] mivv:
u will need at least 20gb for starting a build

6GB of download.

25GB disk space to do a single build.

80GB disk space to build all AOSP configs at the same time.
[LG Optimus 2x] rugglez:
My build folder is around 15-20 GB before starting a build and now after building, it is currently at 33 GB (!)

So at least 35-40 GB is recommended for the Ubuntu partition
[LG Optimus 2x] stonebear:
Thanks, in that case I have a spare ssd that I will devote just to this. :)
[LG Optimus 2x] tonyp:
I decided to wait with setting up a cm10.1 manifest until everything gets more stable.

Whoever wants to build one can use the instructions from the "build cm10.1" thread.

Personally I'm using CM10 (new BL) currently, there's not really an advantage of switching to CM10.1 at the moment.

For building CM10 on the new bootloader you just need to follow these steps (after setting up your build machine):

repo init -u git://github.com/tonypp/android.git -b jb-412
repo sync
. build/envsetup.sh
vendor/cm/get-prebuilts
brunch p990

It synces directly to pengus77's repos.

Edit: PDroid is included as well of course.

You still need the PDroid.apk - unfortunately you can't get it from the market as the author didn't make it compatible with JB, yet.

The apk (installabe) and a flashable zip installer can e.g. be found in my old PA addons folder:

http://goo.im/devs/tonyp/PARANOIDANDROID/addons
[LG Optimus 2x] jeroenqui:
Tonyp or anyone else, can you explain how to cherry pick commits?

For example if I want to cherry pick this commit: http://review.cyanogenmod.org/#/c/29538/

Thanks in advance for taking time to answer this!
[Windows 8 Development and Hacking] ceesheim:
hi, all

I have a Problem removing some atributes from a Folder

actually all Folders have the read only atribute (what isn't a Problem for me) but a few I want them to be removed

I tried :

powershell:

#### Disables UAC - Requires Reboot
Set-ItemProperty -Path 'registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system' -Name EnableLUA -Value 0
Restart-Computer
####

SetACL -on "HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}" -ot reg -rec yes -actn setowner -ownr "n:S-1-5-32-544"
SetACL -on "HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full"
Remove-ItemProperty -Path "registry::HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}" -Name RunAs

(ohh if you think just right click and then remove "read only" you can Forget that)

tried:

SetACL Studio

tried:

far Manager

tried all "own" programs

so if you have another Thing to try please drop it here

Greetings Cees
[Windows 8 Development and Hacking] dansou901:
Did you already try File Assassin?
[Windows 8 Development and Hacking] Волк:
On a wild idea, if it's down to the permissions, if you're set to dual-boot, say Linux, why not change the attributes via the other OS? I've done stuff like that before. I am mobile which makes it damn near impossible to read what the file is though.