情報科学屋さんを目指す人のメモ

方法・手順・解説を書き残すブログ。私と同じことを繰り返さずに済むように。

復元が不完全!?iPhoneバックアップで認証情報が復元できない理由とバックアップのオススメ設定

Mac (71) iOS (377) iPad (39) iPhone (1663) iPod (4) iTunes (46) バックアップ (11)


iPhone




Wi-Fi




Evernote3toggleGladinet cloudFacebooktwitter, Flicr,mixi  













1. 
2. 1
3. 2
3.1. 
3.2. 
4. 3
4.1. 
4.2. 
5. 4
5.1. 
5.2. 
5.3. 
5.4. 
6. 5
7. 6
8. 7
8.1. 
8.2. 
9. 8
10. 9iPhone5
11. 
12. 
12.1. iCloud
12.2. iOS iPhoneiPad iPod touch 
12.3. iOS
12.4. iTunesiOS 
12.5. iPhone  iOS6
12.6. 
12.6.1. 
13. 
13.1. Keychain Services Programming Guide: Keychain Services Concepts
13.1.1. iPhone Keychain Backups
13.2. Keychain Services Reference
13.2.1. Key Type Values
13.2.1.1. Not ThisDeviceOnly
13.2.1.2. ThisDeviceOnly
13.2.1.3. 
13.3. Keychain Services Tasks for iOS
13.4. iTunesiOS 
13.5. 

もくじ



1

2







3







4











5

6

7







8

9iPhone5







1.えっ、それがバックアップできないの?


iPhone

iCloudiTunes




2.キーチェインの仕組み


iOSKeyChain(MacOS)

iOS


iPhone/iPad

iPhone


iOSiOS


3.初期設定では「キーチェイン専用の暗号化鍵」をバックアップしない!


iTunesiCloud



iPhone



iPhone

Keychain Services Programming Guide: Keychain Services Concepts

4.どうして「機種変したら○○が動かない!」になるのか








IDiPhone5LINE


IDAdding Keychain Services to Your Application





Twitter





5.【最重要】おすすめ設定

iTunesを用いたバックアップでは「バックアップの暗号化」という設定ができます

これで問題が解決する理由は置いておいて、先に手順を説明します。

  1. iTunesの「デバイス」にあるiPhoneを選択して、「概要」を選択します。
  2. 「バックアップ」にある「このコンピューターにバックアップを作成」にチェックを入れます。
  3. 「ローカルのバックアップを暗号化」にチェックを入れます

iTunes

iCloudiTunes


iPhoneiTunesiOS8iPhone 6

8

6.暗号化バックアップで解決する理由


iPhone



iTunes





調

7.まとめ

【アプリユーザ向け】まとめ




No


iOSiPhone5


8.注意点




iOS

iPhone 5

調iOS

9.iPhone5への機種変後利用不能報告が多いアプリ


調


LINE3.1.2

SOICHA





感想


LINEiPhoneiPhoneiPhone調

apple






【アプリユーザ向け】参考資料

iCloud:バックアップと復元の概要


iCloudor


iCloud iTunesiBookstore  App Store 

iOS iPhoneiPad iPod touch 


iOS iPhoneiPad iPod touch 

iOS


iOS

iTunesiOS 


iTunesiOS 

iPhone  iOS6


http://manuals.info.apple.com/ja_JP/iphone_user_guide_j.pdf.pdf


iTunes使iPhone 使



【アプリ開発者向け】参考資料

Keychain Services Programming Guide: Keychain Services Concepts


Keychain Services Programming Guide: Keychain Services Concepts

便使

iPhone Keychain Backups



The system generates its own password for the keychain, and stores the key on the device in such a way that it is not accessible to any application. When a user backs up iPhone data, the keychain data is backed up but the secrets in the keychain remain encrypted in the backup. The keychain password is not included in the backup.

Keychain Services Reference


Keychain Services Reference

Key Type Values


These constants are legal values for kSecAttrAccessible used for determining when a keychain item should be readable. 

KeyChainItemKeychain Item Accessibility Constants
Not ThisDeviceOnly


kSecAttrAccessibleAfterFirstUnlock

kSecAttrAccessibleAlways

kSecAttrAccessibleWhenUnlocked


ItemItems with this attribute migrate to a new device when using encrypted backups.
ThisDeviceOnly


kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly

kSecAttrAccessibleAlwaysThisDeviceOnly

kSecAttrAccessibleWhenUnlockedThisDeviceOnly


ItemThus, after restoring from a backup, these items will not be present.

kSecAttrAccessibleWhenUnlockedKeyChain

Keychain Services Tasks for iOS


Keychain Services Programming Guide: Keychain Services Tasks for iOSKeychain使

iTunesiOS 


iTunesiOS 34


 (Wi-Fi  Web iOS 4  iOS 使)


1

その他

コメント(2)

  1. くみくみ
    2013年11月10日(日) 21:40

    i.softbank.jp


  2. あほいうな
    2014年6月17日(火) 20:15

    >実は、iTunesの初期設定(およびiCloud)では「キーチェインのデータ自体」はバックアップされるのですが、肝心の「キーチェイン専用の暗号化鍵」がバックアップされないのです。

    ではなぜiCloudバックアップから復元するとLINEなどのアプリでパスワード再入力を必要とせず、当然トーク履歴も消えずに済むのか説明してください。憶測だけで勝手に記事を書くのはやめましょう。

新しいコメントを投稿