[Xiaomi Redmi 2 ROMs, Kernels, Recoveries, & Other ] pirej:
Yes yes yes yes... :)

Ok, i didn't delete the test build yet, i just uploaded it so that you can do some testing.

And there is no need for a second branch on github, you need this, and maybe.. you will have to checkout if this patch is any good or needed for the fixing.

The issue i got is when making/receiving call fatal crash happens

log:

04-10 08:19:08.772 I/Telecom ( 2934): CallAudioManager: Invoking the MT_AUDIO_SPEEDUP mechanism. Transitioning into an active in-call audio state before connection service has connected the call.: ICA.aC(InCall package: com.android.dialer)@ALY

04-10 08:19:08.773 I/Telecom ( 2934): Event: Call TC@1: STOP_RINGER, null: ICA.aC(InCall package: com.android.dialer)@ALY

04-10 08:19:08.773 I/Telecom ( 2934): CallAudioModeStateMachine: Message received: MT_AUDIO_SPEEDUP_FOR_RINGING_CALL.: ICA.aC->CAMSM.pM_2004@ALY_0

04-10 08:19:08.773 I/Telecom ( 2934): CallAudioModeStateMachine: Audio focus entering SIM CALL state: ICA.aC->CAMSM.pM_2004@ALY_0

04-10 08:19:08.774 I/Telecom ( 2934): Event: Call TC@1: REQUEST_ACCEPT, null: ICA.aC(InCall package: com.android.dialer)@ALY

04-10 08:19:08.774 I/Telecom ( 2934): AsyncRingtonePlayer: Stop ringtone.

04-10 08:19:08.783 I/Telecom ( 2934): CallAudioRouteStateMachine: Message received: USER_SWITCH_EARPIECE=1101, arg1=0: ICA.sAR->CARSM.pM_USER_SWITCH_EARPIECE@ALc_0

04-10 08:19:08.789 I/ActivityManager( 2934): START u0 {act=android.intent.action.MAIN flg=0x10040000 cmp=com.android.dialer/com.android.incallui.InCallActivity (has extras)} from uid 10019 on display 0

--------- beginning of crash

04-10 08:19:09.361 F/libc ( 307): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 3780 (Binder:307_2)

04-10 08:19:09.369 I/Telecom ( 2934): InCallController: Sending updateCall [TC@1, RINGING, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO CAPABILITY_SPEED_UP_MT_AUDIO], [Properties:]]: CSW.sSH@AL8

04-10 08:19:09.372 I/Telecom ( 2934): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: CSW.sSH@AL8

04-10 08:19:09.379 I/Telecom ( 2934): InCallController: Sending updateCall [TC@1, RINGING, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO CAPABILITY_SPEED_UP_MT_AUDIO], [Properties:]]: CSW.sCC@AMA

04-10 08:19:09.384 I/Telecom ( 2934): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: CSW.sCC@AMA

04-10 08:19:09.389 I/Telecom ( 2934): CallsManager: setCallState RINGING -> ACTIVE, call: [TC@1, RINGING, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO CAPABILITY_SPEED_UP_MT_AUDIO], [Properties:]]: CSW.sA@AME

04-10 08:19:09.390 I/Telecom ( 2934): Event: Call TC@1: SET_ACTIVE, active set explicitly: CSW.sA@AME

04-10 08:19:09.390 I/Telecom ( 2934): InCallController: Sending updateCall [TC@1, ACTIVE, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO CAPABILITY_SPEED_UP_MT_AUDIO], [Properties:]]: CSW.sA@AME

04-10 08:19:09.391 I/Telecom ( 2934): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: CSW.sA@AME

04-10 08:19:09.393 W/BroadcastQueue( 2934): Permission Denial: receiving Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } to com.android.deskclock/.alarms.PhoneStateReceiver requires android.permission.READ_PRIVILEGED_PHONE_STATE due to sender android (uid 1000)

04-10 08:19:09.395 I/Telecom ( 2934): PhoneStateBroadcaster: Broadcasted state change: 2: CSW.sA@AME

04-10 08:19:09.395 W/BroadcastQueue( 2934): Permission Denial: receiving Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } to ProcessRecord{3a508fb 3864:com.android.systemui/u0a28} (pid=3864, uid=10028) requires android.permission.READ_PHONE_STATE due to sender android (uid 1000)

04-10 08:19:09.395 W/BroadcastQueue( 2934): Permission Denial: receiving Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } to com.android.deskclock/.alarms.PhoneStateReceiver requires android.permission.READ_PHONE_STATE due to sender android (uid 1000)

04-10 08:19:09.395 I/Telecom ( 2934): TelecomWakeLock: Releasing WakeLock with id: 26: CSW.sA@AME

04-10 08:19:09.396 I/Telecom ( 2934): InCallWakeLockController: Releasing full wake lock: CSW.sA@AME

04-10 08:19:09.396 I/Telecom ( 2934): ViceNotificationImpl: onCallStateChanged newState = 5: CSW.sA@AME

04-10 08:19:09.396 I/Telecom ( 2934): MyHandler: MESSAGE_CALL_ENDED

04-10 08:19:09.397 I/Telecom ( 2934): ViceNotificationImpl: processNotification DEP null

04-10 08:19:09.398 I/Telecom ( 2934): InCallController: Sending updateCall [TC@1, ACTIVE, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO CAPABILITY_SPEED_UP_MT_AUDIO], [Properties:]]: CSW.sSH@AMI

04-10 08:19:09.399 I/Telecom ( 2934): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: CSW.sSH@AMI

04-10 08:19:09.400 I/Telecom ( 2934): InCallController: Sending updateCall [TC@1, ACTIVE, com.android.phone/com.android.services.telephony.TelephonyConnectionService, tel:*********, A, childs(0), has_parent(false), [Capabilities: CAPABILITY_HOLD CAPABILITY_SUPPORT_HOLD CAPABILITY_MUTE CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO CAPABILITY_SPEED_UP_MT_AUDIO], [Properties:]]: CSW.sCC@AMQ

04-10 08:19:09.401 I/Telecom ( 2934): InCallController: Components updated: [ComponentInfo{com.android.dialer/com.android.incallui.InCallServiceImpl}]: CSW.sCC@AMQ

04-10 08:19:09.401 I/Telecom ( 2934): Event: Call TC@1: CAPABILITY_CHANGE, Current: [[ hld sup_hld mut !v2a spd_aud]], Removed [[]], Added [[ hld]]: CSW.sCC@AMQ

04-10 08:19:09.522 F/DEBUG ( 8448): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

04-10 08:19:09.522 F/DEBUG ( 8448): Build fingerprint: 'Xiaomi/wt88047/wt88047:5.1.1/LMY47V/V8.2.1.0.LHJMIDL:user/release-keys'

04-10 08:19:09.522 F/DEBUG ( 8448): Revision: '0'

04-10 08:19:09.522 F/DEBUG ( 8448): ABI: 'arm'

04-10 08:19:09.523 F/DEBUG ( 8448): pid: 307, tid: 3780, name: Binder:307_2 >>> /system/bin/audioserver <<<

04-10 08:19:09.523 F/DEBUG ( 8448): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0

04-10 08:19:09.523 F/DEBUG ( 8448): r0 00000000 r1 ef4ed92c r2 ef4ed954 r3 ef4ed94c

04-10 08:19:09.523 F/DEBUG ( 8448): r4 ef2b7200 r5 ee2fcf10 r6 efd29f7d r7 0000003c

04-10 08:19:09.523 F/DEBUG ( 8448): r8 ee2fceac r9 00000064 sl 00000000 fp ef2b7364

04-10 08:19:09.523 F/DEBUG ( 8448): ip efd8e458 sp ee2fce90 lr efd1fef1 pc efd1fef2 cpsr 800f0030

04-10 08:19:09.537 F/DEBUG ( 8448):

04-10 08:19:09.537 F/DEBUG ( 8448): backtrace:

04-10 08:19:09.538 F/DEBUG ( 8448): #00 pc 0001fef2 /system/lib/libaudiopolicymanagerdefault.so (_ZN7android18AudioPolicyManager17updateCallRoutingEjj+913)

04-10 08:19:09.538 F/DEBUG ( 8448): #01 pc 00008a7d /system/lib/libaudiopolicymanager.so (_ZN7android24AudioPolicyManagerCustom13setPhoneStateE12audio_mode_t+2448)

04-10 08:19:09.539 F/DEBUG ( 8448): #02 pc 0000a44d /system/lib/libaudiopolicyservice.so

04-10 08:19:09.539 F/DEBUG ( 8448): #03 pc 000a18e5 /system/lib/libmedia.so (_ZN7android20BnAudioPolicyService10onTransactEjRKNS_6ParcelEPS1_j+268)

04-10 08:19:09.539 F/DEBUG ( 8448): #04 pc 00035d43 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j+70)

04-10 08:19:09.539 F/DEBUG ( 8448): #05 pc 0003d78b /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi+702)

04-10 08:19:09.539 F/DEBUG ( 8448): #06 pc 0003d3cb /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+114)

04-10 08:19:09.539 F/DEBUG ( 8448): #07 pc 0003d8f3 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46)

04-10 08:19:09.539 F/DEBUG ( 8448): #08 pc 00050015 /system/lib/libbinder.so

04-10 08:19:09.539 F/DEBUG ( 8448): #09 pc 0000e765 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+176)

04-10 08:19:09.539 F/DEBUG ( 8448): #10 pc 00047fe3 /system/lib/libc.so (_ZL15__pthread_startPv+22)

04-10 08:19:09.539 F/DEBUG ( 8448): #11 pc 00019d21 /system/lib/libc.so (__start_thread+6)

04-10 08:19:09.713 W/NativeCrashListener( 2934): Couldn't find ProcessRecord for pid 307

04-10 08:19:09.733 I/BootReceiver( 2934): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)

04-10 08:19:10.755 F/libc ( 8455): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 8467 (Binder:8455_2)

04-10 08:19:10.756 I/Telecom ( 2934): CallAudioModeStateMachine: Message received: NO_MORE_RINGING_CALLS.: CSW.sA->CAMSM.pM_1002@AME_0

04-10 08:19:10.757 I/Telecom ( 2934): CallAudioRouteStateMachine: Message received: SWITCH_FOCUS=4001, arg1=2: ICA.aC->CAMSM.pM_2004->CARSM.pM_SWITCH_FOCUS@ALY_0_2

04-10 08:19:10.757 I/Telecom ( 2934): CallAudioModeStateMachine: Message received: NEW_ACTIVE_OR_DIALING_CALL.: CSW.sA->CAMSM.pM_2001@AME_1

04-10 08:19:10.757 I/Telecom ( 2934): CallAudioRouteStateMachine: setNotificationsSuppressed: on=yes; suppressed=no: ICA.aC->CAMSM.pM_2004->CARSM.pM_SWITCH_FOCUS@ALY_0_2

04-10 08:19:10.779 D/ZenLog ( 2934): config: setInterruptionFilter,ZenModeConfig,component=ComponentInfo{android/com.android.server.notification.EventConditionProvider},id=021c62d9a3c34dd8aa7359a0a3e4fa5d,creationTime=1268684610,enabler=null], 34cffa4d56dc423192d112864ba0d35d=ZenRule[enabled=false,snoozing=false,name=Weekend,zenMode=ZEN_MODE_ALARMS,conditionId=condition://android/schedule?days=6.7&start=23.30&end=10.0&exitAtAlarm=false,condition=Condition[id=condition://android/schedule?days=6.7&start=23.30&end=10.0&exitAtAlarm=false,summary=...,line1=...,line2=...,icon=0,state=STATE_FALSE,flags=2],component=ComponentInfo{android/com.android.server.notification.ScheduleConditionProvider},id=34cffa4d56dc423192d112864ba0d35d,creationTime=1268684609,enabler=null], 021f6310f8794197aa3826a0f3da0497=ZenRule[enabled=false,snoozing=false,name=Weeknight,zenMode=ZEN_MODE_ALARMS,conditionId=condition://android/schedule?days=1.2.3.4.5&start=22.0&end=7.0&exitAtAlarm=false,condition=Condition[id=condition://android/schedule?days=1.2.3.4.5&start=22.0&end=7.0&exitAtAlarm=false,summary=...,line1=...,line2=...,icon=0,state=STATE_FALSE,flags=2],component=ComponentInfo{android/com.android.server.notification.ScheduleConditionProvider},id=021f6310f8794197aa3826a0f3da0497,creationTime=1268684609,enabler=null]},manualRule=ZenRule[enabled=true,snoozing=false,name=null,zenMode=ZEN_MODE_ALARMS,conditionId=null,condition=null,component=null,id=null,creationTime=0,enabler=com.android.server.telecom]],Diff[manualRule:insert]

04-10 08:19:10.780 F/DEBUG ( 8469): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

04-10 08:19:10.781 F/DEBUG ( 8469): Build fingerprint: 'Xiaomi/wt88047/wt88047:5.1.1/LMY47V/V8.2.1.0.LHJMIDL:user/release-keys'

04-10 08:19:10.781 F/DEBUG ( 8469): Revision: '0'

04-10 08:19:10.781 F/DEBUG ( 8469): ABI: 'arm'

04-10 08:19:10.781 F/DEBUG ( 8469): pid: 8455, tid: 8467, name: Binder:8455_2 >>> /system/bin/audioserver <<<

04-10 08:19:10.781 F/DEBUG ( 8469): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0

04-10 08:19:10.781 F/DEBUG ( 8469): r0 00000000 r1 eb45392c r2 eb453954 r3 eb45394c

04-10 08:19:10.781 F/DEBUG ( 8469): r4 eacb7200 r5 e9cfcf10 r6 eae52f7d r7 00000000

04-10 08:19:10.781 F/DEBUG ( 8469): r8 e9cfceac r9 00000000 sl 00000000 fp eacb7364

04-10 08:19:10.781 F/DEBUG ( 8469): ip eaeb7458 sp e9cfce90 lr eae48ef1 pc eae48ef2 cpsr 800f0030

04-10 08:19:10.786 F/DEBUG ( 8469):

04-10 08:19:10.786 F/DEBUG ( 8469): backtrace:

04-10 08:19:10.786 F/DEBUG ( 8469): #00 pc 0001fef2 /system/lib/libaudiopolicymanagerdefault.so (_ZN7android18AudioPolicyManager17updateCallRoutingEjj+913)

04-10 08:19:10.786 F/DEBUG ( 8469): #01 pc 00008a7d /system/lib/libaudiopolicymanager.so (_ZN7android24AudioPolicyManagerCustom13setPhoneStateE12audio_mode_t+2448)

04-10 08:19:10.786 F/DEBUG ( 8469): #02 pc 0000a44d /system/lib/libaudiopolicyservice.so

04-10 08:19:10.786 F/DEBUG ( 8469): #03 pc 000a18e5 /system/lib/libmedia.so (_ZN7android20BnAudioPolicyService10onTransactEjRKNS_6ParcelEPS1_j+268)

04-10 08:19:10.786 F/DEBUG ( 8469): #04 pc 00035d43 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j+70)

04-10 08:19:10.786 F/DEBUG ( 8469): #05 pc 0003d78b /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi+702)

04-10 08:19:10.787 F/DEBUG ( 8469): #06 pc 0003d3cb /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+114)

04-10 08:19:10.787 F/DEBUG ( 8469): #07 pc 0003d8f3 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46)

04-10 08:19:10.787 F/DEBUG ( 8469): #08 pc 00050015 /system/lib/libbinder.so

04-10 08:19:10.787 F/DEBUG ( 8469): #09 pc 0000e765 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+176)

04-10 08:19:10.787 F/DEBUG ( 8469): #10 pc 00047fe3 /system/lib/libc.so (_ZL15__pthread_startPv+22)

04-10 08:19:10.787 F/DEBUG ( 8469): #11 pc 00019d21 /system/lib/libc.so (__start_thread+6)

04-10 08:19:10.915 W/NativeCrashListener( 2934): Couldn't find ProcessRecord for pid 8455

04-10 08:19:10.924 I/BootReceiver( 2934): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)

04-10 08:19:10.959 D/ZenLog ( 2934): set_zen_mode: alarms,setInterruptionFilter

04-10 08:19:10.970 D/ZenLog ( 2934): set_ringer_mode_internal: ZenModeHelper,i:normal->silent,e:normal->silent

04-10 08:19:16.472 I/ActivityManager( 2934): Start proc 8493:com.android.settings/1000 for broadcast com.android.settings/.dashboard.conditional.DndCondition$Receiver

04-10 08:19:16.569 F/libc ( 8476): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 8476 (audioserver)

04-10 08:19:16.619 I/ActivityManager( 2934): Setting hasTopUi=true for pid=3864

04-10 08:19:16.622 I/ActivityManager( 2934): Setting hasTopUi=false for pid=3864

04-10 08:19:16.626 V/KeyguardDisplayManager( 3864): hide [/HIDE]

You will need [URL="https://github.com/luca020400/caf_manifest/blob/master/sdclang/sdllvm-lto-defs.mk"]this[/URL] too.