Skip to content

Instantly share code, notes, and snippets.

@Eskuero
Created October 13, 2018 11:30
Show Gist options
  • Save Eskuero/9e5e4ff0a88cb89d97a771966a5b58ba to your computer and use it in GitHub Desktop.
Save Eskuero/9e5e4ff0a88cb89d97a771966a5b58ba to your computer and use it in GitHub Desktop.
Apply October security patch over LineageOS 14.1 before it gets merged
#!/bin/bash
BASE=$(pwd)
cd $BASE/.repo/manifests;
git fetch https://github.com/LineageOS/android refs/changes/80/230980/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android refs/changes/81/230981/4 && git cherry-pick FETCH_HEAD;
cd $BASE;
repo sync --force-sync;
cd $BASE/build;
git fetch https://github.com/LineageOS/android_build refs/changes/37/231037/3 && git cherry-pick FETCH_HEAD;
cd $BASE/external/chromium-libpac;
git fetch https://github.com/LineageOS/android_external_chromium-libpac refs/changes/82/230982/2 && git cherry-pick FETCH_HEAD;
cd $BASE/external/libmpeg2;
git fetch https://github.com/LineageOS/android_external_libmpeg2 refs/changes/43/230843/2 && git cherry-pick FETCH_HEAD;
cd $BASE/frameworks/av;
git fetch https://github.com/LineageOS/android_frameworks_av refs/changes/40/230840/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_av refs/changes/14/231214/1 && git cherry-pick FETCH_HEAD;
cd $BASE/frameworks/base;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/41/230841/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/42/230842/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/91/230991/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/38/231038/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/30/231230/1 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/31/231231/1 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_frameworks_base refs/changes/39/231039/2 && git cherry-pick FETCH_HEAD;
cd $BASE/packages/providers/DownloadProvider;
git fetch https://github.com/LineageOS/android_packages_providers_DownloadProvider refs/changes/90/230990/2 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_packages_providers_DownloadProvider refs/changes/55/230855/3 && git cherry-pick FETCH_HEAD;
cd $BASE/system/bt;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/44/230844/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/45/230845/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/46/230846/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/47/230847/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/48/230848/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/49/230849/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/50/230850/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/51/230851/5 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/52/230852/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/53/230853/4 && git cherry-pick FETCH_HEAD;
git fetch https://github.com/LineageOS/android_system_bt refs/changes/54/230854/4 && git cherry-pick FETCH_HEAD;
cd $BASE/external/chromium-webview;
git fetch https://github.com/LineageOS/android_external_chromium-webview refs/changes/80/231380/1 && git cherry-pick FETCH_HEAD;
cd $BASE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment