[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] serajr:
Thank you for your feedback :good:

[MENTION=4695495]FcukBloat[/MENTION]

Btw, I will release an update for both scripts.

I realized that unistalling (non-root) and/or removing (root) CrashMonitor and CrashMonitorSystem from /system/app/ may be the cause of the rcahandler crashes.

For the records:

This is the rcahandler error log (interesting things in blue):

01-19 12:18:46.692: E/AndroidRuntime(2823): FATAL EXCEPTION: IntentService[RcaService]
01-19 12:18:46.692: E/AndroidRuntime(2823): Process: [B][COLOR="Blue"]com.sonymobile.rcahandler[/COLOR][/B], PID: 2823
01-19 12:18:46.692: E/AndroidRuntime(2823): java.lang.RuntimeException: java.lang.SecurityException: [B][COLOR="blue"]TLEXTRACT permission required[/COLOR][/B]
01-19 12:18:46.692: E/AndroidRuntime(2823):	at com.sonymobile.rcahandler.RcaService.onHandleIntent(RcaService.java:50)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at android.os.Handler.dispatchMessage(Handler.java:106)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at android.os.Looper.loop(Looper.java:280)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at android.os.HandlerThread.run(HandlerThread.java:65)
01-19 12:18:46.692: E/AndroidRuntime(2823): Caused by: java.lang.SecurityException: TLEXTRACT permission required
01-19 12:18:46.692: E/AndroidRuntime(2823):	at com.sonymobile.tlextract.TlCore.checkPermission(TlCore.java:694)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at com.sonymobile.tlextract.TlCore.open(TlCore.java:85)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at com.sonymobile.rcahandler.RcaHandlerDumpfile.onFileAdded(RcaHandlerDumpfile.java:360)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at com.sonymobile.rcahandler.RcaHandlerDumpfile.onBoot(RcaHandlerDumpfile.java:347)
01-19 12:18:46.692: E/AndroidRuntime(2823):	at com.sonymobile.rcahandler.RcaService.onHandleIntent(RcaService.java:41)
01-19 12:18:46.692: E/AndroidRuntime(2823):	... 4 more
01-19 12:18:47.879: E/AndroidRuntime(2865): FATAL EXCEPTION: IntentService[RcaService]

The TLEXTRACT permission seems to be missing on the system, and after I decompile rcahandler apk I could see this (in red):

<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="android.uid.system" coreApp="true" package="com.sonymobile.rcahandler" platformBuildVersionCode="26" platformBuildVersionName="8.0.0">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="com.sonyericsson.permission.CRASHMONITORNATIVE"/>
<uses-permission android:name="com.sonymobile.permission.TLEXTRACT"/>
<uses-permission android:name="com.sonymobile.permission.TRIMAREA"/>
<application android:allowBackup="false" android:defaultToDeviceProtectedStorage="true" android:directBootAware="true" android:hardwareAccelerated="false">
<uses-library android:name="com.google.protobuf-2.3.0"/>
<uses-library android:name="com.sonymobile.miscta.api"/>
<uses-library android:name="com.sonyericsson.idd"/>
<uses-library android:name="com.sonymobile.tlextract"/>
<uses-library android:name="com.sonymobile.datawasher"/>
<receiver android:exported="true" android:name=".RcaHandlerReceiver">
<intent-filter>
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.ACTION_SHUTDOWN"/>
[B][COLOR="Red"]<action android:name="com.sonymobile.crashmonitorsystemservice.DIR_UPDATED"/>[/COLOR][/B]
</intent-filter>
</receiver>
<service android:exported="false" android:name=".RcaService"/>
<activity android:label="RCA dummy activity" android:name=".DummyActivity"/>
</application>
</manifest>

The TLEXTRACT permission seems to be defined in the CrashMonitorSystem app:

<?xml version="1.0" encoding="utf-8" standalone="no"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" android:compileSdkVersion="28" android:compileSdkVersionCodename="9" android:sharedUserId="android.uid.system" coreApp="true" package="[B][COLOR="red"]com.sonymobile.crashmonitor.system[/COLOR][/B]" platformBuildVersionCode="28" platformBuildVersionName="9">
[B][COLOR="red"]<protected-broadcast android:name="com.sonymobile.crashmonitorsystemservice.DIR_UPDATED"/>[/COLOR][/B]
<permission android:name="com.sonymobile.permission.CRASHMONITORSYSTEM" android:protectionLevel="signature"/>
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/>
<uses-permission android:name="com.sonyericsson.permission.CRASHMONITORNATIVE"/>
<application android:allowBackup="false" android:defaultToDeviceProtectedStorage="true" android:directBootAware="true" android:hardwareAccelerated="false" android:process="system">
<receiver android:name=".receiver.CrashMonitorSystemReceiver">
<intent-filter>
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED"/>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<service android:exported="true" android:name="[B][COLOR="red"].service.CrashMonitorSystemService[/COLOR][/B]" android:permission="com.sonymobile.permission.CRASHMONITORSYSTEM"/>
</application>
</manifest>

So, if you still have the debloat script backup folder on system (/system/_debloat_backup), restore (move), using Root Explorer, both folders below to their original location (/system/app), and reboot:

/_system_app/CrashMonitor

/_system_app/CrashMonitorSystem

Both apps have and use libs (symlinks) which debloat script fortunately does preserve!