mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 14:36:17 -04:00
20.0: Fixes
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
20cfa30df0
commit
5cada3a769
11 changed files with 877 additions and 14394 deletions
|
@ -873,6 +873,7 @@ deblobVendorBp() {
|
|||
#TODO make this work for more then these two blobs
|
||||
#Credit: https://stackoverflow.com/a/26053127
|
||||
sed -i ':a;N;s/\n/&/3;Ta;/manifest_android.hardware.drm@1.*-service.widevine.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile";
|
||||
sed -i ':a;N;s/\n/&/3;Ta;/manifest_android.hardware.drm-service.widevine.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile";
|
||||
sed -i ':a;N;s/\n/&/3;Ta;/manifest_vendor.xiaomi.hardware.mlipay.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile";
|
||||
sed -i ':a;N;s/\n/&/3;Ta;/vendor.qti.hardware.radio.atcmdfwd@1.0.xml/!{P;D};:b;N;s/\n/&/8;Tb;d' "$bpfile";
|
||||
}
|
||||
|
|
|
@ -224,8 +224,19 @@ processRelease() {
|
|||
echo -e "\e[0;32m\t+ Verified Boot 2.0 with VBMETA and NOCHAIN\e[0m";
|
||||
fi;
|
||||
if [[ "$DOS_VERSION" == "LineageOS-17.1" ]] || [[ "$DOS_VERSION" == "LineageOS-18.1" ]] || [[ "$DOS_VERSION" == "LineageOS-19.1" ]]; then
|
||||
local APEX_SWITCHES=(--extra_apks com.android.adbd.apex="$KEY_DIR/releasekey" \
|
||||
local APEX_SWITCHES=(--extra_apks AdServicesApk.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks Bluetooth.apk="$KEY_DIR/bluetooth" \
|
||||
--extra_apks HalfSheetUX.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks OsuLogin.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks SafetyCenterResources.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks ServiceConnectivityResources.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks ServiceUwbResources.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks ServiceWifiResources.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks WifiDialog.apk="$KEY_DIR/releasekey" \
|
||||
--extra_apks com.android.adbd.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.adbd.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.adservices.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.adservices.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.apex.cts.shim.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.apex.cts.shim.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.appsearch.apex="$KEY_DIR/releasekey" \
|
||||
|
@ -234,8 +245,12 @@ processRelease() {
|
|||
--extra_apex_payload_key com.android.art.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.art.debug.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.art.debug.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.btservices.apex="$KEY_DIR/bluetooth" \
|
||||
--extra_apex_payload_key com.android.btservices.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.cellbroadcast.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.cellbroadcast.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.compos.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.compos.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.conscrypt.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.conscrypt.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.extservices.apex="$KEY_DIR/releasekey" \
|
||||
|
@ -252,6 +267,8 @@ processRelease() {
|
|||
--extra_apex_payload_key com.android.mediaprovider.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.neuralnetworks.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.neuralnetworks.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.ondevicepersonalization.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.ondevicepersonalization.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.os.statsd.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.os.statsd.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.permission.apex="$KEY_DIR/releasekey" \
|
||||
|
@ -268,6 +285,10 @@ processRelease() {
|
|||
--extra_apex_payload_key com.android.tethering.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.tzdata.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.tzdata.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.uwb.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.uwb.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.virt.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.virt.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.vndk.current.apex="$KEY_DIR/releasekey" \
|
||||
--extra_apex_payload_key com.android.vndk.current.apex="$KEY_DIR/avb.pem" \
|
||||
--extra_apks com.android.wifi.apex="$KEY_DIR/releasekey" \
|
||||
|
|
|
@ -54,8 +54,8 @@ buildAll() {
|
|||
buildDevice discovery;
|
||||
#SD835
|
||||
buildDevice cheryl verity;
|
||||
buildDevice cheeseburger verity;
|
||||
buildDevice dumpling verity;
|
||||
buildDevice cheeseburger verity; #superseded
|
||||
buildDevice dumpling verity; #superseded
|
||||
buildDevice mata verity;
|
||||
buildDevice taimen avb;
|
||||
buildDevice walleye avb;
|
||||
|
@ -65,38 +65,38 @@ buildAll() {
|
|||
buildDevice pro1 avb;
|
||||
buildDevice crosshatch avb;
|
||||
buildDevice blueline avb;
|
||||
buildDevice enchilada avb;
|
||||
buildDevice fajita avb;
|
||||
buildDevice enchilada avb; #superseded
|
||||
buildDevice fajita avb; #superseded
|
||||
buildDevice akari avb;
|
||||
buildDevice aurora avb;
|
||||
buildDevice xz2c avb;
|
||||
#SD730
|
||||
buildDevice sunfish avb;
|
||||
buildDevice sunfish avb; #superseded
|
||||
#SD632
|
||||
buildDevice FP3 avb;
|
||||
#SD750
|
||||
buildDevice FP4 avb; #unb
|
||||
buildDevice FP4 avb; #unb #superseded
|
||||
#SD855
|
||||
buildDevice guacamole avb; #unb
|
||||
buildDevice guacamoleb avb; #unb
|
||||
buildDevice hotdog avb; #unb
|
||||
buildDevice hotdogb avb; #unb
|
||||
buildDevice coral avb;
|
||||
buildDevice flame avb;
|
||||
buildDevice guacamole avb; #unb #superseded
|
||||
buildDevice guacamoleb avb; #unb #superseded
|
||||
buildDevice hotdog avb; #unb #superseded
|
||||
buildDevice hotdogb avb; #unb #superseded
|
||||
buildDevice coral avb; #superseded
|
||||
buildDevice flame avb; #superseded
|
||||
buildDevice vayu avb;
|
||||
#SD865
|
||||
buildDevice instantnoodle avb;
|
||||
buildDevice instantnoodlep avb;
|
||||
buildDevice kebab avb;
|
||||
buildDevice instantnoodle avb; #superseded
|
||||
buildDevice instantnoodlep avb; #superseded
|
||||
buildDevice kebab avb; #superseded
|
||||
buildDevice lmi avb;
|
||||
#SD870
|
||||
buildDevice alioth avb;
|
||||
#SD888
|
||||
buildDevice lemonade avb;
|
||||
buildDevice lemonadep avb;
|
||||
buildDevice lemonade avb; #superseded
|
||||
buildDevice lemonadep avb; #superseded
|
||||
#SD765
|
||||
buildDevice bramble avb;
|
||||
buildDevice redfin avb;
|
||||
buildDevice bramble avb; #superseded
|
||||
buildDevice redfin avb; #superseded
|
||||
#TODO: barbet
|
||||
#SD670
|
||||
buildDevice bonito avb;
|
||||
|
|
|
@ -58,12 +58,12 @@ buildAll() {
|
|||
#SD730
|
||||
buildDevice sunfish avb;
|
||||
#SD750
|
||||
buildDevice FP4 avb; #unb
|
||||
buildDevice FP4 avb;
|
||||
#SD855
|
||||
buildDevice guacamole avb; #unb
|
||||
buildDevice guacamoleb avb; #unb
|
||||
buildDevice hotdog avb; #unb
|
||||
buildDevice hotdogb avb; #unb
|
||||
buildDevice guacamole avb;
|
||||
buildDevice guacamoleb avb;
|
||||
buildDevice hotdog avb;
|
||||
buildDevice hotdogb avb;
|
||||
buildDevice coral avb;
|
||||
buildDevice flame avb;
|
||||
#SD865
|
||||
|
|
|
@ -159,7 +159,7 @@ applyPatch "$DOS_PATCHES/android_frameworks_base/0021-Boot_Animation.patch"; #Us
|
|||
applyPatch "$DOS_PATCHES/android_frameworks_base/0022-Ignore_StatementService_ANR.patch"; #Don't report statementservice crashes (GrapheneOS)
|
||||
#applyPatch "$DOS_PATCHES/android_frameworks_base/326692.patch"; #Skip screen on animation when wake and unlock via biometrics (jesec) #TODO: 20REBASE
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_base/0023-Skip_Screen_Animation.patch"; #SystemUI: Skip screen-on animation in all scenarios (kdrag0n)
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_base/0024-Burnin_Protection.patch"; #SystemUI: add burnIn protection (arter97)
|
||||
#applyPatch "$DOS_PATCHES/android_frameworks_base/0024-Burnin_Protection.patch"; #SystemUI: add burnIn protection (arter97) #TODO: 20REBASE
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_base/0025-Monet_Toggle.patch"; #Make monet based theming user configurable (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_base/0026-Crash_Details.patch"; #Add an option to show the details of an application error to the user (GrapheneOS)
|
||||
hardenLocationConf services/core/java/com/android/server/location/gnss/gps_debug.conf; #Harden the default GPS config
|
||||
|
@ -180,9 +180,9 @@ if enterAndClear "frameworks/ex"; then
|
|||
if [ "$DOS_GRAPHENE_CONSTIFY" = true ]; then applyPatch "$DOS_PATCHES/android_frameworks_ex/0001-constify_JNINativeMethod.patch"; fi; #Constify JNINativeMethod tables (GrapheneOS)
|
||||
fi;
|
||||
|
||||
#if enterAndClear "frameworks/libs/net"; then
|
||||
#applyPatch "$DOS_PATCHES/android_frameworks_libs_net/0001-Private_DNS.patch"; #More 'Private DNS' options (heavily based off of a CalyxOS patch) #TODO: 20REBASE
|
||||
#fi;
|
||||
if enterAndClear "frameworks/libs/net"; then
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_libs_net/0001-Private_DNS.patch"; #More 'Private DNS' options (heavily based off of a CalyxOS patch)
|
||||
fi;
|
||||
|
||||
if enterAndClear "frameworks/libs/systemui"; then
|
||||
applyPatch "$DOS_PATCHES/android_frameworks_libs_systemui/0001-Icon_Cache.patch"; #Invalidate icon cache between OS releases (GrapheneOS)
|
||||
|
@ -262,7 +262,7 @@ if [ "$DOS_GRAPHENE_CONSTIFY" = true ]; then applyPatch "$DOS_PATCHES/android_pa
|
|||
fi;
|
||||
|
||||
if enterAndClear "packages/apps/Settings"; then
|
||||
#applyPatch "$DOS_PATCHES/android_packages_apps_Settings/0004-Private_DNS.patch"; #More 'Private DNS' options (heavily based off of a CalyxOS patch) #TODO: 20REBASE
|
||||
applyPatch "$DOS_PATCHES/android_packages_apps_Settings/0004-Private_DNS.patch"; #More 'Private DNS' options (heavily based off of a CalyxOS patch)
|
||||
applyPatch "$DOS_PATCHES/android_packages_apps_Settings/0005-Automatic_Reboot.patch"; #Timeout for reboot (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_apps_Settings/0006-Bluetooth_Timeout.patch"; #Timeout for Bluetooth (CalyxOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_apps_Settings/0007-WiFi_Timeout.patch"; #Timeout for Wi-Fi (CalyxOS)
|
||||
|
@ -298,9 +298,9 @@ applyPatch "$DOS_PATCHES_COMMON/android_packages_inputmethods_LatinIME/0001-Voic
|
|||
applyPatch "$DOS_PATCHES_COMMON/android_packages_inputmethods_LatinIME/0002-Disable_Personalization.patch"; #Disable personalization dictionary by default (GrapheneOS)
|
||||
fi;
|
||||
|
||||
#if enterAndClear "packages/modules/Connectivity"; then
|
||||
#applyPatch "$DOS_PATCHES/android_packages_modules_Connectivity/0002-Private_DNS.patch"; #More 'Private DNS' options (heavily based off of a CalyxOS patch) #TODO: 20REBASE
|
||||
#fi;
|
||||
if enterAndClear "packages/modules/Connectivity"; then
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Connectivity/0002-Private_DNS.patch"; #More 'Private DNS' options (heavily based off of a CalyxOS patch)
|
||||
fi;
|
||||
|
||||
if enterAndClear "packages/modules/DnsResolver"; then
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_DnsResolver/0001-Hosts_Cache.patch"; #DnsResolver: Sort and cache hosts file data for fast lookup (tdm)
|
||||
|
@ -363,6 +363,7 @@ sed -i 's/LINEAGE_BUILDTYPE := UNOFFICIAL/LINEAGE_BUILDTYPE := dos/' config/*.mk
|
|||
echo 'include vendor/divested/divestos.mk' >> config/common.mk; #Include our customizations
|
||||
cp -f "$DOS_PATCHES_COMMON/apns-conf.xml" prebuilt/common/etc/apns-conf.xml; #Update APN list
|
||||
awk -i inplace '!/Eleven/' config/common_mobile.mk; #Remove Music Player
|
||||
awk -i inplace '!/enforce-product-packages-exist-internal/' config/common.mk; #Ignore missing packages
|
||||
fi;
|
||||
|
||||
if enter "vendor/divested"; then
|
||||
|
@ -415,7 +416,6 @@ cd "$DOS_BUILD_BASE";
|
|||
#rm -rfv device/*/*/overlay/CarrierConfigResCommon device/*/*/rro_overlays/CarrierConfigOverlay device/*/*/overlay/packages/apps/CarrierConfig/res/xml/vendor.xml;
|
||||
|
||||
#Fix broken options enabled by hardenDefconfig()
|
||||
sed -i "s/CONFIG_DEBUG_NOTIFIERS=y/# CONFIG_DEBUG_NOTIFIERS is not set/" kernel/google/msm-4.9/arch/arm64/configs/*_defconfig; #Likely breaks boot
|
||||
echo -e "\nCONFIG_DEBUG_FS=y" >> kernel/oneplus/sm8150/arch/arm64/configs/vendor/sm8150-perf_defconfig;
|
||||
echo -e "\nCONFIG_DEBUG_FS=n" >> kernel/oneplus/sm8250/arch/arm64/configs/vendor/kona-perf_defconfig;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue