- Init the Lineage manifest:
repo init -u ssh://[email protected]/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
#!/usr/bin/env python | |
# Copyright (C) 2019 Simon Shields <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
#!/usr/bin/env python3 | |
# Copyright (c) 2017 Simon Shields | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
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
echo Purging old target_files... | |
rm out/dist/*target_files* | |
echo Making dist... | |
mka dist | |
echo Signing target files apks... | |
TARGET_FILES_SIGNED=lineage-$(get_build_var LINEAGE_VERSION)-signed-target_files.zip | |
./build/tools/releasetools/sign_target_files_apks -o -d ~/.android-certs out/dist/*-target_files-*.zip $TARGET_FILES_SIGNED | |
echo Generating ota package... | |
OTA_PACKAGE=lineage-$(get_build_var LINEAGE_VERSION)-install.zip | |
./build/tools/releasetools/ota_from_target_files -k ~/.android-certs/releasekey $TARGET_FILES_SIGNED $OTA_PACKAGE |
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
#!/usr/bin/perl -ni | |
if (/app_name/) { | |
s/C(?:yanogen)?M(?:od)?//g; | |
# strip surrounding spaces too1 | |
s/(\S) +</$1</g; | |
s/> +(\S)/>$1/g; | |
} | |
print; | |
if (/Copyright/) { | |
s/20.+? /2017 /g; |
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
#!/usr/bin/perl -ni | |
s/CyanogenMod/LineageOS/g unless /copyright/i; | |
print; | |
if (/Copyright/) { | |
s/20.+? /2017 /g; | |
s/CyanogenMod/LineageOS/; | |
s/Copyright/ /; | |
print; | |
} |
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
{ | |
"android_kernel_lge_msm8992": [ | |
"android_device_lge_h811", | |
"android_device_lge_h815" | |
], | |
"android_kernel_oneplus_msm8996": [ | |
"android_device_oneplus_oneplus3" | |
], | |
"android_kernel_htc_msm8960": [ | |
"android_device_htc_t6spr", |
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
{ | |
"android_device_lge_jagnm": [ | |
"android_device_lge_msm8226-common" | |
], | |
"android_device_lge_v410": [ | |
"android_device_lge_v4xx-common" | |
], | |
"android_device_samsung_gts210wifi": [ | |
"android_device_samsung_gts2-common" | |
], |
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
#!/usr/bin/python | |
from __future__ import print_function | |
import requests | |
BRANCH = 'cm-14.1' | |
REPO_OWNER = 'orgs/LineageOS' | |
USERNAME = 'your github username' | |
# generate this here: https://github.com/settings/tokens | |
# this script only needs the 'repo' scope |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<project name="fourkbomb/android_device_samsung_i9300" path="device/samsung/i9300" remote="github" revision="cm-14.0" /> | |
<project name="fourkbomb/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="github" revision="cm-14.0" /> | |
<project name="fourkbomb/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="cm-14.0" /> | |
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-13.0" /> | |
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-14.0" /> | |
<project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" revision="cm-14.0" /> | |
<project name="fourkbomb/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-14.0" /> | |
</manifest> |
NewerOlder