File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
protect/src/main/java/com/webileapps/safeguard Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ public SecurityCheck checkDeveloperOptions() {
428
428
) != 0 ;
429
429
430
430
if (developerMode ) {
431
- return createDevOptionsResponse ("Developer options are enabled." );
431
+ return createDevOptionsResponse (activity . getString ( R . string . developer_options_warning ) );
432
432
}
433
433
} catch (Settings .SettingNotFoundException e ) {
434
434
e .printStackTrace ();
@@ -455,7 +455,7 @@ public SecurityCheck checkDeveloperOptions() {
455
455
if (mockLocation ) {
456
456
return createDevOptionsResponse ("Mock location is enabled." );
457
457
} else if (isTimeManipulated ()) {
458
- return createDevOptionsResponse ("Automatic time settings are disabled." );
458
+ return createDevOptionsResponse (context . getString ( R . string . auto_time_warning ) );
459
459
}
460
460
} catch (Exception e ) {
461
461
e .printStackTrace ();
@@ -467,9 +467,9 @@ public SecurityCheck checkDeveloperOptions() {
467
467
private SecurityCheck createDevOptionsResponse (String message ) {
468
468
switch (config .getDeveloperOptionsCheck ()) {
469
469
case WARNING :
470
- return new SecurityCheck .Warning (message + " This may pose security risks." );
470
+ return new SecurityCheck .Warning (message );
471
471
case ERROR :
472
- return new SecurityCheck .Critical (message + " Please disable it to continue using the application." );
472
+ return new SecurityCheck .Critical (message );
473
473
default :
474
474
return new SecurityCheck .Success ();
475
475
}
You can’t perform that action at this time.
0 commit comments