sudo apt update && sudo apt upgrade
- Init the Lineage manifest:
repo init -u ssh://git@github.com/LineageOS/android.git -b cm-14.1
(or cm-13.0 if you prefer that) - Update your local manifest (.repo/local_manifests/roomservice.xml), if it exists - find and replace "CyanogenMod" with "LineageOS" globally.
- Move the git objects:
mv .repo/project-objects/CyanogenMod .repo/project-objects/LineageOS
curl https://gist.github.com/fourkbomb/0d94e286dc6f173eb9053c0d75e84783/raw/cc1bb94337eab5e30efa689fe1d050db25a1124a/fixlinks.sh > ~/fixlinks.sh
chmod +x ~/fixlinks.sh
cd .repo/projects
find . -name '*.git' -exec ~/fixlinks.sh {} \;
- And finally, fix the actual tree:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function search-branches() { | |
for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
do | |
git branch -r --contains $sha1 | |
done | |
} | |
function search-tags() { | |
for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="sample.test" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="17" /> | |
<application | |
android:icon="@drawable/ic_launcher" |