Add CVE patchers and commands for new devices

This commit is contained in:
Tad 2017-11-05 14:15:54 -05:00
parent a42e8a5243
commit e0c764492d
7 changed files with 227 additions and 2 deletions

View File

@ -195,7 +195,7 @@
<!-- Samsung Galaxy S II (i9100) -->
<project path="device/samsung/i9100" name="LineageOS/android_device_samsung_i9100" remote="github" />
<project path="kernel/samsung/galaxys2-common" name="LineageOS/android_device_samsung_galaxys2-common" remote="github" />
<project path="device/samsung/galaxys2-common" name="LineageOS/android_device_samsung_galaxys2-common" remote="github" />
<!-- Samsung Galaxy S III (i9305) -->
<project path="device/samsung/i9305" name="LineageOS/android_device_samsung_i9305" remote="github" />

View File

@ -0,0 +1,12 @@
#!/bin/bash
cd $base"kernel/htc/msm8974"
git apply $cvePatches/CVE-2014-1739/ANY/0.patch
git apply $cvePatches/CVE-2014-9715/ANY/0.patch
git apply $cvePatches/CVE-2014-9781/ANY/0.patch
git apply $cvePatches/CVE-2015-1593/ANY/0.patch
git apply $cvePatches/CVE-2016-2443/ANY/0.patch
git apply $cvePatches/CVE-2016-8404/ANY/0.patch
git apply $cvePatches/CVE-2017-0750/ANY/0.patch
git apply $cvePatches/CVE-2017-0786/ANY/0.patch
git apply $cvePatches/CVE-2017-15265/ANY/0.patch
cd $base

View File

@ -0,0 +1,116 @@
#!/bin/bash
cd $base"kernel/htc/msm8994"
git apply $cvePatches/CVE-2014-9781/ANY/0.patch
git apply $cvePatches/CVE-2014-9903/ANY/0.patch
git apply $cvePatches/CVE-2014-9904/ANY/0.patch
git apply $cvePatches/CVE-2015-8019/3.10/0.patch
git apply $cvePatches/CVE-2015-8942/ANY/0.patch
git apply $cvePatches/CVE-2015-8964/3.10/1.patch
git apply $cvePatches/CVE-2015-8967/ANY/0.patch
git apply $cvePatches/CVE-2016-0758/ANY/0.patch
git apply $cvePatches/CVE-2016-10200/ANY/0.patch
git apply $cvePatches/CVE-2016-10230/ANY/0.patch
git apply $cvePatches/CVE-2016-10231/ANY/1.patch
git apply $cvePatches/CVE-2016-10233/3.10/1.patch
git apply $cvePatches/CVE-2016-2185/ANY/0.patch
git apply $cvePatches/CVE-2016-2186/ANY/0.patch
git apply $cvePatches/CVE-2016-2187/ANY/0.patch
git apply $cvePatches/CVE-2016-2544/ANY/0.patch
git apply $cvePatches/CVE-2016-3134/3.10/0.patch
git apply $cvePatches/CVE-2016-3136/ANY/0.patch
git apply $cvePatches/CVE-2016-3137/ANY/0.patch
git apply $cvePatches/CVE-2016-3140/ANY/0.patch
git apply $cvePatches/CVE-2016-3672/ANY/0.patch
git apply $cvePatches/CVE-2016-3689/ANY/0.patch
git apply $cvePatches/CVE-2016-3809/ANY/0.patch
git apply $cvePatches/CVE-2016-3857/3.10/0.patch
git apply $cvePatches/CVE-2016-3865/ANY/0.patch
git apply $cvePatches/CVE-2016-3865/ANY/1.patch
git apply $cvePatches/CVE-2016-3906/ANY/0.patch
git apply $cvePatches/CVE-2016-3907/ANY/0.patch
git apply $cvePatches/CVE-2016-3934/ANY/0.patch
git apply $cvePatches/CVE-2016-5345/ANY/0.patch
git apply $cvePatches/CVE-2016-5346/ANY/0.patch
git apply $cvePatches/CVE-2016-5347/ANY/0.patch
git apply $cvePatches/CVE-2016-5853/ANY/0.patch
git apply $cvePatches/CVE-2016-5867/ANY/0.patch
git apply $cvePatches/CVE-2016-5870/ANY/0.patch
git apply $cvePatches/CVE-2016-6672/ANY/0.patch
git apply $cvePatches/CVE-2016-6738/ANY/0.patch
git apply $cvePatches/CVE-2016-6741/3.10/0.patch
git apply $cvePatches/CVE-2016-6751/ANY/0.patch
git apply $cvePatches/CVE-2016-6753/ANY/0.patch
git apply $cvePatches/CVE-2016-7915/ANY/0.patch
git apply $cvePatches/CVE-2016-8399/ANY/1.patch
git apply $cvePatches/CVE-2016-8401/ANY/0.patch
git apply $cvePatches/CVE-2016-8404/ANY/0.patch
git apply $cvePatches/CVE-2016-8413/ANY/0.patch
git apply $cvePatches/CVE-2016-8417/ANY/0.patch
git apply $cvePatches/CVE-2016-8444/ANY/0.patch
git apply $cvePatches/CVE-2016-8450/ANY/0.patch
git apply $cvePatches/CVE-2016-8479/ANY/0.patch
git apply $cvePatches/CVE-2016-8483/3.10/1.patch
git apply $cvePatches/CVE-2016-8650/ANY/0.patch
git apply $cvePatches/CVE-2016-9604/ANY/0.patch
git apply $cvePatches/CVE-2016-9754/ANY/0.patch
git apply $cvePatches/CVE-2016-9793/ANY/0.patch
git apply $cvePatches/CVE-2017-0403/ANY/0.patch
git apply $cvePatches/CVE-2017-0404/ANY/0.patch
git apply $cvePatches/CVE-2017-0427/3.10/1.patch
git apply $cvePatches/CVE-2017-0436/ANY/0.patch
git apply $cvePatches/CVE-2017-0446/ANY/0.patch
git apply $cvePatches/CVE-2017-0452/ANY/1.patch
git apply $cvePatches/CVE-2017-0457/3.10/0.patch
git apply $cvePatches/CVE-2017-0457/3.10/1.patch
git apply $cvePatches/CVE-2017-0459/3.10/1.patch
git apply $cvePatches/CVE-2017-0460/3.10/1.patch
git apply $cvePatches/CVE-2017-0463/ANY/0.patch
git apply $cvePatches/CVE-2017-0510/ANY/2.patch
git apply $cvePatches/CVE-2017-0516/ANY/0.patch
git apply $cvePatches/CVE-2017-0520/ANY/0.patch
git apply $cvePatches/CVE-2017-0523/ANY/0.patch
git apply $cvePatches/CVE-2017-0537/ANY/0.patch
git apply $cvePatches/CVE-2017-0576/ANY/0.patch
git apply $cvePatches/CVE-2017-0604/ANY/0.patch
git apply $cvePatches/CVE-2017-0606/ANY/0.patch
git apply $cvePatches/CVE-2017-0607/ANY/0.patch
git apply $cvePatches/CVE-2017-0611/ANY/0.patch
git apply $cvePatches/CVE-2017-0620/ANY/0.patch
git apply $cvePatches/CVE-2017-0621/ANY/0.patch
git apply $cvePatches/CVE-2017-0627/ANY/0.patch
git apply $cvePatches/CVE-2017-0631/ANY/0.patch
git apply $cvePatches/CVE-2017-0648/ANY/0.patch
git apply $cvePatches/CVE-2017-0710/ANY/0.patch
git apply $cvePatches/CVE-2017-0746/ANY/0.patch
git apply $cvePatches/CVE-2017-0748/ANY/0.patch
git apply $cvePatches/CVE-2017-0750/ANY/0.patch
git apply $cvePatches/CVE-2017-0751/ANY/0.patch
git apply $cvePatches/CVE-2017-1000365/3.10/0.patch
git apply $cvePatches/CVE-2017-10999/ANY/0.patch
git apply $cvePatches/CVE-2017-11046/3.10/0.patch
git apply $cvePatches/CVE-2017-11048/3.10/0.patch
git apply $cvePatches/CVE-2017-11056/3.10/0.patch
git apply $cvePatches/CVE-2017-11059/3.10/0.patch
git apply $cvePatches/CVE-2017-15265/ANY/0.patch
git apply $cvePatches/CVE-2017-2618/3.10/0.patch
git apply $cvePatches/CVE-2017-2671/ANY/0.patch
git apply $cvePatches/CVE-2017-5669/ANY/0.patch
git apply $cvePatches/CVE-2017-5970/ANY/0.patch
git apply $cvePatches/CVE-2017-6074/ANY/0.patch
git apply $cvePatches/CVE-2017-6345/ANY/0.patch
git apply $cvePatches/CVE-2017-6348/ANY/0.patch
git apply $cvePatches/CVE-2017-6951/ANY/0.patch
git apply $cvePatches/CVE-2017-7369/3.10/0.patch
git apply $cvePatches/CVE-2017-7373/3.10/1.patch
git apply $cvePatches/CVE-2017-7472/ANY/0.patch
git apply $cvePatches/CVE-2017-8242/ANY/0.patch
git apply $cvePatches/CVE-2017-8246/3.10/0.patch
git apply $cvePatches/CVE-2017-8251/3.10/0.patch
git apply $cvePatches/CVE-2017-8260/3.10/0.patch
git apply $cvePatches/CVE-2017-8262/3.10/1.patch
git apply $cvePatches/CVE-2017-8265/ANY/0.patch
git apply $cvePatches/CVE-2017-8280/ANY/0.patch
git apply $cvePatches/CVE-2017-9242/ANY/0.patch
git apply $cvePatches/CVE-2017-9706/3.10/0.patch
git apply $cvePatches/LVT-2017-0003/3.10/0.patch
cd $base

View File

@ -0,0 +1,23 @@
#!/bin/bash
cd $base"kernel/samsung/jf"
git apply $cvePatches/CVE-2016-10233/ANY/0.patch
git apply $cvePatches/CVE-2016-2185/ANY/0.patch
git apply $cvePatches/CVE-2016-2186/ANY/0.patch
git apply $cvePatches/CVE-2016-2475/ANY/0.patch
git apply $cvePatches/CVE-2016-3854/ANY/0.patch
git apply $cvePatches/CVE-2016-6672/ANY/0.patch
git apply $cvePatches/CVE-2016-8402/3.4/1.patch
git apply $cvePatches/CVE-2016-8404/ANY/0.patch
git apply $cvePatches/CVE-2017-0430/ANY/0.patch
git apply $cvePatches/CVE-2017-0573/ANY/0.patch
git apply $cvePatches/CVE-2017-0648/ANY/0.patch
git apply $cvePatches/CVE-2017-0706/ANY/0.patch
git apply $cvePatches/CVE-2017-0710/ANY/0.patch
git apply $cvePatches/CVE-2017-0750/ANY/0.patch
git apply $cvePatches/CVE-2017-0751/ANY/0.patch
git apply $cvePatches/CVE-2017-0786/ANY/0.patch
git apply $cvePatches/CVE-2017-0791/ANY/0.patch
git apply $cvePatches/CVE-2017-15265/ANY/0.patch
git apply $cvePatches/CVE-2017-5970/ANY/0.patch
git apply $cvePatches/CVE-2017-7487/ANY/0.patch
cd $base

View File

@ -0,0 +1,5 @@
#!/bin/bash
cd $base"kernel/samsung/msm8974"
git apply $cvePatches/CVE-2016-2475/ANY/0.patch
git apply $cvePatches/CVE-2017-0750/ANY/0.patch
cd $base

View File

@ -0,0 +1,69 @@
#!/bin/bash
cd $base"kernel/samsung/universal8890"
git apply $cvePatches/CVE-2014-9900/ANY/0.patch
git apply $cvePatches/CVE-2014-9940/ANY/0.patch
git apply $cvePatches/CVE-2015-2041/ANY/0.patch
git apply $cvePatches/CVE-2015-4177/ANY/0.patch
git apply $cvePatches/CVE-2015-7515/^4.4/0.patch
git apply $cvePatches/CVE-2015-7550/ANY/0.patch
git apply $cvePatches/CVE-2015-8019/3.18/1.patch
git apply $cvePatches/CVE-2015-8575/ANY/0.patch
git apply $cvePatches/CVE-2015-8785/ANY/0.patch
git apply $cvePatches/CVE-2015-8962/ANY/0.patch
git apply $cvePatches/CVE-2015-8966/ANY/0.patch
git apply $cvePatches/CVE-2015-9004/ANY/0.patch
git apply $cvePatches/CVE-2016-10088/ANY/0.patch
git apply $cvePatches/CVE-2016-10153/ANY/0.patch
git apply $cvePatches/CVE-2016-10200/ANY/0.patch
git apply $cvePatches/CVE-2016-2185/ANY/0.patch
git apply $cvePatches/CVE-2016-2186/ANY/0.patch
git apply $cvePatches/CVE-2016-2187/ANY/0.patch
git apply $cvePatches/CVE-2016-3136/ANY/0.patch
git apply $cvePatches/CVE-2016-3137/ANY/0.patch
git apply $cvePatches/CVE-2016-3140/ANY/0.patch
git apply $cvePatches/CVE-2016-3156/ANY/0.patch
git apply $cvePatches/CVE-2016-3672/ANY/0.patch
git apply $cvePatches/CVE-2016-3689/ANY/0.patch
git apply $cvePatches/CVE-2016-3775/3.18/1.patch
git apply $cvePatches/CVE-2016-4794/ANY/0.patch
git apply $cvePatches/CVE-2016-4794/ANY/1.patch
git apply $cvePatches/CVE-2016-6828/ANY/0.patch
git apply $cvePatches/CVE-2016-7042/ANY/0.patch
git apply $cvePatches/CVE-2016-7912/3.18/0.patch
git apply $cvePatches/CVE-2016-7917/ANY/0.patch
git apply $cvePatches/CVE-2016-8399/ANY/1.patch
git apply $cvePatches/CVE-2016-8468/3.18/0.patch
git apply $cvePatches/CVE-2016-8650/ANY/0.patch
git apply $cvePatches/CVE-2016-9191/ANY/0.patch
git apply $cvePatches/CVE-2016-9604/ANY/0.patch
git apply $cvePatches/CVE-2016-9754/ANY/0.patch
git apply $cvePatches/CVE-2016-9793/ANY/0.patch
git apply $cvePatches/CVE-2017-0403/ANY/0.patch
git apply $cvePatches/CVE-2017-0404/ANY/0.patch
git apply $cvePatches/CVE-2017-0510/3.18/1.patch
git apply $cvePatches/CVE-2017-0523/ANY/0.patch
git apply $cvePatches/CVE-2017-0537/ANY/0.patch
git apply $cvePatches/CVE-2017-0627/ANY/0.patch
git apply $cvePatches/CVE-2017-0710/ANY/0.patch
git apply $cvePatches/CVE-2017-0749/ANY/0.patch
git apply $cvePatches/CVE-2017-0750/ANY/0.patch
git apply $cvePatches/CVE-2017-10996/ANY/0.patch
git apply $cvePatches/CVE-2017-2671/ANY/0.patch
git apply $cvePatches/CVE-2017-5669/ANY/0.patch
git apply $cvePatches/CVE-2017-5970/ANY/0.patch
git apply $cvePatches/CVE-2017-5986/ANY/0.patch
git apply $cvePatches/CVE-2017-6345/ANY/0.patch
git apply $cvePatches/CVE-2017-6346/3.18/1.patch
git apply $cvePatches/CVE-2017-6348/ANY/0.patch
git apply $cvePatches/CVE-2017-6353/ANY/0.patch
git apply $cvePatches/CVE-2017-6951/ANY/0.patch
git apply $cvePatches/CVE-2017-7308/3.18/0.patch
git apply $cvePatches/CVE-2017-7308/3.18/1.patch
git apply $cvePatches/CVE-2017-7308/3.18/2.patch
git apply $cvePatches/CVE-2017-7472/ANY/0.patch
git apply $cvePatches/CVE-2017-7487/ANY/0.patch
git apply $cvePatches/CVE-2017-7495/3.18/1.patch
git apply $cvePatches/CVE-2017-7495/3.18/2.patch
git apply $cvePatches/CVE-2017-7616/ANY/0.patch
git apply $cvePatches/CVE-2017-7618/ANY/0.patch
cd $base

View File

@ -22,7 +22,7 @@
#source ../../Scripts/LineageOS-14.1/00init.sh && source $scripts/Patch.sh && source $scripts/Optimize.sh && source $scripts/Rebrand.sh && source $scripts/Theme.sh && source $scripts/Deblob.sh && source $scripts/Patch_CVE.sh && source build/envsetup.sh
#Build!
#brunch lineage_mako-user && export OTA_PACKAGE_SIGNING_KEY=../../Signing_Keys/releasekey && export SIGNING_KEY_DIR=../../Signing_Keys && brunch lineage_clark-user && brunch lineage_bacon-user && brunch lineage_thor-userdebug && brunch lineage_angler-user && brunch lineage_bullhead-user && brunch lineage_ether-user && brunch lineage_flounder-user && brunch lineage_flo-user && brunch lineage_FP2-user && brunch lineage_hammerhead-user && brunch lineage_marlin-user && brunch lineage_sailfish-user && brunch lineage_n5110-user && brunch lineage_osprey-user && brunch lineage_shamu-user && brunch lineage_Z00T-user
#brunch lineage_mako-user && export OTA_PACKAGE_SIGNING_KEY=../../Signing_Keys/releasekey && export SIGNING_KEY_DIR=../../Signing_Keys && brunch lineage_clark-user && brunch lineage_bacon-user && brunch lineage_thor-userdebug && brunch lineage_angler-user && brunch lineage_bullhead-user && brunch lineage_ether-user && brunch lineage_flounder-user && brunch lineage_flo-user && brunch lineage_FP2-user && brunch lineage_hammerhead-user && brunch lineage_herolte-user && brunch lineage_himaul-user && brunch lineage_i9100-user && brunch lineage_i9305-user && brunch lineage_jfltexx-user && brunch lineage_klte-user && brunch lineage_m8-user && brunch lineage_marlin-user && brunch lineage_n5110-user && brunch lineage_osprey-user && brunch lineage_sailfish-user && brunch lineage_shamu-user && brunch lineage_Z00T-user
#Generate an incremental
#./build/tools/releasetools/ota_from_target_files --block -t 8 -i old.zip new.zip update.zip