[SCRIPT] Debloat HTC 10

dj_chapz

Senior Member
Jun 1, 2011
276
111
0
Frankfurt am Main
Although HTC 10 comes with less bloat than most other phones, it still has apps preinstalled that some of us probably will never use.
Some of those apps may even run at boot and consume RAM and CPU. For this purpose I made a small script that will remove those apps instead of doing it manually via ADB Shell.

This script is for Mac/OS X/macOS. I think it can also run on Linux but I'm not sure because I don't use Linux much.
For Windows, it can easily be ported to command line. If someone is willing to do it, PM me the script and I will add it to the repo.

Apps that the script removes:

Boost+
Google+ Sense Add-on
Instagram (placeholder app)
LinkedIn Sense Add-on
HTC Mail
Facebook (placeholder app)
Messenger (placeholder app)
News Republic
TouchPal Keyboard (SEE NOTE!)
Twitter Sense Add-on
Voice Recorder
Zoe
HTC Help
IceView Case support
HTC Speak
Transfer my stuff
Google Hangouts
Google Play Music

Basically what the script does:
Mount /system as RW
Delete above apps .apk and containing folder
Reboot after done.

DISCLAIMER: Although I don't see what could possibly go wrong by flashing this script, be sure to back up your ROM before flashing as I don't take any responsibility caused by this script. I have tested it on my HTC 10 and I didn't have any issues.

IMPORTANT NOTE: If you plan to remove TouchPal keyboard, make sure that you have an alternative already installed before or you won't be able to type any text. In case you're reading this after you already screwed up, download your prefered keyboards .apk file and install it via ADB. The script will stop before removing the keyboard and ask if you are sure you want to remove it.

How to:
  • Enable USB debugging
  • Connect your phone
  • Execute "adb shell" and then "su" and grant superuser access to adb shell
  • (OS X) make script executable (chmod a+x)
  • Run script

I am open for suggestions and merge requests, happy debloating :)

The script can be found HERE.
 
Last edited:

Milano_II

New member
Aug 4, 2016
4
0
0
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.

Sent from my SM-G900V using Tapatalk
 

dj_chapz

Senior Member
Jun 1, 2011
276
111
0
Frankfurt am Main
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.

Sent from my SM-G900V using Tapatalk
Ive tried some apps for removal of system apps but it didn't work. And since I play around with ROMs reinstalling and uninstalling app by app takes just to much time.

Just double checking, but I take it that root is required?
Yes, you need root because you need to remove apps from the read-only /system partition.
 
  • Like
Reactions: Milamber

Milano_II

New member
Aug 4, 2016
4
0
0
Got it. Thanks for the reply. I haven't had an htc phone since gingerbread and I mostly had Samsungs on Verizon so I never bothered rooting. I didn't get my 10 yet but I hope to root right away and get rid of things I think are bloat. Probably gonna need this script I guess we'll see. Thanks again!

Sent from my SM-G900V using Tapatalk
 

dj_chapz

Senior Member
Jun 1, 2011
276
111
0
Frankfurt am Main
I usually make changes after a firmware update if I notice any new bloat, but there shouldnt be much changes.

Also, this list is by personal preference, because some apps that I choose to leave others may want to remove or vice versa, so everyone should take the script as a base and edit to their likeing.
 
  • Like
Reactions: ibrokemypie

typhoonikan

Senior Member
Nov 12, 2010
846
121
43
Pittsburgh
typhoonikan.blogspot.com
@gillim74 @razrlover @dj_chapz

I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd

I will maintain this as long as @dj_chapz does and will pull in any changes he makes.

After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
 

ibrokemypie

Senior Member
Jul 20, 2016
435
211
0
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
which update are you running? still marshmallow or have you gone to nougat? custom rom? and have you tried restarting and perhaps clearing cache/dalvik?
 

SovPanda

Senior Member
Aug 14, 2013
391
39
0
Device or resource busy
Read-only file system
Read-only file system

tried it but all the apps had the above thing ^

nougat,

oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
 
Last edited:

jimbob_sf

Senior Member
Jul 16, 2010
435
110
0
San Rafael, CA
Dare I ask... why not make a shell script you run from the phone? I'll give it a shot. I wrote one that creates directories so I can use FolderSync to restore settings from the cloud.

Sent from my HTC6545LVW using XDA Labs