Jump to content

how to restore the keychain


Go to solution Solved by Anonymonk,

3 posts in this topic

Recommended Posts

Posted

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

  • Solution
Posted

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....

Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines