Tuesday, December 24, 2013

[FIXED] APP MAIL SAFARI WEATHER CALCULATOR CRASH CRASHING ON iOS7 (iOS7.0.4)

This includes Jailbroken iPhone, iPod, iPad running iOS 7 facing Mail, Safari app crash et al.



[PERMANENT FIX] see the UPDATE below 
[FIXED] ONLY WEATHER AND CALCULATOR CRASHING EVEN WITHOUT APPSYNC


Additional apps required: iFile (Better) 
(Turn "Applications Name" on, on iFile Preference for ease)

Or you can also use iExplorer or WinSCP

SAFETY NOTE: Back file/ folders up before you remove them. 

As evasi0n7 introduced iOS 7 jailbreak most of Jailbroken users tried their curious minds with unsupported MobileSubstrate tweaks got few of their stock apps crashing but for most of the cases Substrate was not responsible. 

And this can be easily fixed just by removing some files. 
I call them bad boys. 

Just head over to /var/mobile/Applications 

And look for the apps (those are crashing) back up them first to some safe place and remove the whole folder from 

/var/mobile/Applications 


It's quite safe to remove these app folders Mail, Safari, Weather, Calculator but you should always keep a backup. Delete all stock app folders. 

Then reboot (Respring won't work)
That's it!!



NOTE: TRY THESE 3 STEPS BEFORE

STEP 1) delete these apps from cydia before trying
-KuaiApp
-Tongbu or any other cracked app installer
-AppSync 1.2 or 2.5
-25pp patch

STEP 2) Try removing the Passcode before Rebooting [THANKS to Kelvin @Kevka92]

STEP 3) Rest Network Settings

^TRY these before trying the FIX

Try this AFTER if still crashing:

STEP 4) Backup and Delete these files 

/var/mobile/Library/Caches/com.apple.mobile.installation.plist
&
 /var/mobile/Library/Caches/com.apple.LaunchServices-054.csstore

Then REBOOT 


UPDATE 26 Dec 2013

It looks like AppSync7 is pretty unstable release patched by 25pp and responsible for stock Mail, Calculator, Weather and Safari App Crashes. 

iOS beta tester and bug fixer has to have fixing its instability


Posted by @Hunterbeckham  who's also an iOS Developer and  Hacker


Also a working trick by @UKMarioproducer posted on twitter could let you use AppSync without any further bugs





THANKS FOR ALL SUGGESTIONS AND CONFIRMATIONS. 
IT HELPED US IMPROVING.


UPDATE 28 Dec 2013

If you really need APPSYNC to test your apps on iPhone. 

You can try more stable versions from these repos

Or




[Except 5S]

Thanks Cammy @CammyWrites for this amazing post, check it out!





UPDATE 31 Dec 2013

Mobile Substrate updated to Cydia Substrate 0.9.5000 (renamed with 32bit and 64bit support) along with stable Preferece Loader and libstatusbar. 




@saurik posted on twitter 




[ FOR THOSE HAVING CRASH FOR SECOND TIME ]

SHOULD DO FOLLOWING: 

I. Remove AppSync from Cydia

II. Remove the 4 (four) folders mentioned (Calculator, Mail, Safari and Weather)

III. Remove the .plist and .cssstore files (STEP 4) mentioned.

IV. Reboot

V. (Not Mandatory) Reboot or Resping to fix disappeared AppStore apps








[UPDATE 6 JAN 2014] 

"Safari/Mail Fix" by hotsjf (AUTO REMOVER PATCH) 





THIS TWEAK IS A PERMANENT FIX FOR CRASHING STOCK APPS AS IT REMOVES THESE FILES EVERY TIME YOU REBOOT

/var/mobile/Library/Caches/com.apple.mobile.installation.plist
&
 /var/mobile/Library/Caches/com.apple.LaunchServices-054.csstore


HOW TO INSTALL:

i) UNINSTALL "AppSync 7+" (DO NOT REBOOT)
You can Install it even if stock apps (Mail, Safari, Calculator, Weather) crashing.

ii) INSTALL "Safari/Mail Fix" from the repo mentioned.

iii) REBOOT YOUR DEVICE

(Minor Bug) You may find most of your apps disappered right after the reboot. It can fixed by Respring or Rebooting again. 

iv) INSTALL "AppSync 7"  (i.e for iOS 7)  respring and then "AppCake" or any other cracked app downloader (both separately) 

It's not a big issue if you download both of them together but it's better if you install "AppCake" after a Respring. 

CRASHING APPS SHOULD BE FIXED BY NOW. 
IF NOT THEN REBOOT AGAIN.   

Bugs: apps disappearing (fix  mentioned)

How this works: Basically if you have AppSync 7 installed and your apps are crashing you need to remove AppSync and cache files to reuse them. However, this tweak do the same automatically after every reboot so you don't have to do it yourself. 

[TWEAK AUTHOR: Use this with caution]












HOW TO FIX IF ONLY WEATHER AND CALCULATOR CRASHING

If weather and calculator app is crashing even after removing AppSync






(It's for the people having working Mail and Safari app but not Weather and Calculator and no AppSync or any Crack installer installed)

Things you need from Cydia: SBSettings, Terminal and iFile 

Remove the Weather and Calculator app folders from /var/mobile/Applications and  REBOOT

Step I. Open iFile and go to /var/stash/Applications.xxxxx
Step II. Find the "Weather.app" and "Calculator.app"
Step III. Open the File Attributes tapping on the arrow or (i) sign on the right side

Step IV. a) You should find Ownership and Access Permissions

b) It should be like it's in the picture below, if not then change it how it's in the picture. DO THIS TO BOTH Weather.app and Calculator.app


Step V. Open Terminal app and type "uicache" and tap on Return. Close it and open iFile again

Step VI. a) Go to /var/mobile/Applications 

b) Find the Weather and Calculator app folders (reboot if you can't see them)

c) Open the File Attributes and make all the permissions and ownership like it's in this picture below (you can also fix mobile directory permissions with SBSettings -> System Options -> Fix User Dir Permissions)

Step VII. Remove these files 
com.apple.mobile.installation.plist 
com.apple.LaunchServices-054.csstore
from /var/mobile/Library/Caches/ and Reboot.

IT SHOULD FIX YOUR WEATHER AND CALCULATOR APP CRASHING

IF NOT, i) a. Reinstall Cydia Substrate and Preference Loader (Thanks to XweAponX
Still Crashing?
b. Go to Settings General -> Reset -> Reset Network Settings (Not Erase All Content and Settings)







WEATHER AND CALCULATOR APP STILL CRASHING
TRY THE PLAN-B 


THERE'S ALWAYS A PLAN-B

Install AppSync 7 + Safari/Mail fix (how to? above^)

(TRY ANYONE)

PART I.
Copy Calculator and Weather app from /var/stash/Applications.x
to some place to say /var/mobile

Place one by one in a folder named "Payload" compress it to zip and rename .zip to .ipa 
Install it with IPAINSTALLER from CYDIA


OR 


PART II.
Copy Calculator and Weather app from /var/stash/Applications.x
to some place to say /var/mobile
Put one of them in a folder named "Payload"
Open that .app and find "Info.plist"

Edit: 
I. "CFBundleDisplayName" and add "2" or anything you like and it should look like "Weather2" or "Calculator2" depends on info.plist you are editing.
II. "CFBundleIdentifier" and add "2" or anything to it.
It should look like "com.apple.weather2" or "com.apple.calculator2"

Now save the file if you are editing with text editor or just tap done if you are in property list viewer.

Now compress it to zip file (select the folder "Payload" and tap on the down arrow inside a box, between plus sign and trash)

After the .zip file created rename it to .ipa file

Now open ipainstaller and select the weather and calculator ipa file you have created and install them.

Now you have two new Weather and Calculator app and they will never crash. Also you can delete them.

NOTE: Put both the working and crashing Weather and Calculator in two different places there won't be any change in their names so it's hard to tell the difference.

Here is a fixed Calculator.ipa and Weather.ipa from iOS 7.0.4 to install with Zeusmos or ipaInstaller

If you fail with ipainstaller with error code try installing with Zeusmos app from Cydia

[If installing with Zeusmos, put the ipa file in this directory]


Also stock Weather.ipa (stock) if you like to try with.





[VIRTUAL MEMORY FOR iOS7]


iOS Virtual Memory

Virtual memory trick with "Dynamic_Pager" is known since iOS 3 introduced for all iDevices.
It tricks system to believe and suspend it's "Random Memory" on PageFile of a defined size from 256 to 512 MBs could even be more. The truth behind this trick is that it doesn't always do use it's suspended memory from the NAND (/var/vm) which could cause system instability mostly because of the Mobile Substrate Extentions similar to repeated reboot can brick your device on a long run.
However, it could be useful if you don't like to free up your memory every time it gets low. Saying that I mean whenever you stop using a process it gets suspended and saved by the PageFile freeing a quite enough memory you could have earned by freeing up RAM by yourself.

What is Dynamic Library?

You can think of a program that can backup your messages and contacts with itunes. It does the same it caches your suspended memory and system memory on a Page File calling it Virtual RAM or Virtual Memory. It doesn't gives ability to turn your iDevice Flash Memory (NAND) to Random Access Memory (RAM) but similar.

What issues are involved?

i. Using a PageFile could cause problem if your device start to fragment the swapped processes mostly when system starts this process i.e. dynamic_pager. (BOOT)

ii. System Processes are vital process necessary for your system and putting them into Paged is quite creepy and could cause night mare. (BOOT)

iii. It is a background process and uses a quite an amount of battery. (BATTERY)

iv. RAM has a faster read and write cycle which has a frequency count in MHz which is very high compared to Flash Memoy and can take a while processing back a suspended. (SYSTEM PROCESSES)

Is there a Play Safe Option?

Yes always. If you want to try to know  how it works for you or how it can be helpful. You can do this simply following some precautions that'd save you from a bootloop and bricking your device.

How to install it?

Get a iFile, Status Modifier and Cleaner (it cleans RAM) from Cydia.
Add this REPO: http://cydia.myrepospace.com/ADR/ and install VM3
VM3 works on all iOS beside it will end up with an error code while configuring installation on Cydia and won’t show up if it’s installed.
Fact is that the 3 files will be installed
I.                   “dynamic_pager” in /sbin (STOCK)
II.                “com.apple.dynamic_pager.plist” inside /System/Library/LaunchDeamons
III.             “com.apple.virtualmemory.plist” in /var/preferences
After Reboot a file swapfile0 will be created in /var/vm (vm represents virtual memory)

PRECAUSION

Don’t frequently reboot your device after installing it.

After every boot change the file using iFile /System/Library/LaunchDeamons/com.apple.dynamic_pager.plist using:

i)                   Property List Viewer: TURN “OFF” RunAtLoad to prevent loading it on BOOT UP and back “ON” to use it again.

ii)                Text File:
Change this value
<key>RunAtLoad</key>
<true/>  to  <false/> to switch between OFF and ON

Idea behind this is to save the Virtual Memory from fragmenting the suspended processes.

IF /System/Library/LaunchDeamons/com.apple.dynamic_pager.plist TURNED ON RIGHT NOW THEN TURN IT OFF SO IF YOU BOOT AGAIN YOU CAN DELETE /var/vm/swapfileX AND TURN IT BACK ON AND REBOOT TO USE VIRTUAL MEMORY (PAGE FILE AGAIN)

How do I know if it worked for me or not?

Better option is installing Status Modifier before so you can see your free random memory on status bar and a Cleaner app that can show you approximate System Mem and you can also clean RAM efficiently better than SBSetting.

TESTED ON iPhone 5c (it has enough memory so it doesn't count)

ALTERNATIVE

I am lazy and I can’t follow these for booting my iDevice every time. I need other safe way to use get free RAM!

You can use Background Manager and in setting you can stop background suspension

GO TO Settings/ Background Manager/ Global/

Turn None on Primary (Background) Mode and Native on Secondary. 
So you can switch whenever you want any app in background.

Cleaner or MemBooster can free your RAM temporarily.

Don’t use heavy Winterboard themes, Springboard extension tweaks and all useless mod to improve UI it takes a lot of memory.


COMMENT IF I HAVE MISSED ANYTHING OR WANT TO KNOW MORE ABOUT IT.
iMessage and Tweet me always for help.

HAVE FUN PLAYING





Hope this help. 
For More leave me a tweet 





DO ALSO READ THE COMMENTS BELOW


[Follow XweAponX comments he's a great help]