File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/main/java/com/tencent/iot/hub/device/android/core/mqtt Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ apply plugin: 'signing'
4
4
5
5
6
6
android {
7
- compileSdkVersion 31
7
+ compileSdkVersion 34
8
8
buildToolsVersion " 26.0.3"
9
9
10
10
defaultConfig {
11
11
minSdkVersion 16
12
- targetSdkVersion 31
12
+ targetSdkVersion 34
13
13
versionCode 2
14
14
versionName " 1.1"
15
15
Original file line number Diff line number Diff line change 1
1
package com .tencent .iot .hub .device .android .core .mqtt ;
2
2
3
+ import static android .content .Context .RECEIVER_NOT_EXPORTED ;
4
+
3
5
import android .annotation .SuppressLint ;
4
6
import android .app .AlarmManager ;
5
7
import android .app .PendingIntent ;
@@ -64,7 +66,7 @@ public void start() {
64
66
String action = TAG + TXMqttConstants .PING_SENDER + mComms .getClient ().getClientId ();
65
67
TXLog .d (TAG , "Register alarmreceiver to Context " + action );
66
68
if (mContext != null && mAlarmReceiver != null ) {
67
- mContext .registerReceiver (mAlarmReceiver , new IntentFilter (action ));
69
+ mContext .registerReceiver (mAlarmReceiver , new IntentFilter (action ), RECEIVER_NOT_EXPORTED );
68
70
}
69
71
70
72
int flags = PendingIntent .FLAG_UPDATE_CURRENT ;
You can’t perform that action at this time.
0 commit comments