Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Add notes about iOS 12 incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gwatts committed Sep 19, 2018
1 parent 09efa22 commit 1ee7d6d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pinfinder.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import (
"path/filepath"
"runtime"
"sort"
"strings"
"sync"
"time"

Expand All @@ -62,14 +63,15 @@ import (

const (
maxPIN = 10000
version = "1.6.1"
version = "1.6.2"
restrictionsPlistName = "398bc9c2aeeab4cb0c12ada0f52eea12cf14f40b"

msgIsEncrypted = "backup is encrypted"
msgEncryptionDisabled = "encrypted backups not supported"
msgNoPasscode = "none"
msgIncorrectPassword = "incorrect encryption password"
msgNoPassword = "need encryption password"
msgIos12 = "iOS 12 not supported yet :-("
)

var (
Expand Down Expand Up @@ -252,6 +254,11 @@ func loadBackup(backupDir string) *backup {
return nil // no Manifest.plist == invaild backup dir
}

if strings.HasPrefix(b.Info.ProductVersion, "12.") {
b.Status = msgIos12
return &b
}

b.RestrictionsPath = filepath.Join(backupDir, restrictionsPlistName)
if _, err := os.Stat(b.RestrictionsPath); err != nil {
// iOS 10 moved backup files into sub-folders beginning with
Expand Down

0 comments on commit 1ee7d6d

Please sign in to comment.