Jump to content


Photo

[HOW-TO]Remove System Apps from the HTC Desire with ADB in Windows


  • Please log in to reply
51 replies to this topic

#1
VeeDubZ

VeeDubZ

    Newbie

  • Members
  • Pip
  • 36 posts
  • Location:Crewe, UK
  • Devices:HTC Desire
  • Twitter:@veedubz
Im using Paul's R4 rooting files at the location C:/users/veedubz/r4-desire-root in Windows 7 so point your Command prompt there first and im also assuming that you have a rooted Desire and can get into recovery mode

****WARNING****

Be sure you know EXACTLY what you are removing as it can cause you problems down the line, ie. if you remove HTC_IME.apk then you have no keyboard installed and will not be able to enter text on the device....



1. First get into recovery mode with the Green menu then close that command prompt and open a new one and cd to /r4-desire-root folder

2. You now need to mount the /system folder using the code below

adb-windows shell mount /system

3. Now you will need to get the list of installed apk files


adb-windows shell ls /system/app/

and the output should look like this:

AccountAndSyncSettings.apk		 HtcWeatherWallpaper.apk
ApplicationsProvider.apk		   Jbed.apk
Bluetooth.apk					  LiveWallpapers.apk
BrcmBluetoothServices.apk		  LiveWallpapersPicker.apk
Browser.apk						MagicSmokeWallpapers.apk
Calculator.apk					 Mail.apk
Calendar.apk					   MarketUpdater.apk
CalendarProvider.apk			   MediaProvider.apk
CertInstaller.apk				  MediaUploader.apk
CheckinProvider.apk				Mms.apk
Clicker.apk						Mode10Wallpapers.apk
ContactsProvider.apk			   NetworkLocation.apk
CustomizationSettingsProvider.apk  NewsReader.apk
CustomizationSetup.apk			 PCSCII.apk
DCSImpl.apk						PDFViewer.apk
DCSStock.apk					   PackageInstaller.apk
DCSUtility.apk					 Phone.apk
DownloadProvider.apk			   PicoTts.apk
DrmProvider.apk					PluginManager.apk
EnhancedGoogleSearchProvider.apk   QuickLookup.apk
Facebook.apk					   RSS.apk
FieldTest.apk					  Rosie.apk
FilePicker.apk					 Settings.apk
FlashLitePlugin.apk				SettingsProvider.apk
FlashPlayer.apk					SetupWizard.apk
Flickr.apk						 SocialNetworkProvider.apk
FriendStream.apk				   Stk.apk
GSD.apk							Stock.apk
GenieWidget.apk					Street.apk
GlobalSearch.apk				   Superuser.apk
Gmail.apk						  Talk.apk
GmailProvider.apk				  TalkProvider.apk
GoogleApps.apk					 TelephonyProvider.apk
GoogleCheckin.apk				  TtsService.apk
GoogleContactsSyncAdapter.apk	  Updater.apk
GooglePartnerSetup.apk			 UploadProvider.apk
GoogleSettingsProvider.apk		 UserDictionaryProvider.apk
GoogleSubscribedFeedsProvider.apk  Vending.apk
HTCAlbum.apk					   VisualizationWallpapers.apk
HTCCamera.apk					  VoiceSearchWithKeyboard.apk
HTCSetupWizard.apk				 VpnServices.apk
HTC_IME.apk						Weather.apk
HTMLViewer.apk					 WeatherAgentService.apk
HtcAddProgramWidget.apk			WeatherProvider.apk
HtcClockWidget.apk				 WeatherSyncProvider.apk
HtcConnectivity.apk				WidgetDownloadManager.apk
HtcContacts.apk					WorldClock.apk
HtcDialer.apk					  YouTube.apk
HtcFMRadio.apk					 com.htc.FriendStreamWidget.apk
HtcFacebook.apk					com.htc.MusicWidget.apk
HtcFootprints.apk				  com.htc.NewsReaderWidget.apk
HtcFootprintsWidget.apk			com.htc.StockWidget.apk
HtcLocationPicker.apk			  com.htc.TwitterWidget.apk
HtcLocationService.apk			 com.htc.WeatherWidget.apk
HtcLockScreen.apk				  com.wsandroid.apk
HtcMessageUploader.apk			 gtalkservice.apk
HtcMusic.apk					   htcbookmarkwidget.apk
HtcNaviPanel.apk				   htccalendarwidgets.apk
HtcPhotoWidget.apk				 htccontactwidgets.apk
HtcRingtoneTrimmer.apk			 htcmailwidgets.apk
HtcSettingsProvider.apk			htcmsgwidgets.apk
HtcSoundRecorder.apk			   htcsearchwidgets.apk
HtcStreamPlayer.apk				htcsettingwidgets.apk
HtcSyncwidget.apk				  restartapp.apk
HtcTwitter.apk					 teeter.apk

4. there are 2 methods of removal, they are
  • 4a. Just delete the files
  • 4b. Move to the sdcard
Use one of the following methods


4a. Now you have a list of the files you can chose the ones you want to remove , note that this part is case sensitive so com.htc.twitterwidget.apk is not the same as com.htc.TwitterWidget.apk, use the following code(example used is the Stocks app and widget):

adb-windows shell rm /system/app/Stock.apk
adb-windows shell rm /system/app/com.htc.StockWidget.apk


4b. Also case sensitive, to move the files to your sdcard(which aso removes from the device):


adb-windows shell mount /sdcard
adb-windows shell mkdir /sdcard/device_files
adb-windows mv /system/app/Stock.apk /sdcard/device-files
adb-windows mv /system/app/com.htc.StockWidget.apk /sdcard/device-files

The files will be moved to the new folder on your sdcard called /device-files, once there you can also backup to your pc for a bit of extra backup



5. Repeat Step 4. untill all the apk files that you want to remove are gone and to check that they are gone use

adb-windows shell ls /system/app/






Restoring your backed up files

Use the following code,

adb-windows shell mount /sdcard
adb-windows shell mv /sdcard/device-filesStock.apk /system/app/
adb-windows shell mv /sdcard/device-files/com.htc.StockWidget.apk /system/app/





Hope this helps.

V.

Edited by VeeDubZ, 02 June 2010 - 11:01 AM.

  • 0

#2
NarutoDKz

NarutoDKz

    Enthusiast

  • Members
  • PipPipPip
  • 212 posts
  • Location:Kastrup
  • Devices:Htc Desire - Android 2.2
Will try later. Sounds good. :rolleyes:

  • 0
Posted Image

#3
impazzito

impazzito

    Newbie

  • Members
  • Pip
  • 28 posts

Im using Paul's R4 rooting files at the location C:/users/veedubz/r4-desire-root in Windows 7 so point your Command prompt there first and im also assuming that you have a rooted Desire and can get into recovery mode




WOOOOOOORKSSSS!!!! You are the man!!!! Thankssssssss!!!!!! :rolleyes: :D :( :(

  • 0

#4
VeeDubZ

VeeDubZ

    Newbie

  • Members
  • Pip
  • 36 posts
  • Location:Crewe, UK
  • Devices:HTC Desire
  • Twitter:@veedubz
glad you like, i looked round everywhere for a guide and cobbled this together from a couple of others

  • 0

#5
impazzito

impazzito

    Newbie

  • Members
  • Pip
  • 28 posts

glad you like, i looked round everywhere for a guide and cobbled this together from a couple of others



good work! I wanna now try to install htc note widget.. do you know how i can install note.apk than i have on my c:\ folder (i'm using windows) with adb-windows.exe???

  • 0

#6
Woocash

Woocash

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:HTC Desire
Yeah, it's work - but you know how I can delete "learn more" app?

Posted Image

I'm mean this.

  • 0

#7
impazzito

impazzito

    Newbie

  • Members
  • Pip
  • 28 posts

Yeah, it's work - but you know how I can delete "learn more" app?

Posted Image

I'm mean this.



HTCSetupWizard.apk
HTCSetupWizard.odex

  • 0

#8
potter97

potter97

    Enthusiast

  • Members
  • PipPipPip
  • 240 posts
  • Gender:Male
  • Devices:HTC DESIRE

HTCSetupWizard.apk
HTCSetupWizard.odex


If i were you m8, i would put a warning up top Just incase someone thinks its ok to delete all in here, because its not....

  • 0

Also you can buy me a Beer!! :) If you like my work :)

Apocalypse-Cracking + More


#9
DerZombie

DerZombie

    Newbie

  • Members
  • Pip
  • 6 posts
  • Location:tiefstes Niederbayern
  • Devices:HTC Desire

If i were you m8, i would put a warning up top Just incase someone thinks its ok to delete all in here, because its not....



1 Question, what do htc stocks?

  • 0

#10
Bicets

Bicets

    Newbie

  • Members
  • Pip
  • 2 posts
Great!
Thnx

  • 0

#11
VeeDubZ

VeeDubZ

    Newbie

  • Members
  • Pip
  • 36 posts
  • Location:Crewe, UK
  • Devices:HTC Desire
  • Twitter:@veedubz
Warning added

Amended the post to include a backup method

  • 0

#12
vib_

vib_

    Newbie

  • Members
  • Pip
  • 23 posts
  • Devices:HTC Legend

  • 0

#13
VeeDubZ

VeeDubZ

    Newbie

  • Members
  • Pip
  • 36 posts
  • Location:Crewe, UK
  • Devices:HTC Desire
  • Twitter:@veedubz

linux command - bash: http://ss64.com/bash/
busybox: http://home.tele2.ch...c/commands.html


this is a windows method using adb, links not really needed but thanks for the input

  • 0

#14
vib_

vib_

    Newbie

  • Members
  • Pip
  • 23 posts
  • Devices:HTC Legend
android is *nix system and "adb" is Android Debug Bridge - adb working with all systems: Mac OS, Linux, Windows, maybe other...

you prompt in Windows command console (cmd) only "adb shell" and then you working in android console via usb :rolleyes:

Edited by vib_, 22 May 2010 - 06:39 PM.

  • 0

#15
dancedreamfly

dancedreamfly

    Newbie

  • Members
  • Pip
  • 34 posts
  • Location:Quezon City
  • Devices:HTC Desire, Motorola Milestone
  • Twitter:@ishguidote
Tried this on a Mac, and it works with the appropriate changes to the commands. It would really help if we compiled a list of what is and what's not safe to remove.

  • 0

#16
sayatsugu

sayatsugu

    Newbie

  • Members
  • Pip
  • 4 posts
  • Devices:HTC Legend
I removed some stuff and now there are glitches in my "Add Widget" list.
How do I remove those ?

  • 0

#17
iCitronVert

iCitronVert

    Newbie

  • Members
  • Pip
  • 1 posts
It's possible with OS X ? :huh:

I'm a newbie with Android :D

Edited by iCitronVert, 01 June 2010 - 03:18 PM.

  • 0

#18
Jercik

Jercik

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:HTC Desire
  • Twitter:@jercik

It's possible with OS X ? :(

I'm a newbie with Android :(


Yes. As it was said before, adb works on windows, linux and macos. It is part of android SDK. You must download macos version of SDK first.

Edited by Jercik, 01 June 2010 - 06:29 PM.

  • 0

#19
Jimmy di Griz

Jimmy di Griz

    Newbie

  • Members
  • Pip
  • 5 posts
  • Devices:HTC Desire
There is slight mistake in the first post:
adb-windows mv /system/app/Stock.apk /sdcard/device-files
adb-windows mv /system/app/com.htc.StockWidget.apk /sdcard/device-files

should be:
adb-windows shell mv /system/app/Stock.apk /sdcard/device-files
adb-windows shell mv /system/app/com.htc.StockWidget.apk /sdcard/device-files

  • 0

#20
Bol2riz

Bol2riz

    Regular

  • Members
  • PipPip
  • 83 posts
  • Devices:STOCK DESIRE & HERO
Hi !

Thanks for the tuto.

One point to correct: shell is missing in your string adb-windows (shell) mv /system/app/...
This launch the help page on my windows XP home.

next to that, I've moved Stock.apk, com.htc.StockWidget.apk. Do you know if it's safe to move DCSStock.apk?

Thanks

:( WWhat a timing

Edited by Bol2riz, 01 June 2010 - 08:36 PM.

  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users