diff --git a/Scripts/Common/Functions.sh b/Scripts/Common/Functions.sh index 3de13f78..93bf0b1b 100644 --- a/Scripts/Common/Functions.sh +++ b/Scripts/Common/Functions.sh @@ -15,6 +15,13 @@ #You should have received a copy of the GNU General Public License #along with this program. If not, see . +if [ "$NON_COMMERCIAL_USE_PATCHES" = true ]; then + echo -e "\e[0;33mWARNING: YOU HAVE ENABLED PATCHES THAT WHILE OPEN SOURCE ARE ENCUMBERED BY RESTRICTIVE LICENSES\e[0m"; + echo -e "\e[0;33mPLEASE SEE THE 'LICENSES' FILE AT THE ROOT OF THIS REPOSITORY FOR MORE INFORMATION\e[0m"; + echo -e "\e[0;33mDISABLE THEM BY SETTING 'NON_COMMERCIAL_USE_PATCHES' TO 'false' IN 'Scripts/*/00init.sh'\e[0m"; + sleep 15; +fi; + startPatcher() { #$cvePatcher must be set! java -jar $cvePatcher patch $base $androidWorkspace"Patches/" $cveScripts $1; diff --git a/Scripts/LineageOS-15.1/Patch.sh b/Scripts/LineageOS-15.1/Patch.sh index aaa0116e..47f2023f 100755 --- a/Scripts/LineageOS-15.1/Patch.sh +++ b/Scripts/LineageOS-15.1/Patch.sh @@ -157,7 +157,7 @@ enterAndClear "packages/inputmethods/LatinIME"; patch -p1 < $patches"android_packages_inputmethods_LatinIME/0001-Voice.patch"; #Remove voice input key enterAndClear "packages/services/Telephony"; -if [ "$NON_COMMERCIAL_USE_PATCHES" = true ]; then patch -p1 < $patches"android_packages_services_Telephony/Copperhead/0001-LTE_Only.patch"; fi; #LTE only preferred network mode choice. (Copperhead CC BY-NC-SA) +if [ "$NON_COMMERCIAL_USE_PATCHES" = true ]; then patch -p1 < $patches"android_packages_services_Telephony/Copperhead/0001-LTE_Only.patch"; fi; #LTE only preferred network mode choice (Copperhead CC BY-NC-SA) enterAndClear "system/core"; cat /tmp/ar/hosts >> rootdir/etc/hosts; #Merge in our HOSTS file