yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] Phenryth:
Have you disabled Google current background sync ?

---------- Post added at 06:57 AM ---------- Previous post was at 06:53 AM ----------

From what I've understood, this process should be run from time to time.

Don't know about the kernels you are talking about but I'm not sure the process is even run at each boot.

I used to flash all my devices with custom roms and kernels, but now, only rooting stock.
[Nexus 7 General] tvdang7:
yes
[Nexus 7 General] aimfull:
Everything feels buttersmooth on my Nexus, probably because I come from the HTC desire X.
[Sony Xperia P, U, Sola, Go] mykamran:
hi to every one.i searching for statusbar for xp p jb rom with bild .400.but i not found any thing plz give me a link good statusbar for my phone.tnx
[Sony Xperia P, U, Sola, Go] Pandemic:
Look in themes/app dude [MENTION=4305195]mykamran[/MENTION]

search before post !
[Sony Xperia P, U, Sola, Go] sijav:
third post on themes!

http://xdaforums.com/showthread.php?t=2297918
[Sony Xperia P, U, Sola, Go] GaboWinter:
OP, from the rules:

1. Search before posting.

Use one of our search functions before posting, whether you have a question or something new to share, it's very likely someone already asked that question or shared that news.

http://xdaforums.com/announcement.php?a=81

Thread closed...
[XDA-University] Red Devil:
<reserved for the future>
[XDA-University] Nihar.G:
Very very well written! :good:

Good work. Keep it up! :)
[XDA-University] Rishik999:
Great work sir!

Bookmarked it,soon gonna need it :D

Thanks :)
[XDA-University] -NickHalden-:
Very well done. Thanks for sharing :)
[XDA-University] usmslm102:
Great guide ...

Really need this.
[XDA-University] matt95:
yeah good guide :) now my mind is much more clearer than before :D
[XDA-University] karanrajpal14:
Thanks you so much!
[XDA-University] hashroot:
Good job!!!
[XDA-University] Red Devil:
Just done with guide .. hope you guys like it .

Thanks for the feedback guys.
[XDA-University] Red Devil:
Just gonna give it a tiny bump.

Disappointing really, when no one seems interested.
[XDA-University] BleedingIris:
It really is a good job.If no one is interested, its their loss-not yours.

It was quite useful [Upto what I read]-wish I could get my hands on these things someday ;) ;)

Thanks for a good thread though !!
[XDA-University] Red Devil:
Thanks man.

That made my day. :)
[XDA-University] mithun46:
This should make its way to the portal. Best guide for git. A best of luck from me to all young developers
[XDA-University] Red Devil:
And updated the thread a bit more.

Ironed out a few typos and errors.
[XDA-University] adlx.xda:
Very illustrated guide.

Btw, I once wrote an article called "Repo Tips & Tricks" for the XDA-University ;) http://xda-university.com/as-a-developer/repo-tips-tricks
[XDA-University] -NickHalden-:
congo [MENTION=4918174]Red Devil[/MENTION] for getting featured on the portal. You deserved it :D
[XDA-University] vasumit:
Awesome guide and a saviour for many newbie. That tip regarding switching from one ROM repo to another to save bandwidth is a killer. Never knew such a thing exists while always thinking something like that should be there. Many thanks to the OP for sharing this with us.:)
[XDA-University] nicsptl:
Thanks sir,

I have to say awesome guide and useful information. :good:
[XDA-University] mohamed786:
How to choose base ROM to develop a ROM
[XDA-University] Enddo:
Say I am currently building nightlies of CM12 for a Nexus 5. This is running perfectly fine and I enjoy it. However, I also want to start building for the LG G3.

Would I use the reference flag when starting this whole init/sync/build process(in a different folder) over for the LG G3? Or is there a better/easier way to build CM12 for a secondary device once I have started building it for another device
[XDA-University] demkantor:
Reference the ROM to the new folder will help on the first sync so you don't have to download as much, then create its own local_manifest and any changes needed to build
[XDA-University] Enddo:
That worked out well I think. Thank you a lot for the help. I did the build last night and I will be testing it to see if it's flashable today.
[XDA-University] danieldmm:
Couple days back repo sync its only showing fetching and not showing the changes. Example before:

From https://github.com/CyanogenMod/android_bootable_recovery
1fc30d3..1580070 cm-12.0 -> github/cm-12.0

Now its only showing Fetching, although its updating the local source. But its hard to keep track the changes. Think this happen when Google updated latest repo tool.

Some way to by pass so when issuing the command repo sync show the changes ?

Running Repo version:

tugapower@ROG-G751JY:~/cm > repo --version
repo version v1.12.18 (from https://gerrit.googlesource.com/git-repo repo)
launcher version 1.21 (from /home/tugapower/bin/repo)
git version 1.9.1 Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2]

Thanks in advance
[XDA-University] Silesh.Nair:
+1
[XDA-University] Pannam:
hi , i am always stuck at this . can i skip this because i just want to build a cwm recovery ? The tag is about aosp. if so how ? remove what from manifext.xml ?

export GIT_DIR=/home/pnnam/android/system/.repo/projects/prebuilts/sdk.git
: git rev-parse --verify refs/tags/android-4.4.4_r2^0 1>| 2>|
: git fetch aosp --tags tag android-4.4.4_r2 +refs/tags/android-4.4.4_r2:refs/tags/android-4.4.4_r2
remote: Sending approximately 1.92 GiB ...
remote: Counting objects: 75, done
remote: Finding sources: 100% (9433/9433)
54% (5154/9433), 24.81 MiB | 25.00 KiB/s
[XDA-University] Red Devil:
Sorry don't have the time to maintain this thread. Thnaks for those who have answered all the others queries!
[XDA-University] schnittenberg:
Hello guys,

@ first i would say (sorry for my english but after this) very very good work!

this tutorial has declared so many things that i am confused before!

but i stuck every @ same point and when if i was honest, i dont want to post this question cause i think it be a little stupid :D

i was new (since one year but the building things u know)

but enough with the intro,

in attachment i have upload a screenshot, i hope you can help
[XDA-University] Joeisgood99:
hey [MENTION=4869275]thewisenerd[/MENTION] or [MENTION=4918174]Red Devil[/MENTION]

Hi guys.

Very new to building roms from source, manifest.XML files, repo and git!

I downloaded CM12.1 branch HTC m7 and compiled a rom that booted and works fine.

Thanks.

Q1. How do I change a referenced repo in to a ....not- referenced one, so that It just updates from Cyenogen git without needing the previous repo as I would like to delete it from my hard drive. (Do I change .git/objects/info/alternate?) so that my repo syncs, without referencing the old one any more. I moved my other directory resulting in 400 x

[COLOR="Purple"]error: object directory /home/**/CM12.1/.repo/projects/tools/external/gradle.git/objects does not exist; check .git/objects/info/alternates. error: Exited sync due to fetch errors. when syncing.[/COLOR]

Q2. How do I remove a project from my local repo that was added via local_manifest.xml.

ie I added a custom tool chain with this-

[COLOR="MediumTurquoise"]<project path="prebuilts/gcc/linux-x86/arm/LM-arm-eabi-4.9" name="hyper-toolchains/LinaroMod-arm-eabi-4.9" remote="github" revision="master" />
<project name="hyper-toolchains/LinaroMod-androideabi-4.9" path="prebuilts/gcc/linux-x86/arm/LM-androideabi-4.9" remote="github" revision="master" />[/COLOR]

Both the rom and kernel fail to boot after compilation with above tool chain so I want to get rid of them both and try different ones.

When I try to remove LinaroMod TCs with this -

[COLOR="MediumTurquoise"]<remove-project name="hyper-toolchains/LinaroMod-arm-eabi-4.9" path="prebuilts/gcc/linux-x86/arm/LM-arm-eabi-4.9" />
< remove-project name="hyper-toolchains/LinaroMod-androideabi-4.9" path="platform/prebuilts/gcc/linux-x86/arm/LM-androideabi-4.9" />[/COLOR]

I get an error similar to -

[COLOR="Purple"]Project hyper-toolchains/LinaroMod-androideabi-4.9 does not exist.[/COLOR]

I found a folder, "/cm12.1/.repo/project-objects/hyper-toolchains/**" which contains both LinaroMod tool chains that I downloaded, so should I have -

[COLOR="MediumTurquoise"]< remove-project name="[B]hyper-toolchains[/B]/" path="platform/prebuilts/gcc/linux-x86/arm/LM-androideabi-4.9" />[/COLOR]

???

Or do i just manually delete the tool chains and delete all reference of the project from local manifest then sync?

Q3. Whats the proper way (using local_manifest) to add a different tool chain so that all compiles with the chosen tool chain/s?

I noticed that [MENTION=5161352]JustArchi[/MENTION] , via local manifest, removes original TC, then downloads custom TC so that it has same name as the original. Im assuming that way you don’t have to change any reference to the new TC in other docs, like in your OP/tutorial (which was great BTW). Anyone know how to change tool chains via local_manifest in such a way that your chosen tool chain is automatically referenced in all the proper files? i.e as the variable $targetgccversion" in /workingdir/build/envsetup.sh other then hard code it.

Thanks for your time.
[XDA-University] JustArchi:
https://github.com/ArchiDroid/ArchiDroid/blob/master-cm/__build/roomservice.xml#L8

Some people prefer to manually change references, I prefer to just put proper toolchain in original dir, this way I can be sure that all dependencies are met and I didn't miss any reference.

Of course, both ways are acceptable.
[XDA-University] BobbyCurry:
[Q][CM] 99% and fatal occurs

I've googled around for 3 days and still couldn' t fix it. So I have to ask it in xda to see if someone solved this.

I tried to repo sync the cm12.1, it stuck at 99%!!!:eek:

Fetching projects: 99% (542/547)
fatal: Not a git repository: '/home/bobby/cm12.1/.repo/projects/external/blktrace.git'
fatal: Not a git repository: '/home/bobby/cm12.1/.repo/projects/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8.git'
error: Cannot fetch platform/external/blktrace
error: Cannot fetch platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.8

error: Exited sync due to fetch errors

I tried to "rm -rf _____" the corresponding corrupted .git.

I tried to modify the xml from " fetch = '..' " to " fetch = 'https://github.com/' "

I tired to modify the repo file from " REPO_URL = 'https://gerrit.googlesource.com/git-repo' " to " REPO_URL = 'http://gerrit.googlesource.com/git-repo' "

NONE of the above worked!!! feeling hopeless...:crying:

Hoping for someone that has went through this to help me solve this.
[XDA-University] Crimsonthunder:
Have you tried to remove everything and sync again?
[XDA-University] BobbyCurry:
I have to admit that I don't have the patience to do so...Since it took me more than a week to reach 99%...

If no one can solve this without removing the whole .repo folder, then I have no choice but to delete everything and start over agian:crying:
[XDA-University] AGONTUK:
There are 2 folders inside .repo, named projects and project-objects. You have to delete your failed projects from each of them. Then sync the source again and it should be fine.
[XDA-University] BobbyCurry:
Wow!!! Lucky to have your help here! Thanks so much! :good::highfive::p

I only deleted the ones in project but didn't noticed those in porject-objects. That should be the reason why the error remained.

It REALLY reaches 100%! Excited!!!

But still some minor errors occurred below:

Fetching projects: 100% (547/547), done.
Traceback (most recent call last):
File "/home/bobby/cm12.1/.repo/repo/main.py", line 526, in <module>
_Main(sys.argv[1:])
File "/home/bobby/cm12.1/.repo/repo/main.py", line 502, in _Main
result = repo._Run(argv) or 0
File "/home/bobby/cm12.1/.repo/repo/main.py", line 175, in _Run
result = cmd.Execute(copts, cargs)
File "/home/bobby/cm12.1/.repo/repo/subcmds/sync.py", line 723, in Execute
_PostRepoFetch(rp, opt.no_repo_verify)
File "/home/bobby/cm12.1/.repo/repo/subcmds/sync.py", line 782, in _PostRepoFetch
if rp.HasChanges:
File "/home/bobby/cm12.1/.repo/repo/project.py", line 2830, in HasChanges
elif self._revlist(not_rev(HEAD), revid):
File "/home/bobby/cm12.1/.repo/repo/project.py", line 2402, in _revlist
return self.work_git.rev_list(*a, **kw)
File "/home/bobby/cm12.1/.repo/repo/project.py", line 2596, in rev_list
p.stderr))
error.GitError: repo rev-list ('^HEAD', u'745b4ad660f8050045b521c4e15b7d3ac0b3d70e', '--'): error: object file .git/objects/74/5b4ad660f8050045b521c4e15b7d3ac0b3d70e is empty
error: object file .git/objects/74/5b4ad660f8050045b521c4e15b7d3ac0b3d70e is empty
fatal: loose object 745b4ad660f8050045b521c4e15b7d3ac0b3d70e (stored in .git/objects/74/5b4ad660f8050045b521c4e15b7d3ac0b3d70e) is corrupt

I am wondering if it's OK to ignore these?
[XDA-University] AGONTUK:
Do another sync and see if it persists. I think it'll be gone in next sync.
[XDA-University] BobbyCurry:
I solved it!!!

Actually this fatal error occurred again and again, even after I reboot.

But I played a trick to solve it and I am sharing it here if google will bring someone encountering this here. :p

Keyword: fatal error empty corrupt

Solution:

1.Create a new folder like "cmm" and cd

2.Do "curl" + "repo init" as the initializing step and get a brand new pure .repo folder.

3.Copy the .repo to the old folder, for me, it is /home/bobby/cm12.1, and MERGE them!

4.Redo the repo sync and be happy:D
[XDA-University] saintxseiya:
Hi,

i do not know if that has been answered, but how du i sync repos out of my local_manifest.xml until to a certain date? let's say, i need the vendor, kernel and device repo to be synced like they ware 12 days before, how do i manage to do this, for only those three projects?

Thanks!

saint
[XDA-University] quanganh2627:
Not sure you still want it right now but it pretty possible by appending (or editing if existing) "revision="sha_of_commit_u_want"" to the line of project in manifest file. I.e:

<project path="hardware/intel/common/omx-components" name="platform/hardware/intel/common/omx-components" groups="intel" remote="aosp" revision="refs/tags/android-5.1.1_r33" />

Above is CM's manifest default.xml.But now, i edit to force repo sync that project at the point i want:

<project path="hardware/intel/common/omx-components" name="platform/hardware/intel/common/omx-components" groups="intel" remote="aosp" revision="6f4e7a5a5f74d821eb24a69e6e3b3e8af8bce0a6" />

That is how it works, the magic secret of here is "revision" flag. [emoji12] [emoji12] [emoji12]

Gửi từ ASUS_Z00AD của tôi bằng cách sử dụng Tapatalk
[XDA-University] Uchiha_Dev:
my normal download speed is about 100-150 KBytes/s but while syncing repo (Download 30GB) I only get about 14-20 Kbits/s, any way to make it faster ? In an entire day I only downloaded 6.8 GB, neglecting the fact that I forgot to specify the number of threads but I canceled the repo sync and specified the threads again and it wizzed through the already synced files but still I get only about 15 Kbits/s, any way to increase the speed
[XDA-University] danieldmm:
How many threada are you using? Because the speed you have less threads is better...

Enviado do meu A0001 através de Tapatalk
[XDA-University] Uchiha_Dev:
first I didn't specify the threads and it download in the same speed, then I canceled the sync and specified 4 threads and still the same :( only thing is it's a bit faster but download speed is still less
[XDA-University] danieldmm:
Not specified meaning 4.

The CM manifests include a sensible default configuration for*repo, which we strongly suggest you use (i.e. don't add any options to sync). For reference, our default values are*-j 4 and*-c. The*-j 4*part means that there will be four simultaneous threads/connections. If you experience problems syncing, you can lower this to*-j 3*or*-j 2.*-c*will ask repo to pull in*only the current branch, instead of the entire CM history.

Enviado do meu A0001 através de Tapatalk
[XDA-University] Uchiha_Dev:
ok I will lower it to 2 and try

also is -j2 the same as -j 2

Awesome, thanks man how do I thank you, the spped has hiked upto 30-50 Kbits/s, do you think if I use -j1 it will increase ?

Edit : -j3 seems to do the trick, 50-100 Kbits/s

Edit2 : It slows down again

Edit3 : -j1 does the trick :D no slow downs, but very few tasks taking place but it's much faster 90-120Kbit/s
[XDA-University] danieldmm:
With your speed lower is better. Use 2

Enviado do meu A0001 através de Tapatalk
[XDA-University] Uchiha_Dev:
-j1 seems to do the trick, but I will try with -j2 tomorrow. Cancelling the sync multiple times wont hurt will it ?

Also, can I cancel the sync and turn off the PC and sync again ? Without having to redo everything from the beginning
[XDA-University] danieldmm:
Yes, you can...

Enviado do meu SM-G925F através de Tapatalk
[XDA-University] irvy:
Thank you for this excellent guide. Very well written, especially for newbies. Being one myself, I've managed to build the cm-13.0 for bacon and am most thrilled, however I have some questions:

In the default.xml file I see several lines such as this

Are they all required?
[XDA-University] irvy:
I have another question. Am I meant to delete the "out" directory when re-building?
[XDA-University] danieldmm:
make clobber or make clean will clear all to fresh rebuild...
[XDA-University] Uchiha_Dev:
can someone explain me how I merge new commits ? I can't understand the guide above
[XDA-University] irvy:
When I don't do a make clean or make clobber I notice the Build date, Kernel version and CyanogenMod version do not change. For instance, I did a build for 18 Feb 2016 after make clean. The next day I did a build for 19 Feb 2016 without a make clean. I flashed the build but it is giving me the dates for 18 Feb 2016. Am I doing something wrong? Is this meant to happen? Am I meant to be doing a make clean every time? Without a make clean the build takes around 19 minutes. With a make clean it takes around 55 minutes.
[XDA-University] pug1:
Hi all

Is it possible to have two working folders? Like cm12.1 and cm13?

Would it be possible then to link the majority of the files from cm13 folder?
[XDA-University] reS28raM:
For testing purposes you can do a "make installclean" followed by the command you use to build, only the modified files will be rebuilt in just a few minutes: no changes to the kernel? It will not rebuild so timestamps will be wrong, normal behavior. Flash the rom and test it, if all is ok then do a make clobber or clean, this is mandatory on builds ready for release no matter how much it takes if you want a really stable rom. Hope this helps.
[XDA-University] Aayush-rd7:
Awesome!

This Guide is really awesome

bt an updated one would be really preffered!:):o
[XDA-University] irvy:
The last 2 days I've been getting this error when trying to build:

make: *** [/home/irvy/android/system/out/target/common/obj/APPS/Gello_intermediates/org.cyanogenmod.gello-17.apk] Error 127

Any ideas how to get over this?

Thank you
[XDA-University] ryanguy426:
Couldn't find remote ref

Hello all, I'm trying to get started with Android ROM development and Github, and I've attempted to follow this tutorial., but it's somewhat complicated and I think I got lost somewhere, and as such something is wrong with my manifest.xml, I'm just not sure what.

If you could take a look at what I have going on and give me some pointers, that'd be great! [Github link]

What I'm doing to create this error:

cd ~/CleanWhale (folder I made for the source code)

repo init -u https://github.com/CleanWhale/android.git

repo sync -j8

After running repo sync -j8, I get the following (and it freezes):

Fetching project androidFetching project android_device_moto_shamu

Fetching project android_kernel_moto_shamu
Fetching project android_vendor_moto
Fetching project android_build
fatal: Couldn't find remote ref refs/heads/master
Unexpected end of command stream
Fetching projects: 80% (4/5) fatal: Couldn't find remote ref refs/heads/master
Unexpected end of command stream

OS: Ubuntu 14.04.4 x64

Edit: I'm a total noob when it comes to Android ROM development, especially regarding Github. I may be making a super simple mistake but not seeing it. If that's the case, please take it easy on me ;p
[XDA-University] demkantor:
[MENTION=5354947]ryanguy426[/MENTION]

It's looking for a repository that doesn't exist, or at least the path to it is wrong

Find that repository and change the path to it or stop it from looking for it by deleting it out our your manifest - somethings are device specific and not needed, others are - trial and error will help you learn best
[XDA-University] ryanguy426:
Hey, thanks for the tip. I figured it was something like that. I still couldn't figure it out though, so I did the lazy thing: Forked the default.xml from the DirtyUnicorns repo, and modified the URL's to match my project. Fixed a couple duplicate paths and URLs, and boom. I'm now syncing the code. Thank you!
[XDA-University] _superman:
hey did you figure it out ???

I also having this error !!
[XDA-University] 245:
nvm
[XDA-University] mrlolli:
I don't know if you ever got by it (or if you even care anymore:D) but I got this error, too, and this is how I got by it. I know your post is a couple of months old, but I'm also putting this here in case anybody else stumbles across this looking for an answer like I initially did.

Look at the line right above that error line. In my case, it was:

/bin/bash: mvn: command not found

That told me that maven wasn't installed. If you have the same line, install maven and you will be good to go. Just do:

sudo apt-get install maven

Good luck! :)
[XDA-University] Charles IV:
Hi, thanks for the tip.

while this didn't unfortunately fix it for me, it gave more errors and information.

I'm still getting errors related to gello, could this be because lineage os removed gello in favour of jelly?

however, im building cyanogenmod (not lineage os) 13, so does this still make a difference?

the end of the log is here.
[XDA-University] Charles IV:
if you have the local manifests on github, is there a way to sync it, rather than cloning it, so that if you modify it on github, at the next repo sync, it syncs itself first, like manifest.xml does.

Or is it as simple as adding the local manifests as a project?
[XDA-University] DiamondJohn:
I use the local_manifest with "remove-project" to remove whole projects, however, I need to simply ignore one folder within the project, and I cant get it to work. I tried putting a file ".gitignore" with various types of filters, within the folder, but that didn't seem to work.

So how do I remove a folder within a project, and not have it show up in "repo diff" OR "repo status" :confused:
[XDA-University] creeve4:
I am trying to use a local_manifest with "remove-project" to remove projects from Dirty Unicorns, but they already have their own manifest that is also removing those projects from AOSP, thus repo sync cannot complete because two manifests are trying to do the same thing.

I want to remove DU's versions of these projects, how can I accomplish this without modifying their manifest?
[XDA-University] DiamondJohn:
I think you may be a little off topic here, I have a similar kind of issue wuith a Nougat build of RR at https://xdaforums.com/showpost.php?p=73162706&postcount=7049
[XDA-University] Cyborg321:
I have a tar.gz file and after extracting, it is a 40GB .repo folder.

The remote repository on github is not accessible anymore.

How would I extract the .repo folder into Android source code locally without 'repo sync' connecting to the remote repository?

Is there another command that can be used?

I'm used to git where you could just use 'git checkout' or 'git clone' to turn a .git folder into source code that doesn't connect to a remote server to check if it's the latest code.
[XDA-University] bcrichster:
Have you tried "git pull"?
[XDA-University] Red Devil:
Thanks sir.

Good job on the article.

Thanks! If you have any doubts , keep me posted!

Thanks bro :)
[XDA-University] nicsptl:
Sir,

If you dont mind i would like to add some of your tips to my CM10/CM10.1 build guide with credits which i preparing for my device.

Here :: http://xdaforums.com/showthread.php?t=2285445&highlight=guide
[XDA-University] Red Devil:
No problems mate.