mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Strong AES patch changes
This commit is contained in:
parent
b0ce27b860
commit
60b85e10fe
6 changed files with 65 additions and 37 deletions
|
@ -112,8 +112,9 @@ export -f enableForcedEncryption;
|
|||
enableStrongEncryption() {
|
||||
cd $base$1;
|
||||
if [ -f BoardConfig.mk ]; then
|
||||
echo "TARGET_WANTS_STRONG_ENCRYPTION := true" >> BoardConfig.mk;
|
||||
echo "Enabled AES-256 encryption for $1";
|
||||
echo "TARGET_WANTS_AES256_ENCRYPTION := true" >> BoardConfig.mk; #Has a huge performance impact
|
||||
#echo "TARGET_WANTS_AES192_ENCRYPTION := true" >> BoardConfig.mk; #Has a slight performance impact, but only seems to work on select devices
|
||||
echo "Enabled strong encryption for $1";
|
||||
fi;
|
||||
cd $base;
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ patch -p1 < $patches"android_system_keymaster/0001-Backport_Fixes.patch"; #Fixes
|
|||
patch -p1 < $patches"android_system_keymaster/0002-Backport_Fixes.patch";
|
||||
|
||||
enterAndClear "system/vold";
|
||||
patch -p1 < $patches"android_system_vold/0001-AES256.patch"; #Add a variable for enabling AES-256 bit encryption
|
||||
patch -p1 < $patches"android_system_vold/0001-StrongAES.patch"; #Add a variable for enabling AES 192 or 256 encryption
|
||||
|
||||
enterAndClear "vendor/cm";
|
||||
rm -rf overlay/common/vendor/cmsdk/packages; #Remove analytics
|
||||
|
|
|
@ -173,7 +173,7 @@ patch -p1 < $patches"android_system_sepolicy/0001-LGE_Fixes.patch"; #Fix -user b
|
|||
if [ "$NON_COMMERCIAL_USE_PATCHES" = true ]; then patch -p1 < $patches"android_system_sepolicy/Copperhead/0002-Deny_USB.patch"; fi; #Deny USB support (Copperhead CC BY-NC-SA)
|
||||
|
||||
enterAndClear "system/vold";
|
||||
patch -p1 < $patches"android_system_vold/0001-AES256.patch"; #Add a variable for enabling AES-256 bit encryption
|
||||
patch -p1 < $patches"android_system_vold/0001-StrongAES.patch"; #Add a variable for enabling AES 192 or 256 encryption
|
||||
|
||||
enterAndClear "vendor/lineage";
|
||||
rm -rf overlay/common/vendor/lineage-sdk/packages; #Remove analytics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue