-
01-04-2010, 10:30 AM #1iPhone? More like MyPhone
- Join Date
- Oct 2009
- Location
- Chicago
- Posts
- 137
- Thanks
- 20
- Thanked 12 Times in 12 Posts
Remove All unused/unnecasary files/ folders from 3.1.2
hey guys, im sure a bunch of you are also pondering on how to slim down 3.1.2 for more RAM and way snappier OS.
so far ive removed all language packs except US, ive done the launch daemon tutorial, and i have iphoneVM installed. i respring with 61mb and when i free memory i hop up to 82mb, i curious to find out if their are more files and folders that can be deleted from 3.1.2. the phone is quick im just curious in tersting the waters to find out if anyone else has removed files that are not in tutorials ex. international keyboards, region formats, etc?
16gb 3g 3.1.2 JB/Blackra1n
-
01-04-2010, 12:32 PM #2
How oo you remove the unwanted languages? I've tried researching but its a bit confusing. Can you help me?
-
01-04-2010, 12:46 PM #3iPhone? More like MyPhone
- Join Date
- Sep 2009
- Location
- Netherlands
- Posts
- 134
- Thanks
- 7
- Thanked 26 Times in 19 Posts
^ it's much work you have to remove it from every app and framework: springboard, mail, etc.
delete only the folders of languages you don't need.
default apps are in /Applications/
springboard is in /System/Library/CoreServices/
the frameworks are in /System/Library/Frameworks/
and the PrivateFrameworks are in /System/Library/PrivateFrameworks/
make a backup before doing this!
-
01-04-2010, 06:35 PM #4iPhone? More like MyPhone
- Join Date
- Sep 2007
- Location
- NY
- Posts
- 122
- Thanks
- 7
- Thanked 5 Times in 4 Posts
You could just run the script from terminal and clean it out in a few minutes
-
01-04-2010, 06:44 PM #5Supreme Moderator
- Join Date
- Jan 2008
- Location
- TX Follow me @StealthBravo
- Posts
- 32,492
- Thanks
- 44
- Thanked 5,315 Times in 3,106 Posts
yep

-
01-05-2010, 09:48 AM #6iPhone? More like MyPhone
- Join Date
- Oct 2009
- Location
- Chicago
- Posts
- 137
- Thanks
- 20
- Thanked 12 Times in 12 Posts
i used i-FunBox and went through every folder i deleted all files that end in ".lproj" if you only want english DO NOT DELETE ANYTHING THAT IS "English.lproj" or "en.lproj" a simpler but slower way of doing it is download ifile from cydia and search the hierarchy for ".lproj" you can swipe to delete from ifile.
-
01-05-2010, 05:25 PM #7
-
01-05-2010, 06:35 PM #8iPhone? More like MyPhone
- Join Date
- Sep 2007
- Location
- NY
- Posts
- 122
- Thanks
- 7
- Thanked 5 Times in 4 Posts
You can find the forum here. I can't post the link cuz I'm on my phone. I'll try to go on later at home and post the link to the thread if you can't find it.
-
01-06-2010, 05:22 PM #9CHUCK-TASTIC
- Join Date
- Jun 2009
- Location
- Houston follow @al_da_beast
- Posts
- 7,945
- Thanks
- 273
- Thanked 1,033 Times in 956 Posts
oh i want to know ht==that script
Have u got jtLast edited by battlecrushr; 01-06-2010 at 05:22 PM. Reason: Automerged Doublepost
-
01-06-2010, 06:19 PM #10iPhone? More like MyPhone
- Join Date
- Nov 2009
- Location
- Southern California
- Posts
- 227
- Thanks
- 0
- Thanked 40 Times in 37 Posts
please post this script.
please two times
-
01-06-2010, 06:44 PM #11Supreme Moderator
- Join Date
- Jan 2008
- Location
- TX Follow me @StealthBravo
- Posts
- 32,492
- Thanks
- 44
- Thanked 5,315 Times in 3,106 Posts
There are several scripts in the main thread on the subject

-
01-06-2010, 06:54 PM #12CHUCK-TASTIC
- Join Date
- Jun 2009
- Location
- Houston follow @al_da_beast
- Posts
- 7,945
- Thanks
- 273
- Thanked 1,033 Times in 956 Posts
Is this it stealth
Quote from peteo
These scripts will back up your language files (except English and Japanese) and will delete all language files except English and Japanese.
Make Sure you set your iPhone to Never sleep!
Step 1) SSH into your iPhone with root access (puddy is a good windows ssh program)
Step 2) mkdir /private/var/stash/langBackup/
Step 3) cd to your /private/var/stash/Applications.whatever programs dir
Step 4) Copy and paste this into your ssh program and run it:
for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///'`; do tar -rf /private/var/stash/langBackup/langBackup.tar ./ ; done
This will back your languages in a tar file located here /private/var/stash/langBackup/langBackup.tar PLEASE VERIFY THIS FILE BEFORE DOING THE NEXT STEP. (should be around 10-15 megs)
Step 5)Copy and paste this into your ssh program and run it:
To back up files:
for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///'`; do tar -rf /private/var/stash/langBackup/langBackup.tar ./ ; done
To remove files:
for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -not -iname "ja*.lproj" -exec echo {} ; | sed -e 's/.///'`; do rm -vr ./ ; done
This command will delete all language files except English and Japanese.
These scripts can also be run in your /private/var/mobile/Applications dir to remove languages from 3rd party app store apps. Please NOTE: some 3rd party programs are using spaces in their directory names. These scripts will NOT work on those apps. (will not back up them, but also should not delete their language files)
I have also tried these scripts on /System/Library directory. The back up takes a long time around 15-20 minutes. But deleting is Fast! (carrier bundles, quick time and a few other directories are not backed up/deleted do to spaces in the names)
Please use and modify as you see fit.
Have fun and be careful.
I dint get that. But weren't u making an app that would do it
-
01-06-2010, 07:07 PM #13Supreme Moderator
- Join Date
- Jan 2008
- Location
- TX Follow me @StealthBravo
- Posts
- 32,492
- Thanks
- 44
- Thanked 5,315 Times in 3,106 Posts
That script will work. I was making one but nobody would host it. saurik didn't approve of messing with system files like this
Last edited by StealthBravo; 01-15-2010 at 11:08 AM.

-
01-06-2010, 07:11 PM #14CHUCK-TASTIC
- Join Date
- Jun 2009
- Location
- Houston follow @al_da_beast
- Posts
- 7,945
- Thanks
- 273
- Thanked 1,033 Times in 956 Posts
Awe!!
-
01-06-2010, 07:25 PM #15iPhone? More like MyPhone
- Join Date
- Nov 2009
- Location
- Southern California
- Posts
- 227
- Thanks
- 0
- Thanked 40 Times in 37 Posts
Lol can someone post their en.lproj data

please
-
01-06-2010, 07:36 PM #16CHUCK-TASTIC
- Join Date
- Jun 2009
- Location
- Houston follow @al_da_beast
- Posts
- 7,945
- Thanks
- 273
- Thanked 1,033 Times in 956 Posts
I think that iall English.proj are the same so take one from another file
-
01-06-2010, 08:25 PM #17
That command deleted my english directories and a handful of others have reported the same. I really don't know why because it is good code and should work just fine, and it seems to for a lot of people.
I wrote a script which is verbose and uses a safer method, and also removes the files with spaces in their names. But it requires you to put it on the phone and run it from terminal, which may be more than some people want to fool with. It also doesn't back up the languages as I saw no need. There's no way it will delete anything you don't say yes to multiple times. Anyway it's here if interested.
Whatever you do, I wouldn't do it by hand. My script happens to count the number of directories deleted and it was over 3200 on my phone, and I have very few apps installed.
-
The Following User Says Thank You to fubaya For This Useful Post:
dvsh (01-15-2010)
-
01-15-2010, 05:03 AM #18
I tired deleting 1 by1 and lost patience.
Thanks for the info.But how do i use the script?I followed the instructions on your blog but nothing happened when i wrote this line grep -E proj$.
-
01-15-2010, 09:42 AM #19
Copy all the text from #!/bin/sh to the end of the post, paste it into a text file, then make that text file executable and run it through MobileTerminal or ssh. Its probably best to do all this from the phone as text editors on a computer may screw up the line breaks.
-
01-15-2010, 02:28 PM #20CHUCK-TASTIC
- Join Date
- Jun 2009
- Location
- Houston follow @al_da_beast
- Posts
- 7,945
- Thanks
- 273
- Thanked 1,033 Times in 956 Posts
Hey could u make a video showing how to use the script



LinkBack URL
About LinkBacks
Reply With Quote




