mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-02-04 09:05:34 -05:00
Minor tweaks and update F-Droid
This commit is contained in:
parent
298d21a94a
commit
d9970b3f77
@ -68,7 +68,7 @@
|
|||||||
<!-- F-Droid -->
|
<!-- F-Droid -->
|
||||||
<remote name="fdroid" fetch="https://gitlab.com/fdroid/" />
|
<remote name="fdroid" fetch="https://gitlab.com/fdroid/" />
|
||||||
<project path="packages/apps/FDroidPrivilegedExtension" name="privileged-extension.git" remote="fdroid" revision="refs/tags/0.2.8" />
|
<project path="packages/apps/FDroidPrivilegedExtension" name="privileged-extension.git" remote="fdroid" revision="refs/tags/0.2.8" />
|
||||||
<project path="packages/apps/FDroid" name="fdroidclient.git" remote="fdroid" revision="refs/tags/1.4-alpha1" />
|
<project path="packages/apps/FDroid" name="fdroidclient.git" remote="fdroid" revision="refs/tags/1.4.0" />
|
||||||
<!-- END OF ADDITIONAL REPOS -->
|
<!-- END OF ADDITIONAL REPOS -->
|
||||||
|
|
||||||
<!-- START OF DEVICE REPOS -->
|
<!-- START OF DEVICE REPOS -->
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
<!-- F-Droid -->
|
<!-- F-Droid -->
|
||||||
<remote name="fdroid" fetch="https://gitlab.com/fdroid/" />
|
<remote name="fdroid" fetch="https://gitlab.com/fdroid/" />
|
||||||
<project path="packages/apps/FDroidPrivilegedExtension" name="privileged-extension.git" remote="fdroid" revision="refs/tags/0.2.8" />
|
<project path="packages/apps/FDroidPrivilegedExtension" name="privileged-extension.git" remote="fdroid" revision="refs/tags/0.2.8" />
|
||||||
<project path="packages/apps/FDroid" name="fdroidclient.git" remote="fdroid" revision="refs/tags/1.4-alpha1" />
|
<project path="packages/apps/FDroid" name="fdroidclient.git" remote="fdroid" revision="refs/tags/1.4.0" />
|
||||||
<!-- END OF ADDITIONAL REPOS -->
|
<!-- END OF ADDITIONAL REPOS -->
|
||||||
|
|
||||||
<!-- START OF DEVICE REPOS -->
|
<!-- START OF DEVICE REPOS -->
|
||||||
|
@ -149,7 +149,7 @@ compressRamdisks() {
|
|||||||
}
|
}
|
||||||
export -f compressRamdisks;
|
export -f compressRamdisks;
|
||||||
|
|
||||||
enhanceLocation() {
|
hardenLocation() {
|
||||||
gpsConfig=$1;
|
gpsConfig=$1;
|
||||||
#Attempt to get the real device directory
|
#Attempt to get the real device directory
|
||||||
if [[ "$gpsConfig" = *"device/"* ]]; then
|
if [[ "$gpsConfig" = *"device/"* ]]; then
|
||||||
@ -196,7 +196,7 @@ enhanceLocation() {
|
|||||||
fi;
|
fi;
|
||||||
echo "Enhanced location services for $deviceDir";
|
echo "Enhanced location services for $deviceDir";
|
||||||
}
|
}
|
||||||
export -f enhanceLocation;
|
export -f hardenLocation;
|
||||||
|
|
||||||
enableZram() {
|
enableZram() {
|
||||||
cd "$DOS_BUILD_BASE$1";
|
cd "$DOS_BUILD_BASE$1";
|
||||||
@ -206,21 +206,15 @@ enableZram() {
|
|||||||
}
|
}
|
||||||
export -f enableZram;
|
export -f enableZram;
|
||||||
|
|
||||||
enableDiscard() {
|
hardenUserdata() {
|
||||||
cd "$DOS_BUILD_BASE$1";
|
cd "$DOS_BUILD_BASE$1";
|
||||||
|
#TODO: Ensure: noatime,nosuid,nodev
|
||||||
sed -i '/\/data/{/discard/!s|nosuid|discard,nosuid|}' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
|
sed -i '/\/data/{/discard/!s|nosuid|discard,nosuid|}' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
|
||||||
echo "Enabled discard for $1";
|
|
||||||
cd "$DOS_BUILD_BASE";
|
|
||||||
}
|
|
||||||
export -f enableDiscard;
|
|
||||||
|
|
||||||
enableForcedEncryption() {
|
|
||||||
cd "$DOS_BUILD_BASE$1";
|
|
||||||
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
|
sed -i 's|encryptable=/|forceencrypt=/|' fstab.* root/fstab.* rootdir/fstab.* rootdir/etc/fstab.* &>/dev/null || true;
|
||||||
echo "Enabled forceencrypt for $1";
|
echo "Hardened /data for $1";
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
}
|
}
|
||||||
export -f enableForcedEncryption;
|
export -f hardenUserdata;
|
||||||
|
|
||||||
enableStrongEncryption() {
|
enableStrongEncryption() {
|
||||||
cd "$DOS_BUILD_BASE$1";
|
cd "$DOS_BUILD_BASE$1";
|
||||||
|
@ -230,10 +230,9 @@ echo "" > atv/atv-common.mk;
|
|||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_LOWRAM_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableLowRam "$0"' {} \;; fi;
|
if [ "$DOS_LOWRAM_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableLowRam "$0"' {} \;; fi;
|
||||||
find "hardware/qcom/gps" -name "gps\.conf" -type f -exec bash -c 'enhanceLocation "$0"' {} \;;
|
find "hardware/qcom/gps" -name "gps\.conf" -type f -exec bash -c 'enhanceLocation "$0"' {} \;;
|
||||||
find "device" -name "gps\.conf" -type f -exec bash -c 'enhanceLocation "$0"' {} \;;
|
find "device" -name "gps\.conf" -type f -exec bash -c 'hardenLocation "$0"' {} \;;
|
||||||
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableDexPreOpt "$0"' {} \;;
|
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableDexPreOpt "$0"' {} \;;
|
||||||
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableDiscard "$0"' {} \;;
|
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenUserdata "$0"' {} \;;
|
||||||
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableForcedEncryption "$0"' {} \;;
|
|
||||||
#if [ "$STRONG_ENCRYPTION_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableStrongEncryption "$0"' {} \;; fi;
|
#if [ "$STRONG_ENCRYPTION_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableStrongEncryption "$0"' {} \;; fi;
|
||||||
find "kernel" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenDefconfig "$0"' {} \;;
|
find "kernel" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenDefconfig "$0"' {} \;;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
|
@ -212,10 +212,9 @@ echo "" > atv/atv-common.mk;
|
|||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
if [ "$DOS_LOWRAM_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableLowRam "$0"' {} \;; fi;
|
if [ "$DOS_LOWRAM_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableLowRam "$0"' {} \;; fi;
|
||||||
find "hardware/qcom/gps" -name "gps\.conf" -type f -exec bash -c 'enhanceLocation "$0"' {} \;;
|
find "hardware/qcom/gps" -name "gps\.conf" -type f -exec bash -c 'enhanceLocation "$0"' {} \;;
|
||||||
find "device" -name "gps\.conf" -type f -exec bash -c 'enhanceLocation "$0"' {} \;;
|
find "device" -name "gps\.conf" -type f -exec bash -c 'hardenLocation "$0"' {} \;;
|
||||||
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableDexPreOpt "$0"' {} \;;
|
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableDexPreOpt "$0"' {} \;;
|
||||||
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableDiscard "$0"' {} \;;
|
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenUserdata "$0"' {} \;;
|
||||||
find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableForcedEncryption "$0"' {} \;;
|
|
||||||
#if [ "$STRONG_ENCRYPTION_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableStrongEncryption "$0"' {} \;; fi;
|
#if [ "$STRONG_ENCRYPTION_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'enableStrongEncryption "$0"' {} \;; fi;
|
||||||
find "kernel" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenDefconfig "$0"' {} \;;
|
find "kernel" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenDefconfig "$0"' {} \;;
|
||||||
cd "$DOS_BUILD_BASE";
|
cd "$DOS_BUILD_BASE";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user