Removed some unneeded files.. [7-10]

Search This thread

joey3002

Senior Member
Mar 27, 2009
1,126
74
I have a slight issue.. nothing major. I run Damages 3.2.newest

anyway, I am trying to write a simple text file so that I can remove all the junk I dont want. Everything is working great EXCEPT now when i plug the phone into the computer, i do not get the choice of mounting the sdcard or charging only.. Which file controls that?

ok, here is my updated script.. this will REMOVE all sense items too... I use adw and have a vanilla lockscreen I installed. Obviously, make a backup before you run this one...

Code:
##### Stops OTA
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /system/etc/security
mv otacerts.zip otacerts.zip.bak
##### Does removing of all app I do not want
cd /system/app
rm com.htc.NewsReaderWidget.apk
rm HTCAlbum.apk
rm Flickr.apk
rm *FriendStr*.apk
rm Mail.apk
rm RSS.apk
rm SprintTVWidget.apk
rm Sprint_App_Updater.apk
rm htc msgwidgets.apk
rm htcsearchwidgets.apk
rm htcsettingwidgets.apk
rm HtcWeatherWallpaper.apk
rm SocialNetworkProvider.apk
rm GenieWidget.apk
rm com.htc.FriendStreamWidget.apkrm 
rm HtcLocationPicker.apk
rm HtcLocationService.apk
rm HtcStreamPlayer.apk
rm MagicSmokeWallpapers.apk
rm Mode10Wallpapers.apk
rm FieldTrial.apk
rm logcollector.apk
rm UploadProvider.apk
rm FTP.apk
rm GSD.apk
rm FieldTest.apk
rm FilePicker.apk
rm WifiRouter.apk
rm BugReporter.apk
rm Music.apk
rm Talk.apk
rm VoiceDialer.apk
rm VoiceSearch.apk
rm htcmailwidgets.apk
rm HTCMobileGuide.apk
rm rm HtcWeatherWallpaper.apk
rm htcmsgwidgets.apk
rm com.facebook.katana.apk
rm HTCNew.apk
rm Launcher2.apk
rm HtcAddProgramWidget.apk
rm Rosie.apk
rm HtcClockWidget.apk
rm Sprint_NASCAR.apk
rm HtcFMRadio.apk
rm WidgetDownloadManager.apk
rm HtcFacebook.apk
rm WorldClock.apk
rm HtcLockScreen.apk
rm com.htc.FriendStreamWidget.apk
rm HtcMusic.apk
rm com.htc.MusicWidget.apk
rm HtcNaviPanel.apk
rm com.htc.TwitterWidget.apk
rm HtcPhotoWidget.apk
rm com.htc.WeatherWidget.apk
rm HtcRingtoneTrimmer.apk
rm htcbookmarkwidget.apk
rm DeskClock.apk
rm HtcSoundRecorder.apk
rm htccalendarwidgets.apk
rm FriendStream.apk
rm HtcTwitter.apk
rm htccontactwidgets.apk

mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system

### PCSCII.apk - THIS STOPS PC SYNCING
### DmService.apk -THIS STOPS PRL OR PROFILE UPDATES
 
Last edited:

TrevE

Retired Recognized Developer
Apr 27, 2007
2,031
3,659
androidsecuritytest.com
rm PCSCII.apk

thats mounting iirc

also you have friendstream deleted but not facebook, that would cause perma sync unless you turn off live sync in htcfacebook
 

joey3002

Senior Member
Mar 27, 2009
1,126
74
treve

thanks.. you rock! do you ever sleep? lol

removing facebook crap now and then pushing that other file back


EDIT - I already removed fb stuff using the uninstalling you provided :)
 
Last edited:

joey3002

Senior Member
Mar 27, 2009
1,126
74
now if i could only figure out which file is "Device Self Service"
 
Last edited:

_Burst_

Senior Member
May 20, 2010
889
332
San Antonio, TX
device selfe service is SDSA.apk i believe.

the apk that controls what you select is actually embedded in HtcSetupWizard.apk.

Why, i dunno. I dont think the option in the settings works if you remove it. Havent tested it in awhile.
 

SteelH

Senior Member
Jun 12, 2010
3,120
2,965
I just rename my apks to xxx.backup when i want to try removing something. Then If something takes a **** and breaks, I can just rename it again and remove the .backup. RootExplorer is an awesome tool for this, no need for a PC or recovery mode, you can rename/delete etc the /system right from your phone.

Also, SDSA.apk is 100% certainly "Device Self Service". You can either rename it like I mentioned above to be safe or delete it. The only think that app does is allow you to runs OTA updating. Something you don't want anyhow if you root your phone.
 

pseudoremora

Senior Member
Nov 28, 2009
1,214
70
My script looks pretty identical, which I then package as an update.zip and within seconds everything's gone :D. I ran into trouble with removing FriendStream and having the sync issue, but got that resolved.

Nice script.
 

danoftw

Member
Jun 24, 2010
15
0
My script looks pretty identical, which I then package as an update.zip and within seconds everything's gone :D. I ran into trouble with removing FriendStream and having the sync issue, but got that resolved.

Nice script.

Could you please host it?

Sorry if you already have it up somewhere, but I searched your posts and I couldnt find it anywhere.
 
Last edited:

sablesurfer

Senior Member
Nov 15, 2009
354
5
Why are things duplicated in there? wifi router and htcmusic are a couple. Doesn't that cause issues?
 

pseudoremora

Senior Member
Nov 28, 2009
1,214
70
Could you please host it?

Sorry if you already have it up somewhere, but I searched your posts and I couldnt find it anywhere.
Sure.

Here's what my update-script looks like:
Code:
show_progress 0.1 0
delete SYSTEM:app/LiveWallpapers.apk
delete SYSTEM:app/LiveWallpapersPicker.apk
delete SYSTEM:app/com.htc.StockWidget.apk
delete SYSTEM:app/Stock.apk
delete SYSTEM:app/Sprint_Navigation.apk
delete SYSTEM:app/Sprint_VVM.apk
delete SYSTEM:app/Sprint_TV.apk
delete SYSTEM:app/Sprint_Navigation.apk
delete SYSTEM:app/Sprint_NFL.apk
delete SYSTEM:app/Sprint_NASCAR.apk
delete SYSTEM:app/HtcFootprintsWidget.apk
delete SYSTEM:app/HtcFootprints.apk
delete SYSTEM:app/LatinIME.apk
delete SYSTEM:app/GSD.apk
delete SYSTEM:app/FieldTest.apk
delete SYSTEM:app/amazonmp3.apk
delete SYSTEM:app/se.laetus.lwp.beziers.apk
delete SYSTEM:app/htcmsgwidgets.apk
delete SYSTEM:app/htcbookmarkwidget.apk
delete SYSTEM:app/htcmailwidgets.apk
delete SYSTEM:app/com.geekyouup.android.wallpaper.apk
delete SYSTEM:app/com.discoverdroid.mystify.apk
delete SYSTEM:app/Sprint_TVWidget.apk
delete SYSTEM:app/SDSA.apk
delete SYSTEM:app/HtcPhotoWidget.apk
delete SYSTEM:app/Morelocale.apk
delete SYSTEM:app/MagicSmokeWallpapers.apk
delete SYSTEM:app/Gallery3D.apk
delete SYSTEM:app/DCSStock.apk
delete SYSTEM:app/IM.apk
delete SYSTEM:app/VoiceDialer.apk
delete SYSTEM:app/HtcTwitter.apk
delete SYSTEM:app/HtcPhotoWidget.apk
delete SYSTEM:app/HTCMobileGuide.apk
delete SYSTEM:app/FieldTest.apk
delete SYSTEM:app/com.htc.TwitterWidget.apk
delete SYSTEM:app/NewsReader.apk
delete SYSTEM:app/com.htc.NewsReaderWidget.apk
delete SYSTEM:app/Mode10Wallpapers.apk
delete SYSTEM:app/MagicSmokeWallpapers.apk
delete SYSTEM:app/Flickr.apk
delete SYSTEM:app/HtcRingtoneTrimmer.apk
delete SYSTEM:app/DCUpdater.apk
delete SYSTEM:app/BugReporter.apk
delete SYSTEM:app/logcollector.apk
delete SYSTEM:app/HtcFMRadio.apk
delete SYSTEM:app/htcsettingwidgets.apk
delete SYSTEM:app/WifiRouter.apk
delete SYSTEM:app/FieldTrial.apk
delete SYSTEM:app/RSS.apk
show_progress 0.1 10

show_progress 0.2 0
delete DATA:data/com.htc.FriendStreamWidget
delete DATA:data/com.htc.NewsReaderWidget
delete DATA:data/com.htc.TwitterWidget
delete DATA:data/com.htc.htcbookmarkwidget
delete DATA:data/com.htc.htcmailwidgets
delete DATA:data/com.htc.htcmsgwidgets
delete DATA:data/com.htc.htctwitter
delete DATA:data/com.htc.android.teeter
delete DATA:data/com.xtralogic.android.logcollector.usage
delete DATA:data/com.SIE.HTCMobileGuide
delete DATA:data/com.mobitv.sprint.tvwidget
delete DATA:data/com.htc.android.htcsetupwizard
delete DATA:data/com.htc.friendstream
delete DATA:data/com.sprint.ce.updater
delete DATA:data/com.telenav.app.android.sprint
delete DATA:data/com.android.wallpaper.livepicker
delete DATA:data/com.htc.fm
delete DATA:data/com.mobitv.client.sprinttv
delete DATA:data/com.android.voicedialer
delete DATA:data/com.htc.newsreader
show_progress 0.2 10

I then package this script by itself into an update.zip -- and flash whenever I decide to flash a new ROM.

I've uploaded a faux/sample update.zip file -- unzip it and open the update-script inside /come/google/android/ and copy and paste which apks you want to remove from my script -- then after that, you'll need to zip the package back up and sign it.

i remove it from every rom i run and the rom /phone works fine
Yup. Removing SDSA will not cause any problems whatsoever.
Why are things duplicated in there? wifi router and htcmusic are a couple. Doesn't that cause issues?
The duplications probably should be fixed, however this will not cause any issues. The system will attempt to delete the file, even if its already been deleted and not complain.
 

Attachments

  • update-signed.zip
    2.6 KB · Views: 64
Last edited:

danoftw

Member
Jun 24, 2010
15
0
Finding update package...
Opening update package...
E:Can't open /sdcard/update.zip (bad)
Installation aborted.

cant use that zip for some reason :(