[Q] how add git for build unofficial roms? - Android

HI guys, I'm finding troubles understanding how and when I should clone gits for unofficial builds
example. I want to build an unofficial cm10 using this repo for fixes https://github.com/bruce2728
after I sync cm repo with jellybean branch, how should I add these gits? and which of them I have to add?

All you need is this, https://github.com/bruce2728/local_manifest
Then repo sync
Sent from my HTC PH39100 using Tapatalk 2

mg2195 said:
All you need is this, https://github.com/bruce2728/local_manifest
Then repo sync
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
ok, so the local manifest contain all the fixes! right?
I should proceed this way:
$ wget -O ~/android/system/.repo/local_manifest.xml https://raw.github.com/bruce2728/local_manifest/master/local_manifest.xml
to add the git, and than sync the official repo from cm git...
right? thanks

throcker said:
ok, so the local manifest contain all the fixes! right?
I should proceed this way:
$ wget -O ~/android/system/.repo/local_manifest.xml https://raw.github.com/bruce2728/local_manifest/master/local_manifest.xml
to add the git, and than sync the official repo from cm git...
right? thanks
Click to expand...
Click to collapse
Yep, a local manifest just adds extra trees to the sync...usually you make one and put your device and kernel trees and anything else your device requires...that way everytime you do a repo sync it will check do updates to the device and kernel trees...so its essentially git cloning, except its part of the repo sync
Sent from my HTC PH39100 using Tapatalk 2

mg2195 said:
Yep, a local manifest just adds extra trees to the sync...usually you make one and put your device and kernel trees and anything else your device requires...that way everytime you do a repo sync it will check do updates to the device and kernel trees...so its essentially git cloning, except its part of the repo sync
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
ok, I have to do it before the repo sync right? never after it?...
and is there a way to clone single gits? example, I want to clone just the vendor https://github.com/bruce2728/android_vendor_htc_pyramid.git...
what is the command?

throcker said:
ok, I have to do it before the repo sync right? never after it?...
and is there a way to clone single gits? example, I want to clone just the vendor https://github.com/bruce2728/android_vendor_htc_pyramid.git...
what is the command?
Click to expand...
Click to collapse
Go to that github, click on the git-read copy the link
Type
Code:
git clone copyedgitlinkhere locationhere
Soooo...
Open terminal
Cd working
Mkdir vendor
Cd vendor
Mkdir HTC
Git clone gitlinkhere pyramid
Cd ~/working
Replace working with your working folder
Sent from my HTC PH39100 using Tapatalk 2

mg2195 said:
Go to that github, click on the git-read copy the link
Type
Code:
git clone copyedgitlinkhere locationhere
Soooo...
Open terminal
Cd working
Mkdir vendor
Cd vendor
Mkdir HTC
Git clone gitlinkhere pyramid
Cd ~/working
Replace working with your working folder
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
YOU are the man, thank you very much, hope this works...

Related

Integrate app into CyanogenMod

Hi,
for my own usage, I would like to integrate an app to CyanogenMod, which should be compiled with CM.
How do I do that?
Thanks,
Yannik
Any idea?
Are you building cm yourself? If so then the easy way is to place your project on github and then add the project to a manifest file in the .repo/manifests/local_manifest/ folder of your cm source, repo sync well the draw your project source code and it will be built with cm.
Or you can do it the right way and add your source into the /packages/apps folder of your source but you need to make sure everything is included correctly. Check out the link below for more info:
http://wiki.cyanogenmod.org/w/Doc:_adding_your_own_app
Adding an app to the actual cm source would be pretty hard it would have to be something pretty special that would add some real value, don't know how you could do that. Check out the cm wiki.
Sent from my PACman GT-i9100 using Xparent ICS Tapatalk 2
But by doing so.. can there be any problems with the working of the rom?? or will it work fine?
As long as your app works and compiles ok there should be no issues. I have modified a number of the stock apps from cm10.1 and added my own apps to the Rom I build from the source. I go the easy way and keep my project on github and add the details in the local_manifest folder.
Sent from my PACman GT-i9100 using Xparent ICS Tapatalk 2
Thanks for your help. I integrated everything like described in my device*.mk, but the source code is not going to compiled with CyanogenMod, dont now what to do.
Does your source code have an android.mk makefile? Check where you imported the source such as packages/apps/myproject/android.mk?
If not you will need to make one, look at an existing apps android.mk to see the details you need and just make sure you edit the following:
LOCAL_PACKAGE_NAME := PackageName
Where PackageName matches what you put into your device.mk file, then it should be included in the build and appear in your output zip.
Sent from my PACman GT-I9100 using xda premium
Got it! The Android.mk was missing on the build machine because I created the file on my mac and forgot to sync the files.

[Q] CM10.1 Repo Sync Error - "fatal: duplicate project"

Hi all,
I'm trying to compile CM10.1 from source, but when trying to do a new repo sync I get this error:
Code:
fatal: duplicate project CyanogenMod/android_device_samsung_maguro in /home/nickamina/android/cm10.1/.repo/manifest.xml
Can anybody suggest what the problem is here? Thanks
Final bump.
Nickamina said:
Hi all,
I'm trying to compile CM10.1 from source, but when trying to do a new repo sync I get this error:
Code:
fatal: duplicate project CyanogenMod/android_device_samsung_maguro in /home/nickamina/android/cm10.1/.repo/manifest.xml
Can anybody suggest what the problem is here? Thanks
Click to expand...
Click to collapse
The Project is duplicated 2 times in default.xml
mithun46 said:
The Project is duplicated 2 times in default.xml
Click to expand...
Click to collapse
Stumbled on this looking for a resolution for this same error with my Nexus 5 Kernel. Only problem is my default.xml does not have a duplicate entry. If I remove the entry altogether from the default.xml and repo sync the Kernel is missing. If I start a build though it will first go and download the missing kernel from github. My guess is somewhere in either device or vendor being the N5 is an officially supported device there is a call to add the package to repo as repo sync in my case will only brake after the source has been compiled.

Help me, how to create a patch file

For example:
https://github.com/munjeni/android_device_sony_lotus/blob/android-4.4_r1/patches/framework_av.patch
Who can tell me the steps?
Modify the framework/av
repo diff framework/av framework_av.patch ??????
cd framework/av
git diff > framework_av.patch ???????
thanks
May be @percy_g2 , @Abhinav2 @XperiaMT27 can help. :good:
cpkunki said:
May be @percy_g2 , @Abhinav2 @MT27 can help. :good:
Click to expand...
Click to collapse
Thank you
@munjeni @DevSwift1
xx214718247 said:
For example:
https://github.com/munjeni/android_device_sony_lotus/blob/android-4.4_r1/patches/framework_av.patch
Who can tell me the steps?
Modify the framework/av
repo diff framework/av framework_av.patch ??????
cd framework/av
git diff > framework_av.patch ???????
thanks
Click to expand...
Click to collapse
If you have repo sync then make your changes and enter repo diff. If you git clone then apply your changes, cd to the dir you want and git diff > name _you_want.patch . then you just have to apply the patch
Andrewasth said:
If you have repo sync then make your changes and enter repo diff. If you git clone then apply your changes, cd to the repository you want and git diff > name _you_want.patch . then you just have to apply it
Click to expand...
Click to collapse
Thank you
xx214718247 said:
Thank you
Click to expand...
Click to collapse
Will you work on kitkat with us? The device tree is on my github. github.com/Andrewas

Z2 cm / kernel compilation - help needed

Hello,
I need the cifs.ko module. As I could not find it and had to read some threads of other users, waiting for help, I decided to compile the module myself.
I followed this instruction: wiki.cyanogenmod.org/w/Build_for_sirius
Unfortunately the command 'breakfast sirius' results in an error - the same with 'lunch'
I hope for your help, as I don't know what to do.
Kind regards,
Tom
Have you added the correct/required repos in your local manifests file? ☺
Sent from my Xperia Z2 using Tapatalk
Mr.R™ said:
Have you added the correct/required repos in your local manifests file? ☺
Sent from my Xperia Z2 using Tapatalk
Click to expand...
Click to collapse
I added the one repo mentioned in the instruction...
-----------------------------
$ cd ~/android/system/
$ repo init -u ...github.com/CyanogenMod/android.git -b cm-11.0
$ repo sync
----------------------------
Is there another repo?
I thought that the command includes the whole cm-11 source.
It does but you need a few more for the kernel n such, I'm not at home so can't provide them but will Monday if you need me too
Sent from my Xperia Z2 using Tapatalk
Mr.R™ said:
It does but you need a few more for the kernel n such, I'm not at home so can't provide them but will Monday if you need me too
Sent from my Xperia Z2 using Tapatalk
Click to expand...
Click to collapse
I read that every build has the manifest - so I extracted it from the last nightly and copied it to .repo/local_manifest/sirius-manifest.xml.
Isn't doing the job... see attachment.
repo also cannot see the .xml file and is telling me that there is a duplicate path - now with the default.xml also?
Any hint why this is happening is appreciated!
If you could give me a working manifest that would be great! :angel:

[Q] stuck on repo sync? Any help!

ASSALAMOALIKUM
Hello friends,
I have downloaded compressed .repo folder for pac rom 5.1.
I am using Ubuntu 14.04. I have extracted it and add Local_manifest instead of git cloning(no idea about it).
than i simply repo sync but it stuck on 99%.
After sometime i closed the stuck terminal and uses this command
Code:
. build/envsetup.sh
But got an error something like this bash:. build/envsetup.sh no directory find.
Please help me thanks
You also need to download the source code compressed from wherever you got the .repo folder. If you're repo sync is failing, this is your only way out.
The reason for repo sync hanging is that SaberMod have moved their git repository and ROM devs have been slow in implementing this change. That is the cause of hanging of repo sync in recent times for almost all Rom sources.
Thanks man
I have successfully build the cm12 rom

Categories

Resources