nerzhul / ncsms-android

repository for the ncsms on Android
95 stars 38 forks source link

Cannot restore message (fairphone3 on android 9) #227

Closed autra closed 4 years ago

autra commented 4 years ago
What is very strange : I actually managed to sync them a few weeks ago. I just reset my phone and it does not work any more. ### Steps to reproduce 1. install the app 2. set it as default app 3. add my nextcloud account 4. click on "restore my sms" ### Expected behaviour The sms are synced. ### Actual behaviour After a little while stuck on "0 messages synchronisées" (it's in French), some green writing are very briefly displayed (too fast to read them), then the button appears again, but no sms are synchronized. ### Server configuration **Nextcloud version:** 15.0.14 **PHP version:** PHP 7.0.33-0+deb9u7 **Webserver:** ninx **HTTPS:** yep ### Client configuration **Android version:** 9 **Phone:** Fairphone3 **Nextcloud SMS app version:** 2.0.5 from f-droid ### Logs Logs from my nginx server ``` 176.145.76.93 - autra [10/Mar/2020:16:40:49 +0100] "GET /cloud/index.php/apps/ocsms/api/v2/messages/0/500?format=json HTTP/2.0" 200 56936 "-" "nextcloud-phonesync-go (2.0.5)" 176.145.76.93 - autra [10/Mar/2020:16:40:54 +0100] "GET /cloud/index.php/apps/ocsms/api/v2/messages/1579369826279/500?format=json HTTP/2.0" 200 42535 "-" "nextcloud-phonesync-go (2.0.5)" 176.145.76.93 - autra [10/Mar/2020:16:40:58 +0100] "GET /cloud/index.php/apps/ocsms/api/v2/messages/1583739676100/500?format=json HTTP/2.0" 200 1095 "-" "nextcloud-phonesync-go (2.0.5)" ``` logcat around the time of click. ``` 03-10 16:54:01.852 4477 4477 I RestoreMessagesActivity: Launching restore asynchronously 03-10 16:54:01.857 4477 7601 I ASyncSMSRecovery: Starting background recovery 03-10 16:54:01.858 589 2993 D audio_hw_primary: start_output_stream: enter: stream(0xef5de800)usecase(1: low-latency-playback) devices(0x2) 03-10 16:54:01.858 616 645 E ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only 03-10 16:54:01.859 589 2993 D audio_hw_primary: select_devices for use case (low-latency-playback) 03-10 16:54:01.859 589 2993 D audio_hw_extn: audio_extn_get_force_use_specific_mic_status:[Mic-test] seSpecificMic_Enabled(0) 03-10 16:54:01.859 589 2993 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: ) 03-10 16:54:01.859 589 2993 I msm8916_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker) 03-10 16:54:01.859 589 2993 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0) 03-10 16:54:01.859 589 2993 I msm8916_platform: platform_check_and_set_codec_backend_cfg: becf: new_snd_devices[0] is speaker 03-10 16:54:01.859 589 2993 I msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 current bit width: 16 sample rate: 48000 channels: 2 usecase 1 device (speaker) 03-10 16:54:01.859 589 2993 D msm8916_platform: platform_check_codec_backend_cfg:becf: afe: playback on codec device not supporting native playback set default Sample Rate(48k) 03-10 16:54:01.859 589 2993 I msm8916_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 sample rate: 48000 channels: 2 03-10 16:54:01.859 589 2993 D audio_hw_primary: check_usecases_codec_backend:becf: force routing 0 03-10 16:54:01.859 589 2993 E msm8916_platform: platform_check_backends_match: Invalid snd_device = 03-10 16:54:01.859 589 2993 D audio_hw_primary: check_usecases_codec_backend:becf: (63) check_usecases curr device: speaker, usecase device: backends match 0 03-10 16:54:01.859 589 2993 D audio_hw_primary: check_usecases_codec_backend:becf: check_usecases num.of Usecases to switch 0 03-10 16:54:01.859 589 2993 D hardware_info: hw_info_append_hw_type : device_name = speaker 03-10 16:54:01.859 589 2993 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0) 03-10 16:54:01.859 589 2993 D audio_hw_primary: enable_snd_device: snd_device(2: speaker) 03-10 16:54:01.859 589 2993 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 1, with Raise=0 03-10 16:54:01.859 589 2993 D audio_route: Apply path: speaker 03-10 16:54:01.862 589 2993 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 1 of type 0 for Event 3, with Raise=0 03-10 16:54:01.862 589 2993 D audio_hw_utils: audio_extn_utils_send_app_type_cfg: usecase->out_snd_device speaker 03-10 16:54:01.862 589 2993 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0) 03-10 16:54:01.862 589 2993 D audio_hw_utils: audio_extn_btsco_get_sample_rate:Not a BT SCO device, need not update sampling rate 03-10 16:54:01.862 589 2993 I audio_hw_utils: send_app_type_cfg_for_device PLAYBACK app_type 69937, acdb_dev_id 14, sample_rate 48000, snd_device_be_idx 2 03-10 16:54:01.863 589 2993 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(1) new_snd_devices(0) 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11131, sample rate = 48000 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> send_asm_topology 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> send_adm_topology 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> send_audtable 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> AUDIO_SET_AUDPROC_CAL 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> send_audvoltable 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_VOL_STEP_TABLE_SIZE 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> AUDIO_SET_VOL_CAL cal type = 12 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_SIZE 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> send_audstrmtable 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2 03-10 16:54:01.863 589 2993 D ACDB-LOADER: ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> send_afe_topology 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 1000ff00 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> send_afe_cal 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> AUDIO_SET_AFE_CAL 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> send_hw_delay : acdb_id = 14 path = 0 03-10 16:54:01.864 589 2993 D ACDB-LOADER: ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY 03-10 16:54:01.864 589 2993 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0) 03-10 16:54:01.864 589 2993 I msm8916_platform: platform_get_custom_mtmx_params: no matching param with id 0 ip_ch 2 op_ch 1 uc_id 1 snd_dev 2 03-10 16:54:01.864 589 2993 D audio_hw_primary: enable_audio_route: apply mixer and update path: low-latency-playback 03-10 16:54:01.864 589 2993 D audio_route: Apply path: low-latency-playback 03-10 16:54:01.865 589 2993 D audio_hw_primary: select_devices: done 03-10 16:54:01.870 589 2993 D msm8916_platform: platform_set_channel_map mixer_ctl_name:Playback Channel Map12 03-10 16:54:01.870 589 2993 D msm8916_platform: platform_set_channel_map: set mapping(1 2 0 0 0 0 0 0) for channel:2 03-10 16:54:01.932 589 2993 D audio_hw_primary: start_output_stream: exit 03-10 16:54:01.932 589 2993 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0) 03-10 16:54:01.932 589 2993 I msm8916_platform: platform_get_custom_mtmx_params: no matching param with id 0 ip_ch 2 op_ch 1 uc_id 1 snd_dev 2 03-10 16:54:01.973 4477 4477 W fr.unix_experience.owncloud_sms: type=1400 audit(0.0:559): avc: denied { read } for comm=4173796E635461736B202331 name="hostname" dev="proc" ino=19041 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:proc_hostname:s0 tclass=file permissive=0 03-10 16:54:02.400 1800 2083 D PsensorListener: [SW_SAR] Psensor Register 03-10 16:54:02.403 1800 2083 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:02.403 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:02.404 1944 2210 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:02.405 1800 2083 D GsensorListener: [SW_SAR] GsensorListener Register 03-10 16:54:02.406 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 4 03-10 16:54:02.406 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:02.406 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:02.589 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 1 03-10 16:54:02.589 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:02.591 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:02.594 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:02.594 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1037 length=24 03-10 16:54:02.599 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1037 error: 0length=0 03-10 16:54:02.600 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:02.895 1160 1333 D CompatibilityInfo: mCompatibilityFlags - 0 03-10 16:54:02.895 1160 1333 D CompatibilityInfo: applicationDensity - 480 03-10 16:54:02.895 1160 1333 D CompatibilityInfo: applicationScale - 1.0 03-10 16:54:02.898 1160 1560 D CompatibilityInfo: mCompatibilityFlags - 0 03-10 16:54:02.898 1160 1560 D CompatibilityInfo: applicationDensity - 480 03-10 16:54:02.898 1160 1560 D CompatibilityInfo: applicationScale - 1.0 03-10 16:54:02.901 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:02.917 2449 7628 I Vision : Requesting optional module download of ocr. 03-10 16:54:02.926 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:02.933 2449 7628 I Vision : Time to download ocr: 13488682 03-10 16:54:02.940 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:02.941 1160 2069 D CompatibilityInfo: mCompatibilityFlags - 0 03-10 16:54:02.941 1160 2069 D CompatibilityInfo: applicationDensity - 480 03-10 16:54:02.941 1160 2069 D CompatibilityInfo: applicationScale - 1.0 03-10 16:54:02.943 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:02.999 2169 7631 I CheckinUtil: Classify the device as Phone. 03-10 16:54:03.006 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:03.072 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:03.077 2169 7631 W Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed 03-10 16:54:03.077 2169 7631 W Conscrypt: at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@200616030@20.06.16 (100408-296104215):2) 03-10 16:54:03.077 2169 7631 W Conscrypt: at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms@200616030@20.06.16 (100408-296104215):0) 03-10 16:54:03.119 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:03.123 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:03.144 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:03.144 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:03.146 1944 2448 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:03.148 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:03.148 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1038 length=24 03-10 16:54:03.153 2169 7631 W Conscrypt: Could not set socket write timeout: java.net.SocketException: Socket closed 03-10 16:54:03.153 2169 7631 W Conscrypt: at com.google.android.gms.org.conscrypt.Platform.setSocketWriteTimeout(:com.google.android.gms@200616030@20.06.16 (100408-296104215):2) 03-10 16:54:03.153 2169 7631 W Conscrypt: at com.google.android.gms.org.conscrypt.ConscryptFileDescriptorSocket.setSoWriteTimeout(:com.google.android.gms@200616030@20.06.16 (100408-296104215):0) 03-10 16:54:03.155 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1038 error: 0length=0 03-10 16:54:03.156 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:03.429 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:03.465 4477 7601 I ASyncSMSRecovery: Retrieving messages from 0 to 1579369826279 03-10 16:54:05.078 589 3606 D audio_hw_primary: out_standby: enter: stream (0xef5de800) usecase(1: low-latency-playback) 03-10 16:54:05.121 589 3606 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback 03-10 16:54:05.122 589 3606 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_info->id 1 of type 0 for Event 2, with Raise=0 03-10 16:54:05.123 589 3606 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0) 03-10 16:54:05.123 589 3606 I msm8916_platform: platform_get_custom_mtmx_params: no matching param with id 0 ip_ch 2 op_ch 1 uc_id 1 snd_dev 2 03-10 16:54:05.123 589 3606 D hardware_info: hw_info_append_hw_type : device_name = speaker 03-10 16:54:05.123 589 3606 D audio_hw_primary: disable_snd_device: snd_device(2: speaker) 03-10 16:54:05.123 589 3606 D msm8916_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0) 03-10 16:54:05.125 589 3606 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0, with Raise=0 03-10 16:54:05.125 589 3606 D audio_hw_primary: out_standby: exit 03-10 16:54:05.273 7652 7652 W qcom-system-dae: type=1400 audit(0.0:560): avc: denied { read write } for name="diag" dev="tmpfs" ino=16420 scontext=u:r:vendor_qcomsysd:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0 03-10 16:54:05.282 7652 7652 E QCOMSysDaemon: Can't find/open bootselect node: (No such file or directory) 03-10 16:54:05.282 7652 7652 I QCOMSysDaemon: Starting qcom system daemon 03-10 16:54:05.282 7652 7652 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13 03-10 16:54:05.282 7652 7652 E QCOMSysDaemon: Diag_LSM_Init failed : 0 03-10 16:54:05.408 1800 2083 D PsensorListener: [SW_SAR] Psensor unRegister 03-10 16:54:05.409 1800 2083 D GsensorListener: [SW_SAR] GsensorListener unRegister 03-10 16:54:05.409 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 0 03-10 16:54:05.410 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:05.411 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:08.013 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:08.304 469 469 I chatty : uid=1000(system) hwservicemanage identical 3 lines 03-10 16:54:08.874 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:10.283 7695 7695 E QCOMSysDaemon: Can't find/open bootselect node: (No such file or directory) 03-10 16:54:10.283 7695 7695 I QCOMSysDaemon: Starting qcom system daemon 03-10 16:54:10.273 7695 7695 W qcom-system-dae: type=1400 audit(0.0:561): avc: denied { read write } for name="diag" dev="tmpfs" ino=16420 scontext=u:r:vendor_qcomsysd:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0 03-10 16:54:10.284 7695 7695 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13 03-10 16:54:10.284 7695 7695 E QCOMSysDaemon: Diag_LSM_Init failed : 0 03-10 16:54:10.300 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:11.937 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:12.394 4477 7601 I ASyncSMSRecovery: Retrieving messages from 1579369826279 to 1583739676100 03-10 16:54:12.436 1800 2083 D PsensorListener: [SW_SAR] Psensor Register 03-10 16:54:12.438 1800 2083 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:12.438 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:12.441 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:12.441 1800 2083 D GsensorListener: [SW_SAR] GsensorListener Register 03-10 16:54:12.441 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 4 03-10 16:54:12.441 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:12.442 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:12.598 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 1 03-10 16:54:12.598 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:12.600 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:12.602 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:12.602 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1039 length=24 03-10 16:54:12.607 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1039 error: 0length=0 03-10 16:54:12.608 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:13.128 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:13.129 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:13.131 1944 3020 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:13.134 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:13.134 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1040 length=24 03-10 16:54:13.139 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1040 error: 0length=0 03-10 16:54:13.142 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:13.442 1800 2083 D PsensorListener: [SW_SAR] Psensor unRegister 03-10 16:54:13.444 1800 2083 D GsensorListener: [SW_SAR] GsensorListener unRegister 03-10 16:54:13.444 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 0 03-10 16:54:13.444 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:13.447 1944 2448 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:14.752 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:15.276 7732 7732 E QCOMSysDaemon: Can't find/open bootselect node: (No such file or directory) 03-10 16:54:15.277 7732 7732 I QCOMSysDaemon: Starting qcom system daemon 03-10 16:54:15.277 7732 7732 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13 03-10 16:54:15.277 7732 7732 E QCOMSysDaemon: Diag_LSM_Init failed : 0 03-10 16:54:15.263 7732 7732 W qcom-system-dae: type=1400 audit(0.0:562): avc: denied { read write } for name="diag" dev="tmpfs" ino=16420 scontext=u:r:vendor_qcomsysd:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0 03-10 16:54:15.624 1160 1170 I system_server: Background concurrent copying GC freed 93708(4MB) AllocSpace objects, 33(788KB) LOS objects, 42% free, 16MB/28MB, paused 154us total 110.059ms 03-10 16:54:17.987 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:18.306 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:18.464 1800 2083 D PsensorListener: [SW_SAR] Psensor Register 03-10 16:54:18.468 1800 2083 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:18.468 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:18.470 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:18.472 1800 2083 D GsensorListener: [SW_SAR] GsensorListener Register 03-10 16:54:18.473 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 4 03-10 16:54:18.473 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:18.475 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:18.533 469 469 W hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.servicetracker@1.0::IServicetracker/default in either framework or device manifest. 03-10 16:54:18.632 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 1 03-10 16:54:18.632 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:18.634 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:18.637 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:18.637 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1041 length=24 03-10 16:54:18.642 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1041 error: 0length=0 03-10 16:54:18.644 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:19.077 4477 7601 I GoLog : DoGetMessagesCall: Unable to decode JSON response from server. Error was: json: cannot unmarshal array into Go struct field .messages of type map[string]ncsmsgo.SmsMessage 03-10 16:54:19.077 4477 7601 E OCSMSOwnCloudClient: Invalid response received from server, either messages or last_id field is missing. 03-10 16:54:19.111 4477 7601 I ASyncSMSRecovery: Finishing background recovery 03-10 16:54:19.114 1160 4897 I ActivityManager: START u0 {act=android.provider.Telephony.ACTION_CHANGE_DEFAULT cmp=com.android.settings/.SmsDefaultDialog (has extras)} from uid 10137 03-10 16:54:19.118 1160 4897 D CompatibilityInfo: mCompatibilityFlags - 0 03-10 16:54:19.118 1160 4897 D CompatibilityInfo: applicationDensity - 480 03-10 16:54:19.118 1160 4897 D CompatibilityInfo: applicationScale - 1.0 03-10 16:54:19.119 1160 4897 D ActivityTrigger: ActivityTrigger activityPauseTrigger 03-10 16:54:19.133 7475 7475 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@8020fc9 03-10 16:54:19.139 1160 4897 D CompatibilityInfo: mCompatibilityFlags - 0 03-10 16:54:19.139 1160 4897 D CompatibilityInfo: applicationDensity - 480 03-10 16:54:19.139 1160 4897 D CompatibilityInfo: applicationScale - 1.0 03-10 16:54:19.162 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:19.162 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:19.163 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:19.164 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:19.164 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1042 length=24 03-10 16:54:19.167 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1042 error: 0length=0 03-10 16:54:19.167 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:19.171 1160 3321 D ActivityTrigger: ActivityTrigger activityPauseTrigger 03-10 16:54:20.283 7779 7779 W qcom-system-dae: type=1400 audit(0.0:563): avc: denied { read write } for name="diag" dev="tmpfs" ino=16420 scontext=u:r:vendor_qcomsysd:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0 03-10 16:54:20.292 7779 7779 E QCOMSysDaemon: Can't find/open bootselect node: (No such file or directory) 03-10 16:54:20.292 7779 7779 I QCOMSysDaemon: Starting qcom system daemon 03-10 16:54:20.292 7779 7779 E Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13 03-10 16:54:20.292 7779 7779 E QCOMSysDaemon: Diag_LSM_Init failed : 0 03-10 16:54:20.473 1800 2083 D PsensorListener: [SW_SAR] Psensor unRegister 03-10 16:54:20.475 1800 2083 D GsensorListener: [SW_SAR] GsensorListener unRegister 03-10 16:54:20.475 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 0 03-10 16:54:20.475 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:20.477 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:21.391 607 607 D ThermalHAL-TARGET: Entering get_temperatures 03-10 16:54:21.391 607 607 D ThermalHAL-TARGET: Entering get_temperatures 03-10 16:54:21.391 607 607 D ThermalHAL-UTIL: Entering get_temperature_for_all 03-10 16:54:21.391 607 607 D ThermalHAL-UTIL: Entering read_temperature 03-10 16:54:21.391 607 607 I chatty : uid=1000(system) thermal@1.0-ser identical 9 lines 03-10 16:54:21.392 607 607 D ThermalHAL-UTIL: Entering read_temperature 03-10 16:54:21.394 1800 1800 D PowerUI : BatteryTempWarning updateTemperatureWarning 03-10 16:54:21.394 1800 1800 D PowerUI : BatteryTempWarning mBatteryTemp=273, mThresholdTemp=550.0, mThresholdLowTemp=0.0 03-10 16:54:22.487 1800 2083 D PsensorListener: [SW_SAR] Psensor Register 03-10 16:54:22.491 1800 2083 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:22.491 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:22.493 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:22.495 1800 2083 D GsensorListener: [SW_SAR] GsensorListener Register 03-10 16:54:22.495 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 4 03-10 16:54:22.495 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:22.497 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:22.676 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 1 03-10 16:54:22.676 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:22.677 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:22.679 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:22.679 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1043 length=24 03-10 16:54:22.682 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1043 error: 0length=0 03-10 16:54:22.682 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:23.211 1800 1800 D GsensorListener: [SW_SAR] GsensorListener setTransmitPower key = 1, value = 0 03-10 16:54:23.211 1800 1800 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:23.213 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:23.215 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 1 03-10 16:54:23.215 2100 2100 I QcrilOemhookMsgTunnel: [0]invokeOemRilRequestRaw: serial=1044 length=24 03-10 16:54:23.220 2100 2160 I QcrilOemhookMsgTunnel: [0]processOemHookResponse serial no: 1044 error: 0length=0 03-10 16:54:23.221 2100 2100 D QcrilMsgTunnelIfaceManager: handleMessage what = 2 03-10 16:54:23.490 1800 2083 D PsensorListener: [SW_SAR] Psensor unRegister 03-10 16:54:23.492 1800 2083 D GsensorListener: [SW_SAR] GsensorListener unRegister 03-10 16:54:23.492 1800 2083 D NetworkController.MobileSignalController(1): [SW_SAR] MobuileSignalController setTransmitPower key = 4, value = 0 03-10 16:54:23.493 1800 2083 D TelephonyManager: [SW_SAR] Telephonymanager setTransmitPower 03-10 16:54:23.494 1944 2499 E PhoneInterfaceManager: [PhoneIntfMgr] [SW_SAR] phone get successful 03-10 16:54:25.306 7818 7818 E QCOMSysDaemon: Can't find/open bootselect node: (No such file or directory) 03-10 16:54:25.306 7818 7818 I QCOMSysDaemon: Starting qcom system daemon 03-10 16:54:25.293 7818 7818 W qcom-system-dae: type=1400 audit(0.0:564): avc: denied { read write } for name="diag" dev="tmpfs" ino=16420 scontext=u:r:vendor_qcomsysd:s0 tcontext=u:object_r:diag_device:s0 tclass=chr_file permissive=0 ```
autra commented 4 years ago

Some lines that I find odd:

03-10 16:54:01.973  4477  4477 W fr.unix_experience.owncloud_sms: type=1400 audit(0.0:559): avc: denied { read } for comm=4173796E635461736B202331 name="hostname" dev="proc" ino=19041 scontext=u:r:untrusted_app:s0:c137,c256,c512,c768 tcontext=u:object_r:proc_hostname:s0 tclass=file permissive=0

...
03-10 16:54:19.077  4477  7601 I GoLog   : DoGetMessagesCall: Unable to decode JSON response from server. Error was: json: cannot unmarshal array into Go struct field .messages of type map[string]ncsmsgo.SmsMessage
03-10 16:54:19.077  4477  7601 E OCSMSOwnCloudClient: Invalid response received from server, either messages or last_id field is missing.
03-10 16:54:19.111  4477  7601 I ASyncSMSRecovery: Finishing background recovery
autra commented 4 years ago

Wait. This morning I did the sync again, restarted my sms app, and it froze and then my messages started to appear. I guess there is either a delay or a condition for it to work. The odd part is that I did restart my device yesterday to test exactly this possibility and it didn't help. I also checked that the requests on my nextcloud were working. It's a mystery to me :-)

autra commented 4 years ago

Ok I know how to trigger the refresh: you need to send at least one sms after the restore to see other conversations.

nerzhul commented 4 years ago

hello, yeah the refresh is not possible on our side ,it's android side, and quite anoying :(

autra commented 4 years ago

@nerzhul maybe a little explanatory text below the refresh button would help ?

autra commented 4 years ago

That being said, I just tested on LineageOS and it works :-)