Having trouble downloading MiCode Patchrom - Android Q&A, Help & Troubleshooting

I'm trying to download patchrom with git but when i type "repo sync" i get this error
Initializing project MiCode/patchrom_android ...
fatal: '../MiCode/patchrom_android.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch MiCode/patchrom_android
Can someone please help me with this?
thank you

did you find a solution to this problem?
i have been looking for days and cant find anything.
edit
got it working had to use a different version of repo, i thought i had already tried this though, oh well it works now.
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo >~/bin/repo
$ chmod a+x ~/bin/repo
Click to expand...
Click to collapse

Related

Building From Source?

im trying to build android from source on ubuntu 10.04. im on a 64 bit system . but this is what im stuck on.
when i enter the repo command:
repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
it get this error back
exec: 23: python: not found
any ideas.
python: not found
yeah how do i fix it though?
thanks
install python
i have it installed already v2.6
You may have to install a version of python prior to the version you've got installed. Check which version the SDK is compatible with. =)
INSANENEIVIESIS said:
im trying to build android from source on ubuntu 10.04. im on a 64 bit system . but this is what im stuck on.
when i enter the repo command:
repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
it get this error back
exec: 23: python: not found
any ideas.
Click to expand...
Click to collapse
Unsure what you have done up to this point. It seems as though your PATH to repo is not set. I'm assuming you have already done this:
$ mkdir ~/bin
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod +x ~/bin/repo
$ export PATH="${PATH}:~/bin"
$ mkdir ~/xdandroid
$ cd ~/xdandroid
Have you checked your PATH settings to make sure ~/bin is in there?
Code:
echo $PATH
If you are following the wiki, the command that's on there for path doesn't work for Ubuntu (I experienced it myself and haven't looked into why...it could be because it needs to be done as sudo). Try this in terminal:
Code:
gedit ~/.bashrc
then go to the end of the file and add this to the end:
Code:
PATH=~/bin:"${PATH}"
Close any terminal windows you have open and then reopen terminal. Try the command again...

[HELP] Building CM12 'No ~/android/system/vendor/cm'

Hi there, I'm extremely new to building a ROM or even to git and other stuff and am now trying to learn to build ROM. I have downloaded the cm12 sources for now, and trying to learn how it works, but seems to have stuck at a location.
I have been following the cm build page instructions for now from this page, and have done following stuff until now:
Make folders:
Code:
mkdir -p ~/bin
$ mkdir -p ~/android/system
Installed the repo command and entered the following to download the "repo" binary and make it executable (runnable):
Code:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Put the ~/bin directory in your path of execution
Initialize the CyanogenMod source repository and initialized the repository:
Code:
$ cd ~/android/system/
$ repo init -u https://github.com/CyanogenMod/android.git -b ics
Downloaded the source code
Code:
$ repo sync -j4 -f -c
[*]Get prebuilt apps
Code:
$ cd ~/android/system/vendor/cm
Now when I get to the get prebuilt apps, and I run cd ~/android/system/vendor/cm, I get the
Code:
cd ~/android/system/vendor/cm bash: No such file or directory
I tried opening the location manually, but I find no "vendor" folder under the "android/system" folder. However, there is a "vendor" folder under "android" and that "vendor" consists of folders like "cm", "cyngn" and "sony", where "sony" is related to My phone.
Under system I have folders like "core", "extras", "keymaster", "media", "netd", "qcom", "security" and "vold".
Before You say that I might have not done repo sync properly, it did complete properly. I have attached the image of completion of first time the repo sync was complete. Then a log of second time when the repo sync was done to get the device specific related stuff. I used the -f since the download of source had been interrupted due to the error "error: Exited sync due to fetch errors".
Also, don't know if it matters, but I have built a ROM before on the same system, but it was by following the instructions as posted to do. The sources were all coded to suit My phone, and all I was doing was "repo sync" and building the ROM via source with commands build/envsetup.sh
and breakfast nozomi and used to get a working build.
So please help Me out where I went wrong as I do want to learn to how to build a ROM.
Edit:
I had also tried searching for "get-prebuilts", "envsetup.sh" too, but couldn't find them either, and yes, I was always in the root directory of the source code (~/android/system).
Same issue here. Ironically I can build AICP (which is Cyanogenmod based). I can build any AOSP Rom without compiling problems also. This is a Cyanogenmod thing. It's also frustrating that even if you do manage to compile it, you probably won't be able to flash it. That happened to me with 5.0
Just for kicks, what is your OS? I'm running Linux Peppermint. I wonder if that could be the issue, since Ubuntu is recommended?
Check your java & sdk version

[Q] Locally mirroring CyanogenMod source code for a specific branch

While Bryan Hundven shows us how to mirror all of CM source code locally to your machine, I want to do the same for a specific branch, e.g. cm-12.0. Disconnecting myself from Internet, I tried the following without any success,
Code:
cd /mnt/Mirror
mkdir CM12.0_Mirror
cd CM12.0_Mirror
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0 --mirror
repo sync -j 4
cd ..
mkdir CM12.0_Work
cd CM12.0_Work
repo init file:///mnt/Mirror/CM12.0_Mirror -b cm-12.0
The error message I received is the following:
fatal: '/mnt/Mirror/CM12.0_Mirror/manifest.xml' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Click to expand...
Click to collapse
Instead of the last command, if I issue the following
Code:
repo init -u git://github.com/CyanogenMod/android.git --reference -b cm-12.0
The error message I received is the following:
fatal: unable to connect to github.com:
github.com: Name or service not known
Click to expand...
Click to collapse

downloading cm12 sources erreore

hi guys today i wanted to build cm12 for my samsung galaxy note 3 neo......
then i wanted to initiate the cm12 sources using this command
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.0
Click to expand...
Click to collapse
but i got this kinda error:
/home/username/bin/repo: line 2: syntax error near unexpected token `newline'
/home/honig/bin/repo: line 2: `<!DOCTYPE html>'
Click to expand...
Click to collapse
can someone help ?
timuralaskara said:
hi guys today i wanted to build cm12 for my samsung galaxy note 3 neo......
then i wanted to initiate the cm12 sources using this command
but i got this kinda error:
can someone help ?
Click to expand...
Click to collapse
Your copy of the repo tool you downloaded when setting up the build enviornment is corrupt, you will need to re-download it using the follow commands based on setting up the build environment:
Code:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

Lineage OS trouble repo sync

HI everyone,
I try download lineage os 18.1 or 19.1
The way i do it...
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH="~/bin:$PATH"
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
repo sync -j1 --force-sync --fail-fast -c --force-broken
and get errors like
...
client/bin/self-test/tests/017-system-exception
client/bin/self-test/tests/017-system-exception-out
client/bin/self-test/t
Aborting
error: external/autotest/: platform/external/autotest checkout fe7d2dfd54c98f783f64289b971a8b1aa959555d
error: Cannot checkout platform/external/autotest
Checking out: 8% (71/858), done in 2m32.165s
error: Unable to fully sync the tree.
error: Checking out local projects failed.
Failing repos:
external/autotest
Try re-running with "-j1 --fail-fast" to exit at the first error.
Maybe someone have solution or direct of search about this troubles
System - ubuntu 20.04
Solution was founded in using docker or VM

Categories

Resources