Skip to content
Guest Big Announcement

how to restore the keychain

Featured Replies

hey guys,

that the second time i try to restore my keychain, and its going wrong again.

i have 2 keychain backup valid (i can open them), but whenever i put the keychain at his place it became corrupted.

i tried to overwrite,

to delete first and paste,

or to paste in the keychain directory and then rename to the right nane...

tried with filza or ifiles

always end corrupted (database disk image is malformed)

is there is any trick to restore the keychain?

thanks for the help

right now my keychain is in my ram.. but when i reboot.. i gonna have blank one

its what happend the first time i tried

Solved by Anonymonk

  • Author
  • Solution

ok i found the solution on reddit..

Quote
 
 
_Decimation
iPhone 6, iOS 9.0.2

I actually think I know what the problem is. Add .old to keychain-2.db-wal and keychain-2.db-shm so they look like this:


keychain-2.db-wal.old
keychain-2.db-shm.old

Those are the index files for keychain-2.db and when you added your modified one, the index files were invalidated.

Now you want to download SQLite 3 from Cydia. Once that's installed, open a Terminal in /var/Keychains

Now run this command:


sqlite3 keychain-2.db .dump>/dev/null.

This will reindex keychains-2.db and recreate keychains-2.db.shm and keychains-2.db-wal.

i couldnt rebuild as explained, i get a "not permitted operation" (or something like that)

but a reboot, made the job, i could rebuild the index files and so, use my old keychain

not very pratical to have multi gameloft account....

  • Author

so in fact if someone want to swap some keychain, he should backup the .wal and .shm with the .db... then, when needed, overwrite and reboot.

as my .db is not write very often, only my .wal and .shm are.

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.