BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-06-2007, 01:14 AM   #1 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default New OS - Deleting Useless Files

Please Login to Remove!

Whenever a new OS comes out, I prefer to clean it up by deleting all the languages I don't use, the sample video/images, PTT, MyFavs, that ugly Rogers theme, etc before loading the OS. This makes the process a bit faster and it's also cleaner because if you delete the preloaded images after installing the OS, you still have the filenames showing with the red X icons where the images used to be.

Anyway, I got tired of doing it manually and wrote a batch script to automate this for me. Basically, all it does is locate the OS installation directory and clean all the "crap".

I was wondering if anyone was interested in a copy, and if so, I could customize the script to add prompts so you can pick what you want to delete.

Update: New version coming soon once I get back to my desktop PC. Original version still posted below.

Last edited by Spectral : 07-23-2007 at 03:16 PM. Reason: update
Offline  
Old 07-06-2007, 02:02 AM   #2 (permalink)
No longer Registered.
 
Join Date: Jan 2007
Model: 8900
OS: 4.6.1.199
Carrier: None
Posts: 2,622
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i am... if you need to know if about what i dont want PIN me and we can talk about it or just PM me

thanks!!!
Offline  
Old 07-06-2007, 02:53 AM   #3 (permalink)
New Member
 
anfrey's Avatar
 
Join Date: May 2007
Model: pearl
Carrier: t-mobile
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

aye this would be very convenient
Offline  
Old 07-06-2007, 02:54 AM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here you go. It's been tested on WinXP, however there is no reason why it shouldn't work on Win2000 or Vista. The worst that can happen is it simply won't work. If you like, you can open it in notepad and customize it to your needs. Any feedback is welcome.

Update:
Added osclean_gb which will not delete English (GB)
Attached Files
File Type: zip osclean.zip (1.6 KB, 246 views)

Last edited by JSanders : 05-02-2008 at 09:18 AM.
Offline  
Old 07-06-2007, 03:22 AM   #5 (permalink)
CrackBerry Addict
 
Spamdumpster's Avatar
 
Join Date: Jun 2006
Location: Boston, Mass.
Model: 8820
Carrier: at&t
Posts: 598
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's funny -- as I was cleaning up the new 4.2.1.101 yesterday I was wondering if someone could automate the process.

I modded the script to delete all of the vendor themes and also to delete brickbreaker.

Fantastic work. This thread should be a sticky.

Last edited by Spamdumpster : 07-06-2007 at 07:53 AM.
Offline  
Old 07-06-2007, 08:08 AM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!

If anyone has suggestions for what else to add, that would be great.
Offline  
Old 07-07-2007, 09:07 PM   #7 (permalink)
No longer Registered.
 
Join Date: Jan 2007
Model: 8900
OS: 4.6.1.199
Carrier: None
Posts: 2,622
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i have a question....

i want to delete all the useless themes i'm not using. now the ones i am using and only plan on using are the t-mobile zen, and BB dimension zen themes... now how would i go about to delete the rest of the 8 on my BB?
Offline  
Old 07-07-2007, 09:35 PM   #8 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Start, Run, type in this:
%CommonProgramFiles%\Research In Motion\Shared\Loader Files

Double click your OS directory (mine is 8100-v4.2.1.101_P2.3.0.80)
Double click Java

Keep these:
net_rim_theme_100_240x260_b.cod
net_rim_theme_bbdimension_zen_240x260_b.cod

Delete these:
net_rim_theme_102a_icon_240x260_b.cod
net_rim_theme_107_zen_240x260_b.cod
net_rim_theme_114_240x260_b.cod
net_rim_theme_115_240x260_b.cod
net_rim_theme_119_icon_240x260_b.cod
net_rim_theme_120_green_240x260_b.cod
net_rim_theme_120_today_240x260_b.cod
net_rim_theme_125_today_240x260_b.cod
net_rim_theme_125_zen_240x260_b.cod
net_rim_theme_bbdimension_icon_240x260_b.cod
net_rim_theme_bbdimension_today_240x260_b.cod

If you connect your Pearl and run desktop manager, then App Loader, and just click next, it'll delete the "unrecognized modules".

I'm going to update my script so it lets you delete themes per-carrier, but for now, the above should be easy enough.

Last edited by Spectral : 07-07-2007 at 09:39 PM. Reason: typo
Offline  
Old 07-07-2007, 09:58 PM   #9 (permalink)
No longer Registered.
 
Join Date: Jan 2007
Model: 8900
OS: 4.6.1.199
Carrier: None
Posts: 2,622
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok now this is what happens


i ran your program there, and said yes to everything, then i went into the java place you told me to and deleted all the themes i didnt want, but now when i run add loader it still wants to delete the themes i want to keep?

whats happening?
Offline  
Old 07-07-2007, 10:02 PM   #10 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you sure both the theme files you want to keep are still in the Java directory? Also, can you show a screenshot of where it wants to delete the themes you want to keep? Oh, and make sure your BlackBerry.alx file does not have Vendor IDs in it. Since the latest OS release is from Vodafone and you want to use a T-Mobile theme, you need to either remove the IDs or download the BlackBerry.alx file that was included in the new OS thread.

Last edited by Spectral : 07-07-2007 at 10:05 PM.
Offline  
Old 07-07-2007, 10:07 PM   #11 (permalink)
No longer Registered.
 
Join Date: Jan 2007
Model: 8900
OS: 4.6.1.199
Carrier: None
Posts: 2,622
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

yea i am using the new blackberry.alx file that was in the thread above... ok so i reloaded the app loader and they didnt up being there, now how long does it take to remove the modules? cuz right now i'm doing it and its not going very fast, if at all.... ok i take that back, its moved since is started typing, just kinda paranoid lol
Offline  
Old 07-07-2007, 10:33 PM   #12 (permalink)
No longer Registered.
 
Join Date: Jan 2007
Model: 8900
OS: 4.6.1.199
Carrier: None
Posts: 2,622
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

neer mind it all work! thanks alot!!!
Offline  
Old 07-08-2007, 11:13 AM   #13 (permalink)
Thumbs Must Hurt
 
linuxpro's Avatar
 
Join Date: Apr 2005
Location: UK & Middle-East
Model: 8100
Carrier: Vodafone UK
Posts: 164
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

is it possable to change the first question on the program from delete all non-english<us> to english<uk> ? just a thought as i live in the UK

Thanks
__________________

Offline  
Old 07-08-2007, 06:46 PM   #14 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

No problem. I added a modified file above.
Offline  
Old 07-14-2007, 03:32 PM   #15 (permalink)
Talking BlackBerry Encyclopedia
 
ma077146's Avatar
 
Join Date: Feb 2007
Location: Lexington, SC
Model: 8830
PIN: 3019F3E6
Carrier: Sprint
Posts: 230
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Spectral, would it be possible to modify this to use with the 8800 series?
Offline  
Old 07-15-2007, 08:35 AM   #16 (permalink)
Talking BlackBerry Encyclopedia
 
ma077146's Avatar
 
Join Date: Feb 2007
Location: Lexington, SC
Model: 8830
PIN: 3019F3E6
Carrier: Sprint
Posts: 230
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out. I temporarily renamed my 8830 folder to 8100 (copy the original name if it has the version number, etc, or zip up a copy of it). When I ran the tool Spectral made, I answered all of the prompts, and then let it clean out the folder. It took it down from about 350 files to about 260. Some of the files couldn't be found.

After running the script, I renamed my original folder it's name, and ran the Desk to Manager. It cleaned out a few files.
Offline  
Old 07-15-2007, 09:52 AM   #17 (permalink)
CrackBerry Addict
 
Spamdumpster's Avatar
 
Join Date: Jun 2006
Location: Boston, Mass.
Model: 8820
Carrier: at&t
Posts: 598
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ma077146 View Post
I figured it out. I temporarily renamed my 8830 folder to 8100 (copy the original name if it has the version number, etc, or zip up a copy of it). When I ran the tool Spectral made, I answered all of the prompts, and then let it clean out the folder. It took it down from about 350 files to about 260. Some of the files couldn't be found.

After running the script, I renamed my original folder it's name, and ran the Desk to Manager. It cleaned out a few files.
You could also open up the osclean script in notepad or wordpad and edit where it looks for 8100 files to look for 8800 files or 8830 files. I did this for my curve and it worked fine.

Then I returned the Curve because I like the Pearl much better, but that's another story.
Offline  
Old 07-15-2007, 11:21 AM   #18 (permalink)
Thumbs Must Hurt
 
linuxpro's Avatar
 
Join Date: Apr 2005
Location: UK & Middle-East
Model: 8100
Carrier: Vodafone UK
Posts: 164
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Spectral for adding the uk for me

Appreciated it
__________________

Offline  
Old 07-18-2007, 08:23 AM   #19 (permalink)
Talking BlackBerry Encyclopedia
 
Spectral's Avatar
 
Join Date: May 2007
Location: Houston, TX
Model: 8100
PIN: 23FA9743
Carrier: T-Mobile
Posts: 337
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by ma077146 View Post
Spectral, would it be possible to modify this to use with the 8800 series?
I wasn't sure if the OS files had similar layouts. I guess since they are similar, it should work for all 3. In the meantime it's pretty easy to just modify the script and replace "8100" with "8300" or "8800".

I'll make the changes in the next version and include the ability to delete individual themes and other modules that weren't included in the first version.
Offline  
Old 07-18-2007, 12:46 PM   #20 (permalink)
Talking BlackBerry Encyclopedia
 
ma077146's Avatar
 
Join Date: Feb 2007
Location: Lexington, SC
Model: 8830
PIN: 3019F3E6
Carrier: Sprint
Posts: 230
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your suggestion worked well. I changed the 8100 to 8830 and the script found the folder and removed the offending .cod files without any problems. Thanks for sharing with the rest of us.

I also deleted the names of the .cod files for the two Sprint Themes I don't use from the BlackBerry.alx file, and after running the Desktop Manager again, they were deleted from the device.

Last edited by ma077146 : 07-18-2007 at 12:48 PM. Reason: Forgot details.
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.