mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-25 07:29:24 -05:00
Minor tweaks
This commit is contained in:
parent
c44d11fb99
commit
30a8e0ba07
@ -89,13 +89,14 @@ export -f scanForMalware;
|
||||
|
||||
generateBootAnimationMask() {
|
||||
text=$1;
|
||||
output=$2;
|
||||
convert -background black -fill transparent -font Fira-Sans-Bold -gravity center -size 512x128 label:"$text" "$output";
|
||||
font=$2
|
||||
output=$3;
|
||||
convert -background black -fill transparent -font "$font" -gravity center -size 512x128 label:"$text" "$output";
|
||||
}
|
||||
export -f generateBootAnimationMask;
|
||||
|
||||
audit2allowCurrent() {
|
||||
adb shell dmesg | grep denied | audit2allow -p "$ANDROID_PRODUCT_OUT"/root/sepolicy;
|
||||
adb shell dmesg | audit2allow -p "$ANDROID_PRODUCT_OUT"/root/sepolicy;
|
||||
}
|
||||
export -f audit2allowCurrent;
|
||||
|
||||
|
@ -29,7 +29,7 @@ sed -i 's|echo "ro.build.host=`hostname`"|echo "ro.build.host=dosbm"|' tools/bui
|
||||
sed -i '/CM_TARGET_PACKAGE/s/lineage/'"$REBRAND_ZIP_PREFIX"'/' core/Makefile;
|
||||
|
||||
enter "frameworks/base";
|
||||
generateBootAnimationMask "$REBRAND_NAME" core/res/assets/images/android-logo-mask.png;
|
||||
generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png;
|
||||
|
||||
enter "packages/apps/Settings";
|
||||
sed -i '/.*cmlicense_title/s/LineageOS/'"$REBRAND_NAME"'/' res/values*/cm_strings.xml;
|
||||
|
@ -32,7 +32,7 @@ sed -i 's|echo "ro.build.user=$USER"|echo "ro.build.user=emy"|' tools/buildinfo.
|
||||
sed -i 's|echo "ro.build.host=`hostname`"|echo "ro.build.host=dosbm"|' tools/buildinfo.sh; #Override build host
|
||||
|
||||
enter "frameworks/base";
|
||||
generateBootAnimationMask "$REBRAND_NAME" core/res/assets/images/android-logo-mask.png;
|
||||
generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png;
|
||||
|
||||
enter "lineage-sdk";
|
||||
sed -i '/.*lineage_version/s/LineageOS/'"$REBRAND_NAME"'/' lineage/res/res/values*/strings.xml;
|
||||
|
@ -35,6 +35,7 @@ export NON_COMMERCIAL_USE_PATCHES=false; #Switch to false to prevent inclusion o
|
||||
|
||||
export REBRAND_NAME="DivestOS";
|
||||
export REBRAND_ZIP_PREFIX="divested";
|
||||
export REBRAND_BOOTANIMATION_FONT="Fira-Sans-Bold"; #Options: $ convert -list font
|
||||
export REBRAND_LEGAL="https://divestos.xyz/index.php?page=privacy_policy";
|
||||
#END OF USER CONFIGURABLE OPTIONS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user