+ Reply
Page 1 of 2 12 LastLast
Results 1 to 20 of 25

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Remove All unused/unnecasary files/ folders from 3.1.2

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
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
...
  1. #1
    iPhone? More like MyPhone MikeT674's Avatar
    Join Date
    Oct 2009
    Location
    Chicago
    Posts
    137
    Thanks
    20
    Thanked 12 Times in 12 Posts

    Default 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

  2. #2
    iPhoneaholic 143voltron's Avatar
    Join Date
    Aug 2009
    Posts
    485
    Thanks
    181
    Thanked 78 Times in 63 Posts

    How oo you remove the unwanted languages? I've tried researching but its a bit confusing. Can you help me?

  3. #3
    iPhone? 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!

  4. #4
    iPhone? More like MyPhone popmanbx's Avatar
    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

  5. #5
    Retired Moderator StealthBravo's Avatar
    Join Date
    Jan 2008
    Location
    TX  Follow me @StealthBravo
    Posts
    32,478
    Thanks
    44
    Thanked 5,328 Times in 3,113 Posts

    yep

  6. #6
    iPhone? More like MyPhone MikeT674's Avatar
    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.

  7. #7
    What's Jailbreak?
    Join Date
    Dec 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by popmanbx View Post
    You could just run the script from terminal and clean it out in a few minutes
    what script?
    how?

  8. #8
    iPhone? More like MyPhone popmanbx's Avatar
    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.

  9. #9
    CHUCK-TASTIC battlecrushr's Avatar
    Join Date
    Jun 2009
    Location
    Houston follow @al_da_beast
    Posts
    7,940
    Thanks
    273
    Thanked 1,034 Times in 956 Posts

    oh i want to know ht==that script

    Have u got jt
    Last edited by battlecrushr; 01-06-2010 at 05:22 PM. Reason: Automerged Doublepost

  10. #10
    iPhone? 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

  11. #11
    Retired Moderator StealthBravo's Avatar
    Join Date
    Jan 2008
    Location
    TX  Follow me @StealthBravo
    Posts
    32,478
    Thanks
    44
    Thanked 5,328 Times in 3,113 Posts

    There are several scripts in the main thread on the subject

  12. #12
    CHUCK-TASTIC battlecrushr's Avatar
    Join Date
    Jun 2009
    Location
    Houston follow @al_da_beast
    Posts
    7,940
    Thanks
    273
    Thanked 1,034 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

  13. #13
    Retired Moderator StealthBravo's Avatar
    Join Date
    Jan 2008
    Location
    TX  Follow me @StealthBravo
    Posts
    32,478
    Thanks
    44
    Thanked 5,328 Times in 3,113 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.

  14. #14
    CHUCK-TASTIC battlecrushr's Avatar
    Join Date
    Jun 2009
    Location
    Houston follow @al_da_beast
    Posts
    7,940
    Thanks
    273
    Thanked 1,034 Times in 956 Posts

    Awe!!

  15. #15
    iPhone? 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

  16. #16
    CHUCK-TASTIC battlecrushr's Avatar
    Join Date
    Jun 2009
    Location
    Houston follow @al_da_beast
    Posts
    7,940
    Thanks
    273
    Thanked 1,034 Times in 956 Posts

    I think that iall English.proj are the same so take one from another file

  17. #17
    Green Apple fubaya's Avatar
    Join Date
    Nov 2009
    Posts
    55
    Thanks
    0
    Thanked 22 Times in 18 Posts

    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.

  18. The Following User Says Thank You to fubaya For This Useful Post:

    dvsh (01-15-2010)

  19. #18
    What's Jailbreak?
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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$.

  20. #19
    Green Apple fubaya's Avatar
    Join Date
    Nov 2009
    Posts
    55
    Thanks
    0
    Thanked 22 Times in 18 Posts

    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.

  21. #20
    CHUCK-TASTIC battlecrushr's Avatar
    Join Date
    Jun 2009
    Location
    Houston follow @al_da_beast
    Posts
    7,940
    Thanks
    273
    Thanked 1,034 Times in 956 Posts

    Hey could u make a video showing how to use the script

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts