yashsingh1/xdaforums huggingface dataset:
[Android] Ghostman:
is there a way to repo sync a specific device instead of doing the long download?
[Android] jjhiza:
I'd suggest slowing the pace down a bit, man. You seem to be moving too fast for your own good... If you didn't even know what a directory is (from a previous post), then you should probably spend some time, getting to learn your new system (Ubuntu), before you jump into compiling Android.

Secondly - and this is just my opinion - I'd suggest blowing up that repo sync you just did in your /home directory, and redoing it from scratch, in its own folder (eg. /home/Android). That will help you keep things organized, and will make for better navigation of your directories.

We're all here to help man, but you need to help yourself a bit... Read some of the other "how to compile" threads, Google your specific issue... Chances are, someone else has had the exact same problem. Rome wasn't built in a day though, so there's no shame in taking it slow, learning the steps, and really understanding what each step is having you do. :)
[Android] Ghostman:
Yea you're right ill just take it slow and learn more about Ubuntu and other aspects of it.
[Android] jjhiza:
It certainly can't hurt. Linux systems vary from distro to distro... Commands can be different, and the learning curve is higher with some of them. If you open Firefox, it should open to a homepage for your distro (I know Mint does this), and it should have links to distro forums and other information. Ubuntu has a massive support forum, that's full of useful information. Just go to the Ubuntu site, and register. :thumbup:

My advice is to spend some time customizing and personalizing your setup. As you search for things (like applets, themes, extensions, apps, etc) you'll become more familiar with the system and the command line, and you'll be using both in a way that won't risk harming your computer.

Once you get comfortable with apt-get, sudo, and cd commands, you should be good to go. Linux is fun, but it's really not an environment that you can just jump into blindly. I ran Mint 14 on an old computer, off a flash drive for two months, before I got my new computer in December. That put me a little bit ahead of the game, and let me know what I was getting into. You'll get the hang of it, no doubt. :)
[Android] Ghostman:
Alright thanks :D
[Android] sylentprofet:
There is. It involves making a "local_manifest.xml" and placing it inside the .repo folder (ie /home/androidbuildfolder/.repo)

This xml file will be "read" when doing a repo sync. It contains directions specific to your local repository, which repositories to ignore and if you have to add any ones specific to your device, like a kernel or updated modules.

Check out my github for an example of a local manifest for TeamHorizon's XenonHD. It's written to compile for only a few devices, primarily the mako (Nexus 4). Feel free to fork it and modify for your own purposes.

The repo init command should still be used, pointing to whatever flavor you want to build (CM, AOKP, etc). The local_manifest bases its insertions and deletions off of the default.xml file that is created. So, the order would be:

repo init (blahblahblahblah cm, aokp blah)

copy the local_manifest.xml file into the appropriate directory.

THEN repo sync

These directions are at the bottom of the github repo. Check it out and you'll see what I'm saying.

https://github.com/sylentprofet/platform_manifest-xenon
[Android] jaysix79:
can I rename my source folder? for example from /android/system to (folder-name)/system

also im getting this error

bash: ./rom-build.sh: No such file or directory
[Android] intruder16:
The old deprecated way is to create a local_manifest.xml in the .repo directory. The new way (available in repo versions >= 1.19) is to create a folder called local_manifests and put that inside the .repo directory, then put your XML inside that directory. You can place as many override files in .repo/local_manifests as you like and repo will pick them up during the next sync. You can call the files anything you like as long as they end in .xml.

---------- Post added at 02:56 AM ---------- Previous post was at 02:49 AM ----------

When it says "No such file or directory" it means the file you are calling (in this case "rom-build.sh") is not in the current directory. You can quickly type "ls" (list files in the current directory, without quotes of course) and see if its there, if its not there, then manually search for file in your file browser. Find the directory its in and "cd" into that directory through terminal. It'll work.
[Android] jaysix79:
cool thanks i figure it out and i was able to build thanks again for this guide....

one more thing i want to use the ccache for faster building but im getting this error

VirtualBox:~$ export USE_CCACHE=1

VirtualBox:~$ export CCACHE_DIR=/home/asus/ccache/.ccache

VirtualBox:~$ prebuilts/misc/linux-x86/ccache/ccache -M 70G

bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
[Android] fOmey:
Excellent guide, thank you so much for sharing.
[Android] mor_1228:
Can someone help with this problem ? earlier i sync with other rom but nw i am doing with cyogen so its showing this error.
[Android] nolinuxnoparty:
You need to install REPO tool into the folder

do

PATH=~/bin:$PATH

do installl repo tool from google before :)
[Android] mor_1228:
did what u said but didnt work plz tell step by step from starting if u can otherwise no problem someone else will help :good:
[Android] kylon:
The errors says: who are u?

You need to link your git account

Inviato dal mio Desire S usando Tapatalk 4
[Android] Gnome:
Help JAVA error while Compiling ROM

Guys, I need help regarding my error. Error says I dont have java installed, although when i run the java -version it shows me the JDK 6 version installed. But when I run

. build.envsetup.sh

it says that I dont have JAVA installed and that I need to install it.

Hope you can enlighten me with this issue. Tried googling the problem but I can't seem to find any solution.

Thanks in Andvance! :o

Edit: I'm using debian wheezy
[Android] jjhiza:
Did you update the sdk? I had the same issue, and it ended up being a compatibility issue with the sdk version (the old one) I was using.
[Android] Gnome:
Thanks I'll try to update it. I used the one in aosp. I'll look for an updated one.

Anyways, Do you know the version of the updated one?

Edit: Got the new version, Installing it now...
[Android] trevd:
Are you building the aosp?
[Android] Gnome:
Yes
[Android] trevd:
I'll spare you the overly technical explanation ; just do this

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" && \
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse" && \
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse" && \
sudo apt-get --yes update && \
sudo apt-get --yes install sun-java6-jdk

This install the "proper version" of java6 from the ubuntu archive repositories.

here my full build environment setup script which might save you some time in the future

https://github.com/trevd/android-info/blob/master/init_android_dev.sh
[Android] Quinny899:
I've been trying to solve this error for the last few hours now:

libcore/luni/src/main/java/libcore/reflect/AnnotationAccess.java:743: type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds A,java.lang.annotation.Annotation
return AnnotationFactory.createAnnotation(annotationClass, members);

I'm using the jdk "sun-java6-jdk" as recommended, and it happens whenever I try to make anything

Full output is attached

Any ideas?
[Android] trevd:
That's quite an interesting one you've got there Quinny, I've got it too.... Seems they've broke the build. Try a different Java version. You can disable the hard coding of the sun java tool chain by changing the JAVA_HOME setting in build/envsetup.sh , it's around line 1250 ish.

Libcore has recently been made 64bit safe which may be responsible although that's purely speculation. ;)

You know all about update-alternatives and side by side install don't ya?
[Android] Quinny899:
Well I had so many Javas installed and it wasn't working, so I uninstalled all of them and installed the one you linked. So update-alternatives only shows that one now. I'll try the change in the sh file now
[Android] trevd:
Add the webupd8team one for the oracle repackages and try with oracle 7, I'm running debian ATM moment and apt has just go very confused trying to add the ppa's LOL so I force open-jdlk7 through but the build system has crapped it's self LOL

sudo add-apt-repository --yes ppa:webupd8team/java
echo "Webupd8 respository added for official oracle java jdk version 6, 7 & 8"
sleep 2
# Install java 7 from wepupd8
echo "Auto Accepting Oracle License"
sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections -v
sleep 2
echo "Installing oracle-java7-installer"
sudo apt-get --yes install oracle-java7-installer install oracle-java8-installer

Have that, Even auto accepts the licenses as well ;)
[Android] Rookie407:
repo

cant seem to get the "repo init -u git://github.com/AOSP/platform_manifest.git -b jb" command to work just says no command found. trying to download from my own git but not sure how i would put that into this command line...
[Android] kylon:
You forgot to set up bashrc

Inviato dal mio Desire S usando Tapatalk 4
[Android] Rookie407:
ok trying to get the repo still but i get this

i did the whole

what am i doing wrong?
[Android] CNexus:
You need to install git like the error says.

sudo apt-get install git
[Android] yajnab:
WIll this support JDK7 ?? I need JDK 7 for my Java Netbeans. Can JDK 7 hamper this?
[Android] Gnome:
You need jdk6 to compile android. I tried jdk7 but it fails and asks me to install jdk6.
[Android] kylon:
I m using jdk7. It is working.

Inviato dal mio Desire S usando Tapatalk 4
[Android] ezaechiel:
Thanks for this great guide, will try it asap.

Finally I'll try to build my own aosp rom
[Android] Gnome:
Guys one question, after building aosp from source for my nexus 4. make otapackage, after the build I flashed it and all is just a black screen, I just made changes on the settings app and that's about it. Any Ideas?

Edit: Scratch that I found the problem, I forgot to install the binaries. LOL!
[Android] Concoran:
Thanks....

Couldn't thank you enough.

Next job is to actually build :) . Fun stuff.
[Android] abidaddy:
good

great guide......I needed this u a lifesaver.........
[Android] RohanAJoshi:
i m getting this error at 1st step.

rohan@rohanPC:~$ sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*

sudo: >>> /etc/sudoers: syntax error near line 26 <<<

sudo: parse error in /etc/sudoers near line 26

sudo: no valid sudoers sources found, quitting

sudo: unable to initialize policy plugin

rohan@rohanPC:~$
[Android] jjhiza:
From my brief experience with Arch, I believe sudoers (the person or group with permission to sudo) is something you can set up manually, although Ubuntu *should* have done it automatically, when you went through the install process.

Search Google for your specific error, but if you don't find anything, you can try this (if you're feeling brave) from a fresh command line (these commands are from my Arch Linux install, and may not be compatible with Ubuntu - use at your own risk) :

passwd

(enter a new root password when prompted)

Then:

useradd - m -g users -G wheel,storage,power -s /bin/bash johndoe (johndoe is your preferred user name)

passwd johndoe

(enter a new password for login and root permissions)

*NOTE: like I said, these directions are from setting up Arch, NOT Ubuntu. I'm offering them as a reference point. I strongly suggest a Google search for your specific sudoers error, before you go trying the commands listed above.
[Android] RohanAJoshi:
friends, i m started to sync cm but getting this in terminal, is this normal ?

Fetching project platform/developers/docs

2 154M 2 3251k 0 0 30354 0 1:29:13 0:01:49 1:27:24 29348 % Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0Receiving objects: 9% (6692/68855), 2.15 MiB | 66 KiB/s

curl: (22) The requested URL returned error: 404 Not Found

Server does not provide clone.bundle; ignoring.
[Android] cj360:
I've seen some ppl say no and others say yes. Could someone who's had success building with jdk7 post what they've modified if anything?
[Android] jjhiza:
This won't answer your question, but I always got errors with jdk7,but none with jdk6. My theory is if it's not broken, don't fix it. I don't have the time to mod files, just to be able to get a successful compile, lol.
[Android] cj360:
So true, just figured I ask to see if someone could answer :P
[Android] adinkwok:
I keep getting

ln: failed to create symbolic link ‘/usr/lib/i386-linux-gnu/libGL.so’: File exists

When adding the code

~$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

Please

HELP!
[Android] sylentprofet:
If it already exists, then you should be ok?

You can also try to delete the existing symbolic link and re-create it if you really want to.. That would be:

sudo rm /usr/lib/i386-linux-gnu/libGL.so
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
[Android] ocarinaz64:
Still a little confused.

After reading your guide I was able to sync up the source tree(s) with my computer. But now that I have done that, how do I get from there to having a ROM to install? I checked out source.android.com, but I don't understand which configurations I need to be compiling. I'm trying to get it on a CMDA Virgin Moblie HTC One V phone. Could someone at least direct me to the proper forum to find out this info? I have no idea how to compile the source into something useful, or even which source tree(s) that might work with my device.
[Android] reddvilzz:
i got this error while trying to sudo,

E: Unable to locate package lib32ncurses5-dev

E: Unable to locate package ia32-libs

E: Unable to locate package lib32z-dev

E: Unable to locate package lib32readline-gplv2-dev

E: Unable to locate package lib32readline5

E: Unable to locate package lib32readline6

E: Unable to locate package lib32bz2-dev

i am using ubuntu 13.04. do this have to do with my java version? because i installed the version 7
[Android] sylentprofet:
Sounds like you're trying to install on a 32 bit version of Ubuntu. Try again with 64 bit.
[Android] RobbieL811:
I followed this guide step by step and sources synced up and all but when I go to try to build, I get an error #127. I pasted a link below with my entire terminal from the time that I start the build. Can someone please take a look at it and let me know what is going on?

http://pastebin.com/Mq3x1N6A
[Android] McJesus15:
Definitely not a pro but looks like your directories are off or you're missing some packages
[LG Optimus L9 P760, P765, P768, P769] Igoritza:
Does anyone know where to buy motherboard for replacement ?

My LG L9 got water damage and the single circuit is fried and it is not even possible to replace only the circuit cause it is inside PCB, so I need a new working board.

As I figure, any board will do, P760, P765, P768, and P769 even cause the LCD connector is the same, I just need a place to buy a board. I have searched ebay with no luck, also chinese selling websites, I asked LG (like they ever gonna answer) and still no luck.

Please do not offer me to sell yours if you have broken unit with working board, cause it is against new selling/buying rules, but please do help if you know where to buy one. Thanks all in advance
[LG Optimus L9 P760, P765, P768, P769] cmahendra:
Go to authorized LG service center. They will send requisition for fresh board and proper fixing will be done at reasonable cost. Others will screw it more.

Sent from LG L9 P765.
[LG Optimus L9 P760, P765, P768, P769] Igoritza:
well, that sounds fine. Im not going too need replacement as I already know what is with this board, and would repair the circuit myself, if it was not melted with the PCB (cant get it out). I opened more than 1000 phones, just need the board. Im really hoping there would be an option to buy a new one via dealer.

on that note, gotta tell you all that LG seems not to consider heating a problem. which is bad. this is my first LG mid-high end phone and heat spreading solution is really poor (there is none), just hopes that board components wont burn. Im now guessing that moisture had its way in, because of the poor inner assembly, and thats why it broke.

thanks cmahendra!
[LG Optimus L9 P760, P765, P768, P769] Igoritza:
Could someone be kind enough to ask their local LG about purchasing only the board for P760/P765/P768 ... ?

I live in Serbia and our LG is run by completely reetarded people who are telling me that I can order a board only if they charge for the replacement, and that nifty package of service costs 220 euros.

could someone from nearby ask their LG please ? croatia, bosnia, macedonia, hungary, italy, france, anyone, please help.
[LG Optimus L9 P760, P765, P768, P769] Parthdoshi97:
Is there any place in Mumbai where I can get my L9 Motherboard replaced ?
[LG Optimus L9 P760, P765, P768, P769] cmahendra:
Address of LG Service Center in Mumbai but dont know if they are functional, so please call them first or call on their Support Number on main website.

LG Service Center Address:

73, Chandivali Rd, LOK Milan Colony, MHADA Colony 20, Powai, Mumbai, Maharashtra 400072

Phone: 077929 31295

If they dont have it then try visiting "Citi Center Mall" very near Mumbai Central East.

Hope this helps. :)
[LG Optimus L9 P760, P765, P768, P769] Parthdoshi97:
Thank You very much sir !
[LG Optimus L9 P760, P765, P768, P769] cmahendra:
You are welcome :) Please press thanks button if I was informative :)
[Sony Xperia ZL] rkgriffin:
Have I missed something or does the Sony ZL not support encryption of the SD storage card? My company requires this particular policy to be native on the device (ie: cannot use a third party app like Touchdown). I cannot figure out how to encrypt the storage card and get it to accept the ActiveSync policy. I know it is that exact policy since I have the email admin test by removing just that option and the phone will then sync fine with the Exchange server.

So am I screwed? I can't believe Sony would do this since so many companies enforce this policy and almost every other newer Android phone supports this.

Thanks!
[Sony Xperia ZL] rkgriffin:
I have the same phone and it looks like the Sony ZL does not support encrypting the SD Card. I have no idea why Sony decided to do that. Have you tried connecting it to Exchange with no SD Card installed? That is one thing I haven't tested yet.

Also it seems that even when you turn off device encryption in the ActiveSync settings the ZL will encrypt its local storage incorrectly.
[Sony Xperia ZL] rkgriffin:
So today I switched back to my ZL from an S4 (I just like it so much better than the Samsung) and updated it to the latest firmware. I am an Exchange administrator so I am able to test different ActiveSync policies. To my surprise when I synced my ZL I was prompted to encrypt my SD card even though I didn't have that requirement turned on at the time.

After letting it run I then updated my ActiveSync policy to force encryption of both the phone and SD card and since they were already encrypted everything worked great. So basically I can confirm that the ZL now works with all the ActiveSync policies we use. Funny thing is that the ZL will now encrypt both the phone and SD card when you add an Exchange account even if those policies are not enabled.
[Galaxy Note 10.1 Q&A, Help & Troubleshooting] gnoteuser2013:
Hi,

So far I've been through two keyboard cases for my Galaxy Note. The last one I just got today was great until I tried using the S-pen while the case was on. There are certain regions where there a magnet in the case causes the S-pen to become unpredictable. I'm kind of surprised as this case was designed specifically for the Note 10.1, but it's as if it was never tested.

I have searched online and can't seem to find a bluetooth keyboard book/folio type case for the Note that is magnet free. Can anyone provide any useful product suggestions for me?
[Galaxy Note 10.1 Q&A, Help & Troubleshooting] gnoteuser2013:
As an update, I was able to narrow down the problem to two specific offending magnets in the case. Interestingly enough in those areas the material was thin enough that I could scratch away at it with a scissor and pluck out the two small circular disc magnets. Later on I suppose I could cover up the "surgery" spots with some velcro, but the location is not too conspicuous and now the spen is working appropriately. Problem solved!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] nay12x:
I can receive text messages and make calls while I have my wifi on but when I take wifi off I get the gray bars and don't get any data.. Check out the pictures

Mobile data is on too
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] y0yerrj0sh:
I'm not sure what the problem is but you might get better help if you post this in the Q & A section.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Micronads:
Wrong section. You need to post this in the q &a section. You probably lost your imei number.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mrhaley30705:
Check your apn.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] nay12x:
Alright thanks ill move it over
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] mrhaley30705:
You can't move a thread. Mods have to move it. Don't worry, one will be along soon to do it for you.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] nay12x:
Oh haha alright
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] nay12x:
Can anybody help?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] KorGuy123:
Did you check your APN settings?

Just for ****s and giggles also verify that your imei isn't '0"

Settings > about phone > status
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
Also, is this a new issue? Did you flash/install/add or remove anything?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] nay12x:
I was able to fix it by full wiping and re installing JellyBam 7.3
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sputnik378:
I had this happen a bunch of times with my skyrocket, then my ATT S3, and finally with my friends Verizon S3. I just deleted all the different APN s. Then manually entered the APN info that I saved on my skyrocket or a text file. All is well now. FYI I've always had a tough time figuring out APN settings even with XDA. So I actually got my APN info from an activated phone in an ATT store one day and have been using that since.

Definitely not well documented on these forums that I've seen anyway... Please correct me if I I'm wrong.
[Defy Q&A, Help & Troubleshooting] ursoouindio:
Hello fellows

I need a new battery for my Defy, as the stock one no longer can keep up with my daily routine.

I've seen some posts on Chinese batteries around here, most of them seem unreliable.

So, I would like for suggestions, preferably from users that already had positive experiences with replacement batteries.

It would need to be bought online (worldwide shipping) as I am in Brazil and I don`t believe that I could find a good one around here.

Thanks!

best regards
[Defy Q&A, Help & Troubleshooting] CodeVanya:
Check out this:

http://www.batterybay.net/Battery-for-Motorola-MB525-MB520-p/motorola -cs-mob525hl.htm
[Defy Q&A, Help & Troubleshooting] ursoouindio:
Very interesting, chandujram. Do you have one of those?

2400mAh is very appealing, but I have not seen one positive feedback for large capacity batteries for the Defy...
[Defy Q&A, Help & Troubleshooting] CodeVanya:
No.. Me too planning to buy this! :D The site says it has a 3 star in the reviews. But generally, yeah me too had heard that large capacity makes not much difference.. :rolleyes: