mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
License headers
This commit is contained in:
parent
7b9d90d781
commit
9d7e5a24a3
@ -1 +1 @@
|
||||
Subproject commit e0e77cd40556ac965d351be39cc883827d39e3d1
|
||||
Subproject commit ee0af5b27afc4bf0d79c55ad4aa8697bb460a1f2
|
@ -1,3 +1,20 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#This program is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
echo "Copying verity/avb public keys to kernels...";
|
||||
cat "$DOS_SIGNING_KEYS/Amber/verity.x509.pem" >> "kernel/yandex/sdm660/certs/verity.x509.pem";
|
||||
cat "$DOS_SIGNING_KEYS/beryllium/verity.x509.pem" >> "kernel/xiaomi/sdm845/certs/verity.x509.pem";
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2019 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2018-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2015-2019 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2015-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2018 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2019 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
@ -131,7 +131,7 @@ export -f patchWorkspace;
|
||||
enableDexPreOpt() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
#Some devices won't compile, or have too small of a /system partition, or Wi-Fi breaks
|
||||
if [ "$1" != "device/asus/flo" ] && [ "$1" != "device/lge/h850" ] && [ "$1" != "device/lge/mako" ]; then
|
||||
if [ "$1" != "device/lge/h850" ] && [ "$1" != "device/lge/mako" ]; then
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_PIC := true" >> BoardConfig.mk;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2015-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2019 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2019 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
@ -157,8 +157,7 @@ enableDexPreOpt() {
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_DEBUG_INFO := false" >> BoardConfig.mk;
|
||||
#flo: random reboots?
|
||||
if [ "$1" != "device/asus/flo" ]; then
|
||||
if true; then
|
||||
echo "WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false" >> BoardConfig.mk;
|
||||
echo "Enabled full dexpreopt for $1";
|
||||
else
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2015-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
@ -127,6 +127,7 @@ patchWorkspace() {
|
||||
repopick -i 287339; #releasetools: python3 fix
|
||||
#repopick -it CVE-2019-2306;
|
||||
repopick -i 292506; #update webview
|
||||
repopick -i 292694; #flox log spam fix
|
||||
|
||||
source "$DOS_SCRIPTS/Patch.sh";
|
||||
source "$DOS_SCRIPTS_COMMON/Copy_Keys.sh";
|
||||
@ -150,9 +151,8 @@ enableDexPreOpt() {
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "WITH_DEXPREOPT := true" >> BoardConfig.mk;
|
||||
echo "WITH_DEXPREOPT_DEBUG_INFO := false" >> BoardConfig.mk;
|
||||
#flox: random reboots?
|
||||
#m8: /system partition too small
|
||||
if [ "$1" != "device/asus/flox" ] && [ "$1" != "device/htc/m8" ]; then
|
||||
if [ "$1" != "device/htc/m8" ]; then
|
||||
echo "WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY := false" >> BoardConfig.mk;
|
||||
echo "Enabled full dexpreopt for $1";
|
||||
else
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2015-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
@ -59,6 +59,7 @@ cp -r "$DOS_PATCHES_COMMON""android_vendor_divested/." "$DOS_BUILD_BASE""vendor/
|
||||
enterAndClear "bootable/recovery";
|
||||
git checkout 53fd25482; #XXX: TEMPORARY!
|
||||
patch -p1 < "$DOS_PATCHES/android_bootable_recovery/0001-No_SerialNum_Restrictions.patch"; #Abort on serial number specific packages (GrapheneOS)
|
||||
#patch -p1 < "$DOS_PATCHES/android_bootable_recovery/0002-Permissive_Override.patch"; #Allow devices to set SELinux permissive
|
||||
|
||||
enterAndClear "bionic";
|
||||
if [ "$DOS_GRAPHENE_MALLOC" = true ]; then patch -p1 < "$DOS_PATCHES/android_bionic/0001-HM-Use_HM.patch"; fi; #(GrapheneOS)
|
||||
@ -268,6 +269,9 @@ awk -i inplace '!/WfdCommon/' msm8996.mk; #fix breakage
|
||||
#enterAndClear "device/moto/shamu";
|
||||
#git revert --no-edit 05fb49518049440f90423341ff25d4f75f10bc0c; #restore releasetools #TODO
|
||||
|
||||
#enterAndClear "device/motorola/clark";
|
||||
#echo "TARGET_RECOVERY_PERMISSIVE_OVERRIDE := true" >> BoardConfig.mk; #Allow extract_firmware.sh to function
|
||||
|
||||
enterAndClear "device/oneplus/oneplus2";
|
||||
sed -i 's|etc/permissions/qti_libpermissions.xml|vendor/etc/permissions/qti_libpermissions.xml|' proprietary-files.txt;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2017-2020 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
|
Loading…
Reference in New Issue
Block a user