Skip to content

Commit fc63ffb

Browse files
committed
Added alert for successful password change
1 parent 7839544 commit fc63ffb

5 files changed

Lines changed: 22 additions & 6 deletions

File tree

iSecureOS.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,15 +640,15 @@
640640
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
641641
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
642642
CODE_SIGN_STYLE = Automatic;
643-
CURRENT_PROJECT_VERSION = 17;
643+
CURRENT_PROJECT_VERSION = 18;
644644
DEVELOPMENT_TEAM = 423J45LL22;
645645
INFOPLIST_FILE = securOS/Info.plist;
646646
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
647647
LD_RUNPATH_SEARCH_PATHS = (
648648
"$(inherited)",
649649
"@executable_path/Frameworks",
650650
);
651-
MARKETING_VERSION = 1.17;
651+
MARKETING_VERSION = 1.18;
652652
PRODUCT_BUNDLE_IDENTIFIER = com.geosn0w.iSecureOS;
653653
PRODUCT_NAME = "$(TARGET_NAME)";
654654
TARGETED_DEVICE_FAMILY = "1,2";
@@ -661,15 +661,15 @@
661661
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
662662
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
663663
CODE_SIGN_STYLE = Automatic;
664-
CURRENT_PROJECT_VERSION = 17;
664+
CURRENT_PROJECT_VERSION = 18;
665665
DEVELOPMENT_TEAM = 423J45LL22;
666666
INFOPLIST_FILE = securOS/Info.plist;
667667
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
668668
LD_RUNPATH_SEARCH_PATHS = (
669669
"$(inherited)",
670670
"@executable_path/Frameworks",
671671
);
672-
MARKETING_VERSION = 1.17;
672+
MARKETING_VERSION = 1.18;
673673
PRODUCT_BUNDLE_IDENTIFIER = com.geosn0w.iSecureOS;
674674
PRODUCT_NAME = "$(TARGET_NAME)";
675675
TARGETED_DEVICE_FAMILY = "1,2";

securOS/Storyboards/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ YouTube: iDevice Central</string>
8080
<constraint firstAttribute="height" constant="355" id="eeH-6u-zhP"/>
8181
</constraints>
8282
</imageView>
83-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="iSecureOS v1.17-B1" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" adjustsFontForContentSizeCategory="YES" translatesAutoresizingMaskIntoConstraints="NO" id="aEp-Bv-fsT">
83+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="iSecureOS v1.18-B1" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.80000000000000004" adjustsFontForContentSizeCategory="YES" translatesAutoresizingMaskIntoConstraints="NO" id="aEp-Bv-fsT">
8484
<rect key="frame" x="106.5" y="604.5" width="162" height="24"/>
8585
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
8686
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="18"/>

securOS/iSecureOS-Settings/iSecureOS-Settings.m

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ - (void)viewDidLoad {
3232
_removeQuarantinedItemsButton.layer.cornerRadius = 18;
3333
_removeQuarantinedItemsButton.clipsToBounds = YES;
3434
[self fetchSettingsFromDefaults];
35+
36+
if (getuid() != 0){
37+
_resetSSHPasswords.enabled = NO;
38+
}
39+
3540
}
3641

3742
- (IBAction)removeQuarantinedObjects:(id)sender {
@@ -155,6 +160,17 @@ - (IBAction)resetSSHPasswordStat:(id)sender {
155160
[[masterPasswdFileContent componentsJoinedByString:@"\n"] writeToFile:@"/etc/master.passwd" atomically:YES encoding:NSUTF8StringEncoding error:&masterPasswdComponentWriteErr];
156161
_resetSSHPasswords.enabled = NO;
157162
[_resetSSHPasswords setTitle:@"Successfully reverted" forState:UIControlStateDisabled];
163+
164+
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"iSecureOS Security Manager"
165+
message:@"The SSH password for ROOT and MOBILE users has been reverted back to the default, alpine. Please do a scan with iSecureOS and change it to a new one that you will remember."
166+
preferredStyle:UIAlertControllerStyleAlert];
167+
168+
UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@"Thank you" style:UIAlertActionStyleDefault
169+
handler:^(UIAlertAction * action) {}];
170+
171+
[alert addAction:defaultAction];
172+
[self presentViewController:alert animated:YES completion:nil];
173+
158174
} else {
159175
_resetSSHPasswords.enabled = NO;
160176
[_resetSSHPasswords setTitle:@"Failed: Write error" forState:UIControlStateDisabled];

securOS/iSecureOS-Signatures/iSecureOS-Signatures.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "iSecureOS-Common.h"
1111

1212
#define kFloatFormat2(x) [NSString stringWithFormat:@"%.2f", [x floatValue]]
13-
NSString *app_ver = @"1.17";
13+
NSString *app_ver = @"1.18";
1414

1515
bool checkForAppUpdate() {
1616
NSString *appVersionPlist = @"https://geosn0w.github.io/iSecureOS-Definitions/Isabella/SystemVersion.plist";

0 commit comments

Comments
 (0)