Skip to content

Commit 422351a

Browse files
committed
update
- update dependencies - disabled more defender drivers - added more defender tweaks
1 parent 653fa73 commit 422351a

File tree

5 files changed

+72
-35
lines changed

5 files changed

+72
-35
lines changed

additionals/DisableWD.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
@echo off
22
set "services=HKLM\SYSTEM\ControlSet001\Services"
33
::Windows Defender
4+
reg add "%services%\MsSecCore" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
45
reg add "%services%\MsSecFlt" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
6+
reg add "%services%\MsSecWfp" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
57
reg add "%services%\SecurityHealthService" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
68
reg add "%services%\Sense" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
79
reg add "%services%\WdBoot" /v "Start" /t REG_DWORD /d "4" /f >NUL 2>nul
@@ -38,12 +40,26 @@ for %%j in (
3840
:: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" /v "SaveZoneInformation" /t REG_DWORD /d "1" /f >NUL 2>nul
3941
:: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "LowRiskFileTypes" /t REG_SZ /d ".avi;.bat;.com;.cmd;.exe;.htm;.html;.lnk;.mpg;.mpeg;.mov;.mp3;.msi;.m3u;.rar;.reg;.txt;.vbs;.wav;.zip;" /f >NUL 2>nul
4042
:: reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /v "ModRiskFileTypes" /t REG_SZ /d ".bat;.exe;.reg;.vbs;.chm;.msi;.js;.cmd" /f >NUL 2>nul
43+
44+
::SmartScreen
4145
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "Off" /f >NUL 2>nul
46+
reg add "HKLM\Software\Policies\Microsoft\System" /v "EnableSmartScreen" /t REG_DWORD /d "0" /f >NUL 2>nul
4247
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControlEnabled" /t REG_DWORD /d "0" /f >NUL 2>nul
4348
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "ConfigureAppInstallControl" /t REG_DWORD /d "0" /f >NUL 2>nul
4449
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\SmartScreen" /v "EnableSmartScreen" /t REG_DWORD /d "0" /f >NUL 2>nul
4550
reg add "HKCU\Software\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "0" /f >NUL 2>nul
4651
reg add "HKLM\Software\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d "0" /f >NUL 2>nul
47-
::Fixes slow app loading issues on 11+
52+
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f >NUL 2>nul
53+
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f >NUL 2>nul
54+
55+
::Smart App Control - Disabling it fixes slow app loading issues on 11+
4856
reg add "HKLM\SYSTEM\ControlSet001\Control\CI\Policy" /v "VerifiedAndReputablePolicyState" /t REG_DWORD /d "0" /f >NUL 2>nul
57+
58+
::Configure detection for potentially unwanted applications - Disabled
59+
reg add "HKLM\Software\Microsoft\Windows Defender" /v "PUAProtection" /t REG_DWORD /d "0" /f >NUL 2>nul
60+
61+
::Device Security
62+
reg add "HKLM\SYSTEM\ControlSet001\Control\CI\Config" /v "VulnerableDriverBlocklistEnable" /t REG_DWORD /d "0" /f >NUL 2>nul
63+
reg add "HKLM\SYSTEM\ControlSet001\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d "0" /f >NUL 2>nul
64+
4965
goto :EOF

additionals/EnableWD.bat

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
@echo off
22
set "services=HKLM\SYSTEM\ControlSet001\Services"
33
::Windows Defender
4+
reg add "%services%\MsSecCore" /v "Start" /t REG_DWORD /d "0" /f >NUL 2>nul
45
reg add "%services%\MsSecFlt" /v "Start" /t REG_DWORD /d "0" /f >NUL 2>nul
6+
reg add "%services%\MsSecWfp" /v "Start" /t REG_DWORD /d "3" /f >NUL 2>nul
57
reg add "%services%\SecurityHealthService" /v "Start" /t REG_DWORD /d "3" /f >NUL 2>nul
68
reg add "%services%\Sense" /v "Start" /t REG_DWORD /d "3" /f >NUL 2>nul
79
reg add "%services%\WdBoot" /v "Start" /t REG_DWORD /d "0" /f >NUL 2>nul
@@ -21,7 +23,8 @@ reg add "%services%\webthreatdefusersvc" /v "Start" /t REG_DWORD /d "2" /f >NUL
2123
for /f %%i in ('reg query "%services%" /s /k "webthreatdefusersvc" /f 2^>nul ^| find /i "webthreatdefusersvc" ') do (
2224
reg add "%%i" /v "Start" /t REG_DWORD /d "2" /f >NUL 2>nul
2325
)
24-
::
26+
27+
::SmartScreen
2528
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smartscreen.exe" /f >NUL 2>nul
2629
for %%j in (
2730
"%systemroot%\system32\smartscreen.exe"
@@ -30,8 +33,26 @@ for %%j in (
3033
)
3134
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations" /f >NUL 2>nul
3235
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /t REG_SZ /d "On" /f >NUL 2>nul
36+
reg delete "HKLM\Software\Policies\Microsoft\System" /v "EnableSmartScreen" /f >NUL 2>nul
37+
38+
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /f >NUL 2>nul
39+
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "PreventOverride" /f >NUL 2>nul
40+
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /f >NUL 2>nul
41+
42+
::Smart App Control
43+
reg delete "HKLM\SYSTEM\ControlSet001\Control\CI\Policy" /v "VerifiedAndReputablePolicyState" /f >NUL 2>nul
44+
45+
:: Remove Defender policies
3346
reg delete "HKLM\Software\Policies\Microsoft\Windows Defender" /f >NUL 2>nul
34-
reg delete "HKLM\Software\Policies\Microsoft\Windows Defender\Signature Updates" /f >NUL 2>nul
47+
reg delete "HKLM\Software\Policies\Microsoft\Windows Advanced Threat Protection" /f >NUL 2>nul
3548
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center" /f >NUL 2>nul
36-
reg delete "HKLM\SYSTEM\ControlSet001\Control\CI\Policy" /v "VerifiedAndReputablePolicyState" /f >NUL 2>nul
49+
50+
::Configure detection for potentially unwanted applications
51+
reg add "HKLM\Software\Microsoft\Windows Defender" /v "PUAProtection" /t REG_DWORD /d "1" /f >NUL 2>nul
52+
53+
::Device Security
54+
reg delete "HKLM\SYSTEM\ControlSet001\Control\CI\Config" /v "VulnerableDriverBlocklistEnable" /f >NUL 2>nul
55+
reg delete "HKLM\SYSTEM\ControlSet001\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /f >NUL 2>nul
56+
57+
3758
goto :EOF

lib/widgets/card_highlight.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import 'package:revitool/l10n/generated/localizations.dart';
55

66
// const cardBorderColorForDark = Color.fromARGB(255, 29, 29, 29);
77
// const cardBorderColorForLight = Color.fromARGB(255, 229, 229, 229);
8-
const cardBorderRadius = BorderRadius.all(Radius.circular(5.0));
9-
const cardDescStyleForDark = TextStyle(
8+
const _cardBorderRadius = BorderRadius.all(Radius.circular(5.0));
9+
const _cardDescStyleForDark = TextStyle(
1010
fontSize: 11,
1111
color: Color.fromARGB(255, 200, 200, 200),
1212
overflow: TextOverflow.fade);
1313

14-
const cardDescStyleForLight = TextStyle(
14+
const _cardDescStyleForLight = TextStyle(
1515
fontSize: 11,
1616
color: Color.fromARGB(255, 117, 117, 117),
1717
overflow: TextOverflow.fade);
@@ -42,7 +42,7 @@ class CardHighlightSwitch extends StatelessWidget {
4242
return Column(
4343
children: [
4444
Card(
45-
borderRadius: cardBorderRadius,
45+
borderRadius: _cardBorderRadius,
4646
child: SizedBox(
4747
// height: 44,
4848
width: double.infinity,
@@ -66,8 +66,8 @@ class CardHighlightSwitch extends StatelessWidget {
6666
? Text(
6767
description ?? "",
6868
style: FluentTheme.of(context).brightness.isDark
69-
? cardDescStyleForDark
70-
: cardDescStyleForLight,
69+
? _cardDescStyleForDark
70+
: _cardDescStyleForLight,
7171
)
7272
: const SizedBox(),
7373
),
@@ -188,7 +188,7 @@ class CardHighlight extends StatelessWidget {
188188
children: [
189189
Card(
190190
backgroundColor: backgroundColor,
191-
borderRadius: cardBorderRadius,
191+
borderRadius: _cardBorderRadius,
192192
borderColor: borderColor,
193193
child: SizedBox(
194194
// height: 44,
@@ -224,8 +224,8 @@ class CardHighlight extends StatelessWidget {
224224
child: description != null
225225
? Text(description ?? "",
226226
style: FluentTheme.of(context).brightness.isDark
227-
? cardDescStyleForDark
228-
: cardDescStyleForLight,
227+
? _cardDescStyleForDark
228+
: _cardDescStyleForLight,
229229
overflow: TextOverflow.ellipsis)
230230
: const SizedBox(),
231231
),

pubspec.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ packages:
6969
dependency: transitive
7070
description:
7171
name: build_resolvers
72-
sha256: d912852cce27c9e80a93603db721c267716894462e7033165178b91138587972
72+
sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8"
7373
url: "https://pub.dev"
7474
source: hosted
75-
version: "2.3.2"
75+
version: "2.4.1"
7676
build_runner:
7777
dependency: "direct dev"
7878
description:
@@ -85,10 +85,10 @@ packages:
8585
dependency: transitive
8686
description:
8787
name: build_runner_core
88-
sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41"
88+
sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185
8989
url: "https://pub.dev"
9090
source: hosted
91-
version: "7.2.10"
91+
version: "7.2.11"
9292
built_collection:
9393
dependency: transitive
9494
description:
@@ -141,10 +141,10 @@ packages:
141141
dependency: transitive
142142
description:
143143
name: code_builder
144-
sha256: "315a598c7fbe77f22de1c9da7cfd6fd21816312f16ffa124453b4fc679e540f1"
144+
sha256: "1be9be30396d7e4c0db42c35ea6ccd7cc6a1e19916b5dc64d6ac216b5544d677"
145145
url: "https://pub.dev"
146146
source: hosted
147-
version: "4.6.0"
147+
version: "4.7.0"
148148
collection:
149149
dependency: "direct main"
150150
description:
@@ -221,18 +221,18 @@ packages:
221221
dependency: "direct main"
222222
description:
223223
name: fluent_ui
224-
sha256: b015021e7b19107ebf06277531d48fa40e450a500bad751a330ab5f94c815650
224+
sha256: "43e95034b12a8285a78703b5995bb4d2e02a28750a1a363044c150533bc7f027"
225225
url: "https://pub.dev"
226226
source: hosted
227-
version: "4.7.4"
227+
version: "4.7.6"
228228
fluentui_system_icons:
229229
dependency: "direct main"
230230
description:
231231
name: fluentui_system_icons
232-
sha256: e69b46f716b37ffa19dc53fc1e5bb0e26f6288264e5879fab51effaa46b5fc67
232+
sha256: e4b694fceeb7b5afd19d1970a76e2aab9b7542f97f03c3447948e0e1ab207938
233233
url: "https://pub.dev"
234234
source: hosted
235-
version: "1.1.217"
235+
version: "1.1.218"
236236
flutter:
237237
dependency: "direct main"
238238
description: flutter
@@ -265,10 +265,10 @@ packages:
265265
dependency: "direct dev"
266266
description:
267267
name: freezed
268-
sha256: "83462cfc33dc9680533a7f3a4a6ab60aa94f287db5f4ee6511248c22833c497f"
268+
sha256: be7826ed5d87e98c924a839542674fc14edbcb3e4fc0adbc058d680f2b241837
269269
url: "https://pub.dev"
270270
source: hosted
271-
version: "2.4.2"
271+
version: "2.4.3"
272272
freezed_annotation:
273273
dependency: "direct main"
274274
description:
@@ -441,10 +441,10 @@ packages:
441441
dependency: "direct main"
442442
description:
443443
name: package_info_plus
444-
sha256: "6ff267fcd9d48cb61c8df74a82680e8b82e940231bb5f68356672fde0397334a"
444+
sha256: "0351aaba3b267c4962ed73058a5f62a84de7e39670a20e2916a6baff2ffcfbe5"
445445
url: "https://pub.dev"
446446
source: hosted
447-
version: "4.1.0"
447+
version: "5.0.0"
448448
package_info_plus_platform_interface:
449449
dependency: transitive
450450
description:
@@ -521,10 +521,10 @@ packages:
521521
dependency: transitive
522522
description:
523523
name: platform
524-
sha256: ae68c7bfcd7383af3629daafb32fb4e8681c7154428da4febcff06200585f102
524+
sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59"
525525
url: "https://pub.dev"
526526
source: hosted
527-
version: "3.1.2"
527+
version: "3.1.3"
528528
plugin_platform_interface:
529529
dependency: transitive
530530
description:
@@ -766,10 +766,10 @@ packages:
766766
dependency: "direct main"
767767
description:
768768
name: win32
769-
sha256: c97defd418eef4ec88c0d1652cdce84b9f7b63dd7198e266d06ac1710d527067
769+
sha256: "350a11abd2d1d97e0cc7a28a81b781c08002aa2864d9e3f192ca0ffa18b06ed3"
770770
url: "https://pub.dev"
771771
source: hosted
772-
version: "5.0.8"
772+
version: "5.0.9"
773773
win32_registry:
774774
dependency: "direct main"
775775
description:

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies:
2323
flutter_localizations:
2424
sdk: flutter
2525
intl: '>=0.18.0 <= 1.0.0'
26-
fluent_ui: ^4.7.4
26+
fluent_ui: ^4.7.6
2727
system_theme: ^2.3.1
2828
provider: ^6.0.5
2929
path_provider: ^2.1.0
@@ -33,10 +33,10 @@ dependencies:
3333
window_plus:
3434
git:
3535
url: https://github.com/melo936/window_plus
36-
fluentui_system_icons: ^1.1.217
36+
fluentui_system_icons: ^1.1.218
3737
package_info_plus: any
3838
collection: any
39-
win32: ^5.0.8
39+
win32: ^5.0.9
4040
freezed_annotation: ^2.4.1
4141
json_annotation: ^4.8.1
4242
xml: any
@@ -52,7 +52,7 @@ dev_dependencies:
5252
# rules and activating additional ones.
5353
flutter_lints: ^2.0.0
5454
build_runner:
55-
freezed: ^2.4.2
55+
freezed: ^2.4.3
5656
json_serializable: ^6.7.1
5757

5858
# msix: ^3.7.0

0 commit comments

Comments
 (0)