mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-01-12 07:59:36 -05:00
Refinements of previous commits
This commit is contained in:
parent
54ecd7ae21
commit
09fe9b212a
@ -52,7 +52,7 @@ echo "Deblobbing..."
|
||||
#aptX (Bluetooth Audio Compression Codec) [Qualcomm]
|
||||
blobs=$blobs"|.*aptX.*";
|
||||
|
||||
#AT Command Handling/Forwarding
|
||||
#AT Command Handling/Forwarding (See: https://atcommands.org)
|
||||
blobs=$blobs"|bin[/]atd|ATFWD-daemon|atfwd.apk|port-bridge|drexe|log_serial_arm|at_distributor|connfwexe";
|
||||
#blobs=$blobs"libqmi.so|wankit|nvm_server|mmgr";
|
||||
sepolicy=$sepolicy" atfwd.te port-bridge.te";
|
||||
@ -82,7 +82,7 @@ echo "Deblobbing..."
|
||||
|
||||
#Diagnostics
|
||||
blobs=$blobs"|[/]diag[/]|diag_callback_client|diag_dci_sample|diag_klog|diag_mdlog|diag_mdlog-getlogs|diag_mdlog-wrap|diag[/]mdm|diag_qshrink4_daemon|diag_socket_log|diag_uart_log|drmdiagapp|ibdrmdiag.so|ssr_diag|test_diag|cnss_diag";
|
||||
blobs=$blobs"|libdiag.so|libsdm-diag.so|libDiagService.so";
|
||||
#blobs=$blobs"|libdiag.so|libsdm-diag.so|libDiagService.so"; #XXX: Breaks qseecomd AND brightness control (?)
|
||||
ipcSec="4097:4294967295:2002:2950:3009:2901|4097:4294967295:3009";
|
||||
|
||||
#Dirac (Audio Codec + Effects) [Dirac]
|
||||
|
@ -308,10 +308,16 @@ hardenDefconfig() {
|
||||
done
|
||||
#Disable supported options
|
||||
declare -a optionsNo=("CONFIG_ACPI_CUSTOM_METHOD" "CONFIG_BINFMT_MISC" "CONFIG_COMPAT_BRK" "CONFIG_COMPAT_VDSO" "CONFIG_CP_ACCESS64" "CONFIG_DEVKMEM" "CONFIG_DEVMEM" "CONFIG_DEVPORT" "CONFIG_HIBERNATION" "CONFIG_INET_DIAG" "CONFIG_KEXEC" "CONFIG_LEGACY_PTYS" "CONFIG_MSM_BUSPM_DEV" "CONFIG_OABI_COMPAT" "CONFIG_PROC_KCORE" "CONFIG_PROC_VMCORE" "CONFIG_SECURITY_SELINUX_DISABLE" "CONFIG_SLAB_MERGE_DEFAULT" "CONFIG_WLAN_FEATURE_MEMDUMP" "CONFIG_EARJACK_DEBUGGER" "CONFIG_DIAG_CHAR" "CONFIG_DIAG_OVER_USB" "CONFIG_USB_QCOM_DIAG_BRIDGE");
|
||||
#if [ "$DOS_DEBLOBBER_REMOVE_IPA" = true ]; then optionsNo+=("CONFIG_MSM"); fi;
|
||||
if [ "$DOS_DEBLOBBER_REMOVE_IPA" = true ]; then optionsNo+=("CONFIG_IPA"); fi;
|
||||
for option in "${optionsNo[@]}"
|
||||
do
|
||||
sed -i 's/'"$option"'=y/# '"$option"' is not set/' $defconfigPath &>/dev/null || true;
|
||||
#Some defconfigs are very minimal/not-autogenerated, so lets add the rest. Obviously most won't have any affect as they aren't supported.
|
||||
if [[ "$defconfigPath" == *"lineage"* ]]; then
|
||||
if ! grep -q "$option""=n" $defconfigPath; then
|
||||
echo "$option""=n" | tee -a $defconfigPath > /dev/null;
|
||||
fi;
|
||||
fi;
|
||||
done
|
||||
#Extras
|
||||
sed -i 's/CONFIG_ARCH_MMAP_RND_BITS=8/CONFIG_ARCH_MMAP_RND_BITS=16/' $defconfigPath &>/dev/null || true;
|
||||
|
Loading…
Reference in New Issue
Block a user