yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] knv01:
Hey brother of metal, i had same problem, even gmail was resistant. So i did it manually with success. There are three facebook packages, so the commands I used were:

adb shell pm uninstall –-user 0 com.facebook.appmanager
adb shell pm uninstall –-user 0 com.facebook.katana
adb shell pm uninstall –-user 0 com.facebook.system

The option -k i didn't used, because it means keep the data and cache directories.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
Well, i stopped wasting my time with facebook (cr)app and deactivated it.

I hope that i can root this device and/or use a custom rom in near future, so that i can crush this useless things with the hammer of doom :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So I hope that the bootloader patch will be released next week and I can compile the Sony AOSP and TWRP, so you get your custom ROM. :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] old.splatterhand:
A working TWRP would be a good start, that we can unlock and use xperifix.

Everything else would come it's way.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] xerxess:
can i use this script for xperia xz1?

thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Just wanted to say massive thanks! I've been starting to use your script a lot after each userdata wipe.

Before I used Titanium Backup to uninstall in bulk but this is way easier.

Some apps can't be uninstalled though so can only inactivate them.

Oh nvm! The app that I thought couldn't be uninstalled weren't in the list.

So I did pm list packages -f in adb to see where they were installed and then used an app called Package Names Viewer to find the exact package name.

I then ran the uninstaller again and it deleted the apps.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Is it possible to create a Titanium backup uninstall script?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FartyParty:
Well you can make restore/backup scripts/schedules so maybe you can do the same for removing.

But read my edit above, it was me being silly. Now when it removes literally all the bloat apps this is way faster.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Sure you can ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] wmdunn:
Just wondering, any chance this could be used on the z3 tablet compact? Thank you.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] marcogiannetta:
Great script, really elegant :good:.

Anyway it didn't work for me on 51.1.A.11.51, I had to uninstall manually via adb commands.

I should try your script on Linux, maybe it's a windows fault with something in the .bat.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Yep! Apps are uninstalled by their package name.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] tigrik7474@mail.ru:
H8266_52.0.a.3.27 ???
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
I just want to check,is it possible to run this still if i have already updated to Android Pie?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
It is. ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Trace.Oneil:
Thank you
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] javed2f:
Can u pls tell me the use of intelligentobserver. Apk found in system/app.. I cannot find anything in settings. I know its safe to delete. For my information only so that i can decide how important it is and to keep or delete.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] raziel zarafan:
Bro I wonder if u can make it for pie
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
You can do it by your own (the script itself should also work with Pie):

Simply download the v1.0_List_Installed_Apps_Info_By_Serajr.zip attached in the op, unpack it onto your pc (e.g. on the desktop of your pc), connect your device and run it (you've to enable usb debugging first, and while running the script, take care of your device's screen, ofc). The result (installed-apps-info.txt) will be created; now compare it with the 'debloat_list.sh', which you will find in 'v1.0_XZ2_Debloat-Uninstall_By_Serajr/files'. Now you can modify the debloat_list.sh (with notepad++) for your needs; when finished, save it and replace the original with your modified one in the 'v1.0_XZ2_Debloat-Uninstall_By_Serajr.zip', save it on the ext. sdcard of your device and flash it via twrp. Simple as that :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
v1.2 Released

Changelog:

What's new:

Enjoy it!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Great job as always, bro!

I can confirm, it works on my XZ2 (H8216, running Oreo) as well as now on my XZ1 (G8341, running latest Pie) :svetius:

One note:

WhatsNew and MovieCreator are not part of the debloat list. But it's not a big deal, I got rid of them manually using RootExplorer :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=3989065]serajr[/MENTION]

A linux user here

Executed the .sh file via ADB/terminal app

sh debloat_list.sh

And did a restart.

Thank you, it worked!

In my opinion, these apps are missing in the "removal list":

Google "Movies & Series"

Google "Duo"

Sony "3D Creator App"

Google "Google"

Amazon "Amazon Kindle"

Amazon "Amazon Photos"

Google "Lens"

Amazon "Prime Photos"
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Thanks for your feedback :good:

You ran the root version of the script, right?

You can increase the unwanted package list in the debloat_list.sh with those apps packages (see how-to below), and if you do it so, please share here and I add them to the list, too (as v1.3).

"com.sonymobile.pip"
"com.sonymobile.pobox"[COLOR="Blue"][B]SPACE
"new.package.1"SPACE
"new.package.2"SPACE
"new.package.3"[/B][/COLOR])
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
So they'll be in the next version. Thank you!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

Is there an easy way of listing the package names of the deactivated packages in ADB? :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
I don't know if

$ pm list packages -d -f

is what you're looking for. Worth a try.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
thank you :)

adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort

matches perfectly my needs :)

I reinstalled my device and was able to deselect some apps in the assistant, so now I have only 2 deactivated apps in my list :)

com.RonnyCSHARP.VisualGraph3D (3D Creator) < Sony

com.amazon.clouddrive.photos (Prime Photos) < Amazon
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
serajr bro sorry one question maybe you can help: i debloated also my install and removed many packages, and now only sometimes after boot i get a single FC related to "RCA handler" package/service.. not a big deal as after pressing ok it disappears completely until i reboot, and i reboot very rarely, but do you maybe know what apk that i removed that could be related to this service?

tia!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
I faced that issue, too, but I don't remember exactly the app that I removed. I remember that I had to push it back to the system in order to fix the issue.

Logcat (sdk monitor.bat) tells you what's wrong as an Error/Warning. Start Logcat as soon as possible at boot, and save the log to a txt file, after the error message pops up and you close it.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
was able to acquire logcat with an app from the store. I found the error but no clear references to the cause... near it I see many mentions to messaging app, rcs stuff etc. but I don't think I removed such stuff...

googling I see some mentions to rcahandler and crashmonitor apps together... maybe it is the crashmonitor app that I removed?

now I restored it, let's see if the error will pop up again or not!

tx!

EDIT: yes it seems restorning CrashMonitor fixed th situation... cool! :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Logcat always saving us ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Weird, I don't get any errors on a clean installed .126 (full wipe)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
i used my own debloat script (more aggressive) not the one from serajr ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] majorwedgy:
being special?

Hey there,

Trying to reinstall the amil app that I was an idiot and didnt rem before running the script. Cant seem to get the scriptt o work. Am using this, can you tell what I am doing wrong please?

adb devices

$ pm disable-user --user 0 com.sonymobile.email

Package com.sonymobile.email new state: disabled-user

$ pm enable --user 0 com.sonymobile.email

Package com.sonymobile.email new state: enabled

$ pm list packages -f -u com.sonymobile.email

package /system/app/SemcEmail.apk=com.sonymobile.email

$ pm install -r --user 0 /system/app/SemcEmail.apk

exit

adb reboot
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
What device do you have exactly, and what fw version?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] majorwedgy:
Sorry XZ2 compact and fw 52.0.a.3.27 although just about to update to 52.0.a.3.84
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Thank you! Try the following (press enter after every line):

$ pm list packages -f -u com.sonymobile.email

package /system/app/SemcEmail-release/SemcEmail-release.apk=com.sonymobile.email

$ pm install -r --user 0 /system/app/SemcEmail-release/SemcEmail-release.apk

Fingers crossed :fingers-crossed:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] majorwedgy:
you utter legend, thank you :) Out of interest, to delete the stuff that has been 'uninstalled' do I need to root the phone? because I cannot see the folder specified where they have been temporarily removed to. Thanks once again you're a star!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Yes, to get really rid of them (e.g. using Sera's v.1.2 of this thread) and free the system partition, you'll have to root the device, ofc.

OT:

But be aware you'll loose the drm keys (there's no temp root to back them up - and maybe will never be), because you have to unlock the bootloader to root the device. But

before

unlocking it's highly recommended to upgrade your device (via newflasher) to the latest 52.0.A.3.126 fw (And before running newflasher, delete the persist_X-FLASH-ALL-B6B5.sin [very important!])!!! And after unlocking, read as much as possible in this thread: https://xdaforums.com/xperia-xz2/development/recovery-twrp-3-2-2-0-touch-recovery-t3821597. And if you have further questions (and I guess, you will have ;)), please ask in the mentioned thread!

/OT
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] majorwedgy:
Thanks very much for the help, I will leave it then because rooting my XZ1 effectively ruined it - lesson learned!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Why deleting the persists sin file?

Others saying you need to remove every .ta file.

But im the end, just flash the entire firmware like I did on my locked phone in the past without any trouble.

Only the userdata.sin will cause a full wipe (but unlocking full wipes anyway and Sony backup doesn't work without drmfix.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Well, because I've already made the experience with my XZ2:

At least, if you flash another customization and you won't exclude the persist sin file, the device will lose the Android Attest Key. But even if you flash another ftf of the same customization, it won't hurt.

I had switched the customization of my brand new and locked XZ2 with newflasher - excluded only the userdata.sin - and my device had lost the Android Attest Key!

About the ta files:

I know, that newflasher will take care of them and nothing dramatic should happen, but deleting them before flashing will have no impact in any functionality of the device.

I only wanted to help, but I never forced him to do so :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Android Attest Key?

What's that and what does it?

And how do I see if I lost it?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
Service Menu > Security

I have bought a XZ1 now, and with the mentioned deleting of persist sin before flashing, it's still provided :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://xdaforums.com/xperia-xz1-co...est-key-lost-bootloader-t3829945/post78658272

Ahhh

But useless on unlocked devices :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Confirmed working on jan 2019 update XZ2
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
yes i confirm i also fixed the rcahandler FC problem some days ago restoring crashmonitor apks ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Thank you so much :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=3989065]serajr[/MENTION]

Created a TWRP installer debloat zip with a less agressive "remove" list.

It only needs TWRP support for the SYSTEM_ROOT env.

Maybe next TWRP release. :)

https://github.com/MartinX3sAndroidDevelopment/android_device_sony_tama_stock_bloat_killer

I used it and it removed unwanted apps.

I do now a longterm test and loog for logcat errors.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
[MENTION=3989065]serajr[/MENTION]

Wrote your name wrong :silly:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Cool, great job :good:

So does PackageManager (system/bin/pm) work in recovery? Great!

Just be careful not to forget to create a backup (system, vendor, oem) before flashing the zip, because from what I saw it removes the folders of the apps instead of backing them up.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you :)

Yes, but not at the moment, since the twrp doesn't use /system_root and populate /system/system

This lead to a symlink loop cycle and not usable system binaries. :)

Yes, the missing backup is intended, since it removes only system apps, which can be easily reinstalled by installing the system.sin file via newflasher :)

(And some Amazon Apps via OEM.sin).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
v1.3 released

Changelog:

[B][I][U][COLOR="Red"]v1.3 - 03/Feb/2019[/COLOR][/U][/I][/B]
- New (and same) debloat list for both Non-Root and Root versions of the script
- Keeps CrashMonitor and CrashMonitorSystem apps (which are related to [URL="https://xdaforums.com/showpost.php?p=78721481&postcount=92"]rcahandler issue[/URL])

Thanks [MENTION=4898998]Klaus N.[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Didn't you added the apps I reported? :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
I did (if you're referring on this).

[U]com.google.android.videos[/U] | /system/app/Videos/Videos.apk | Google Play Movies
[U]com.google.android.apps.tachyon[/U] | /system/app/Duo/Duo.apk | Duo
[U]com.sonymobile.scan3d[/U] | /system/app/app-scan3d-release/app-scan3d-release.apk | 3D Creator
[U]com.google.android.googlequicksearchbox[/U] | /system/priv-app/Velvet/Velvet.apk | Google
[U]com.amazon.kindle[/U] | /system/app/com.amazon.kindle/com.amazon.kindle.apk | Amazon Kindle
[U]com.google.ar.lens[/U] | /system/app/LensApp/LensApp.apk | Lens

The only missing one in the list is the:

com.amazon.clouddrive.photos

| /system/app/com.amazon.clouddrive.photos/com.amazon.clouddrive.photos.apk | Prime Photos

That's because this app is not part of the firmwares which my devices are (XZ1 Customized BR, XZ2 Customized GEL). This one ^ will be on the list today yet. ;)

Edit: Done!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
v1.4 released

Changelog:

[B][I][U][COLOR="Red"]v1.4 - 03/Feb/2019[/COLOR][/U][/I][/B]
- Added [U]com.amazon.clouddrive.photos[/U] (/system/app/com.amazon.clouddrive.photos/com.amazon.clouddrive.photos.apk | Prime Photos)

Thanks [MENTION=6031898]MartinX3[/MENTION]
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] lilbrat:
Just to let the op know it also works on the xz1..thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Thank you for your feedback mate! I also own a xz1.

Although the script is titled as xz2, it performs its debloat task based on application package names rather than physical application folder names, so basically it can be applied to any device!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Does anybody know what does com.sonymobile.rcahandler (RCAhandler.apk) ??

It began FC on my device after every reboot (just one time).

I've debloated it and then my device seems to work perflectly... I'm very curious of what it actually does (I've searched but not found)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
nvm i read your post too fast..btw i started getting rcahandler fc when i removed crashmonitor related apks, and when i restored them the rcahandler FC disappeared. but I don't know what really rcahandler does..
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, I just see it in the thread... Thx
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
Yes, I've restored the crashmonitor apps and rcahandler does no longer FC. But we still don't know what this rcahandler app does...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Crashmonitor, RCA.

Sounds like

https://en.wikipedia.org/wiki/Root_cause_analysis

I still don't understand why people grab some lists from the internet random people claiming for good to remove stuff from your firmware you don't even know if it is mandatory.

This debloat is too angry like enough other ones.

Just only debloat the apps you would "deactivate" anyway.

Nothing more.

PS:

Will complete debloat TWRP .zip with a "not angry" list soon.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
The most angry remove all google stuff and then flash microG ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
People like serajr or me are debolating sony fw since years so we know very well sony system apps and don't use any list from the web, we test personally all we do in our free time to see if system is still stable. and we like system to be as thin as possible, so our scripts fits our needs. nobody is forced to use them or like them. we debloat what we want, if you don't mind.

crashminitor apks could be safely removed in older Sony phones, now they make rca app to FC, so we had to find out ourselves this time something had changed.

if you don't like how aggressive is this/our scripts, don't use them and make your own, but don't assume things and post such things like that here.. everyone has his own approach.. thanks
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I won't hide my opinion from the public, based on my experience after years with Android phones.

Negative and positive critics are part of every human live.

Please accept it. :o

And yes, of course I will implement my own "light/soft" approach. :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] FcukBloat:
i accept them when they are sensible/correct... and not requested/wrong comments are the worst thing around

not true. me and I'm sure also serajr didn't rely on lists find in internet you mention, but on our personal findings/testings so your assumption here is completely wrong

not true. these scripts are perfect for us, so it is maybe too "angry" for you, but not for everyone just because you think that way. next time add a "imo" at the of your sentence and that will work well enough

that's what I'm doing.. in my old z3c time i made a debloat script with same approach used and appreciated from literally hundreds people, who liked trimmed system as much as possible like me, so I need something more than your opinion before changing mine. and i've also always warned that the configuration i get with my debloat is perfect for me and my usage, but can be not good for others with other usages

do what you like but why spamming about that here, make your own thread when it will be ready and peace

ps. I've been an Android user for many years as well
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hmm. You get angry and start spamming against a negative critic.

Very polite and adult. ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Pandemic:
Dont start about spamming, you spam alot in existenz telegram and he is not angry, he just respond on you :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nreuge:
I agree with you that we should not over-debloat because one day or another we realize that something we need is missing...

That beeing said, I'm interested in debloating as much as possible (considering my device usage), it frees ram unnecessary filled, it speeds up device start and it is also potentially good for battery.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Non-Root (only) script typo

The last item in the debloat list has a missing letter:

${UNINSTALL} com.amazon.clouddrive.[B][COLOR="Blue"]photo[/COLOR][/B]

The corret is:

${UNINSTALL} com.amazon.clouddrive.[B][COLOR="Blue"]photos[/COLOR][/B]

So if you plan to run the non-root script, edit the file "debloat_list.sh" and correct that line before running it (optional, ofc).

A proper fix (update) may come soon.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
v1.5 released

Changelog:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
[MENTION=3989065]serajr[/MENTION]

I've updated my device to the current 8.107 fw and ran v1.5 (root version) right after installing Martin's appropriate TWRP and Magisk 19.4 (Canary), and I can confirm, it worked flawlessly - great job as usual :svetius:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Thanks for your feedback! :good:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] apaxtc:
xz2 H8216 pie.107

I do not understand what the problem

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

Detected: H8216 (akari)

Firmware: 52.0.A.8.107

in the end I succeeded .............. but chrome browser not exit.

Copying files. . .

Debloating (uninstalling quite a few packages, standby a minute or two). . .

Failure [not installed for 0]

Failure [not installed for 0]

Failure [not installed for 0]

Failure [not installed for 0]

Failure [not installed for 0]

Failure [not installed for 0]

Cleaning. . .

Finished!

Rebooting (this may take a while). . .

error: device not found

Press any key to continue . . .
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Klaus N.:
[MENTION=1441576]galati[/MENTION]

I guess you've used the non-root script in the past, and now you ran the root one? Please read post #10 of this thread; that way, you can install chrome browser again. Once done, run the script again ;)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] apaxtc:
1.yes i use non-root version because i dont have rooted xz2

2.I really don't need chrome ! i hate this browser :) - but his uninstallation failed , I don't know why

3.I managed to do it debloat script"" in the end :)

4.thx serajr You're very good :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
"Failure [not installed for 0]" means that package (app) processed at that time couldn't be found on your device, which is good (hey, we're talking about bloatware). Firmware regions have different applications installed, so the debloat script may (or may not) find a specific app to deal with (so the error)!

Regarding Chrome app, well at least here, it is needed in order to create an new google account in settings. Removing it, I always get an error (black screen) while trying to create that account!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Deus.:
Hello all,

I just found this tool to debloat the system while I was searching for information about the com.qualcomm.qti.StatsPollManager package. Can somebody tell me what is it exactly, what it does? I can see the script removes it as well.

Thank you in advance.