@@ -540,18 +540,19 @@ public void fillWithDefaultData() {
540
540
addNuclearPlantProfile ();
541
541
addModbusMasterProfile ();
542
542
//addSNMPProfile();
543
- addParanoidProfile ();
543
+ addVigilantProfile ();
544
544
addMQTTBrokerProfile ();
545
545
addMQTTSensorProfile ();
546
546
addSmokeSensorProfile ();
547
547
addArduinoProfile ();
548
+ addWaterPlantProfile ();
548
549
549
550
persistData ();
550
551
}
551
552
552
553
private void addWindowsSevenProfile () {
553
554
Profile windowsSeven = new Profile (
554
- 0 ,
555
+ 27 ,
555
556
"Windows 7" ,
556
557
MainActivity .getInstance ().getString (R .string .profile_seven_desc ),
557
558
R .drawable .ic_profile_vista ,
@@ -566,7 +567,7 @@ private void addWindowsSevenProfile() {
566
567
567
568
private void addWindowsXPProfile () {
568
569
Profile windowsXP = new Profile (
569
- 1 ,
570
+ 28 ,
570
571
"Windows XP" ,
571
572
MainActivity .getInstance ().getString (R .string .profile_xp_desc ),
572
573
R .drawable .ic_profile_xp ,
@@ -582,7 +583,7 @@ private void addWindowsXPProfile() {
582
583
583
584
private void addServerHTTPProfile () {
584
585
Profile serverHTTP = new Profile (
585
- 2 ,
586
+ 19 ,
586
587
"Web Server Apache" ,
587
588
MainActivity .getInstance ().getString (R .string .profile_webserv_apache_desc ),
588
589
R .drawable .ic_profile_apache ,
@@ -599,7 +600,7 @@ private void addServerHTTPProfile() {
599
600
600
601
private void addServerWebProfile () {
601
602
Profile serverWeb = new Profile (
602
- 3 ,
603
+ 20 ,
603
604
"Web Server IIS" ,
604
605
MainActivity .getInstance ().getString (R .string .profile_webserv_iis_desc ),
605
606
R .drawable .ic_profile_apache ,
@@ -616,7 +617,7 @@ private void addServerWebProfile() {
616
617
617
618
private void addUnixMachineProfile () {
618
619
Profile unixMachine = new Profile (
619
- 4 ,
620
+ 21 ,
620
621
"\" Hardened\" Linux system " ,
621
622
MainActivity .getInstance ().getString (R .string .profile_linux_hard_desc ),
622
623
R .drawable .ic_profile_unix ,
@@ -631,7 +632,7 @@ private void addUnixMachineProfile() {
631
632
632
633
private void addLinuxMachineProfile () {
633
634
Profile linuxMachine = new Profile (
634
- 5 ,
635
+ 22 ,
635
636
"Linux system" ,
636
637
MainActivity .getInstance ().getString (R .string .profile_linux_desc ),
637
638
R .drawable .ic_profile_linux ,
@@ -650,7 +651,7 @@ private void addLinuxMachineProfile() {
650
651
651
652
private void addVoipServer () {
652
653
Profile voipServer = new Profile (
653
- 6 ,
654
+ 23 ,
654
655
"VOIP Server" ,
655
656
MainActivity .getInstance ().getString (R .string .profile_voip_desc ),
656
657
R .drawable .ic_profile_asterisks ,
@@ -665,7 +666,7 @@ private void addVoipServer() {
665
666
666
667
private void addRandomProfile () {
667
668
Profile randomProfile = new Profile (
668
- 7 ,
669
+ 30 ,
669
670
"Random" ,
670
671
MainActivity .getInstance ().getString (R .string .profile_random_desc ),
671
672
R .drawable .ic_launcher ,
@@ -694,6 +695,10 @@ private void addNuclearPlantProfile() {
694
695
nuclearPlant .mActiveProtocols .put ("S7COMM" , true );
695
696
nuclearPlant .mActiveProtocols .put ("SMTP" , true );
696
697
698
+ //Activate as default profile
699
+ nuclearPlant .mActivated = true ;
700
+ this .activateProfile (nuclearPlant , false );
701
+
697
702
this .addProfile (nuclearPlant , false );
698
703
}
699
704
@@ -746,27 +751,20 @@ private void addSNMPProfile() {
746
751
this .addProfile (SNMPProfile , false );
747
752
}
748
753
749
- private void addParanoidProfile () {
750
- Profile paranoidProfile = new Profile (
751
- 12 ,
752
- "Paranoid " ,
753
- MainActivity .getInstance ().getString (R .string .profile_paranoid_desc ),
754
- R .drawable .ic_profile_paranoid ,
754
+ private void addVigilantProfile () {
755
+ Profile vigilantProfile = new Profile (
756
+ 29 ,
757
+ "Vigilant " ,
758
+ MainActivity .getInstance ().getString (R .string .profile_vigilant_desc ),
759
+ R .drawable .ic_profile_vigilant ,
755
760
false
756
761
);
757
762
758
763
for (String protocol : MainActivity .getContext ().getResources ().getStringArray (R .array .protocols )) {
759
- paranoidProfile .mActiveProtocols .put (protocol , true );
764
+ vigilantProfile .mActiveProtocols .put (protocol , true );
760
765
}
761
766
762
- //TODO look here
763
- paranoidProfile .mActivated = true ;
764
-
765
- this .addProfile (paranoidProfile , false );
766
-
767
- mIncrementValue = 8 ;
768
-
769
- this .activateProfile (paranoidProfile , false );
767
+ this .addProfile (vigilantProfile , false );
770
768
}
771
769
772
770
private void addMQTTBrokerProfile () {
0 commit comments