From 01d8fe60d8e3f13f8ca37148001a3f76fc60f619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timi=20Rautam=C3=A4ki?= Date: Sat, 16 Oct 2021 10:05:31 +0000 Subject: [PATCH 01/21] gms: fail build if exported option doesn't exist Change-Id: I403f8141d2d13ce2ec60fc0abb301aa39a0cdfc6 --- config/partner_gms.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/partner_gms.mk b/config/partner_gms.mk index ee04bd01..e27b9937 100644 --- a/config/partner_gms.mk +++ b/config/partner_gms.mk @@ -1,14 +1,14 @@ ifeq ($(WITH_GMS),true) ifeq ($(WITH_GMS_TV),true) -$(call inherit-product-if-exists, vendor/partner_gms-tv/products/gms.mk) +$(call inherit-product, vendor/partner_gms-tv/products/gms.mk) else ifeq ($(WITH_GMS_FI),true) -$(call inherit-product-if-exists, vendor/partner_gms/products/fi.mk) +$(call inherit-product, vendor/partner_gms/products/fi.mk) else ifeq ($(WITH_GMS_GO),true) -$(call inherit-product-if-exists, vendor/partner_gms/products/gms_go.mk) +$(call inherit-product, vendor/partner_gms/products/gms_go.mk) else ifeq ($(WITH_GMS_GO_2GB),true) -$(call inherit-product-if-exists, vendor/partner_gms/products/gms_go_2gb.mk) +$(call inherit-product, vendor/partner_gms/products/gms_go_2gb.mk) else ifeq ($(WITH_GMS_MINIMAL),true) -$(call inherit-product-if-exists, vendor/partner_gms/products/gms_minimal.mk) +$(call inherit-product, vendor/partner_gms/products/gms_minimal.mk) else $(call inherit-product-if-exists, vendor/partner_gms/products/gms.mk) endif From 080406b024d4853ab8345a117ad12435562b0ce7 Mon Sep 17 00:00:00 2001 From: Han Wang <416810799@qq.com> Date: Sat, 1 May 2021 11:38:56 +0200 Subject: [PATCH 02/21] prebuilt: Remove lineage-radio.rc * Devices should use ro.radio.noril and considering vendor services now should have a vendor. prefix, this script is useless. No device is using this script now. Change-Id: I7cbb4f966124ca1307aaf1787301b8247d881b26 --- prebuilt/common/etc/init/lineage-radio.rc | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 prebuilt/common/etc/init/lineage-radio.rc diff --git a/prebuilt/common/etc/init/lineage-radio.rc b/prebuilt/common/etc/init/lineage-radio.rc deleted file mode 100644 index 22f1e64d..00000000 --- a/prebuilt/common/etc/init/lineage-radio.rc +++ /dev/null @@ -1,12 +0,0 @@ -# Disable ril services if noril prop is set -on property:ro.radio.noril=1 - stop ims_rtp_daemon - stop imsdatadaemon - stop imsqmidaemon - stop imsrcsservice - stop ril-daemon - stop qmuxd - stop netmgrd - -on property:persist.radio.noril=1 - setprop ro.radio.noril 1 From 0623e975037cd68b15966fe154af59e4de6a7e00 Mon Sep 17 00:00:00 2001 From: Han Wang <416810799@qq.com> Date: Sat, 19 Jun 2021 14:20:10 +0200 Subject: [PATCH 03/21] Remove fake wget * Toybox supports it now, and there is no real need for this tool. Change-Id: I6f3f8e10f148ffc9626cd150ea21275096d2daed --- config/common.mk | 1 - prebuilt/common/Android.mk | 9 -- prebuilt/common/bin/wget | 184 ------------------------------------- 3 files changed, 194 deletions(-) delete mode 100755 prebuilt/common/bin/wget diff --git a/config/common.mk b/config/common.mk index d5faf3f6..204da249 100644 --- a/config/common.mk +++ b/config/common.mk @@ -136,7 +136,6 @@ PRODUCT_PACKAGES += \ setcap \ unrar \ vim \ - wget \ zip # Filesystems tools diff --git a/prebuilt/common/Android.mk b/prebuilt/common/Android.mk index 640c2be6..8c60140c 100644 --- a/prebuilt/common/Android.mk +++ b/prebuilt/common/Android.mk @@ -1,14 +1,5 @@ LOCAL_PATH := $(call my-dir) -# a wrapper for curl which provides wget syntax, for compatibility -include $(CLEAR_VARS) -LOCAL_MODULE := wget -LOCAL_SRC_FILES := bin/wget -LOCAL_MODULE_TAGS := optional -LOCAL_MODULE_CLASS := EXECUTABLES -LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) -include $(BUILD_PREBUILT) - ################################ # Copies the APN list file into $(TARGET_COPY_OUT_PRODUCT)/etc for the product as apns-conf.xml. # In the case where $(CUSTOM_APNS_FILE) is defined, the content of $(CUSTOM_APNS_FILE) diff --git a/prebuilt/common/bin/wget b/prebuilt/common/bin/wget deleted file mode 100755 index 1d04de54..00000000 --- a/prebuilt/common/bin/wget +++ /dev/null @@ -1,184 +0,0 @@ -#!/system/bin/sh -# wget-curl, a curl wrapper acting as a wget drop-in replacement - version git-HEAD -# Usage: wget [wget args] [i need to fill this in later] -# Download all URLs given using curl, but using wget's options. -# -# -# End of help. -# Copyright (c) 2015 Kylie McClain -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted, provided that the above -# copyright notice and this permission notice appear in all copies. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -# PERFORMANCE OF THIS SOFTWARE. -# -# End of copyright. -# - -set -o pipefail -shopt -u shift_verbose >/dev/null 2>&1 - -help() { - sed -n '/^#/!d;s/^# //;s/^#//;3,${p;}' "$0" | \ - while IFS= read help_line;do - if [[ "$help_line" == "End of help." ]];then - exit 0 - else - printf "%s\n" "$help_line" - fi - done - exit 0 -} - -version() { - sed 's/^# //;s/, .* - version / /;2q;$!d' "$0" - copyright - exit 0 -} - -copyright() { - sed -n '/^#/!d;s/^# //;s/^#//;/End of help./,${p;}' "$0" | \ - while IFS= read copyright_line;do - if [[ "$copyright_line" == "End of help." ]];then - true - elif [[ "$copyright_line" == "End of copyright." ]];then - break - else - printf '%s\n' "$copyright_line" - fi - done -} - -stderr() { - printf "$@" >&2 -} - -error() { - stderr "$0: $1\n" - exit "$2" -} - -invalid_arg() { - error "invalid option -- '$1'" 2 -} - -append_opt() { - for opt in $@;do - CURL_OPTS="${CURL_OPTS} ${opt}" - done -} - -curl() { - eval "command curl $@ ${CURL_RAW}" -} - -append_raw_arg() { - CURL_RAW="$CURL_RAW $@" -} - -has_opt() { # exit 0 if CURL_OPTS has arg, non-zero if doesn't - if [[ "$CURL_OPTS" == *" $1"* ]];then - return 0 - else - return 1 - fi -} - -reexec_without() { # download afterwards without $1 in OPTS - reexec_args_without="$reexec_args_without $@" - reexec=1 -} - -reexec_only() { - for arg in $@;do - CURL_OPTS_REEXEC_ONLY="${CURL_OPTS_REEXEC_ONLY} $arg" - done -} - -print_url() { - has_opt -s || printf "%s\n" "$1" -} - -# 46ABDFHIKLNOPQRSTUVXabcdhiklm nH nc nd np nv opqrtvwx -while getopts ':46ABDFHIKLNO:PQRST:U:VXa:bcdhiklmopqrtvwx' argument "$@";do - case "$argument" in - # a lot of these are noop right now because they are wget mirror args - # which curl doesn't really do, and i am not sure if i should implement them - 4) append_opt -4 ;; - 6) append_opt -6 ;; - A) true ;; # probably can't implement this easily... - B) true ;; - D) true ;; - E) true ;; - F) true ;; # curl doesn't care what the input is - H) true ;; - I) true ;; - K) true ;; - L) true ;; - N) true ;; - O) append_opt "-o $OPTARG" ;; - P) true ;; - Q) true ;; - R) true ;; - S) append_opt -I;reexec_without -I -s ;; - T) append_opt "-m $OPTARG" ;; - U) append_opt "--user-agent \"$OPTARG\"" ;; - V) version; curl --version; exit 0 ;; - X) true ;; - a) append_raw_arg "2>&1 | tee -a $OPTARG" ;; - b) - wget_log="wget-log" - i=1 - while [[ -f "${wget_log}" ]];do - # if that exists, increment until we find something that doesn't - i=$(($i+1)) - wget_log="wget-log.${i}" - done - append_raw_arg ">\"$wget_log\" 2>&1 &" - printf "Continuing in background, pid %s.\nOutput will be written to '$wget_log'.\n" "$$" - ;; - c) append_opt "-C -" ;; - d) append_opt "-v" ;; - e) true ;; - h) help ;; - i) - [[ ! -f "$OPTARG" ]] && error "$OPTARG does not exist" 3 - for url in $(<"$OPTARG");do - URLS=( ${URLS[@]} "$url" ) - done - ;; - q) append_opt "-s" ;; - esac - shift $(($OPTIND-1)) -done - -# set wget default equivilants -append_opt -L # follow redirects -append_opt -# # progress bar - -if [[ -z "${URLS[@]}" ]];then - URLS=( ${@} ) -fi - -for url in ${URLS[@]};do - url_file=${url##*/} - if [[ "$url" == "$url_file" ]];then - # has no remote file name and -o is not in CURL_OPTS... assume index.html - has_opt -o || append_opt "-o index.html" - fi - - eval "print_url '$url';curl ${CURL_OPTS} -- $url" - if [[ "$reexec" ]];then - for reexec_arg in ${reexec_args_without};do - CURL_OPTS_REEXEC=$(echo "${CURL_OPTS_REEXEC:-$CURL_OPTS}" | sed "s# $reexec_arg##") - done - eval "print_url '$url';curl ${CURL_OPTS_REEXEC} ${CURL_OPTS_REEXEC_ONLY} -- $url" - fi -done From cc0df937e61c0be8ceb70d8014e44c123d8d9138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timi=20Rautam=C3=A4ki?= Date: Mon, 15 Nov 2021 16:50:48 +0000 Subject: [PATCH 04/21] overlay: update default wallpaper for large-notouch Use a solid black for TV devices Change-Id: Iff030c1d631e32c48148d35809ae56bc6cd4cc05 --- .../drawable-large-notouch/default_wallpaper.png | Bin 0 -> 133 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 overlay/common/frameworks/base/core/res/res/drawable-large-notouch/default_wallpaper.png diff --git a/overlay/common/frameworks/base/core/res/res/drawable-large-notouch/default_wallpaper.png b/overlay/common/frameworks/base/core/res/res/drawable-large-notouch/default_wallpaper.png new file mode 100644 index 0000000000000000000000000000000000000000..21b7d763b03983a8ee441df6eb2344a29f4a3c74 GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={W7>k44ofy`glX(f`u%tWsIx;Y9 z?C1WI$O`0h7I;J!GcfQS24TkI`72U@f>NF?jv*f2Zx1r^0(plPeD{Bw#;3r*(6E}3 XM}dLSOo?kPP@KWj)z4*}Q$iB}sS+Rq literal 0 HcmV?d00001 From a3d6e25d54caffec171b4b9451e239ffea4fe4fc Mon Sep 17 00:00:00 2001 From: razorloves Date: Sat, 21 Aug 2021 21:07:56 -0500 Subject: [PATCH 05/21] overlay: dialer: Update visual voicemail config Pulled from Google Dialer 72.0.407683083-8103803. Change-Id: I25e664d5d986776dc03af91773aead64541f8abb --- .../voicemail/impl/res/xml/vvm_config.xml | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/overlay/common/packages/apps/Dialer/java/com/android/voicemail/impl/res/xml/vvm_config.xml b/overlay/common/packages/apps/Dialer/java/com/android/voicemail/impl/res/xml/vvm_config.xml index 93db9e96..92cf8fce 100644 --- a/overlay/common/packages/apps/Dialer/java/com/android/voicemail/impl/res/xml/vvm_config.xml +++ b/overlay/common/packages/apps/Dialer/java/com/android/voicemail/impl/res/xml/vvm_config.xml @@ -20,6 +20,17 @@ + + + + + + + vvm_carrier_flag_el_telecom + + 8860 + vvm_type_omtp_1_3 + @@ -34,6 +45,7 @@ + vvm_carrier_freedom_ca @@ -41,6 +53,7 @@ vvm_type_omtp vvm_freedom_ca_allows_transcription + mms @@ -74,7 +87,7 @@ - vvm_type_disable + vvm_type_disabled vvm_carrier_flag_27099 @@ -102,6 +115,7 @@ vvm_o2_uk_allows_transcription + enable_reduce_vvm_server_load_o2uk @@ -114,7 +128,7 @@ - vvm_type_disable + vvm_type_disabled vvm_carrier_flag_swisscom_ch @@ -142,7 +156,6 @@ - @@ -161,30 +174,19 @@ - - vvm_carrier_flag_tracfone_usa_tmo_disable - - - - - - - - - - vvm_type_disable - - - vvm_type_disable + vvm_type_disabled vvm_carrier_flag_tracfone_usa_tmo_enable + + + @@ -234,7 +236,7 @@ - vvm_type_disable + vvm_type_disabled @@ -267,7 +269,7 @@ - vvm_type_disable + vvm_type_disabled vvm_carrier_flag_302220 @@ -277,7 +279,7 @@ 7723 vvm_type_omtp - + mms @@ -411,6 +413,6 @@ - vvm_type_disable + vvm_type_disabled From 7efa2053b6a08da41ddea78bfd30b543693b5c05 Mon Sep 17 00:00:00 2001 From: Michael W Date: Tue, 7 Dec 2021 17:29:06 +0100 Subject: [PATCH 06/21] vendor: apns: Correct Telia * We have duplicate entries with one of them having a proxy * According to the issue, no proxy is required * Since the one with proxy is selected by default, the user has to change it manually -> Remove the wrong one * Also correct order: Internet, then MMS * Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3850 Change-Id: Id3857d74b703b1dd7d16714a3edc6853d4752e64 --- prebuilt/common/etc/apns-conf.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml index c3c39048..bb935045 100644 --- a/prebuilt/common/etc/apns-conf.xml +++ b/prebuilt/common/etc/apns-conf.xml @@ -743,14 +743,12 @@ - - - + From fd730396c01fbe79fb2d8c8cf952bdc31cc1ebfb Mon Sep 17 00:00:00 2001 From: Michael W Date: Tue, 7 Dec 2021 17:34:55 +0100 Subject: [PATCH 07/21] vendor: apns: Remove unused "spn" attribute * The parsing of apns-conf.xml happens in packages/providers/TelephonyProvider/src/com/android/providers/telephony/ TelephonyProvider.java * Looking at the code, the only possible occurance of "spn" is as a value for "mvno_type" -> Remove all spn="" attributes Change-Id: Ic7fef88c98ad54ea98d702e028a0455de22e55cd --- prebuilt/common/etc/apns-conf.xml | 70 +++++++++++++++---------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml index bb935045..623b8b54 100644 --- a/prebuilt/common/etc/apns-conf.xml +++ b/prebuilt/common/etc/apns-conf.xml @@ -69,18 +69,18 @@ - - + + - + - - + + @@ -123,15 +123,15 @@ - - - - - - - + + + + + + + - + @@ -148,7 +148,7 @@ - + @@ -160,20 +160,20 @@ - - - - - - - - - - + + + + + + + + + + - - - + + + @@ -240,7 +240,7 @@ - + @@ -407,8 +407,8 @@ - - + + @@ -723,7 +723,7 @@ - + @@ -743,8 +743,8 @@ - - + + @@ -799,8 +799,8 @@ - - + + From 7dc952be2a46b2987a293f02dc394d1e5c9809ab Mon Sep 17 00:00:00 2001 From: Michael W Date: Tue, 7 Dec 2021 17:49:41 +0100 Subject: [PATCH 08/21] vendor: apns: Fix wrong IPV4 protocols * The correct string is "IP", not "IPV4" * Other possible values are "IPV6" or "IPV4V6" * Source: prebuilts/sdk/30/public/api/android.txt Lines: 46832-46834 Change-Id: I3d4729b829f87a4d7ab83584d1aed01d87e10fd2 --- prebuilt/common/etc/apns-conf.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml index 623b8b54..7364403e 100644 --- a/prebuilt/common/etc/apns-conf.xml +++ b/prebuilt/common/etc/apns-conf.xml @@ -50,7 +50,7 @@ - + @@ -329,7 +329,7 @@ - + @@ -556,7 +556,7 @@ - + @@ -3218,7 +3218,7 @@ - + From 7aded097379bd76b9167cc7f5784bcb3a9858066 Mon Sep 17 00:00:00 2001 From: Michael W Date: Tue, 7 Dec 2021 17:56:04 +0100 Subject: [PATCH 09/21] vendor: apns: Add auth_type explanation * Since it's unclear what the numbers are, make it easier to add a new apn by specifying the possible values in a comment at the top * Also add missing copyright (verified, first LineageOS commit was indeed 2016) Change-Id: Icaf292fd79a903bcf9ef5a3813f6288cffc468ad --- prebuilt/common/etc/apns-conf.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml index 7364403e..2898ad75 100644 --- a/prebuilt/common/etc/apns-conf.xml +++ b/prebuilt/common/etc/apns-conf.xml @@ -2,6 +2,7 @@ + From c47552ae6b1638c8db05813787d94299a9684553 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Fri, 31 Dec 2021 14:49:18 -0800 Subject: [PATCH 10/21] overlay: core: Disable OtaSuggestionSummaryProvider from GMS GMS now uses OtaSuggestionSummaryProvider to push update notifications, both in the status bar and as a dialog pop-up. Disable it. Change-Id: I51c039a1dbbb781e5ffabdd313d062feda308b89 --- overlay/common/frameworks/base/core/res/res/values/config.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/common/frameworks/base/core/res/res/values/config.xml b/overlay/common/frameworks/base/core/res/res/values/config.xml index 85e6badd..df69f3fa 100644 --- a/overlay/common/frameworks/base/core/res/res/values/config.xml +++ b/overlay/common/frameworks/base/core/res/res/values/config.xml @@ -49,6 +49,7 @@ com.android.vending/com.google.android.finsky.systemupdate.SystemUpdateSettingsContentProvider com.android.vending/com.google.android.finsky.systemupdateactivity.SettingsSecurityEntryPoint com.android.vending/com.google.android.finsky.systemupdateactivity.SystemUpdateActivity + com.google.android.gms/com.google.android.gms.update.OtaSuggestionSummaryProvider com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity com.google.android.gms/com.google.android.gms.update.SystemUpdateGcmTaskService com.google.android.gms/com.google.android.gms.update.SystemUpdateService From 7124e2cdbc66739ad80b160d222426ec5f9c2835 Mon Sep 17 00:00:00 2001 From: Mike Auser Date: Mon, 3 Jan 2022 12:36:51 -0600 Subject: [PATCH 11/21] Changed protocol from IPV6 to IP for Telus (This is consistent with Google's APNs config.) These changes have been thoroughly tested on the Telus mobile network. More Info... Telus (from Western Canada) doesn't yet fully support IPV6. As a result, Telus customers trying to run LineageOS won't have mobile data. Telus users (including myself) have been running into this problem for years. For example... https://www.reddit.com/r/LineageOS/comments/hyg5hw/change_apn_settings/ Change-Id: I5085c9463e26da7101106525550f1efef2474c5b --- prebuilt/common/etc/apns-conf.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml index 2898ad75..8f96385d 100644 --- a/prebuilt/common/etc/apns-conf.xml +++ b/prebuilt/common/etc/apns-conf.xml @@ -1190,9 +1190,9 @@ - + - + @@ -1200,9 +1200,9 @@ - + - + From a3d17b88156e9a95552d64e3d41de57cb19900c8 Mon Sep 17 00:00:00 2001 From: Alexander Winkowski Date: Fri, 17 Dec 2021 04:06:59 +0000 Subject: [PATCH 12/21] apns: Add Unifi Change-Id: I4c27c4089c548eca528c70d13bb7cb8d87373b54 --- prebuilt/common/etc/apns-conf.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/prebuilt/common/etc/apns-conf.xml b/prebuilt/common/etc/apns-conf.xml index 8f96385d..33d1d0c3 100644 --- a/prebuilt/common/etc/apns-conf.xml +++ b/prebuilt/common/etc/apns-conf.xml @@ -3213,6 +3213,7 @@ + From cadcc2b50124ea13c2f387169e41e126c5cfa3e1 Mon Sep 17 00:00:00 2001 From: Han Wang <416810799@qq.com> Date: Wed, 7 Apr 2021 02:44:38 +0100 Subject: [PATCH 13/21] config: Set defaultSupervisionProfileOwnerComponent * This makes setting child account work. Change-Id: I9ae352c604426db75c078d7a5b82324be780b846 --- .../common/frameworks/base/core/res/res/values/config.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/overlay/common/frameworks/base/core/res/res/values/config.xml b/overlay/common/frameworks/base/core/res/res/values/config.xml index df69f3fa..81166e08 100644 --- a/overlay/common/frameworks/base/core/res/res/values/config.xml +++ b/overlay/common/frameworks/base/core/res/res/values/config.xml @@ -101,6 +101,11 @@ --> com.google.android.apps.wellbeing + + com.google.android.gms/.kids.account.receiver.ProfileOwnerReceiver + From 5ad978c173c85dbd319100736c4995c4b4c5c4ca Mon Sep 17 00:00:00 2001 From: Michael W Date: Wed, 17 Jun 2020 17:37:09 +0200 Subject: [PATCH 14/21] envsetup: dopush: Correct paths * In order to automatically restart the system when pushing SystemUI, the path must actually be correct * Since android 10 it's in system/*product*/priv-app and 11 will move it again, so just match it anywhere * Make framework also location independent Change-Id: I4a9eb1edbbb21ab8abe17815c606921f7a538b7f --- build/envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/envsetup.sh b/build/envsetup.sh index f1fafc58..fbe566c6 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -883,7 +883,7 @@ EOF fi adb shell restorecon "$TARGET" ;; - /system/priv-app/SystemUI/SystemUI.apk|/system/framework/*) + */SystemUI.apk|*/framework/*) # Only need to stop services once if ! $stop_n_start; then adb shell stop From 3191fee6d270e27e5ce6fb3b641c2cebad680ec8 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Tue, 8 Feb 2022 19:35:40 +0000 Subject: [PATCH 15/21] envsetup: Fix long time broken path to sh Change-Id: Ia76d14e10571dd6f3ac9f4adf288effae851ffe3 --- build/envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/envsetup.sh b/build/envsetup.sh index fbe566c6..73db9558 100644 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -837,7 +837,7 @@ function dopush() CHKPERM="/data/local/tmp/chkfileperm.sh" ( cat <<'EOF' -#!/system/xbin/sh +#!/system/bin/sh FILE=$@ if [ -e $FILE ]; then ls -l $FILE | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}' | cut -d ' ' -f1 From 961af00758e6e3f9b65cabff648e315213b70ada Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Fri, 3 Dec 2021 22:39:46 +0530 Subject: [PATCH 16/21] kernel: Implement build time LTO choice Change-Id: I898eb50fadb6bde5beebf46f443c5de7e6acc907 --- build/tasks/kernel.mk | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk index 9e3e1405..97aa37de 100644 --- a/build/tasks/kernel.mk +++ b/build/tasks/kernel.mk @@ -55,6 +55,8 @@ # aarch64-linux-gnu- for arm64 # x86_64-linux-gnu- for x86 # +# KERNEL_LTO = Optional, force LTO to none / thin / full +# # NEED_KERNEL_MODULE_ROOT = Optional, if true, install kernel # modules in root instead of vendor # NEED_KERNEL_MODULE_SYSTEM = Optional, if true, install kernel @@ -275,6 +277,31 @@ endef # $(2): The defconfig to process (just the filename, no need for full path to file) define make-kernel-config $(call internal-make-kernel-target,$(1),VARIANT_DEFCONFIG=$(VARIANT_DEFCONFIG) SELINUX_DEFCONFIG=$(SELINUX_DEFCONFIG) $(2)) + $(hide) if [ "$(KERNEL_LTO)" = "none" ]; then \ + $(KERNEL_SRC)/scripts/config --file $(1)/.config \ + -d LTO_CLANG \ + -e LTO_NONE \ + -d LTO_CLANG_THIN \ + -d LTO_CLANG_FULL \ + -d THINLTO; \ + $(call make-kernel-target,olddefconfig); \ + elif [ "$(KERNEL_LTO)" = "thin" ]; then \ + $(KERNEL_SRC)/scripts/config --file $(1)/.config \ + -e LTO_CLANG \ + -d LTO_NONE \ + -e LTO_CLANG_THIN \ + -d LTO_CLANG_FULL \ + -e THINLTO; \ + $(call make-kernel-target,olddefconfig); \ + elif [ "$(KERNEL_LTO)" = "full" ]; then \ + $(KERNEL_SRC)/scripts/config --file $(1)/.config \ + -e LTO_CLANG \ + -d LTO_NONE \ + -d LTO_CLANG_THIN \ + -e LTO_CLANG_FULL \ + -d THINLTO; \ + $(call make-kernel-target,olddefconfig); \ + fi $(hide) if [ ! -z "$(KERNEL_CONFIG_OVERRIDE)" ]; then \ echo "Overriding kernel config with '$(KERNEL_CONFIG_OVERRIDE)'"; \ echo $(KERNEL_CONFIG_OVERRIDE) >> $(1)/.config; \ From 0183d0a3afeca6ea2c79279e0be6e8f1e617b491 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Thu, 17 Feb 2022 23:39:10 -0500 Subject: [PATCH 17/21] lineage: partner_gms: Add Automotive support Change-Id: I1466b76fc4a4f32dc5bde944c6bf7fa937e990f0 --- config/partner_gms.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/partner_gms.mk b/config/partner_gms.mk index e27b9937..fd36a380 100644 --- a/config/partner_gms.mk +++ b/config/partner_gms.mk @@ -1,6 +1,8 @@ ifeq ($(WITH_GMS),true) ifeq ($(WITH_GMS_TV),true) $(call inherit-product, vendor/partner_gms-tv/products/gms.mk) +else ifeq ($(WITH_GMS_CAR),true) +$(call inherit-product, vendor/partner_gms-car/products/gms.mk) else ifeq ($(WITH_GMS_FI),true) $(call inherit-product, vendor/partner_gms/products/fi.mk) else ifeq ($(WITH_GMS_GO),true) From 78461643c21189637f00a3e192b509cc5f2ad4ae Mon Sep 17 00:00:00 2001 From: Bharath Date: Wed, 22 Dec 2021 18:34:11 +0530 Subject: [PATCH 18/21] msm8953: Split msm8953 from UM_3_18_FAMILY [2/2] msm8953 has updated HAL projects. Make use of them. This can be made use of by setting `TARGET_ENFORCE_QSSI` to true. Change-Id: Ib7ababd52470913c915f1da3d6b726eff2f38410 --- config/BoardConfigQcom.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/BoardConfigQcom.mk b/config/BoardConfigQcom.mk index 06be8beb..70c947db 100644 --- a/config/BoardConfigQcom.mk +++ b/config/BoardConfigQcom.mk @@ -11,7 +11,7 @@ LAHAINA := lahaina #SM8350 B_FAMILY := msm8226 msm8610 msm8974 B64_FAMILY := msm8992 msm8994 BR_FAMILY := msm8909 msm8916 -UM_3_18_FAMILY := msm8937 msm8953 msm8996 +UM_3_18_FAMILY := msm8937 msm8996 UM_4_4_FAMILY := msm8998 sdm660 UM_4_9_FAMILY := sdm845 sdm710 UM_4_14_FAMILY := $(MSMNILE) $(MSMSTEPPE) $(TRINKET) $(ATOLL) @@ -20,6 +20,12 @@ UM_5_4_FAMILY := $(LAHAINA) UM_PLATFORMS := $(UM_3_18_FAMILY) $(UM_4_4_FAMILY) $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) QSSI_SUPPORTED_PLATFORMS := $(UM_4_9_FAMILY) $(UM_4_14_FAMILY) $(UM_4_19_FAMILY) $(UM_5_4_FAMILY) +ifeq (,$(TARGET_ENFORCE_QSSI)) +UM_3_18_FAMILY += msm8953 +else +QSSI_SUPPORTED_PLATFORMS += msm8953 +endif + BOARD_USES_ADRENO := true # Add qtidisplay to soong config namespaces From d3c8eb6d5ac2068ccc2bf16bea77051ad0008404 Mon Sep 17 00:00:00 2001 From: Aaron Kling Date: Thu, 7 Nov 2019 20:10:45 -0600 Subject: [PATCH 19/21] Add nvidia product Intended to be conditionally included in tegra device trees This will be used to indicate which tegra specific modifications are available. Firstly is the baseline framework modifications for nvcpl and profiles Change-Id: Ibae95de3ee47a4a1cefbcd4035ef48dbc246d266 --- product/nvidia.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 product/nvidia.mk diff --git a/product/nvidia.mk b/product/nvidia.mk new file mode 100644 index 00000000..5ae815d0 --- /dev/null +++ b/product/nvidia.mk @@ -0,0 +1,18 @@ +# Copyright (C) 2019 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Baseline Nvidia framework enhancements +# Includes support for: +# 1) NvCPL / Application Profiles +NV_ANDROID_FRAMEWORK_ENHANCEMENTS := true From 9788aeb967e3812f9d356a7d7115042f013ff44e Mon Sep 17 00:00:00 2001 From: Aaron Kling Date: Thu, 24 Mar 2022 22:55:35 -0500 Subject: [PATCH 20/21] Fix nvidia enhancements soong conversion Change-Id: Icc79f1f349de2bc4b213dd241ea59d69ca13a39b --- config/BoardConfigSoong.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 47658042..4dfc61b2 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -44,7 +44,7 @@ SOONG_CONFIG_lineageGlobalVars += \ SOONG_CONFIG_NAMESPACES += lineageNvidiaVars SOONG_CONFIG_lineageNvidiaVars += \ - uses_nv_enhancements + uses_nvidia_enhancements SOONG_CONFIG_NAMESPACES += lineageQcomVars SOONG_CONFIG_lineageQcomVars += \ @@ -70,7 +70,7 @@ SOONG_CONFIG_lineageGlobalVars_has_memfd_backport := $(TARGET_HAS_MEMFD_BACKPORT SOONG_CONFIG_lineageGlobalVars_ignores_ftp_pptp_conntrack_failure := $(TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE) SOONG_CONFIG_lineageGlobalVars_needs_camera_boottime := $(TARGET_CAMERA_BOOTTIME_TIMESTAMP) SOONG_CONFIG_lineageGlobalVars_needs_netd_direct_connect_rule := $(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE) -SOONG_CONFIG_lineageNvidiaVars_uses_nv_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS) +SOONG_CONFIG_lineageNvidiaVars_uses_nvidia_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS) SOONG_CONFIG_lineageQcomVars_legacy_hw_disk_encryption := $(TARGET_LEGACY_HW_DISK_ENCRYPTION) SOONG_CONFIG_lineageQcomVars_should_wait_for_qsee := $(TARGET_KEYMASTER_WAIT_FOR_QSEE) SOONG_CONFIG_lineageQcomVars_supports_extended_compress_format := $(AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT) From 1a092ced79e75c02ef50723a9b152e3aa0dd4dff Mon Sep 17 00:00:00 2001 From: Scott Warner Date: Mon, 4 Apr 2022 12:51:44 -0400 Subject: [PATCH 21/21] config: Disable GMS OTA popup Change-Id: Ie3ac018c0ff915832bdcfc9e47467879b3694c13 --- overlay/common/frameworks/base/core/res/res/values/config.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/overlay/common/frameworks/base/core/res/res/values/config.xml b/overlay/common/frameworks/base/core/res/res/values/config.xml index 81166e08..bcab6514 100644 --- a/overlay/common/frameworks/base/core/res/res/values/config.xml +++ b/overlay/common/frameworks/base/core/res/res/values/config.xml @@ -49,6 +49,7 @@ com.android.vending/com.google.android.finsky.systemupdate.SystemUpdateSettingsContentProvider com.android.vending/com.google.android.finsky.systemupdateactivity.SettingsSecurityEntryPoint com.android.vending/com.google.android.finsky.systemupdateactivity.SystemUpdateActivity + com.google.android.gms/com.google.android.gms.update.phone.PopupDialog com.google.android.gms/com.google.android.gms.update.OtaSuggestionSummaryProvider com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity com.google.android.gms/com.google.android.gms.update.SystemUpdateGcmTaskService