[DEBLOAT] [OOS, Customs] Tomatot Debloater 4.1 (+++Battery, RAM, Privacy)

Search This thread

rdlr19

Member
Dec 29, 2013
28
4
San Salvador
hey guys sorry for the long waited response, so for starters the script i use theres not alot of entries for 1 fundamental reason, i dont erase what i cannot recognize in the system, now that being said hope u enjoy
P.S Before flashing i encourage u that u check the apps your about to remove, besides that everything works as normal
 

Attachments

  • Modified-script.zip
    124.9 KB · Views: 105

Arkaknio

Senior Member
Aug 16, 2008
113
42
Seville
Yes its works! Now im on oos 10.3.6 only!

Sorry, but after apply the script, Google Calendar stops working. It crashes everytime I try to open it. Reflash full OTA zip fixes the problem, so seems to be something related with the script, probably a removed app that is needed to make it work.

Do you know why this happens?.

Thanks in advance!
 

ramrastus

Senior Member
Jun 22, 2013
811
156
facebook.com
Sorry, but after apply the script, Google Calendar stops working. It crashes everytime I try to open it. Reflash full OTA zip fixes the problem, so seems to be something related with the script, probably a removed app that is needed to make it work.

Do you know why this happens?.

Thanks in advance!
Remove Google Calendar from script & flash again
 

Josef0

New member
May 29, 2020
4
0
Is there a hero who has taken the time to figure out each app or service to be deleted with a short explanation?
In the post he leaves it to you, but only of some ... :eek:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 111
    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) Officially supported custom ROMs:
    -OmniRom
    -LiquidRemix
    -Skydragon
    -ArrowOS
    -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. :cool:

    As a proof, see this
    (both screenshots were taken after a fresh boot):
    Extreme script: 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: 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.


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


    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 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://forum.xda-developers.com/an...g/tool-zip-builder-v4-2-1-build-sign-t3739556

    b) Use your phone: then you will need MiXplorer ( https://forum.xda-developers.com/showthread.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-12-23
    26
    Changelog

    Tomatot Debloater 4.1 for OOS
    -REMOVED FROM THE SCRIPT:
    Light:
    TeleService (necessary for some operators)
    Extreme:
    SdCardService (necessary for file managers)
    ModuleMetadataGooglePrebuilt (necesary for permissions)

    Tomatot Debloater 4.0 for OOS
    REMOVED/CHANGED :
    - All folders (and there are lots of them) that don't exist anymore (usually they got moved to another path)
    ADDED
    - "/data/india/india.img"; (let me know if it works)
    - A few new apps that are most likely useless.

    Previous updates:

    Tomatot Debloater 3.3
    -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!
    -Moved DiracManager to the light script since some people like using it.
    -Added OPWidget, it seems to be a new app added by OP
    -Added OPWallpaperResources to the extreme script as I'm not sure what it does
    -Removed OPSimContacts since it breaks the OP phone app.

    Tomatot Debloater 3.2

    -Added amazon apps hidden in /vendor/etc/apps
    -Removed Rftoolkit on the Omni script

    Thanks to @bojiokia and @nirogu325 for pointing me out they existed and that they were on all devices.

    Tomatot Debloater 3.1.1

    Thanks to @nirogu325 for his help to figure out how to mount /vendor and how to remove Rftoolkit properly

    Removed also a folder that doesn't exist (LiveWallpapers)

    Tomatot Debloater 3.1

    I have decided to only use " run_program("/sbin/mount", "/system"); " to mount system from now on. It seems to be the most reliable / universal way to do so.
    The Omni update has no change except I switched to the new mounting way.

    ### New entries for Invisible Script
    OPCommonLogTool
    Traceur
    Rftoolkit


    ### New entries for Light Script
    ARCore_stub
    CarrierDefaultApp
    CtsShimPrebuilt
    CtsShimPrivPrebuilt


    ### New entries for Extreme Script
    LiveWallpapersPicker
    LiveWallpapers
    OPSafe
    SdCardService
    uimremoteclient
    WAPPushManager
    DocumentsUI
    IFAAService
    OnePlusGallery
    VpnDialogs


    Tomatot Debloater 3.0
    -All main scripts that are up to date are now 3.0 for a purpose of clarity.
    -Except the LiquidRemix script, no apps have been added/removed from the scripts.
    -Omni/Liquid/Skydragon have a similar level of debloating.
    -Since a lot of users reported issues of the script not working, I figured out it was because for some reasons some recoveries don't execute busybox commands properly. I switched to edify commands. The main benefit is that it should work for everyone 100% of the time. The disadvantage is that it won't work for other devices. It might be the same path for the 6T but I need people to check. For other devices it won't work 100%. What you can try however, is to mount system before flashing. It should make the script work.

    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/showpost.php?p=78287566&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. :)

    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 :p
    -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 :cool:
    Tomatot Debloater Light v1.5 42 apps and you basically don't loose any feature :cool:


    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
    15
    Tomatot Debloater 3.0
    -All main scripts that are up to date are now 3.0 for a purpose of clarity.
    -Except the LiquidRemix script, no apps have been added/removed from the scripts.
    -Omni/Liquid/Skydragon have a similar level of debloating.
    -Since a lot of users reported issues of the script not working, I figured out it was because for some reasons some recoveries don't execute busybox commands properly. I switched to edify commands. The main benefit is that it should work for everyone 100% of the time. The disadvantage is that it won't work for other devices. It might be the same path for the 6T but I need people to check. For other devices it won't work 100%. What you can try however, is to mount system before flashing. It should make the script work.

    Since it's an important change, some feedback would be appreciated!
    13
    New update for Omnirom 10.

    A few small changes to make it 100% compatible with Android 10 and Omni.

    I know I've said it a few times already, but OOS update should come soon hopefully. :)
    12
    Tomatot Debloater 3.1

    I have decided to only use " run_program("/sbin/mount", "/system"); " to mount system from now on. It seems to be the most reliable / universal way to do so.

    Thanks to @homer667 , I've added a few apps to each OOS script.

    The Omni update has no change except I switched to the new mounting way.


    ###New entries for Invisible Script
    "/system/system/app/OPCommonLogTool",
    "/system/system/app/Traceur",
    "/system/vendor/app/Rftoolkit",

    ### New entries for Light Script
    "/system/system/app/ARCore_stub",
    "/system/system/app/CarrierDefaultApp",
    "/system/system/app/CtsShimPrebuilt",
    "/system/system/priv-app/CtsShimPrivPrebuilt",


    ### New entries for Extreme Script
    "/system/system/app/LiveWallpapersPicker",
    "/system/system/app/LiveWallpapers",
    "/system/system/app/OPSafe",
    "/system/system/app/SdCardService",
    "/system/system/app/uimremoteclient",
    "/system/system/app/WAPPushManager",
    "/system/system/priv-app/DocumentsUI",
    "/system/system/priv-app/IFAAService",
    "/system/system/priv-app/OnePlusGallery",
    "/system/system/priv-app/VpnDialogs",