This post is for users whose push has not started working yet. If your push has been working and it appears to have stopped, DO NOT perform these instructions because it probably won't help. READ THE FAQ instead. viewtopic.php?f=4&t=2
ATTENTION
ONLY continue if you have installed the push fix and got an error during inject, or push has not started functioning.
I'm trying to come up with an exhaustive list of commands that fixes any problems with push configuration that have been made on the device.
Below are the commands that are almost guaranteed to fix your broken push configuration. It's just a lot more work than the standard install. The only thing this won't fix is if you are IP blocked to the push servers by your provider or some other very rare problem.
+++
VERSION 1.2 Dec 18, 2009
+++
ASSUMPTIONS:
1. You have keychain-fixed.db from my forums in /var/Keychains (attached again here)
2. You have *YOUR* push .bin files and inject in /var/Keychains
3. You have at least one push app installed (I'm not sure this is necessary, but I recommended)
NOTE!
This will erase all passwords stored on your keychain. You'll have to enter in your wifi and other passwords after reboot.
OK, copy and paste the following commands in the SSH window to your device. Do not use inject until I mention it.
- Code: Select all
rm -f /var/mobile/Library/Preferences/com.apple.apsd.plist
cd /var/Keychains
cp keychain-fixed.db keychain-2.db
chown _securityd keychain-2.db
killall -TERM lockdownd apsd SpringBoard
Do not logout. Wait for your SpringBoard to come back on your phone. Wait about another 30 seconds after that.
Next, type the following:
- Code: Select all
./inject
killall apsd lockdownd
Make sure inject returns SecItemAdd of 0. If it does not, copy and paste the output and send it to me. (open a ticket)
Wait about 60 seconds and reboot the phone. A few minutes after it comes back up, SSH back in and run
- Code: Select all
ls -al /var/mobile/Library/Preferences/com.apple.apsd.plist
See if you get something like
- Code: Select all
-rw------- 1 mobile mobile 119 Oct 5 12:31 /var/mobile/Library/Preferences/com.apple.apsd.plist
Note, the important thing is that the file is 119 bytes. That means your device has got a token from the push servers.
If the file doesn't exist, then apsd is having a network problem reaching the push servers or the SSL negotiation failed.
If the file is less than 100 bytes, it connected to the push servers but failed to get a token (or hasn't got one yet-try again in a minute).
Push should work at this point, but if a specific application doesn't work, reinstall it.
OCT 12: Here is a mirror of the fixed keychain file (zipped). http://depositfiles.com/files/w546snh08
