[DEBLOAT] [OOS] [OP7 / 7Pro] Tomatot Debloater 1.2 (+++Battery, RAM, Privacy)

Search This thread

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
Hello guys,

Introduction
I'm the proud owner of a OnePlus 6. For many reasons, I don't plan to switch to one of its successor in the near future.

My debloater is quite popular and appreciated by the OP6 community and so I've decided to adapt it to make it fully compatible with the 7.

There are two things you need to know:
-Since I don't have the device, I can't try new stuff myself. Therefore, expect limited support for me.
-Overall, apps on the OP7 are almost the same. There are only a few new apps (and a few apps don't exist anymore)
-Regarding custom ROMs, you can always check my scripts available on the OP6 thread: ( https://xdaforums.com/oneplus-6/development/tool-tomatot-debloater-basic-script-to-t3869427/ )

Note: the rest of this post is just a copy/paste from the original thread.


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. :cool:



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.

With this script, you'll be able to skip the very boring process of removing/freezing all the system apps you don't use.

You can use this script with no worries whenever you flash your new ROM.

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.


Where can I get more info?
Check the .txt file in the download section. It lists all the apps included in the different scripts AND all the apps not included (so you can see what apps you want to potentially add, it's much easier to work like that)


How are the apps sorted in the .txt file?
-First, by categories (each category starting with #) (invisible, light, extreme, etc.)
-Then, they're sorted by their type (reserve / app / priv-app / other)
-Then, simply by alphabetic order.
-At the end of the document file, there are some explanations about some apps that can sound... mysterious about whether it's safe or not to delete them.


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

-In general, search this thread if you want more details / understand why.


F.A.Q.
-I don't want to use this debloater anymore or it broke something I miss, how can I go back to normal?
=> Dirty flash your current setup (ROM, twrp, reboot to twrp, magisk, kernel, anything else you want)
-Does this script work for X or Y ROM? Can you make a debloater for X or Y ROM?
=> If you understand how my tool work, then you will understand that my scripts can potentially work on any ROMs, but each ROM has its specific apps so some bloatware won't be removed, most likely. I won't support any new ROM except if I end up trying it myself. I prefer to avoid to create new scripts blindly especially if I've never experienced the ROM.
-I flashed your deblaoter and now some apps keep force closing
=> "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)."


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/details?id=com.amaze.filemanager&hl=en_AU )
-TWRP

Then you have two alternatives
a) Use your computer (Windows): you will need Zip Builder https://xdaforums.com/android/software-hacking/tool-zip-builder-v4-2-1-build-sign-t3739556

b) Use your phone: then you will need MiXplorer ( https://xdaforums.com/showthread.php?t=1523691 )

Steps to follow
1) Download my script.
2) Unzip it. Browse to META-INFcomgoogleandroid 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

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.

Thanks to @xXx for always being available to help me.


XDA:DevDB Information
Tomatot Debloater, Tool/Utility for the OnePlus 7 Pro

Contributors
Tomatot-

Version Information
Status: Stable

Created 2019-05-28
Last Updated 2019-07-17
 

Attachments

  • Tomatot-Debloater-OP7-OOS-Invisible-1.0.zip
    126.8 KB · Views: 1,617
  • Tomatot-Debloater-OP7-OOS-Light-1.0.zip
    127 KB · Views: 1,398
  • Tomatot-Debloater-OP7-OOS-Extreme-1.0.zip
    127.3 KB · Views: 1,133
  • Tomatot-Debloater-OP7-OOS-Invisible-1.1.zip
    126.7 KB · Views: 902
  • Tomatot-Debloater-OP7-OOS-Light-1.1.zip
    127 KB · Views: 2,230
  • Tomatot-Debloater-OP7-OOS-Extreme-1.1.zip
    127.2 KB · Views: 945
  • Tomatot-Debloater-OP7-OOS-Invisible-1.2.zip
    126.7 KB · Views: 4,127
  • Tomatot-Debloater-OP7-OOS-Extreme-1.2.zip
    126.8 KB · Views: 4,091
Last edited:

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
Changelog

Tomatot Debloater 1.2
- LiveWallpapersPicker moved to the extreme script
- OPLiveWallpaper moved to the extreme script

Tomatot Debloater 1.1

-All apps in /reserve are now deleted in the invisible script. If new apps are added by OP, they'll be automatically deleted as I added the whole folder (you can check the script to understand). Thanks to @nirogu325 for the idea!
-Added OPWidget, it seems to be a new app added by OP
-Added Backup in the light script.
-Added OPBreathMode to the extreme script (Zen mode).

Tomatot Debloater 1.0
-Mostly the same as the Tomatot Debloater 3.2 for the OP6 ( https://xdaforums.com/oneplus-6/development/tool-tomatot-debloater-basic-script-to-t3869427 )
-Removed the OP6 apps that don't exist on the OP7
-Added a few new apps that seem uselesss. Since I can't test myself, I'm not sure of their usefulness and that's why I added them in the extreme script:
Netflix_Activation (invisible)
Netflix_Stub (invisible)
OPScreenRecord (extreme)
OPSoundTuner (extreme)
Qmmi (extreme)
daxService (extreme)
TSDM (extreme)
 
Last edited:

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
Sorry for this long post, but I'd like to try it so my thread gets referenced by Google in case people using other devices wonder if they can remove some apps or not.


### List of systems apps SORTED & EXPLAINED 4.1

### Invisible
"/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/CtsShimPrebuilt",
"/system/system/app/EasterEgg_O2",
"/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/OEMLogKit",
"/system/system/app/oem_tcma",
"/system/system/app/OPBugReportLite",
"/system/system/app/OPCommonLogTool",
"/system/system/app/OPLiveWallpaper",
"/system/system/app/OPPush",
"/system/system/app/PartnerBookmarksProvider",
"/system/system/app/PhotosOnline",
"/system/system/app/PlayAutoInstallConfig",
"/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/Traceur",
"/system/system/app/WallpaperBackup",
"/system/system/app/WapiCertManage",
"/system/system/app/WifiRfTestApk",
"/system/system/priv-app/CtsShimPrivPrebuilt",
"/system/system/priv-app/OPCellBroadcastReceiver",
"/system/system/priv-app/TagGoogle",
"/system/system/product/app/uimremoteclient",
"/system/system/product/priv-app/GoogleFeedback",
"/system/system/etc/usb_drivers.iso",
"/vendor/etc/apps",


### Light
"/system/system/app/ARCore_stub",
"/system/system/app/BackupRestoreRemoteService",
"/system/system/app/DiracManager",
"/system/system/app/GooglePay",
"/system/system/app/HTMLViewer",
"/system/system/app/NVBackupUI",
"/system/system/app/OPScreenRecord",
"/system/system/priv-app/BackupRestoreConfirmation",
"/system/system/priv-app/CallLogBackup",
"/system/system/priv-app/DiracAudioControlService",
"/system/system/priv-app/ManagedProvisioning",
"/system/system/priv-app/OnePlusWizard",
"/system/system/priv-app/OPDeviceManager",
"/system/system/priv-app/OPDeviceManagerProvider",
"/system/system/priv-app/SharedStorageBackup",
"/system/system/product/app/Account",
"/system/system/product/app/atfwd",
"/system/system/product/app/CalendarGoogle",
"/system/system/product/app/Chrome",
"/system/system/product/app/Drive",
"/system/system/product/app/Duo",
"/system/system/product/app/Gmail2",
"/system/system/product/app/GoogleTTS",
"/system/system/product/app/Music2",
"/system/system/product/app/PhotoTable",
"/system/system/product/app/QdcmFF",
"/system/system/product/app/talkback",
"/system/system/product/app/Videos",
"/system/system/product/app/YouTube",
"/system/system/product/priv-app/AndroidAutoStub",
"/system/system/product/priv-app/GoogleOneTimeInitializer",
"/system/system/product/priv-app/SetupWizard",
"/system/system/product/priv-app/Turbo",
"/data/india/india.img",
"/system/system/india",



### EXTREME
"/system/system/app/Backup",
"/system/system/app/BackupRestoreRemoteService",
"/system/system/app/BluetoothMidiService",
"/system/system/app/BookmarkProvider",
"/system/system/app/LiveWallpapersPicker",
"/system/system/app/OPBackup",
"/system/system/app/OPBreathMode",
"/system/system/app/OPSafe",
"/system/system/app/OPYellowpage",
"/system/system/app/WAPPushManager",
"/system/system/priv-app/EmergencyInfo",
"/system/system/priv-app/HotwordEnrollmentOKGoogleWCD9340",
"/system/system/priv-app/HotwordEnrollmentXGoogleWCD9340",
"/system/system/priv-app/IFAAService",
"/system/system/priv-app/MusicFX",
"/system/system/priv-app/OnePlusGallery",
"/system/system/priv-app/OPAod",
"/system/system/priv-app/OPFaceUnlock",
"/system/system/priv-app/ProxyHandler",
"/system/system/priv-app/VpnDialogs",
"/system/system/product/app/datastatusnotification",
"/system/system/product/app/GoogleContactsSyncAdapter",
"/system/system/product/app/GoogleLocationHistory",
"/system/system/product/app/Maps",
"/system/system/product/app/Photos",
"/system/system/product/app/remoteSimLockAuthentication",
"/system/system/product/app/remotesimlockservice",
"/system/system/product/app/WebViewGoogle",
"/system/system/product/priv-app/OPAppLocker",
"/system/system/product/priv-app/Turbo",
"/system/system/product/priv-app/Velvet",
"/system/system/product/priv-app/WallpaperCropper",
"/system/system/product/priv-app/Wellbeing",


#____


# Some explanation
# Chrome = removed from the extreme script as it leads to Android having trouble properly selecting a working webview.
# CarrierConfig = allow to pick "preferred network type" properly, so not recommended to remove it.
# 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 = clock app (not only widget, so don't delete except if you use another clock app)
# 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.
# ManagedProvisioning = 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! :)
# ModuleMetadataGooglePrebuilt = allow to show advanced permissions
# NVBackupUI = OnePlus Backup solution. goes with OPBackup
# OPAod = ambient display
# OPAppCategoryProvider = make battery stats work properly
# OPBackup = system updater
# 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
# OPSimContacts = breaks partially OP dialer if removed
# OpSkin = apparently necessary for substratum
# OsuLogin = hotspot
# 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 :)
# SdCardService = needed for file managers
# 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.
# Stk can be necessary for some banking apps (northern Europe apparently)
# Tags = NFC Tags (it's not used by 99,9% of the population)
# Turbo = device health services
# uimremoteclient qualcomm bull****
# 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. ;)
# TeleService = necessary to detect the sim with a few network providers
# Velvet = Google app
# WebViewStub = not necessary with chrome webview
# WfdService = Wifi Direct
# YouTube apparently doesn't stop YouTube Vanced to work
# GoogleOneTimeInitializer + OnePlusWizard + SetupWizard : to delete only after setting up the device
# /vendor/etc/apps : folder full junks.
 
Last edited:

pyry666

Senior Member
Dec 27, 2012
676
231
OnePlus 9 Pro
Is it possible flash this using EXKM? I have little need for twrp right now

Edit: No I cant. Is there any other way than twrp?

Edit2: nvm I just used twrp..
 
Last edited:

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
FYI after flashing I cannot select ambient display in settings...

If you have flashed the extreme script, it should be expected. I follow many "features" of OOS. Simply because they're not necessary and are not used by the majority.

You should then use the light or invisible script. With the latter one, you should not lose any feature.
 

skj8100

Senior Member
Jan 17, 2015
67
24
If you have flashed the extreme script, it should be expected. I follow many "features" of OOS. Simply because they're not necessary and are not used by the majority.

You should then use the light or invisible script. With the latter one, you should not lose any feature.

So just reflash light or are there other procedures? Ty btw
 

Bradl79

Senior Member
May 25, 2008
3,355
4,586
J'Ville
[Updates]

The thread is now ready and the download links as well.

Don't hesitate to report how things go, I'm particularly curious about the new apps I've removed that weren't on the OP6.

Also, so far, I don't know what these apps do:
# colorservice = ???
# OPBreathMode = ???
# RemoteSimLockAuthentication = ???
# uceShimService = ???
# workloadclassifier = ???


Sometimes the system displays them in a more "friendly" way. With Titanium Backup for example you can see how the system displays their name. Sometimes their icons can help too.
OPBreathMode = Zen Mode
 

Hentai_expert

Member
Dec 15, 2018
24
9
I just flashed the extreme script and I am in love with changes, but little did I realize the amount of stuff I would be missing out on. My favorite apps such as Kindle, Tachiyomi, Article Reader, Blue mail, Binance, Block folio, Sketchfab, Oculus, Linked In, Behance,Art station, Sync Pro, Talon Pro,Chase, Robin hood, M1 Finance , Stock Market Simulator and Full dive VR. I dirty flashed OOS, but this time I will definitely debloat using the light + invisible script. The OTA option is broken, but i guess that's expected. Thanks for sharing a great tool

Sent from my GM1917 using Tapatalk
 

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
I just flashed the extreme script and I am in love with changes, but little did I realize the amount of stuff I would be missing out on. My favorite apps such as Kindle, Tachiyomi, Article Reader, Blue mail, Binance, Block folio, Sketchfab, Oculus, Linked In, Behance,Art station, Sync Pro, Talon Pro,Chase, Robin hood, M1 Finance , Stock Market Simulator and Full dive VR. I dirty flashed OOS, but this time I will definitely debloat using the light + invisible script. The OTA option is broken, but i guess that's expected. Thanks for sharing a great tool

Sent from my GM1917 using Tapatalk

You just need to install/update android system webview and pick it from developer settings and your apps will work properly, if that's what you meant.

Yes I expect people flashing my script to have a custom twrp, magisk etc. So they can't do OTA anyway, that's why I removed the updater.

Thanks for your feedback
 
  • Like
Reactions: Pfeffernuss

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
Tomatot Debloater 1.1

-All apps in /reserve are now deleted in the invisible script. If new apps are added by OP, they'll be automatically deleted as I added the whole folder (you can check the script to understand). Thanks to @nirogu325 for the idea!
-Added OPWidget, it seems to be a new app added by OP
-Added Backup in the light script.
-Added OPBreathMode to the extreme script (Zen mode).

Thanks to @xXx for keeping me informed about latest OP bloat. :D
 
Last edited:
  • Like
Reactions: Kookitza

Hentai_expert

Member
Dec 15, 2018
24
9
You just need to install/update android system webview and pick it from developer settings and your apps will work properly, if that's what you meant.



Yes I expect people flashing my script to have a custom twrp, magisk etc. So they can't do OTA anyway, that's why I removed the updater.



Thanks for your feedback
Bro that's insane. I flashed the extreme script again and updated my web view to beta-- everything works. Thanks man. I can finally enjoy my most favorite app Tachiyomi.

Sent from my GM1917 using Tapatalk
 

Tomatot-

Senior Member
May 11, 2012
1,663
1,602
OnePlus 6
Bro that's insane. I flashed the extreme script again and updated my web view to beta-- everything works. Thanks man. I can finally enjoy my most favorite app Tachiyomi.

Sent from my GM1917 using Tapatalk

What happened to you got reported a million of times on my original thread so I know how to deal with it :D

It's mentioned in OP but w/e, you're the first one on this thread so it's fine.
 

cutezi

Member
Feb 16, 2018
41
14
Appreciate you moving and updating your tool for 7 pro. Been using it since OP6 and now to OP7Pro

Hope you continue updating it as long as possible.

Thanks :)
 
  • Like
Reactions: Tomatot-

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    Hello guys,

    Introduction
    I'm the proud owner of a OnePlus 6. For many reasons, I don't plan to switch to one of its successor in the near future.

    My debloater is quite popular and appreciated by the OP6 community and so I've decided to adapt it to make it fully compatible with the 7.

    There are two things you need to know:
    -Since I don't have the device, I can't try new stuff myself. Therefore, expect limited support for me.
    -Overall, apps on the OP7 are almost the same. There are only a few new apps (and a few apps don't exist anymore)
    -Regarding custom ROMs, you can always check my scripts available on the OP6 thread: ( https://xdaforums.com/oneplus-6/development/tool-tomatot-debloater-basic-script-to-t3869427/ )

    Note: the rest of this post is just a copy/paste from the original thread.


    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. :cool:



    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.

    With this script, you'll be able to skip the very boring process of removing/freezing all the system apps you don't use.

    You can use this script with no worries whenever you flash your new ROM.

    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.


    Where can I get more info?
    Check the .txt file in the download section. It lists all the apps included in the different scripts AND all the apps not included (so you can see what apps you want to potentially add, it's much easier to work like that)


    How are the apps sorted in the .txt file?
    -First, by categories (each category starting with #) (invisible, light, extreme, etc.)
    -Then, they're sorted by their type (reserve / app / priv-app / other)
    -Then, simply by alphabetic order.
    -At the end of the document file, there are some explanations about some apps that can sound... mysterious about whether it's safe or not to delete them.


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

    -In general, search this thread if you want more details / understand why.


    F.A.Q.
    -I don't want to use this debloater anymore or it broke something I miss, how can I go back to normal?
    => Dirty flash your current setup (ROM, twrp, reboot to twrp, magisk, kernel, anything else you want)
    -Does this script work for X or Y ROM? Can you make a debloater for X or Y ROM?
    => If you understand how my tool work, then you will understand that my scripts can potentially work on any ROMs, but each ROM has its specific apps so some bloatware won't be removed, most likely. I won't support any new ROM except if I end up trying it myself. I prefer to avoid to create new scripts blindly especially if I've never experienced the ROM.
    -I flashed your deblaoter and now some apps keep force closing
    => "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)."


    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/details?id=com.amaze.filemanager&hl=en_AU )
    -TWRP

    Then you have two alternatives
    a) Use your computer (Windows): you will need Zip Builder https://xdaforums.com/android/software-hacking/tool-zip-builder-v4-2-1-build-sign-t3739556

    b) Use your phone: then you will need MiXplorer ( https://xdaforums.com/showthread.php?t=1523691 )

    Steps to follow
    1) Download my script.
    2) Unzip it. Browse to META-INFcomgoogleandroid 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

    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.

    Thanks to @xXx for always being available to help me.


    XDA:DevDB Information
    Tomatot Debloater, Tool/Utility for the OnePlus 7 Pro

    Contributors
    Tomatot-

    Version Information
    Status: Stable

    Created 2019-05-28
    Last Updated 2019-07-17
    16
    Sorry for this long post, but I'd like to try it so my thread gets referenced by Google in case people using other devices wonder if they can remove some apps or not.


    ### List of systems apps SORTED & EXPLAINED 4.1

    ### Invisible
    "/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/CtsShimPrebuilt",
    "/system/system/app/EasterEgg_O2",
    "/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/OEMLogKit",
    "/system/system/app/oem_tcma",
    "/system/system/app/OPBugReportLite",
    "/system/system/app/OPCommonLogTool",
    "/system/system/app/OPLiveWallpaper",
    "/system/system/app/OPPush",
    "/system/system/app/PartnerBookmarksProvider",
    "/system/system/app/PhotosOnline",
    "/system/system/app/PlayAutoInstallConfig",
    "/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/Traceur",
    "/system/system/app/WallpaperBackup",
    "/system/system/app/WapiCertManage",
    "/system/system/app/WifiRfTestApk",
    "/system/system/priv-app/CtsShimPrivPrebuilt",
    "/system/system/priv-app/OPCellBroadcastReceiver",
    "/system/system/priv-app/TagGoogle",
    "/system/system/product/app/uimremoteclient",
    "/system/system/product/priv-app/GoogleFeedback",
    "/system/system/etc/usb_drivers.iso",
    "/vendor/etc/apps",


    ### Light
    "/system/system/app/ARCore_stub",
    "/system/system/app/BackupRestoreRemoteService",
    "/system/system/app/DiracManager",
    "/system/system/app/GooglePay",
    "/system/system/app/HTMLViewer",
    "/system/system/app/NVBackupUI",
    "/system/system/app/OPScreenRecord",
    "/system/system/priv-app/BackupRestoreConfirmation",
    "/system/system/priv-app/CallLogBackup",
    "/system/system/priv-app/DiracAudioControlService",
    "/system/system/priv-app/ManagedProvisioning",
    "/system/system/priv-app/OnePlusWizard",
    "/system/system/priv-app/OPDeviceManager",
    "/system/system/priv-app/OPDeviceManagerProvider",
    "/system/system/priv-app/SharedStorageBackup",
    "/system/system/product/app/Account",
    "/system/system/product/app/atfwd",
    "/system/system/product/app/CalendarGoogle",
    "/system/system/product/app/Chrome",
    "/system/system/product/app/Drive",
    "/system/system/product/app/Duo",
    "/system/system/product/app/Gmail2",
    "/system/system/product/app/GoogleTTS",
    "/system/system/product/app/Music2",
    "/system/system/product/app/PhotoTable",
    "/system/system/product/app/QdcmFF",
    "/system/system/product/app/talkback",
    "/system/system/product/app/Videos",
    "/system/system/product/app/YouTube",
    "/system/system/product/priv-app/AndroidAutoStub",
    "/system/system/product/priv-app/GoogleOneTimeInitializer",
    "/system/system/product/priv-app/SetupWizard",
    "/system/system/product/priv-app/Turbo",
    "/data/india/india.img",
    "/system/system/india",



    ### EXTREME
    "/system/system/app/Backup",
    "/system/system/app/BackupRestoreRemoteService",
    "/system/system/app/BluetoothMidiService",
    "/system/system/app/BookmarkProvider",
    "/system/system/app/LiveWallpapersPicker",
    "/system/system/app/OPBackup",
    "/system/system/app/OPBreathMode",
    "/system/system/app/OPSafe",
    "/system/system/app/OPYellowpage",
    "/system/system/app/WAPPushManager",
    "/system/system/priv-app/EmergencyInfo",
    "/system/system/priv-app/HotwordEnrollmentOKGoogleWCD9340",
    "/system/system/priv-app/HotwordEnrollmentXGoogleWCD9340",
    "/system/system/priv-app/IFAAService",
    "/system/system/priv-app/MusicFX",
    "/system/system/priv-app/OnePlusGallery",
    "/system/system/priv-app/OPAod",
    "/system/system/priv-app/OPFaceUnlock",
    "/system/system/priv-app/ProxyHandler",
    "/system/system/priv-app/VpnDialogs",
    "/system/system/product/app/datastatusnotification",
    "/system/system/product/app/GoogleContactsSyncAdapter",
    "/system/system/product/app/GoogleLocationHistory",
    "/system/system/product/app/Maps",
    "/system/system/product/app/Photos",
    "/system/system/product/app/remoteSimLockAuthentication",
    "/system/system/product/app/remotesimlockservice",
    "/system/system/product/app/WebViewGoogle",
    "/system/system/product/priv-app/OPAppLocker",
    "/system/system/product/priv-app/Turbo",
    "/system/system/product/priv-app/Velvet",
    "/system/system/product/priv-app/WallpaperCropper",
    "/system/system/product/priv-app/Wellbeing",


    #____


    # Some explanation
    # Chrome = removed from the extreme script as it leads to Android having trouble properly selecting a working webview.
    # CarrierConfig = allow to pick "preferred network type" properly, so not recommended to remove it.
    # 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 = clock app (not only widget, so don't delete except if you use another clock app)
    # 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.
    # ManagedProvisioning = 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! :)
    # ModuleMetadataGooglePrebuilt = allow to show advanced permissions
    # NVBackupUI = OnePlus Backup solution. goes with OPBackup
    # OPAod = ambient display
    # OPAppCategoryProvider = make battery stats work properly
    # OPBackup = system updater
    # 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
    # OPSimContacts = breaks partially OP dialer if removed
    # OpSkin = apparently necessary for substratum
    # OsuLogin = hotspot
    # 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 :)
    # SdCardService = needed for file managers
    # 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.
    # Stk can be necessary for some banking apps (northern Europe apparently)
    # Tags = NFC Tags (it's not used by 99,9% of the population)
    # Turbo = device health services
    # uimremoteclient qualcomm bull****
    # 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. ;)
    # TeleService = necessary to detect the sim with a few network providers
    # Velvet = Google app
    # WebViewStub = not necessary with chrome webview
    # WfdService = Wifi Direct
    # YouTube apparently doesn't stop YouTube Vanced to work
    # GoogleOneTimeInitializer + OnePlusWizard + SetupWizard : to delete only after setting up the device
    # /vendor/etc/apps : folder full junks.
    13
    Changelog

    Tomatot Debloater 1.2
    - LiveWallpapersPicker moved to the extreme script
    - OPLiveWallpaper moved to the extreme script

    Tomatot Debloater 1.1

    -All apps in /reserve are now deleted in the invisible script. If new apps are added by OP, they'll be automatically deleted as I added the whole folder (you can check the script to understand). Thanks to @nirogu325 for the idea!
    -Added OPWidget, it seems to be a new app added by OP
    -Added Backup in the light script.
    -Added OPBreathMode to the extreme script (Zen mode).

    Tomatot Debloater 1.0
    -Mostly the same as the Tomatot Debloater 3.2 for the OP6 ( https://xdaforums.com/oneplus-6/development/tool-tomatot-debloater-basic-script-to-t3869427 )
    -Removed the OP6 apps that don't exist on the OP7
    -Added a few new apps that seem uselesss. Since I can't test myself, I'm not sure of their usefulness and that's why I added them in the extreme script:
    Netflix_Activation (invisible)
    Netflix_Stub (invisible)
    OPScreenRecord (extreme)
    OPSoundTuner (extreme)
    Qmmi (extreme)
    daxService (extreme)
    TSDM (extreme)
    13
    Tomatot Debloater 1.2

    A very small problem is fixed: you should be able to pick your favorite live wallpaper with the invisible and light scripts. I will still remain the apks in the extreme script as I consider live wallpapers aren't absolutely necessary. Enjoy!

    And as I already mentioned, I'll do proper updates when I have more time, so around September. I have a very busy summer :D

    - LiveWallpapersPicker moved to the extreme script
    - OPLiveWallpaper moved to the extreme script

    Thanks to @iaTa for investigating the issue.
    10
    Well, everything feels more snappy and loads alot faster that's not placebo.. i could be wrong that performance improved

    Who cares. If people are happy with my work then I'm happy. If people think it's useless I don't care. There's no debate.

    There are proofs about memory and battery life in OP.

    Improvements for privacy are obvious as well, it's not a secret a lot of op and qcom apps call home. Let's not talk about google apps. :)

    Also, it always feel nice (at least for me) to not be filled with bloatware. It also makes some room for the system partition, which can be necessary in some situations.