Pages

Tuesday, February 5, 2013

iOS com.apple.mobile.installation.plist rebuild

People have been complaining about Weather.app not working anymore after applying evasi0n jailbreak.

We figured out that the jailbreak process messes up with com.apple.mobile.installation.plist. A fix is currently in the works and will be pushed to Cydia soon.

If you are a power-user, and want to fix the situation already, here is a script that forces a rebuild of com.apple.mobile.installation.plist :

#!/bin/bash
chmod -x /usr/libexec/mobile_installation_proxy
killall -9 mobile_installation_proxy
rm /var/mobile/Library/Caches/com.apple.mobile.installation.plist /var/mobile/Library/Caches/com.apple.LaunchServices-045.csstore 
launchctl stop com.apple.mobile.installd
launchctl start com.apple.mobile.installd

while [ ! -f /var/mobile/Library/Caches/com.apple.mobile.installation.plist ];
do
      sleep 1
done
while [ ! -f /var/mobile/Library/Caches/com.apple.LaunchServices-045.csstore ];
do
      sleep 1
done

sleep 10

chmod +x /usr/libexec/mobile_installation_proxy
sync
reboot

Before trying it, make sure to do a backup. It has already been thoroughly tested, but it is safer.

You can contact me on twitter (follow button on the top right) if you want to discuss of this fix.

I hope it helps.