[Xperia Z5 Compact Android Development] svsvvv:
Hello

There appear to be some issues with the mobile connection when using encryption, at least on my device.

I flashed the latest version at the time of this post (Jun 28 2021 version), though it also happens with the stock cm14-1 ROM.

The mobile connection works after flashing the ROM, but after encrypting the device it stops working.

It presented me with the PIN entry and after entering the correct PIN code the phone does not register on the mobile network. It presents the "SIM missing" or "SIM locked" message in the status bar, even though the SIM was inserted and unlocked.

The Android log contains messages about failures to read ICC ID, no such errors are present in the unencrypted logs. The same SIM card was used for both tests and the SIM card is fully functional after re-flashing the unencrypted version.

Based on other encryption-related questions in this thread, I understand that you don't use encryption and thus it's unsupported. I'm mostly posting this in case someone else hits the same issue, as I spent a couple of hours on figuring this out, since I never actually used the phone with a SIM before enabling encryption :).

Im not familiar with Android development, so I don't know where to start debugging this. In the unlikely case that someone has an idea on what might be causing this then please do let me know.

Post-encryption log after PIN entry is below.

The unencrypted (working) boot log contains no entries from the PhoneInterfaceManager service, but I'm not sure if that's expected behavior or not.

[...]
07-03 23:44:23.663 4296 5313 D PhoneInterfaceManager: SUPPLY_PIN_COMPLETE
07-03 23:44:23.664 4296 4485 D PhoneInterfaceManager: done
07-03 23:44:23.665 4078 4078 D CarrierText: onSimStateChanged: Normal
07-03 23:44:23.667 4078 4078 D CarrierText: onSimStateChanged: Normal
07-03 23:44:23.678 5294 5329 I libglean_ffi: glean_core::database: Database initialized
07-03 23:44:23.694 5294 5329 I libglean_ffi: glean_ffi: Glean initialized
07-03 23:44:23.698 5294 5329 I glean/Dispatchers: Task queued for execution and delayed until flushed
07-03 23:44:23.701 5294 5329 I glean/Dispatchers: Task queued for execution and delayed until flushed
07-03 23:44:23.701 5294 5329 I glean/Dispatchers: Task queued for execution and delayed until flushed
07-03 23:44:23.702 5294 5329 I glean/Dispatchers: Task queued for execution and delayed until flushed
07-03 23:44:23.703 4078 4078 D CarrierText: onSimStateChanged: Normal
07-03 23:44:23.705 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'baseline'
07-03 23:44:23.705 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'metrics'
07-03 23:44:23.705 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'events'
07-03 23:44:23.725 4544 4544 I wpa_supplicant: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
07-03 23:44:23.731 5024 5024 D WeatherUpdateService: onCreate
07-03 23:44:23.733 5024 5024 D WeatherUpdateService: Service started, but shouldn't update ... stopping
07-03 23:44:23.734 5024 5024 D WeatherUpdateService: onDestroy
07-03 23:44:23.735 5294 5330 I rc_log_ffi::ios: rc_log adapter initialized!
07-03 23:44:23.758 4078 4078 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH quick_settings >
07-03 23:44:23.783 5294 5340 I GeckoThread: preparing to run Gecko
07-03 23:44:23.799 4078 4078 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH quick_settings >
07-03 23:44:23.832 2670 2670 D fpc_fingerprint_hal: fpc_get_authenticator_id
07-03 23:44:23.833 3425 3425 V FingerprintService: startAuthentication(com.android.systemui)
07-03 23:44:23.833 3425 3425 V FingerprintService: starting client AuthenticationClient(com.android.systemui), initiatedByClient = true)
07-03 23:44:23.833 2670 2670 V fingerprintd: authenticate(sid=0, gid=0)
07-03 23:44:23.833 2670 2670 D fpc_fingerprint_hal: fpc_authenticate operation_id 0
07-03 23:44:23.833 3425 3425 W FingerprintService: client com.android.systemui is authenticating...
07-03 23:44:23.834 2670 4039 D fpc_fingerprint_hal: workerFunction STATE_AUTHENTICATE
07-03 23:44:23.834 4078 4078 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH quick_settings >
07-03 23:44:23.839 5294 5340 W Settings: Setting animator_duration_scale has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.
07-03 23:44:23.841 5294 5329 I glean/MetricsPingSched: The 'metrics' ping was already sent today, 1625345063812.
07-03 23:44:23.856 2670 4039 D fpc_fingerprint_hal: fpc_wait_finger_up
07-03 23:44:23.885 5294 5329 I libglean_ffi: glean_ffi: No RLB symbol found. Not trying to flush the RLB dispatcher.
07-03 23:44:23.888 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'baseline'
07-03 23:44:23.888 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'metrics'
07-03 23:44:23.888 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'events'
07-03 23:44:23.889 5294 5329 D libglean_ffi: glean_core: Duplicate ping named 'deletion-request'
07-03 23:44:23.899 5294 5340 E GeckoLibLoad: Load sqlite start
07-03 23:44:23.902 5294 5340 E GeckoLibLoad: Load sqlite done
07-03 23:44:23.902 5294 5340 E GeckoLibLoad: Load nss start
07-03 23:44:23.902 5294 5340 E GeckoLibLoad: Load nss done
07-03 23:44:24.033 2670 4039 D fpc_fingerprint_hal: fpc_wait_finger_up FPC_LIB_FINGER_LOST
07-03 23:44:24.105 5294 5305 W art : Suspending all threads took: 15.160ms
07-03 23:44:24.132 5294 5294 W PushConfig: No firebase configuration found; cannot support push service.
07-03 23:44:24.201 3425 4441 D ConnectivityService: requestNetwork for uid/pid:10078/5294 NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 23:44:24.202 3425 4017 D WIFI_UT : got request NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
07-03 23:44:24.202 3425 4050 D Ethernet: got request NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
07-03 23:44:24.203 3425 4017 D WIFI : got request NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
07-03 23:44:24.203 4296 4296 D PhoneSwitcherNetworkRequstListener: got request NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
07-03 23:44:24.245 5294 5346 I nimbus : fetching experiments
07-03 23:44:24.246 5294 5345 W art : Long monitor contention with owner NimbusFetchScope-thread-1 (5346) at long com.sun.jna.Native.findSymbol(long, java.lang.String)(Native.java:-2) waiters=0 in java.lang.Object com.sun.jna.Library$Handler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]) for 320ms
07-03 23:44:24.247 5294 5340 E GeckoLibLoad: Loaded libs in 344.491250ms total, 30ms(220ms) user, 30ms(90ms) system, 0(7) faults
07-03 23:44:24.259 5294 5345 I nimbus : updating experiment list
07-03 23:44:24.328 5294 5340 W GeckoThread: zerdatime 63628 - runGecko
07-03 23:44:24.436 5294 5340 I Gecko:DumpUtils: Fifo watcher disabled via pref.
07-03 23:44:24.566 5371 5371 I MultiDex: VM with version 2.1.0 has multidex support
07-03 23:44:24.566 5371 5371 I MultiDex: Installing application
07-03 23:44:24.566 5371 5371 I MultiDex: VM has multidex support, MultiDex support library is disabled.
07-03 23:44:24.570 3425 4892 I ActivityManager: Start proc 5405:org.mozilla.fennec_fdroid:tab37/u0a78 for service org.mozilla.fennec_fdroid/org.mozilla.gecko.process.GeckoChildProcessServices$tab37
07-03 23:44:24.713 2670 4039 D fingerprintd: onAcquired(1001)
07-03 23:44:24.856 2670 4039 D fpc_fingerprint_hal: fpc_handle_image_subscription
07-03 23:44:24.856 2670 4039 D fingerprintd: onAcquired(0)
07-03 23:44:24.977 2670 4039 D fpc_fingerprint_hal: do_identify fpc_tac_identify result res: 0, idx: 4294967295, size: 508, cov: 82, qual: 36
07-03 23:44:24.977 2670 4039 D fpc_fingerprint_hal: do_identify KPI Capture time: 142 ms Identify time: 120 ms
07-03 23:44:24.979 2670 4039 E idd-api : add_event: send failed, socket 15, errcode -111 (Connection refused)
07-03 23:44:24.979 2670 4039 D fingerprintd: onAuthenticated(fid=0, gid=0)
07-03 23:44:24.979 2670 4039 D fpc_fingerprint_hal: fpc_wait_finger_up
07-03 23:44:24.985 3425 3425 I GnssLocationProvider: WakeLock acquired by sendMessage(12, 0, null)
07-03 23:44:24.990 2670 4039 D fpc_fingerprint_hal: fpc_wait_finger_up FPC_LIB_FINGER_LOST
07-03 23:44:24.994 3425 3439 I GnssLocationProvider: WakeLock released by handleMessage(12, 0, null)
07-03 23:44:24.994 4296 4313 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:24.995 4296 4678 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:24.998 4296 4485 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:25.013 4296 4676 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:25.014 5205 5234 W MessagingApp: canonicalizeMccMnc: invalid mccmnc:null ,null
07-03 23:44:25.016 4296 4296 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:25.019 4296 4485 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:25.021 3425 4441 D MmsServiceBroker: getCarrierConfigValues() by com.android.messaging
07-03 23:44:25.021 4296 4678 D MmsService: getCarrierConfigValues
07-03 23:44:25.021 4296 4678 I MmsService: mms config for sub 2: Bundle[{httpSocketTimeout=60000, aliasMinChars=2, smsToMmsTextThreshold=-1, enableSMSDeliveryReports=true, maxMessageTextSize=-1, supportMmsContentDisposition=true, enabledTransID=false, aliasEnabled=false, supportHttpCharsetHeader=false, allowAttachAudio=true, smsToMmsTextLengthThreshold=-1, recipientLimit=2147483647, uaProfTagName=x-wap-profile, aliasMaxChars=48, maxImageHeight=480, enableMMSDeliveryReports=false, userAgent=, mmsCloseConnection=false, config_cellBroadcastAppLinks=true, maxSubjectLength=40, httpParams=, enableGroupMms=true, emailGatewayNumber=, maxMessageSize=307200, naiSuffix=, enableMMSReadReports=false, maxImageWidth=640, uaProfUrl=, enabledMMS=true, enabledNotifyWapMMSC=false, sendMultipartSmsAsSeparateMessages=false, enableMultipartSMS=true}]
07-03 23:44:25.022 5205 5234 I MessagingApp: Carrier configs loaded: Bundle[{httpSocketTimeout=60000, aliasMinChars=2, smsToMmsTextThreshold=-1, enableSMSDeliveryReports=true, maxMessageTextSize=-1, supportMmsContentDisposition=true, enabledTransID=false, aliasEnabled=false, supportHttpCharsetHeader=false, allowAttachAudio=true, smsToMmsTextLengthThreshold=-1, recipientLimit=2147483647, uaProfTagName=x-wap-profile, aliasMaxChars=48, maxImageHeight=480, enableMMSDeliveryReports=false, userAgent=, mmsCloseConnection=false, config_cellBroadcastAppLinks=true, maxSubjectLength=40, httpParams=, enableGroupMms=true, emailGatewayNumber=, maxMessageSize=307200, naiSuffix=, enableMMSReadReports=false, maxImageWidth=640, uaProfUrl=, enabledMMS=true, enabledNotifyWapMMSC=false, sendMultipartSmsAsSeparateMessages=false, enableMultipartSMS=true}] from resources+system for subId=2
07-03 23:44:25.023 4078 4078 D CarrierText: onSimStateChanged: SimMissing
07-03 23:44:25.025 4078 4078 D CarrierText: onSimStateChanged: SimMissing
07-03 23:44:25.030 4296 4296 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:25.030 4296 4677 E PhoneInterfaceManager: [PhoneIntfMgr] getIccId: ICC ID is null or empty.
07-03 23:44:25.031 4078 4078 D CarrierText: onSimStateChanged: SimMissing
[...]