Jump to content

unbanning by editing keychain-2.db?


DeadGood

14 posts in this topic

Recommended Posts

Posted
4 minutes ago, DiDA said:

You may have messed something up. It's advised you restore from the backup version of your .db.

I restore the whole back file by  only  copy and past , but it didn't not work . I mean is there a special way of restoring keychain that i must follow ?  Otherwise i will do restore procces again to see . 

Posted
2 minutes ago, King_pro said:

I restore the whole back file by  only  copy and past , but it didn't not work . I mean is there a special way of restoring keychain that i must follow ?  Otherwise i will do restore procces again to see . 

Not necessarily. Perhaps a reboot is required for it to take affect. 

But a reboot might also make things worse if you’re using the broken or corrupted .db.

Posted
Just now, DiDA said:

Not necessarily. Perhaps a reboot is required for it to take affect. 

But a reboot might also make things worse if you’re using the broken or corrupted .db.

So reapring is not enough . Reboot will lose my jailbreak . However this is good warning but I will proceed with rebooting option. 

Posted
On 11/25/2018 at 5:52 AM, King_pro said:

So reapring is not enough . Reboot will lose my jailbreak . However this is good warning but I will proceed with rebooting option. 

After return the original keychain file ,I did the following

 

 

I added “  .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

or use

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

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

 

After that i do reboot , then i notice every passowrd , credit..etc returned normally and my iphon is running healthy now . 

I share that for possibility of someone need it in the future. 

Archived

This topic is now archived and is closed to further replies.

×
  • 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