From 1e236f410f787744652afec30f1cbd8773ee105b Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Fri, 8 Dec 2023 18:58:02 +0100 Subject: [PATCH 1/2] rebrand: fix missing OS tag in recovery --- Scripts/LineageOS-17.1/Rebrand.sh | 2 +- Scripts/LineageOS-20.0/Rebrand.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/LineageOS-17.1/Rebrand.sh b/Scripts/LineageOS-17.1/Rebrand.sh index c3f959b9..c7774811 100644 --- a/Scripts/LineageOS-17.1/Rebrand.sh +++ b/Scripts/LineageOS-17.1/Rebrand.sh @@ -37,7 +37,7 @@ sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accen sed -i 's|0x16, 0x7c, 0x80|0x03, 0xa9, 0xf4|' recovery_ui/*ui.cpp; #Recolor text sed -i 's|Android Recovery|'"$DOS_BRANDING_NAME"' Recovery|' recovery_ui/*ui.cpp; sed -i 's|LineageOS|'"$DOS_BRANDING_NAME"'|' recovery_ui/*ui.cpp; -sed -i 's|Lineage |'"$DOS_BRANDING_NAME"' |' recovery.cpp; +sed -i 's|"Version "|"'$DOS_BRANDING_NAME' "|' recovery.cpp fi; if enter "build/make"; then diff --git a/Scripts/LineageOS-20.0/Rebrand.sh b/Scripts/LineageOS-20.0/Rebrand.sh index 1c236a67..a2c3f858 100644 --- a/Scripts/LineageOS-20.0/Rebrand.sh +++ b/Scripts/LineageOS-20.0/Rebrand.sh @@ -36,7 +36,7 @@ sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accen sed -i 's|0x16, 0x7c, 0x80|0x03, 0xa9, 0xf4|' recovery_ui/*ui.cpp; #Recolor text sed -i 's|Android Recovery|'"$DOS_BRANDING_NAME"' Recovery|' recovery_ui/*ui.cpp; #not used (yet) sed -i 's|LineageOS|'"$DOS_BRANDING_NAME"'|' recovery_ui/*ui.cpp; #not used (yet) -sed -i 's|Lineage |'"$DOS_BRANDING_NAME"' |' recovery.cpp; #not used (yet) +sed -i 's|"Version "|"'$DOS_BRANDING_NAME' "|' recovery.cpp fi; if enter "build/make"; then From d00343afd07865628710e975c50bd57b701377d6 Mon Sep 17 00:00:00 2001 From: steadfasterX Date: Fri, 8 Dec 2023 19:02:06 +0100 Subject: [PATCH 2/2] rebrand: fix missing OS tag in recovery (18+19) --- Scripts/LineageOS-18.1/Rebrand.sh | 2 +- Scripts/LineageOS-19.1/Rebrand.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/LineageOS-18.1/Rebrand.sh b/Scripts/LineageOS-18.1/Rebrand.sh index 517e0859..1d4e5845 100644 --- a/Scripts/LineageOS-18.1/Rebrand.sh +++ b/Scripts/LineageOS-18.1/Rebrand.sh @@ -36,7 +36,7 @@ sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accen sed -i 's|0x16, 0x7c, 0x80|0x03, 0xa9, 0xf4|' recovery_ui/*ui.cpp; #Recolor text sed -i 's|Android Recovery|'"$DOS_BRANDING_NAME"' Recovery|' recovery_ui/*ui.cpp; sed -i 's|LineageOS|'"$DOS_BRANDING_NAME"'|' recovery_ui/*ui.cpp; -sed -i 's|Lineage |'"$DOS_BRANDING_NAME"' |' recovery.cpp; +sed -i 's|"Version "|"'$DOS_BRANDING_NAME' "|' recovery.cpp fi; if enter "build/make"; then diff --git a/Scripts/LineageOS-19.1/Rebrand.sh b/Scripts/LineageOS-19.1/Rebrand.sh index 7a8b1732..14b7a0be 100644 --- a/Scripts/LineageOS-19.1/Rebrand.sh +++ b/Scripts/LineageOS-19.1/Rebrand.sh @@ -36,7 +36,7 @@ sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accen sed -i 's|0x16, 0x7c, 0x80|0x03, 0xa9, 0xf4|' recovery_ui/*ui.cpp; #Recolor text sed -i 's|Android Recovery|'"$DOS_BRANDING_NAME"' Recovery|' recovery_ui/*ui.cpp; #not used (yet) sed -i 's|LineageOS|'"$DOS_BRANDING_NAME"'|' recovery_ui/*ui.cpp; #not used (yet) -sed -i 's|Lineage |'"$DOS_BRANDING_NAME"' |' recovery.cpp; #not used (yet) +sed -i 's|"Version "|"'$DOS_BRANDING_NAME' "|' recovery.cpp fi; if enter "build/make"; then