From 3ea4b55e70edbbd78ffa46489b933563258d0f77 Mon Sep 17 00:00:00 2001 From: Tad Date: Sun, 10 Jun 2018 17:04:58 -0400 Subject: [PATCH] Tweaks and add a script for creating signing keys --- .gitignore | 1 + Scripts/Generate_Signing_Keys.sh | 11 +++++++++++ Scripts/LineageOS-14.1/Patch.sh | 1 + 3 files changed, 13 insertions(+) create mode 100644 Scripts/Generate_Signing_Keys.sh diff --git a/.gitignore b/.gitignore index 15224bde..ecd73e6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ Signing_Keys/ +Signing_Keys-Old/ Builds/ Build/ Repos/ diff --git a/Scripts/Generate_Signing_Keys.sh b/Scripts/Generate_Signing_Keys.sh new file mode 100644 index 00000000..ebcb2b57 --- /dev/null +++ b/Scripts/Generate_Signing_Keys.sh @@ -0,0 +1,11 @@ +export desc='/O=Divested Computing, Inc./CN=DivestOS/emailAddress=support@divestos.xyz'; +export type='rsa'; #Options: rsa, ec + +$base/development/tools/make_key extra "$desc" "$type"; +$base/development/tools/make_key media "$desc" "$type"; +$base/development/tools/make_key platform "$desc" "$type"; +$base/development/tools/make_key releasekey "$desc" "$type"; +$base/development/tools/make_key shared "$desc" "$type"; +$base/development/tools/make_key verity "$desc" "$type"; + +echo "Please copy created keys to your signing keys directory. Keep them safe!"; diff --git a/Scripts/LineageOS-14.1/Patch.sh b/Scripts/LineageOS-14.1/Patch.sh index 17dabbab..198f35cb 100755 --- a/Scripts/LineageOS-14.1/Patch.sh +++ b/Scripts/LineageOS-14.1/Patch.sh @@ -234,6 +234,7 @@ cd $base; #Fixes #Fix broken options enabled by hardenDefconfig() +sed -i "s/CONFIG_PARTIALRESUME=y/# CONFIG_STRICT_MEMORY_RWX is not set/" kernel/motorola/msm8992/arch/arm64/configs/*defconfig; #Breaks on compile sed -i "s/CONFIG_STRICT_MEMORY_RWX=y/# CONFIG_STRICT_MEMORY_RWX is not set/" kernel/lge/msm8996/arch/arm64/configs/lineageos_*_defconfig; #Breaks on compile # #END OF DEVICE CHANGES