-
09-22-2009, 08:37 PM #461
Here you go you lazy lazy man
Dont forget to thank Me, AllDay, PSYCH0TIC ONE, and StallionM5...PLEASE BE CAREFUL AND USE SOME DISCRETION AS THERE HAVE BEEN A FEW ISSUES REPORTED WITH THE LIST. MAKE SURE YOU ARE DELETING THE CORRECT FILES EACH TIME TO AVOID THESE PROBLEMS. IT SHOULD STILL BE RELATIVELY SAFE TO DELETE AT LEAST THE FOLDERS FROM /Applications.
IF YOU REALLY WANT TO SEE AN INCREASE IN MEMORY, IT IS SUGGESTED THAT YOU UNDO ANY LOCKSCREEN THEMING AS THIS DOES SIGNIFICANTLY DECREASE AVAILABLE MEMORY.
Okay, so until Stealth gets his app done and polished for doing this automatically, I think it would be nice to have a comprehensive list of all the language packs (.lproj files) that can be deleted to increase the performance of firmware 3.0 instead of having them scattered about.
Deleting the language packs unnecessary for you in these directories will help increase performance on your device and free up that precious memory.
To delete, simply go through each of these files and get rid of every unnecessary .lproj file (using shift+click is a great method for speed). For English-speaking users, keep only the ones label English.lproj unless otherwise stated.
As members find more or other things are discovered, I can edit them into this list. Please post if anything here isn't working or if something needs to be changed.
Credit goes to everyone who has completed this so far and who has come up with new things for this list; mainly everyone in this thread. Especially PSYCH0TIC ONE, Mes, and peteo for their helpful and informative posts. Also, most importantly the credit for the idea and original method/thread goes to StallionM5. Thanks a lot man!
I have tested with all of these removed at once on my 2G phone and performance is certainly increased, however as my phone may be different than your own proceed at your own risk. Thanks to all that have helped again and I hope this helps some of you who were struggling like myself at figuring out what could and couldn't be deleted.
-Day
---------------------------------------------------------------
Here's what we have so far:
/Applications:
-Calculator.app
-MobileAddressBook.app
-Cydia.app
-MobileSMS.app
-Maps.app
-MobileCal.app
-MobileMail.app
-MobileMusicPlayer.app
-MobileNotes.app
-MobilePhone.app
-MobileSafari.app
-MobileSlideShow.app
-AppStore.app
-MobileStore.app
-MobileTimer.app
-Preferences.app
-Stocks.app
-VoiceMemos.app
-Weather.app
-Web.app
-WebSheet.app
-YouTube.app
-Icy.app
-DemoApp.app
/System/Library/CoreServices/SpringBoard.app
/System/Library/PreferenceBundles:
-AccountSettingsUI.bundle
-AirPortSettings.bundle
-BluetoothSettings.bundle
-ManagedConfigurationUI.bundle
-MusicSettings.bundle
-VideoSettings.bundle
-iPodSettings.bundle
-CarrierSettings.bundle
-MobilePhoneSettings.bundle
-MobileSafariSettings.bundle
-MobileSlideShowSettings.bundle
-Wallpaper.bundle
-MobileStoreSettings.bundle
-VPNPreferences.bundle
-NotificationSettings.bundle
-EDGESettings.bundle
-ScheduleSettings.bundle
-WirelessModemSettings.bundle
/System/Library/SystemConfiguration:
-WiFiManager.bundle
-PPPController.bundle
/System/Library/Frameworks:
-AddressBookUI.framework
-AddressBook.framework
-CFNetwork.framework
-AudioToolbox.framework
-CoreLocation.framework
-Foundation.framework (keep en.lproj)
-GameKit.framework
-MapKit.framework
-MessageUI.framework
-MediaPlayer.framework
-Security.framework
-UIKit.framework
-SystemConfiguration.framework
/System/Library/Carrier Bundles:
-Fido_ca.bundle
-Softbank_jp.bundle
-Rogers_ca.bundle
Ok guys after countless work I have made some sh commands you can run to remove language files from the applications directories.
PLEASE READ CAREFULLLY. I AM NOT RESPONSIBLE IF THIS SCREWS UP YOUR iPHONE USE AT YOUR OWN RISK!! PLEASE BACK UP YOUR APPLICATIONS FOLDER
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:
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.
---Update
I have tried my scripts on the following directories (and their sub directories)
YouTube.app
WebSheet.app
Web.app
Weather.app
VoiceServices
VoiceMemos.app
TextInput
SystemConfiguration F
Stocks.app
PublishingBundles
PrivateFrameworks
Preferences.app
PreferenceBundles
Nike.app Folder
MobileTimer.app
MobileStore.app
MobileSMS.app
MobileSlideShow.app
MobileSafari.app
MobilePhone.app
MobileNotes.app
MobileMusicPlayer.app
MobileMail.app
MobileCal.app
MobileAddressBook.app
MemTool.app Folder
Maps.app Folder
ManagedConfigurationBundles
iFile.app
Frameworks
Extensions
Cydia.app Folder
CoreServices Folder
Compass.app Folder
Calculator.app Folder
AppStore.app Folder
AccessibilityBundlesLast edited by Melech518; 09-22-2009 at 08:45 PM.
If I helped you, hit the
button or be Banned!



Download Macbook 3.1 for Winterboard-Now LIVE on Cydia-Macbook Final, Macbook Final Widget,Macbook SBSettings
Need Hardware Repair Support?: PM ME
-
The Following 3 Users Say Thank You to Melech518 For This Useful Post:
ArmaniDude (10-26-2009), davesnothere11 (02-19-2010), stonyboys (09-22-2009)
-
09-22-2009, 10:12 PM #462
i hit thanks, but before i go through with this, what is this talk about stealth's app that does this automatically? is it on cydia yet?
-
09-22-2009, 10:13 PM #463Custom Title
- Join Date
- Jun 2009
- Location
- The Golden State :)
- Posts
- 3,831
- Thanks
- 22
- Thanked 221 Times in 210 Posts
Nope. I think Stealth gave up on that.
I just ran the script.I always feel sorry for the guy in the iPhone commercials. He always gets a call right in the middle of trying to do something
-
The Following User Says Thank You to angiepangie For This Useful Post:
davesnothere11 (02-19-2010)
-
09-22-2009, 10:38 PM #464
I'm using WinSCP, do you have any idea how to run the script on it?
-
09-23-2009, 12:45 AM #465Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,125
- Thanks
- 113
- Thanked 775 Times in 711 Posts
We all know how to do it - but we can be bothered to read the thread.
Melech - copying and pasting massive posts like that just makes the thread very difficukt to read. repeating information over and over again just because people can't be bothered to read is not, IMHO, a good idea.He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
The Following User Says Thank You to confucious For This Useful Post:
davesnothere11 (02-19-2010)
-
09-23-2009, 01:04 AM #466
I couldn't agree with you more! But the guy needed to STFU already and that was the only way to stop him
If I helped you, hit the
button or be Banned!



Download Macbook 3.1 for Winterboard-Now LIVE on Cydia-Macbook Final, Macbook Final Widget,Macbook SBSettings
Need Hardware Repair Support?: PM ME
-
The Following User Says Thank You to Melech518 For This Useful Post:
davesnothere11 (02-19-2010)
-
09-23-2009, 01:19 AM #467Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,125
- Thanks
- 113
- Thanked 775 Times in 711 Posts
You are far more patient than me - and the problem is, once youve done it for him once, he just expects it again!
He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
The Following User Says Thank You to confucious For This Useful Post:
davesnothere11 (02-19-2010)
-
09-23-2009, 10:57 AM #468
Well I wont be around to do it again!
If I helped you, hit the
button or be Banned!



Download Macbook 3.1 for Winterboard-Now LIVE on Cydia-Macbook Final, Macbook Final Widget,Macbook SBSettings
Need Hardware Repair Support?: PM ME
-
The Following User Says Thank You to Melech518 For This Useful Post:
davesnothere11 (02-19-2010)
-
09-23-2009, 05:27 PM #469
i never asked you for anything, and it's a 31 page thread. so if you'd like me to read it, at least give me an estimation of which page the thing im looking for is.
or just don't reply and let the good samaritans help me.
no one would have this problem if all the info was in the first post btw, just a suggestion.
so can anyone help me use the script on winSCP?
-
09-24-2009, 12:34 AM #470Peanut Brain
- Join Date
- Oct 2008
- Location
- Woking
- Posts
- 9,125
- Thanks
- 113
- Thanked 775 Times in 711 Posts
^ If you can't read, go away and leave us alone. The thread wouldn't be 31 pages long if it wasn't for idiots like you asking for information that's freely available.
He who asks a question looks foolish for 5 minutes. He who doesn't ask a question remains foolish forever.
-
The Following User Says Thank You to confucious For This Useful Post:
davesnothere11 (02-19-2010)
-
09-24-2009, 12:42 AM #471
Lmao
If I helped you, hit the
button or be Banned!



Download Macbook 3.1 for Winterboard-Now LIVE on Cydia-Macbook Final, Macbook Final Widget,Macbook SBSettings
Need Hardware Repair Support?: PM ME
-
The Following User Says Thank You to Melech518 For This Useful Post:
davesnothere11 (02-19-2010)
-
12-15-2009, 01:04 PM #472iPhoneaholic
- Join Date
- Nov 2007
- Location
- Houston, TX
- Posts
- 379
- Thanks
- 77
- Thanked 42 Times in 34 Posts
-
12-15-2009, 04:40 PM #473
I tried this on my iphone 3g and it only cleared room in vars, while on the ipod touch i got 10-15 ,more MBs of ram...
-
12-31-2009, 11:03 AM #474
/System/Library$ for file in `find . -type d -name "*.lproj" -not -iname "en*.lproj" -exec echo {} ; | sed -e 's/.///'`; do tar -rf /private/var/stash/langBackup/langBackup.tar ./ ; done
-sh: command substitution: line 8: syntax error near unexpected token `|'
-sh: command substitution: line 8: `find . -type d -name "*.lproj" -not -iname "en*.lproj" -exec echo {} ; | sed -e 's/.///''
i get this when tryin script in system/library
Official DreamBoard Wiki
Twitter | YouTube
My Themes: ipod 5g themes | Origins [blue] | Ubuntu Ultimate | Windows 7 OS
-
01-09-2010, 07:23 PM #475
Man, just read every page and figured out how to do a number of things. I'm not new to modding, but am new to iPhone modding. It took some work.
Thanks to everyone who posted and contributed. Great thread.
I ended up going the SSH route, thank you a lot to peteo and Mes. I started with peteo's instructions and ended up using Mes'. Though I added -not -iname "Spanish.lproj" and -not -iname "Japanese.lproj" to keep English, Spanish and Japanese. I got a nice sized error at the end because Spanish and Japanese aren't in every folder, but thats ok.
My phone seems to still be working, and quicker at that!
-------------------
For n00b reference: How to SSH into you iPhone:
iPhone Jailbreak Guides | iPhone Tutorials | ModMyi.com Blog Archive How to SSH into your iPhone
#3 means your regular Settings > Wi-Fi. Then wait till the network you're on pops up and tap the blue right arrow. There's your IP address.
Also, on the first Cydia screen, scroll to about the middle the there's "OpenSSH Acess How-To". That might help too.
The terminal people are talking about, or the "SSH into your phone and tyep.." is, when in WinSCP (for windows users, I used it and it was easy, Google it), click at the top "Commands", then scroll down to "Open Terminal". Thats where you start typing in all the codes (like find / -type d -name "*.lproj"....etc)
--------------------
Anyway, thanks everyone!
EDIT: Oh also, I liked the sound of the programs like Xslimmer and Monosomething, but they're all for Macs. Would you all happen to know any names for programs like that to trim the fat for PCs? Thanks!Last edited by Brave777; 01-09-2010 at 07:26 PM.
-
The Following User Says Thank You to Brave777 For This Useful Post:
davesnothere11 (02-19-2010)
-
02-19-2010, 01:02 AM #476iPhone? More like MyPhone
- Join Date
- Jan 2010
- Location
- Alaska
- Posts
- 271
- Thanks
- 52
- Thanked 27 Times in 27 Posts
Thank you all!
After deleting extra language packets and unneeded launch demons my 3G phone is much faster and running 15 to 20 MB's more available memory than before.

Time to go back through the posts and hit the thanks button

-
02-19-2010, 05:44 PM #477
thanks for this tutorial, really boosted my performance!!



LinkBack URL
About LinkBacks

Reply With Quote

