BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   General 8100 Series Discussion - Pearl (http://www.blackberryforums.com/forumdisplay.php?f=71)
-   -   New OS - Deleting Useless Files (http://www.blackberryforums.com/showthread.php?t=84591)

Spectral 07-06-2007 01:14 AM

New OS - Deleting Useless Files
 
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.

Cory Scheuer 07-06-2007 02:02 AM

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!!!

anfrey 07-06-2007 02:53 AM

aye this would be very convenient

Spectral 07-06-2007 02:54 AM

2 Attachment(s)
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)

Spamdumpster 07-06-2007 03:22 AM

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.

Spectral 07-06-2007 08:08 AM

Thanks! (y)

If anyone has suggestions for what else to add, that would be great.

Cory Scheuer 07-07-2007 09:07 PM

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?

Spectral 07-07-2007 09:35 PM

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.

Cory Scheuer 07-07-2007 09:58 PM

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?

Spectral 07-07-2007 10:02 PM

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.

Cory Scheuer 07-07-2007 10:07 PM

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

Cory Scheuer 07-07-2007 10:33 PM

neer mind it all work! thanks alot!!! :):)

linuxpro 07-08-2007 11:13 AM

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

Spectral 07-08-2007 06:46 PM

No problem. I added a modified file above.

ma077146 07-14-2007 03:32 PM

Spectral, would it be possible to modify this to use with the 8800 series?

ma077146 07-15-2007 08:35 AM

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.

Spamdumpster 07-15-2007 09:52 AM

Quote:

Originally Posted by ma077146 (Post 601117)
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.

linuxpro 07-15-2007 11:21 AM

Thanks Spectral for adding the uk for me

Appreciated it

Spectral 07-18-2007 08:23 AM

Quote:

Originally Posted by ma077146 (Post 600635)
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.

ma077146 07-18-2007 12:46 PM

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.


All times are GMT -5. The time now is 07:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.