FORUMS
Remove All Ads from XDA

[TOOL] [SCRIPT] [OOS, custom ROMs] Tomatot Debloater 2.5.2 (+++Battery, RAM, Privacy)

1,332 posts
Thanks Meter: 960
 
By Tomatot-, Senior Member on 20th November 2018, 10:00 AM
Post Reply Email Thread
Hello guys,

Introduction
Today is my first step in the android development world. And I'm starting with something very little. I've created this tool for myself but I thought I could share it, as it could be useful to you as well and you could help me to improve it.


Big announcements
1) I've included now in the extreme script the apps necessary for the first time you set up your phone. I'm removing them because after the intial setup, they still run in the background and use significant RAM for absolutely no reasons. So I'd suggest to flash my Extreme script after you've set up your ROM for the first time.
2) Officially supported custom ROMs:
-ArrowOS
-LiquidRemix
-OmniRom
-AEX



What can you expect from flashing my script?
I think my script is interesting because its utility is completely complementary with a custom ROM or kernel: what it does has nothing to do with the kernel, so it doesn't interfere at all. And it's concrete stuff, not some supposed-to-be optimization where you're not even sure it's going to do something. I'm usually not a huge fan of these apps / modules.

-You'll get more privacy: I've removed Qualcomm telemetry, OnePlus telemetry as well as some Google Telemetry (but you can't expect too much as long as you use gapps)
-You'll get better battery life: less apps running in the background, less wakelocks, less services communicating with servers to send telemetry.
-You'll get better performance: for the same reasons. Don't expect a huge difference as our phone is very smooth already.
-The feeling of having a clean device. And this has no price.


As a proof, see this (both screenshots were taken after a fresh boot):
Extreme script: https://i.imgur.com/2O47su8.jpg 19 system apps running, for a total of of 31 services running. I'm not counting Google Play services as the number of services running keep changing.
No script: https://i.imgur.com/E5cEr7P.jpg 36 apps running, for a total of 60 services running! I find the difference quite huge.


What does it do?
The point is to be very very basic. Obviously I don't intend to to share something as powerful and exhaustive as xXx. My objective is to only focus on bloatwares, not features.
Also, I wanted to make a script simple enough so anybody can use it, understand it and modify it depending on your needs.

I think I can call myself a flasholoic, as I flash ROMs quite often, even when I'm happy with the current one. There are many time consuming and boring tasks when it comes to clean flash a new ROM. However, for most of them, there's a solution. For example, Titanium Backup, to mention just one.

You can use this script with no worries whenever you flash your new ROM. Right now, I only support OOS as I've tried the script on OOS 9.0.2 (and 9.0.3 now). It would probably work on AOSP as well, it's just that my script would ignore the OP apps. Also, on AOSP, since you can usually already flash the gapps package you want, there's way less to debloat. However, when I will have time, or with your help, I will make a specific script for AOSP ROMs.

Right now, to check what apps I'm deleting, check next post in "advanced documentation". Everything is explained!

Make sure you don't need any of these apps. I will try to explain each of them when I'll have more time. In the future, depending on my phone's behavior and your feedback, I'll edit my script and share different versions, depending on how much bloatware you want to remove.

Why don't i Freeze apps instead of removing them?
Ideally, I would prefer to only freeze apps so the setup can stick after an update or a dirty flash, however, I don't know how to do it from recovery. Freezing works with the command from package manager "pm disable {package_name}", however, it's only available when the phone is running.


What version should I install?
-Invisible script: Install it, enjoy. I basically removed only apps related to telemetry or that don't have any function. You should still have all the apps you're using and all the features you like.
-Light Script: Invisible + apps that I consider rarely use (because they're useless or because alternatives are much popular). It should fit to 80% people without any change to make.
-Extreme script: Invisible + light + a few Google Apps (most of them can be reinstalled) and features that are not absolutely necessary but useful for some people, like face unlock for example. I wouldn't recommend it to anyone who hasn't check the .txt file first. The light script is almost as good anyway.


How to Install?
Simply reboot to TWRP, flash the zip, reboot and enjoy.
If this doesn't work, you can try three different things:
-Try to use blu spark Recovery instead of other ones.
-Try to mount system in recovery before flashing my .zip.
-Try to install Magisk and this module: https://github.com/Magisk-Modules-Repo/busybox-ndk
-Try to install the script on both slots
At least one of these three options should fix things for you.


Known incompatibilities
-If the script doesn't do anything, check installing instructions.
-If an app keeps force closing when you try to open it (for example the Google app, gmail, amazon, etc.), it's because you don't have any webview selected. You can select one in the developer settings and if you don't have any you can install one from the play store (Android System Webview).
-If the script doesn't do anything, check installing instructions.
-If an app that is included in the script freezes, but it's also available in the playstore, uninstall it with Titanium Backup, reboot and reinstall the app from play store.
-If you're using substratum, you must edit my script and remove this line: "/system/system/app/OpSkin",
-If your bank app doesn't work, you can try to add back Stk (sim toolkit), as the app helps for authentication.
-If some apps are remaining, it's because it's system apps you updated and they became user apps. You can just uninstall them like any other user apps and it will completely disappear. Search this thread if you want more details / understand why.


How to edit the script and make it work? (TUTORIAL)
Prerequisites
-Root (ideal but not mandatory)
-File manager (ideal but not mandatory, I recommend Amaze https://play.google.com/store/apps/d...nager&hl=en_AU )
-TWRP

Then you have two alternatives
a) Use your computer (Windows): you will need Zip Builder https://forum.xda-developers.com/and...-sign-t3739556

b) Use your phone: then you will need MiXplorer ( https://forum.xda-developers.com/sho....php?t=1523691 )

Steps to follow
1) Download my script.
2) Unzip it. Browse to META-INF\com\google\android and open "updater-script" in a notepad. (I'd recommend you notepad++ ( https://notepad-plus-plus.org/download/ )
3) Add some apps you want to delete, or remove the apps you want to keep. To see what apps are on your device, use a file manager that can use root and check the apps you have in /system/app and system/priv-app. The priv-app are usually more sensitive so be cautious with them.
4) Don't forget that on every line, you need a comma at the end, except for the last app of the list.
5) You don't need to touch any other lines, except if you want to have fun and change what TWRP will display: it's the lines with
Code:
ui_print("")
6) Save your file.
7) a) Windows alternative. Follow instructions to install properly Zip Builder. Then shift + right click on the parent folder of the META-INF folder and click on "Build Zip...". If Zip Builder is set up properly, you will see the option I just mentioned. You can also open the program and browse to the parent folder where META-INF is.
Copy the .zip to your phone and you're good to go!
7) b) Android alternative: Install MiXplorer. Long press on the META-INF folder. Confirm the creation of the archive, pick the name you want and make sure that "store" is selected, below "zip". Then select the newly created zip, and click on the "Sign" option. Choose Testkey. It will create yourzip-signed.zip. That's the file you need to flash in TWRP.
8) Flash in TWRP

Let me know if you need any help or if something is not clear to you.


Downloads, risks, credits, Information

Where to download?
Check the attachments!

What are the risks, or why is it actually pretty safe to use it?
1) If you use my scripts, as I've tried all builds, I can assure you in the worst scenario you will loose a few features you might have wanted to keep.

2) If you try to make your own script:
a) You misspell a system folder: (it's case sensitive, careful): well the script will just ignore it and try to remove a folder which doesn't exist, so no consequence at all, just a useless line in your script.
b) you mess up with how you're meant to write the script: for example, you forget a comma or you leave it on the line of the last app you want to delete. Well, no worries, TWRP will just not flash the script so nothing happens. Just check your code to find the mistake.
c) Your script is fine but delete a core app that the system needs. Again, no worries! You will bootloop. In this case, you need to dirty flash your current setup (for example, flash OOS, flash TWRP, reboot to recovery, flash Magisk, flash your favorite kernel, reboot). Then you can try to find the culprit in your code, remove it, and try again your script.

Just in case, you know the XDA saying: "flash at your own risk!"

Credits!
First of all, I'd like to credit @Primokorn for his tutorial which helped me a lot. Basically everything in my script I owe him. I've just made it even more simple and focused on only debloating. Also, and obviously, it's adapted for our OnePlus 6. Right now, it's optimized for OOS 9.0.3, but depending on how the project evolves and how popular it will get, I could make "special editions" for open betas as well as AOSP ROMs.

I would also like to thank @TKruzze for his amazing tool "Zip Builder", which makes me save a lot of time everytime I want to try / build a new script.

Thanks to @Zios01 for inspiring me about "optimizing" OOS.

Information
"Tomatot- Debloater"

Contributors
@Tomatot-
Source Code: everything is in the zip.

Created 2018-11-20
Last Updated 2019-01-10
The Following 53 Users Say Thank You to Tomatot- For This Useful Post: [ View ] Gift Tomatot- Ad-Free
 
 
20th November 2018, 10:19 AM |#2  
Tomatot-'s Avatar
OP Senior Member
Thanks Meter: 960
 
More
Changelog


OOS 2.5.2
-Removed DeskClock as it's the clock app that a lot of people need. I thought it was the widget, my bad.

OOS 2.5.1
-Removed WebViewStub from all scripts since it may affect the webview selecting setting.

OOS 2.5
-Added BluetoothMidiService to the extreme script because 99% people won't use it (check Google to check what it is)
-Added ProxyHandler for the same reason
-Added ManagedProvisioning for the same reason, in the light script. ( Work Profile Setup apk. It's useless for most people. Obviously don't delete it if your company gave you this phone, but then you shouldn't flash it in the first place! )

OOS 2.4
-Removed a few useless lines in the script.
-Cleaned up the .txt file, now all packages explained are sorted alphabetically.
-Moved CNEService to the extreme script as it breaks wifi calls.
-Moved HotwordEnrollmentXGoogleWCD9340 to the extreme script as it might break OK Google.
-Moved WebViewStub to the invisible script
-Added YouTube to the light script as it doesn't break YT Vanced.
-Added Chrome to the extreme script. Don't forget to have a working/activated webview!

OOS 2.3
HotwordEnrollmentXGoogleWCD9340 : moved to extreme as it breaks ok google
EmergencyInfo : moved to extreme as it could break double press power button to open camera
datastatusnotification : moved to extreme as it allows the system to cap data.
Added DeskClock to the light script
Added WebViewStub to the light script

OOS 2.2.1 / custom 1.2
-Unified numbers for all OOS sripts / all custom ROMs scripts so it's just easier to follow / maintain.
-OOS: moved OPBackup to the extreme script as it breaks system updates. It doesn't matter since if you have Magisk and TWRP you can't update via OTA but some people like having all settings working so... Now with the light script you shouldn't have any "broken" feature.
-Custom: removed DocumentsUI so it's possible to access external storage.

v2.2
-Removed Chrome from the script as it can break webview. There is not reliable fix as Android system struggles to properly select "Android System Webview". Feel free to freeze or uninstall Chrome as long as you update android system webview and make sure it's selected in developer settings.
-Put back Gmail2 in the script as now installing it as a user app shouldn't break the app anymore.
-Now the script should be completely bug free.
-if you had issues with gmail, dirty flash your current setup first.

v2.1
-Fixed a broken setting on ALL scripts, see this for more info: https://forum.xda-developers.com/sho...&postcount=103
-Added setup apps to the light script as I intended in the first place
-If you come from an older script, you should dirty flash your current setup again because otherwise the broken setting won't come back. Sorry for the mistake.

v2.0.2
-Fixed OPFilemanager on light and extreme scripts.

v2.0.1
-Fixed a few mistakes I wrote, extreme script will work now.

v2.0
-Completely resorted the apps so it makes more sense. I have a little more hindsight and for most apps I actually know what they do and if it's dangerous to remove them or not. Hence, the extreme script hasn't changed but the light is significantly different. It will remove more useless apps but not remove apps that most users use. A bit smarter I'd say.
-And I would like to introduce you the invisible script, the ones who really can't deal with making sure the script works for them, they just want to make their phone lighter. Easy peasy, hassle free.
-To see how I resorted apps, please check "List of systems apps SORTED & EXPLAINED v2.0.txt" or just have a look at the end of this post.

Previous updates:

v1.8.1
-Removed Rftoolkit as it's a vendor app and I can't make it disappear for some reasons. I'd recommend you to freeze the app.
-Removed "datastatusnotification" as it's necessary to keep track on data usage.

v1.8
-Only the extreme script is updated
-Added a few more apps, including OPSes which sens telemetry I think. I couldn't find anything explaining exactly what it does but I've been running my script for some time now and 0 issue.
-Here is the list:
Code:
"/system/system/app/OPSesAuthentication",
"/system/system/app/SeempService",
"/system/vendor/app/Rftoolkit",
-Yes, changelogs are shorter and shorter
-However, 92 apps included now!

v1.7.2
-Added Music2 to both scripts.

v1.7.1
-Removed from the script OPAppCategoryProvider as it was breaking battery stats.

v1.7
-Only uploaded the extreme version as it's experimental and the light version would be the same
-I'm trying a few more apps that seem useles, but I need more feedback. Some telemetry from Qualcomm should be gone as well.
-Here are the new apps
Code:
"/system/system/priv-app/OnePlusWizard",
"/system/system/app/AutoRegistration",
"/system/system/app/datastatusnotification",
"/system/system/app/PlayAutoInstallConfig",
"/system/system/app/RFTuner",
"/system/system/priv-app/OPAppCategoryProvider",
v1.6
-Added more apps in both scripts
-Now the light script includes this category " #APPS THAT CAN BE FOUND ON PLAY STORE" as you can reinstall them very easily (and you won't even loose them if you updated them once).
-Expect more privacy as I've deleted more telemetry from both OP and Qualcomm.
-Documentation updated
-Here is the list
Code:
"/system/system/app/GoogleContactsSyncAdapter",
"/system/system/app/OpSkin",
"/system/system/app/HTMLViewer",
"/system/system/app/uimremoteclient",
"/system/system/priv-app/CallLogBackup",
"/system/system/priv-app/CNEService",
"/system/system/priv-app/OPAod",
"/system/system/priv-app/SharedStorageBackup",
v1.5
-Fixed a few entries as they were not written properly. So some apps that were already included will actually be removed this time. Thanks to @zyvex_14 for his help and support.
-I've added these apps that can be safely removed.
Code:
"/system/system/app/Account",
"/system/system/app/QdcmFF",
"/system/system/app/WapiCertManage",
"/system/system/priv-app/DiracAudioControlService",
"/system/system/priv-app/OPCellBroadcastReceiver",
-As always, I've updated the advanced documentation.
-You can now download a .txt file with all the documentation: all system apps are sorted and the shady ones are explained.

Now, Tomatot Debloater Extreme v1.5 removes 72 apps and your device still runs perfectly, if not better
Tomatot Debloater Light v1.5 42 apps and you basically don't loose any feature


v1.4
-Quite satisfying build: I feel like the script is almost final.
-Here are the new lines I added, to the different versions.
"/system/system/app/OPBackup",
Code:
"/system/system/priv-app/BackupRestoreConfirmation",
"/system/system/priv-app/Tag",
"/system/system/priv-app/OPFaceUnlock",
"/system/system/priv-app/EmergencyInfo",
"/system/system/priv-app/Turbo",
v1.3
I forgot to update the scripts when they're flashed so TWRP will display "v1.2 when it's actually v1.3, so no worries
-Merged with xXx all the apps where I was sure they could be removed without risks. Still some apps I need to sort out.
-Now I have 2 scripts
LIGHT = SAFE TO DELETE FOR ALMOST EVERYONE + APPS THAT CAN BE FOUND ON PLAY STORE (they will just become user apps if you updated them at least once)
EXTREME= SAFE TO DELETE FOR ALMOST EVERYONE + APPS THAT CAN BE FOUND ON PLAY STORE + SAFE TO DELETE IF YOU USE ALTERNATIVE APPS OR JUST DON'T NEED THE APP + EXPERIMENTAL STUFF SOMETIMES

To see their content, check advanced documentation.

v1.2
-Added OP user apps (that you can uninstall without root when to flash a new ROM). I didn't think of them at first because they're easy to remove and once you do, they don't come back after you reinstall the ROM. However, with the script, they will leave the system partition for good, which is cleaner. And it will be useful for people who didn't delete them already.
-Removed "usb_drivers.iso." it's what makes the windows explorer show the OP6 as a CDROM when you plug it to your computer. So you can have access to drivers. It's pretty useless except for the first time you plug your phone to your computer. And still, there are plenty other ways to install drivers.
-I've updated the list of the apps in the first post.

v1.1
-Fixed the "card" app.

v1
-Initial release


Advanced documentation

ALL system apps which are on our device are displayed here.
Status: WIP but almost completely sorted.

How are they sorted?
First, by categories (each category starting with #).
Then, they're sorted by their type (reserve / app / priv-app / other)
Then, simply by alphabetic order.

What do the scripts include?
Code:
### Invisible
"/system/system/reserve/OPForum",
"/system/system/reserve/OPNote",
"/system/system/app/AntHalService",
"/system/system/app/AutoRegistration",
"/system/system/app/BasicDreams",
"/system/system/app/BookmarkProvider",
"/system/system/app/BTtestmode",
"/system/system/app/BuiltInPrintService",
"/system/system/app/card",
"/system/system/app/DiracManager",
"/system/system/app/EasterEgg",
"/system/system/app/EngineeringMode",
"/system/system/app/EngSpecialTest",
"/system/system/app/GooglePrintRecommendationService",
"/system/system/app/GoogleTTS",
"/system/system/app/LogKitSdService",
"/system/system/app/NFCTestMode",
"/system/system/app/oem_tcma",
"/system/system/app/OemAutoTestServer",
"/system/system/app/OEMLogKit",
"/system/system/app/OPBugReportLite",
"/system/system/app/OPLiveWallpaper",
"/system/system/app/OPSesAuthentication",
"/system/system/app/OPWidget",
"/system/system/app/PartnerBookmarksProvider",
"/system/system/app/PhotosOnline",
"/system/system/app/PlayAutoInstallConfig",
"/system/system/app/QdcmFF",
"/system/system/app/RFTuner",
"/system/system/app/SensorTestTool",
"/system/system/app/SoterService",
"/system/system/app/Stk",
"/system/system/app/SeempService",
"/system/system/app/talkback",
"/system/system/app/uimremoteclient",
"/system/system/app/Videos",
"/system/system/app/WallpaperBackup",
"/system/system/app/WapiCertManage",
"/system/system/app/WebViewStub",
"/system/system/app/WifiRfTestApk",
"/system/system/priv-app/DiracAudioControlService",
"/system/system/priv-app/GoogleFeedback",
"/system/system/priv-app/OPCellBroadcastReceiver",
"/system/system/priv-app/Tag",
"/system/system/etc/usb_drivers.iso",

### Light
"/system/system/reserve/OPBackupRestore",
"/system/system/reserve/OPFilemanager",
"/system/system/reserve/OPIconpackCircle",
"/system/system/reserve/OPIconpackOnePlus",
"/system/system/reserve/OPIconpackSquare",
"/system/system/reserve/SoundRecorder",
"/system/system/reserve/Weather",
"/system/system/app/Account",
"/system/system/app/BackupRestoreRemoteService",
"/system/system/app/DeskClock",
"/system/system/app/Drive",
"/system/system/app/Duo",
"/system/system/app/GooglePay",
"/system/system/app/HTMLViewer",
"/system/system/app/Music2",
"/system/system/app/NVBackupUI",
"/system/system/app/OPPush",
"/system/system/app/YouTube",
"/system/system/priv-app/BackupRestoreConfirmation",
"/system/system/priv-app/CallLogBackup",
"/system/system/priv-app/GoogleRestore",
"/system/system/priv-app/GoogleBackupTransport",
"/system/system/priv-app/OPAppLocker",
"/system/system/priv-app/OPDeviceManager",
"/system/system/priv-app/OPDeviceManagerProvider",
"/system/system/priv-app/SharedStorageBackup",
"/system/system/priv-app/Turbo",



### EXTREME
"/system/system/app/CalendarGoogle",
"/system/system/app/Chrome",
"/system/system/app/datastatusnotification",
"/system/system/app/Gmail2",
"/system/system/app/GoogleContactsSyncAdapter",
"/system/system/app/Maps",
"/system/system/app/OPBackup",
"/system/system/app/OpSkin",
"/system/system/app/Photos",
"/system/system/priv-app/CNEService",
"/system/system/priv-app/EmergencyInfo",
"/system/system/priv-app/HotwordEnrollmentOKGoogleWCD9340",
"/system/system/priv-app/HotwordEnrollmentXGoogleWCD9340",
"/system/system/priv-app/OPAod",
"/system/system/priv-app/OPFaceUnlock",
"/system/system/priv-app/Velvet",


#TO REMOVE ONLY AFTER FIRST SETUP (AFTER A CLEAN FLASH) (included in light script)
"/system/system/priv-app/GoogleOneTimeInitializer",
"/system/system/priv-app/OnePlusWizard",
"/system/system/priv-app/SetupWizard",

#____


#SAFE TO DELETE IF YOU DONT USE GOOGLE SERVICES AT ALL(microG for example)
"/system/system/app/KeyChain",
"/system/system/priv-app/ConfigUpdater",
"/system/system/priv-app/GmsCore",
"/system/system/priv-app/GooglePartnerSetup",
"/system/system/priv-app/GoogleServicesFramework",
"/system/system/priv-app/Phonesky",

#SAFE TO REMOVE IF YOU DON'T USE IT (but most likely you'll want them)
"/system/system/app/Calculator",
"/system/system/app/LatinImeGoogle",
"/system/system/app/LiveWallpapers",
"/system/system/app/OPLongshot",
"/system/system/app/OPSafe",
"/system/system/priv-app/Contacts",
"/system/system/priv-app/Dialer",
"/system/system/priv-app/DocumentsUI",
"/system/system/priv-app/OnePlusCamera",
"/system/system/priv-app/OnePlusCameraService",
"/system/system/priv-app/OnePlusGallery",
"/system/system/priv-app/OPLauncher2
"/system/system/priv-app/WallpaperCropper",


#!!!APPS NOT SORTED (probably core, try at your own risk)
###app
"/system/system/app/Bluetooth",
"/system/system/app/BluetoothExt",
"/system/system/app/BluetoothMidiService",
"/system/system/app/CallFeaturesSetting",
"/system/system/app/CaptivePortalLogin",
"/system/system/app/CarrierDefaultApp",
"/system/system/app/CertInstaller",
"/system/system/app/ConfUrlDialer",
"/system/system/app/CtsShimPrebuilt",
"/system/system/app/DeviceInfo",
"/system/system/app/DynamicDSService",
"/system/system/app/embms",
"/system/system/app/GoogleExtShared",
"/system/system/app/ims",
"/system/system/app/imssettings",
"/system/system/app/NxpNfcNci",
"/system/system/app/NxpSecureElement",
"/system/system/app/OPIpTime",
"/system/system/app/OPOnlineConfig",
"/system/system/app/OPMmsLocationFramework",
"/system/system/app/OPTelephonyDiagnoseManager",
"/system/system/app/OPWallpaperResources",
"/system/system/app/PacProcessor",
"/system/system/app/PrintSpooler",
"/system/system/app/QtiTelephoneService",
"/system/system/app/remotessimlockservice",
"/system/system/app/SCardService",
"/system/system/app/SimAppDialog",
"/system/system/app/SimSettings",
"/system/system/app/smcinvokepkgmgr",
"/system/system/app/SmsPlugger",
"/system/system/app/Traceur",
"/system/system/app/uimlpaservice",
"/system/system/app/WAPPushManager",

####priv-app
"/system/system/priv-app/AndroidPlatformServices",
"/system/system/priv-app/BlokedNumberProvider",
"/system/system/priv-app/CalendarProvider",
"/system/system/priv-app/CarrierConfig",
"/system/system/priv-app/com.qualcomm.location",
"/system/system/priv-app/ContactsProvider",
"/system/system/priv-app/CtsShimPrivPrebuilt",
"/system/system/priv-app/DefaultContainerService",
"/system/system/priv-app/DownloadProviderUI",
"/system/system/priv-app/dpmserviceapp",
"/system/system/priv-app/ExternalStorageProvider",
"/system/system/priv-app/FusedLocation",
"/system/system/priv-app/GoogleExtServices",
"/system/system/priv-app/GooglePackageInstaller",
"/system/system/priv-app/IFAAService",
"/system/system/priv-app/InputDevices",
"/system/system/priv-app/ManagedProvisioning",
"/system/system/priv-app/MediaProvider",
"/system/system/priv-app/MmsService",
"/system/system/priv-app/MtpDocumentProvider",
"/system/system/priv-app/oneplus-framework-res",
"/system/system/priv-app/OPAppCategoryProvider",
"/system/system/priv-app/OPMms",
"/system/system/priv-app/OPNetworkSetting",
"/system/system/priv-app/OPSettingProvider",
"/system/system/priv-app/OPSimContacts",
"/system/system/priv-app/OPsystemUI",
"/system/system/priv-app/OPWifiApSettings",
"/system/system/priv-app/ProxyHandler",
"/system/system/priv-app/qcrilmsgtunnel",
"/system/system/priv-app/seccamservice",
"/system/system/priv-app/Settings",
"/system/system/priv-app/SettingsIntelligence",
"/system/system/priv-app/Shell",
"/system/system/priv-app/StatementService",
"/system/system/priv-app/StorageManager",
"/system/system/priv-app/Telecom",
"/system/system/priv-app/TelephonyProvider",
"/system/system/priv-app/TeleService",
"/system/system/priv-app/UserDictionaryProvider",
"/system/system/priv-app/VpnDialogs",
"/system/system/priv-app/WfdService",


# Some explanation
# Chrome = removed from the extreme script as it leads to Android having trouble properly selecting a working webview.
# CNEService = necessary in order to make VoWIFI work. Don't delete it if you're in the US and using it. I don't know 
# datastatusnotification = allows to cap data when you've reached the limit of your plan
# DeskClock = useless widget
# DiracManager = some audio manager that seems useless
# EmergencyInfo = could break double tap power button to launch camera, as well as being the app necessary to setup emergency info (obviously)
# GoogleTTS = Text to Speech, it's for disabled persons. I'm sorry if you need it but unfortunately it's useless for a majority of people.
# HotwordEnrollmentXGoogleWCD9340 = makes OK Google work.
# OPAod = ambient display
# OPAppCategoryProvider = make battery stats work properly
# OPCellBroadcastReceiver = so you get alerts when there's a big issue like a natural disaster...
# ...I've never seen it in action and I think most countries don't have it. It could be important to you so be careful.
# OPOnlineConfig = DONT REMOVE IT or you won't be able to boot.
# OPSafe = it allows to see data usage in settings
# OpSkin = apparently necessary for substratum
# NVBackupUI = OnePlus Backup solution. goes with OPBackup
# QdcmFF = some Qualcomm software to make the screen better. I don't think it's used on the OP6 and it would probably make colors less accurate. 
# Phonesky = Play Store
# PrintSpooler = if removed, break settings (bluetooth/connection preferences)
# PlayAutoInstallConfig = basically allows the OEM or the carrier to download application behind your back, great feature :)
# SeempService = solution from Qualomm meant to possibly fight against Malware... Don't trust it.
# SharedStorageBackup, not sure, probably related to Google Backup, caution with this one. Couldn't find any good explanation anywhere.
# Tags = NFC Tags (it's not used by 99,9% of the population)
# Turbo = device health services
# uimremoteclient qualcomm bullshit
# usb_drivers.iso = when you plug your phone to your PC, it shows the phone as a CDROM so you can install drivers. Should be useless if you already have TWRP. ;)
# Velvet = Google app
# WebViewStub = not necessary with chrome webview
# WfdService = Wifi Direct
# YouTube apparently doesn't stop YouTube Vanced to work

# I think the other apps I removed speak for themselves. Apps with a fancy advanced name such as "EngineeringMode" are usually useles.
The Following 9 Users Say Thank You to Tomatot- For This Useful Post: [ View ] Gift Tomatot- Ad-Free
20th November 2018, 12:42 PM |#3  
zyvex_14's Avatar
Member
Flag Bourg-La-Reine
Thanks Meter: 28
 
More
Works like a charm for me, many thanks.

I just had to edit your file for the "card" app, + few others lines I deleted to keep some apps I use, such as 'Duo'.
In your file, it is written "Card", but my app was named 'card' and apparently the C in capital letter makes it not work (for this app specifically).
The Following 2 Users Say Thank You to zyvex_14 For This Useful Post: [ View ] Gift zyvex_14 Ad-Free
20th November 2018, 12:48 PM |#4  
Tomatot-'s Avatar
OP Senior Member
Thanks Meter: 960
 
More
Quote:
Originally Posted by zyvex_14

Works like a charm for me, many thanks.

I just had to edit your file for the "card" app, + few others lines I deleted to keep some apps I use, such as 'Duo'.
In your file, it is written "Card", but my app was named 'card' and apparently the C in capital letter makes it not work (for this app specifically).

Wow, you're already a pro! Well done mate. I don't know if it was your experience with editing a script but if it is, I'm glad my my guide makes sense and that some users already benefit from it. And thank you for pointing out my mistake.

I'm uploading a 1.1 update with the fix.

Don't forget to flash again your script if you update your ROM.
The Following 3 Users Say Thank You to Tomatot- For This Useful Post: [ View ] Gift Tomatot- Ad-Free
20th November 2018, 12:53 PM |#5  
zyvex_14's Avatar
Member
Flag Bourg-La-Reine
Thanks Meter: 28
 
More
First time I manipulated and edited this kind of file, so many thanks for your tuto, very helpful in my case.

Just one additionnal question, is there somewhere a list of all bloatwares that can be safely removed? Or is your list exhaustive for our OP6?
20th November 2018, 01:03 PM |#6  
Tomatot-'s Avatar
OP Senior Member
Thanks Meter: 960
 
More
Quote:
Originally Posted by zyvex_14

First time I manipulated and edited this kind of file, so many thanks for your tuto, very helpful in my case.

Just one additionnal question, is there somewhere a list of all bloatwares that can be safely removed? Or is your list exhaustive for our OP6?

Humm usually on different when you search for it on Google, you find threads that explain what services to disable, but 99% of the time they're also device specific.

I've never found a universal list with all the bloatware common to all Android phones. If you have a doubt about an app in particular, google it and you'll have your answer. However, what I've found out trying different scripts is that there are some apps i can freeze without any consequences, whereas if I try to delete them with my script, the phone will end up in a bootloop.

Unfortunately, this project is very recent for me and I didn't do any exhaustive testing so I don't know exactly what apps were breaking my script.

Ideally, i'd have to create another script that bring back the apps I remove so I can try one by one and see which apps are safe to remove. Because right now, everytime, flashing back OOS, rebooting to make sure it works, then going back, flashing my script, checking again, etc. it takes a lot of time so it will take some time before I can be more accurate.

At least right now I have a good base of what apps I'm sure I can remove.
Now when I'll have enough time I could try one by one to delete apps and see how it goes. I just to find a way to not have to reflash the whole system every time.

If anyone has a suggestion he's welcome!

I'd say that @Zios01 knows a lot about the topic since he probably tried himself what apps are safe to debloat.
You can read his script as well to see what apps he removes and you can assume it's safe to add them to my script.
The Following 2 Users Say Thank You to Tomatot- For This Useful Post: [ View ] Gift Tomatot- Ad-Free
20th November 2018, 01:12 PM |#7  
zyvex_14's Avatar
Member
Flag Bourg-La-Reine
Thanks Meter: 28
 
More
I perfectly understand that you can't try one-by-one all of them, it gonna turn you crazy otherwise to flash-reboot-check and so on...

As you wrote, this is a good start and a good base, let's see also if someone has more experience with the others apps/bloatwares.

Anyway, thanks again for your answers and contact provided, I will try to find his script as well.
20th November 2018, 01:17 PM |#8  
Tomatot-'s Avatar
OP Senior Member
Thanks Meter: 960
 
More
Quote:
Originally Posted by zyvex_14

I perfectly understand that you can't try one-by-one all of them, it gonna turn you crazy otherwise to flash-reboot-check and so on...

As you wrote, this is a good start and a good base, let's see also if someone has more experience with the others apps/bloatwares.

Anyway, thanks again for your answers and contact provided, I will try to find his script as well.

Here it is.

I had to add the .txt extension to upload it. Also, I changed the name so it won't work. It's just for "science".

You will see he doesn't use the same "language" at all, and it's way more complicated than my script. However, it's not hard to spot the apps he's referring to.

Btw, as I already said, the good thing with this script is that it will ignore errors. So if you add a line to your current script, you can flash it and it will just remove the one app you added. You don't have to make an entire new file for your v2.
Attached Files
File Type: txt updater-script xXx.txt - [Click for QR Code] (54.9 KB, 88 views)
The Following 3 Users Say Thank You to Tomatot- For This Useful Post: [ View ] Gift Tomatot- Ad-Free
20th November 2018, 02:14 PM |#9  
zyvex_14's Avatar
Member
Flag Bourg-La-Reine
Thanks Meter: 28
 
More
OK, so I added several lines based on XxX script.
I did a reboot and no bootloop, that is already a good point .

Now I am going to test my phone and if everything works ok and still flawless, I will share my file.
The Following 2 Users Say Thank You to zyvex_14 For This Useful Post: [ View ] Gift zyvex_14 Ad-Free
20th November 2018, 02:31 PM |#10  
Tomatot-'s Avatar
OP Senior Member
Thanks Meter: 960
 
More
Quote:
Originally Posted by zyvex_14

OK, so I added several lines based on XxX script.
I did a reboot and no bootloop, that is already a good point .

Now I am going to test my phone and if everything works ok and still flawless, I will share my file.

When I did my little experiments and I was deleting the wrong files, it was just not booting, stucking on OnePlus logo. Just once it booted, but shut down immediately and took me to recovery.

So you should be fine. But yeah maybe only after a week or something we'll find out that a tiny but sometimes useful feature doesn't work.
The Following User Says Thank You to Tomatot- For This Useful Post: [ View ] Gift Tomatot- Ad-Free
20th November 2018, 02:33 PM |#11  
Macusercom's Avatar
Senior Member
Flag Vienna
Thanks Meter: 274
 
More
Thanks for your work! I would suggest using Magisk if possible as the changes aren't permanent. Except if you want to achieve that it's permanent
Post Reply Subscribe to Thread

Tags
bloatware, remove, script, system apps

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes