mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Tweaks
This commit is contained in:
parent
61a8a10c42
commit
cfe766be09
@ -246,4 +246,7 @@
|
||||
<!-- Boolean indicating whether or not wifi firmware debugging is enabled -->
|
||||
<bool translatable="false" name="config_wifi_enable_wifi_firmware_debugging">false</bool>
|
||||
|
||||
<!-- Flag indicating whether we should enable smart battery. -->
|
||||
<bool name="config_smart_battery_available">true</bool>
|
||||
|
||||
</resources>
|
||||
|
@ -16,8 +16,8 @@ index 883048fb..d0a9def1 100644
|
||||
# No domains other than install_recovery or recovery can write to recovery.
|
||||
neverallow { domain -install_recovery -recovery } recovery_block_device:blk_file { write append };
|
||||
|
||||
++# Select devices have policies prevented by the following neverallow
|
||||
++attribute misc_block_device_exception;
|
||||
+# Select devices have policies prevented by the following neverallow
|
||||
+attribute misc_block_device_exception;
|
||||
+
|
||||
# No domains other than a select few can access the misc_block_device. This
|
||||
# block device is reserved for OTA use.
|
||||
|
@ -48,12 +48,12 @@ export -f buildDeviceDebug;
|
||||
|
||||
buildAll() {
|
||||
if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanWorkspaceForMalware; fi;
|
||||
#userdebug because 16.0 is littered with neverallows
|
||||
#devices using legacy qcom sepolicy must be userdebug due to neverallows
|
||||
brunch lineage_mako-userdebug;
|
||||
brunch lineage_bacon-userdebug;
|
||||
brunch lineage_griffin-userdebug;
|
||||
brunch lineage_griffin-user;
|
||||
brunch lineage_klte-userdebug;
|
||||
brunch lineage_shamu-userdebug; #broken - needs synced proprietary-files.txt
|
||||
brunch lineage_shamu-user; #broken - needs synced proprietary-files.txt
|
||||
}
|
||||
export -f buildAll;
|
||||
|
||||
|
@ -169,6 +169,7 @@ if [ "$DOS_HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += $DOS_HOSTS_
|
||||
#
|
||||
enterAndClear "device/lge/mako";
|
||||
echo "allow kickstart usbfs:dir search;" >> sepolicy/kickstart.te; #Fix forceencrypt on first boot
|
||||
awk -i inplace '!/TARGET_RELEASETOOLS_EXTENSIONS/' BoardConfig.mk;
|
||||
|
||||
enterAndClear "device/oneplus/bacon";
|
||||
sed -i 's/android.hardware.nfc@1.0-impl/android.hardware.nfc@1.0-impl.so/' device-proprietary-files.txt;
|
||||
@ -192,6 +193,7 @@ find "kernel" -maxdepth 2 -mindepth 2 -type d -exec bash -c 'hardenDefconfig "$0
|
||||
cd "$DOS_BUILD_BASE";
|
||||
|
||||
#Fix broken options enabled by hardenDefconfig()
|
||||
sed -i "s/CONFIG_DEBUG_RODATA=y/# CONFIG_DEBUG_RODATA is not set/" kernel/lge/mako/arch/arm/configs/lineageos_*_defconfig; #Breaks on compile
|
||||
sed -i "s/CONFIG_STRICT_MEMORY_RWX=y/# CONFIG_STRICT_MEMORY_RWX is not set/" kernel/motorola/msm8996/arch/arm64/configs/*_defconfig; #Breaks on compile
|
||||
#
|
||||
#END OF DEVICE CHANGES
|
||||
|
Loading…
Reference in New Issue
Block a user