这边排查日志里面说缺少这两个权限,但是代码中确实已经声明了
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : java.lang.SecurityException: Caller com.youni.mobile needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms.
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.os.Parcel.createExceptionOrNull(Parcel.java:3071)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.os.Parcel.createException(Parcel.java:3055)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.os.Parcel.readException(Parcel.java:3038)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.os.Parcel.readException(Parcel.java:2980)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:487)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.app.AlarmManager.setImpl(AlarmManager.java:1110)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.app.AlarmManager.setImpl(AlarmManager.java:1070)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at android.app.AlarmManager.setExact(AlarmManager.java:834)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at com.tencent.mars.comm.Alarm.setAlarmMgr(Alarm.java:10)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at com.tencent.mars.comm.Alarm.start(Alarm.java:16)
[2024-05-08 10:54:00.011] [29481] [31141] [5] [System.err] : at com.tencent.mars.comm.PlatformComm$C2Java.startAlarm(PlatformComm.java:2)
[2024-05-08 10:54:00.011] [29481] [31141] [6] [mars::comm] : [alarm.cc, Start, 56]:startAlarm error, id:12970367434788774344, after:500, seq:34
[2024-05-08 10:54:00.011] [29481] [4541] [4] [mars::stn] : [shortlink.cc, __RunReadWrite, 562]:task socket recv sock:104, taskid:13, cgi:/im, @0xB400007484E215A0, recv len:167 @0xB400007484E215A0, headers size:4,
[2024-05-08 10:54:00.011] [29481] [4541] [4] [mars::stn] : [shortlink.cc, __RunReadWrite, 570]:task socket close sock:104, taskid:13, cgi:/im, @0xB400007484E215A0, task socket close getsocktcpinfo:tcpi_state=0x1, tcpi_ca_state=0x0, tcpi_retransmits=0x0, tcpi_probes=0x0, tcpi_backoff=0x0, tcpi_options=0x6, tcpi_rto=0x36B00, tcpi_snd_mss=0x400, tcpi_rcv_mss=0x218, tcpi_unacked=0x0, tcpi_sacked=0x0, tcpi_lost=0x0, tcpi_retrans=0x0, tcpi_fackets=0x0, tcpi_last_data_sent=0x18, tcpi_last_ack_sent=0x0, tcpi_last_data_recv=0x0, tcpi_last_ack_recv=0x0, tcpi_pmtu=0x5DC, tcpi_rcv_ssthresh=0x1042F, tcpi_rtt=0x4F27, tcpi_rttvar=0x1F1A, tcpi_snd_ssthresh=0x578, tcpi_snd_cwnd=0xA, tcpi_advmss=0x578, tcpi_reordering=0x3, tcpi_rcv_rtt=0x0, tcpi_rcv_space=0x36B0, tcpi_total_retrans=0x
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : java.lang.SecurityException: Caller com.youni.mobile needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms.
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.os.Parcel.createExceptionOrNull(Parcel.java:3071)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.os.Parcel.createException(Parcel.java:3055)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.os.Parcel.readException(Parcel.java:3038)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.os.Parcel.readException(Parcel.java:2980)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:487)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.app.AlarmManager.setImpl(AlarmManager.java:1110)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.app.AlarmManager.setImpl(AlarmManager.java:1070)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at android.app.AlarmManager.setExact(AlarmManager.java:834)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at com.tencent.mars.comm.Alarm.setAlarmMgr(Alarm.java:10)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at com.tencent.mars.comm.Alarm.start(Alarm.java:16)
[2024-05-08 10:54:00.012] [29481] [31141] [5] [System.err] : at com.tencent.mars.comm.PlatformComm$C2Java.startAlarm(PlatformComm.java:2)
[2024-05-08 10:54:00.012] [29481] [31141] [6] [mars::comm] : [alarm.cc, Start, 56]:startAlarm error, id:12970367427004208400, after:240000, seq:35
[2024-05-08 10:54:00.012] [29481] [31141] [5] [mars::stn] : [longlink_task_manager.cc, __OnResponse, 568]:task error, taskid:0, cmdid:0, error_type:4, error_code:-10091
[2024-05-08 10:54:00.012] [29481] [31141] [4] [mars::stn] : [net_source.cc, ReportLongIP, 187]:_is_success=false, ip=***********, port=1883
[2024-05-08 10:54:00.012] [29481] [31141] [5] [mars::comm] : [platform_comm.cc, getCurWifiInfo, 260]:getCurWifiInfo error return null