[Xiaomi Mi A1 Questions & Answers] santiagolp23:
Hello everyone

I'm on the stock October's pie update, rooted with magisk, and since September's security update I've been having a issue, my screen randomly turns itself on without any notification, and sometimes when a notification arrives and I don't have ambient display on, I captured logs when it happened:

[10-27 22:12:40.255 2806:5464 I/service_manager_stats]
[100,69,431287]

[10-27 22:12:40.256 3818:3818 D/QtiDCT]
[0]isEmergency: result=false

[10-27 22:12:40.264 3818:3818 D/SST]
[0] EVENT_POLL_STATE_NETWORK_SELECTION_MODE

[10-27 22:12:40.264 3818:4095 D/LocaleTracker]
getCellInfo: cell info=[]

[10-27 22:12:40.265 3818:4095 D/LocaleTracker]
Can't get cell info. Try again in 2 secs.

[10-27 22:12:40.265 3818:4095 D/LocaleTracker]
updateLocale: mcc = null, country =

[10-27 22:12:40.266 3818:4146 D/NetworkRegistrationManager]
onGetNetworkRegistrationStateComplete result 0 state NetworkRegistrationState{transportType=1 domain=PS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@6833fd5 cellIdentity=android.telephony.CellIdentityLte@f744e5bf voiceSpecificStates=null dataSpecificStates=DataSpecificRegistrationStates { mMaxDataCalls=20}}

[10-27 22:12:40.266 3818:3818 D/SST]
[0] handlPollStateResultMessage: GsmSST dataServiceState=0 regState=1 dataRadioTechnology=14

[10-27 22:12:40.267 25071:25071 D/AndroidRuntime]
Calling main entry com.android.commands.am.Am

[10-27 22:12:40.275 2806:2935 D/CompatibilityInfo]
mCompatibilityFlags - 0

[10-27 22:12:40.275 2806:2935 D/CompatibilityInfo]
applicationDensity - 408

[10-27 22:12:40.275 3818:4146 D/NetworkRegistrationManager]
onGetNetworkRegistrationStateComplete result 0 state NetworkRegistrationState{transportType=1 domain=CS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@71343ea cellIdentity=android.telephony.CellIdentityLte@f744e5bf voiceSpecificStates=VoiceSpecificRegistrationStates { mCssSupported=false mRoamingIndicator=1 mSystemIsInPrl=-1 mDefaultRoamingIndicator=-1} dataSpecificStates=null}

[10-27 22:12:40.275 2806:2935 D/CompatibilityInfo]
applicationScale - 1.0

[10-27 22:12:40.275 3818:3818 D/SST]
[0] handlPollVoiceRegResultMessage: regState=1 radioTechnology=14

[10-27 22:12:40.276 3818:3818 D/SST]
[0] Poll ServiceState done: oldSS=[{mVoiceRegState=0(IN_SERVICE), mDataRegState=0(IN_SERVICE), mChannelNumber=2325, duplexMode()=1, mCellBandwidths=[], mVoiceRoamingType=home, mDataRoamingType=home, mVoiceOperatorAlphaLong=Movil Exito, mVoiceOperatorAlphaShort=Movil Exito, mDataOperatorAlphaLong=Movil Exito, mDataOperatorAlphaShort=Movil Exito, isManualNetworkSelection=false(automatic), mRilVoiceRadioTechnology=14(LTE), mRilDataRadioTechnology=14(LTE), mCssIndicator=unsupported, mNetworkId=-1, mSystemId=-1, mCdmaRoamingIndicator=-1, mCdmaDefaultRoamingIndicator=-1, mIsEmergencyOnly=false, mIsDataRoamingFromRegistration=false, mIsUsingCarrierAggregation=false, mLteEarfcnRsrpBoost=0, mNetworkRegistrationStates=[NetworkRegistrationState{transportType=1 domain=PS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@869b492 cellIdentity=android.telephony.CellIdentityLte@f744e5bf voiceSpecificStates=null dataSpecificStates=DataSpecificRegistrationStates { mMaxDataCalls=20}}, NetworkRegistrationState{transportType=1 domain=CS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@4f28e63 cellIdentity=android.telephony.CellIdentityLte@f744e5bf voiceSpecificStates=VoiceSpecificRegistrationStates { mCssSupported=false mRoamingIndicator=1 mSystemIsInPrl=-1 mDefaultRoamingIndicator=-1} dataSpecificStates=null}]}] newSS=[{mVoiceRegState=0(IN_SERVICE), mDataRegState=0(IN_SERVICE), mChannelNumber=2325, duplexMode()=1, mCellBandwidths=[], mVoiceRoamingType=home, mDataRoamingType=home, mVoiceOperatorAlphaLong=Movil Exito, mVoiceOperatorAlphaShort=Movil Exito, mDataOperatorAlphaLong=Movil Exito, mDataOperatorAlphaShort=Movil Exito, isManualNetworkSelection=false(automatic), mRilVoiceRadioTechnology=14(LTE), mRilDataRadioTechnology=14(LTE), mCssIndicator=unsupported, mNetworkId=-1, mSystemId=-1, mCdmaRoamingIndicator=-1, mCdmaDefaultRoamingIndicator=-1, mIsEmergencyOnly=false, mIsDataRoamingFromRegistration=false, mIsUsingCarrierAggregation=false, mLteEarfcnRsrpBoost=0, mNetworkRegistrationStates=[NetworkRegistrationState{transportType=1 domain=PS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@6833fd5 cellIdentity=android.telephony.CellIdentityLte@f744e5bf voiceSpecificStates=null dataSpecificStates=DataSpecificRegistrationStates { mMaxDataCalls=20}}, NetworkRegistrationState{transportType=1 domain=CS regState=HOME accessNetworkTechnology=LTE reasonForDenial=0 emergencyEnabled=false supportedServices=[I@71343ea cellIdentity=android.telephony.CellIdentityLte@f744e5bf voiceSpecificStates=VoiceSpecificRegistrationStates { mCssSupported=false mRoamingIndicator=1 mSystemIsInPrl=-1 mDefaultRoamingIndicator=-1} dataSpecificStates=null}]}] oldMaxDataCalls=20 mNewMaxDataCalls=20 oldReasonDataDenied=0 mNewReasonDataDenied=0

[10-27 22:12:40.277 3818:3818 D/SST]
[0] pollStateDone: hasRegistered=false hasDeregistered=false hasDataAttached=false hasDataDetached=false hasDataRegStateChanged=false hasRilVoiceRadioTechnologyChanged= false hasRilDataRadioTechnologyChanged=false hasChanged=false hasVoiceRoamingOn=false hasVoiceRoamingOff=false hasDataRoamingOn=false hasDataRoamingOff=false hasLocationChanged=false has4gHandoff = false hasMultiApnSupport=false hasLostMultiApnSupport=false hasCssIndicatorChanged=false

[10-27 22:12:40.277 4314:4314 I/CarrierServices]
[2] clo.onReceive: Received SERVICE_STATE intent, clearing cached cell info

[10-27 22:12:40.351 2157:2157 D/SurfaceFlinger]
Finished set power mode=2, type=0

[10-27 22:12:40.352 2806:3648 D/SurfaceControl]
Excessive delay in setPowerMode()

[10-27 22:12:40.353 2806:2970 I/sysui_multi_action]
[757,198,758,1,759,0,1359,303]

[10-27 22:12:40.353 2806:2970 I/power_screen_state]
[1,0,0,0,303]

[10-27 22:12:40.353 2806:2970 W/PowerManagerService]
Screen on took 303 ms

[10-27 22:12:40.354 2806:2970 I/DreamManagerService]
Gently waking up from dream.

[10-27 22:12:40.354 3695:4157 D/KeyguardViewMediator]
notifyScreenTurnedOn

[10-27 22:12:40.354 2806:2963 I/DreamManagerService]
Performing gentle wake from dream.

[10-27 22:12:40.370 3695:3695 D/KeyguardUpdateMonitor]
received broadcast android.intent.action.SERVICE_STATE

[10-27 22:12:40.370 3695:3695 V/KeyguardUpdateMonitor]
action android.intent.action.SERVICE_STATE serviceState={mVoiceRegState=0(IN_SERVICE), mDataRegState=0(IN_SERVICE), mChannelNumber=2325, duplexMode()=1, mCellBandwidths=[], mVoiceRoamingType=home, mDataRoamingType=home, mVoiceOperatorAlphaLong=Movil Exito, mVoiceOperatorAlphaShort=Movil Exito, mDataOperatorAlphaLong=Movil Exito, mDataOperatorAlphaShort=Movil Exito, isManualNetworkSelection=false(automatic), mRilVoiceRadioTechnology=14(LTE), mRilDataRadioTechnology=14(LTE), mCssIndicator=unsupported, mNetworkId=-1, mSystemId=-1, mCdmaRoamingIndicator=-1, mCdmaDefaultRoamingIndicator=-1, mIsEmergencyOnly=false, mIsDataRoamingFromRegistration=false, mIsUsingCarrierAggregation=false, mLteEarfcnRsrpBoost=0, mNetworkRegistrationStates=[]} subId=1

[10-27 22:12:40.371 3695:3695 D/KeyguardViewMediator]
handleNotifyScreenTurnedOn

[10-27 22:12:40.374 2806:5215 I/DreamManagerService]
Leaving dreamland.

[10-27 22:12:40.375 2806:2963 I/DreamManagerService]
Performing gentle wake from dream.

[10-27 22:12:40.375 2806:2963 I/DreamController]
Stopping dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0

[10-27 22:12:40.375 2806:2963 I/sysui_view_visibility]
[223,0]

[10-27 22:12:40.375 2806:2963 I/sysui_multi_action]
[757,223,758,2]

[10-27 22:12:40.375 2806:2963 I/sysui_histogram]
[dozing_minutes,4]

[10-27 22:12:40.375 2806:2963 I/sysui_multi_action]
[757,804,799,dozing_minutes,801,4,802,1]

I haven't done a factory reset yet

Any help will be greatly appreciated :)