Skip to content

Commit 9bd017a

Browse files
committed
update to 9.1.4
1 parent 4951061 commit 9bd017a

66 files changed

Lines changed: 1196 additions & 406 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎TMessagesProj/build.gradle‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
implementation 'androidx.exifinterface:exifinterface:1.3.3'
2323
implementation 'androidx.dynamicanimation:dynamicanimation:1.0.0'
2424
implementation 'androidx.multidex:multidex:2.0.1'
25-
implementation "androidx.sharetarget:sharetarget:1.1.0"
25+
implementation "androidx.sharetarget:sharetarget:1.2.0"
2626

2727
compileOnly 'org.checkerframework:checker-qual:2.5.2'
2828
compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
@@ -79,8 +79,8 @@ android {
7979
defaultConfig.versionCode = Integer.parseInt(APP_VERSION_CODE)
8080

8181
defaultConfig {
82-
minSdkVersion 16
83-
targetSdkVersion 30
82+
minSdkVersion 19
83+
targetSdkVersion 31
8484
versionName "8.9.0"
8585

8686
vectorDrawables.generatedDensities = ['mdpi', 'hdpi', 'xhdpi', 'xxhdpi']

‎TMessagesProj/config/debug/AndroidManifest.xml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
1414
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
1515
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
16+
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
1617

1718
<permission android:name="${applicationId}.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
1819

@@ -31,7 +32,7 @@
3132
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
3233

3334
<service
34-
android:name="org.telegram.messenger.GcmPushListenerService">
35+
android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
3536
<intent-filter>
3637
<action android:name="com.google.firebase.MESSAGING_EVENT" />
3738
</intent-filter>
@@ -45,7 +46,8 @@
4546
<receiver
4647
tools:replace="android:enabled"
4748
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
48-
android:enabled="false">
49+
android:enabled="false"
50+
android:exported="false">
4951
<intent-filter>
5052
<action android:name="com.google.android.gms.measurement.UPLOAD" />
5153
</intent-filter>

‎TMessagesProj/config/debug/AndroidManifest_SDK23.xml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
3535

3636
<service
37-
android:name="org.telegram.messenger.GcmPushListenerService">
37+
android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
3838
<intent-filter>
3939
<action android:name="com.google.firebase.MESSAGING_EVENT" />
4040
</intent-filter>
@@ -48,7 +48,8 @@
4848
<receiver
4949
tools:replace="android:enabled"
5050
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
51-
android:enabled="false">
51+
android:enabled="false"
52+
android:exported="false">
5253
<intent-filter>
5354
<action android:name="com.google.android.gms.measurement.UPLOAD" />
5455
</intent-filter>

‎TMessagesProj/config/release/AndroidManifest.xml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
1414
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
1515
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
16+
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
1617

1718
<permission android:name="${applicationId}.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
1819

@@ -31,7 +32,7 @@
3132
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
3233

3334
<service
34-
android:name="org.telegram.messenger.GcmPushListenerService">
35+
android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
3536
<intent-filter>
3637
<action android:name="com.google.firebase.MESSAGING_EVENT" />
3738
</intent-filter>
@@ -45,7 +46,8 @@
4546
<receiver
4647
tools:replace="android:enabled"
4748
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
48-
android:enabled="false">
49+
android:enabled="false"
50+
android:exported="false">
4951
<intent-filter>
5052
<action android:name="com.google.android.gms.measurement.UPLOAD" />
5153
</intent-filter>

‎TMessagesProj/config/release/AndroidManifest_SDK23.xml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
3535

3636
<service
37-
android:name="org.telegram.messenger.GcmPushListenerService">
37+
android:name="org.telegram.messenger.GcmPushListenerService"
38+
android:exported="true">
3839
<intent-filter>
3940
<action android:name="com.google.firebase.MESSAGING_EVENT" />
4041
</intent-filter>
@@ -48,7 +49,8 @@
4849
<receiver
4950
tools:replace="android:enabled"
5051
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
51-
android:enabled="false">
52+
android:enabled="false"
53+
android:exported="false">
5254
<intent-filter>
5355
<action android:name="com.google.android.gms.measurement.UPLOAD" />
5456
</intent-filter>

‎TMessagesProj/config/release/AndroidManifest_standalone.xml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyA-t0jLPjUt2FxrA8VPK2EiYHcYcboIR6k" />
115115

116116
<service
117-
android:name="org.telegram.messenger.GcmPushListenerService">
117+
android:name="org.telegram.messenger.GcmPushListenerService" android:exported="true">
118118
<intent-filter>
119119
<action android:name="com.google.firebase.MESSAGING_EVENT" />
120120
</intent-filter>
@@ -128,7 +128,8 @@
128128
<receiver
129129
tools:replace="android:enabled"
130130
android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
131-
android:enabled="false">
131+
android:enabled="false"
132+
android:exported="false">
132133
<intent-filter>
133134
<action android:name="com.google.android.gms.measurement.UPLOAD" />
134135
</intent-filter>

‎TMessagesProj/src/main/AndroidManifest.xml‎

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@
184184
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
185185
android:hardwareAccelerated="@bool/useHardwareAcceleration"
186186
android:launchMode="singleTask"
187-
android:windowSoftInputMode="adjustResize">
187+
android:windowSoftInputMode="adjustResize"
188+
android:exported="true">
188189
<intent-filter>
189190
<action android:name="android.intent.action.MAIN" />
190191
</intent-filter>
@@ -251,7 +252,8 @@
251252
<activity-alias
252253
android:name="org.telegram.ui.CallsActivity"
253254
android:targetActivity="org.telegram.ui.LaunchActivity"
254-
android:permission="android.permission.CALL_PHONE">
255+
android:permission="android.permission.CALL_PHONE"
256+
android:exported="true">
255257
<intent-filter>
256258
<action android:name="android.intent.action.VIEW"/>
257259
<category android:name="android.intent.category.DEFAULT"/>
@@ -274,7 +276,8 @@
274276
android:windowSoftInputMode="adjustPan"
275277
android:excludeFromRecents="true"
276278
android:stateNotNeeded="true"
277-
android:theme="@style/Theme.TMessages.Transparent">
279+
android:theme="@style/Theme.TMessages.Transparent"
280+
android:exported="true">
278281
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:priority="1">
279282
<action android:name="android.intent.action.VIEW" />
280283
<category android:name="android.intent.category.BROWSABLE" />
@@ -286,7 +289,8 @@
286289
android:name="org.telegram.ui.ExternalActionActivity"
287290
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
288291
android:hardwareAccelerated="@bool/useHardwareAcceleration"
289-
android:windowSoftInputMode="adjustPan">
292+
android:windowSoftInputMode="adjustPan"
293+
android:exported="true">
290294
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round">
291295
<action android:name="org.telegram.passport.AUTHORIZE"/>
292296
<category android:name="android.intent.category.DEFAULT"/>
@@ -296,7 +300,8 @@
296300
android:name="org.telegram.ui.ChatsWidgetConfigActivity"
297301
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
298302
android:hardwareAccelerated="@bool/useHardwareAcceleration"
299-
android:windowSoftInputMode="adjustPan">
303+
android:windowSoftInputMode="adjustPan"
304+
android:exported="true">
300305
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round">
301306
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
302307
</intent-filter>
@@ -305,7 +310,8 @@
305310
android:name="org.telegram.ui.ContactsWidgetConfigActivity"
306311
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
307312
android:hardwareAccelerated="@bool/useHardwareAcceleration"
308-
android:windowSoftInputMode="adjustPan">
313+
android:windowSoftInputMode="adjustPan"
314+
android:exported="true">
309315
<intent-filter android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round">
310316
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE"/>
311317
</intent-filter>
@@ -377,7 +383,7 @@
377383
</intent-filter>
378384
</receiver>
379385

380-
<receiver android:name=".CallReceiver">
386+
<receiver android:name=".CallReceiver" android:exported="false">
381387
<intent-filter>
382388
<action android:name="android.intent.action.PHONE_STATE"/>
383389
</intent-filter>
@@ -404,28 +410,29 @@
404410
<service android:name=".KeepAliveJob"
405411
android:exported="false"
406412
android:permission="android.permission.BIND_JOB_SERVICE"/>
407-
<service android:name=".BringAppForegroundService" android:enabled="true"/>
408-
<service android:name=".NotificationsService" android:enabled="true"/>
413+
<service android:name=".BringAppForegroundService" android:enabled="true" android:exported="true"/>
414+
<service android:name=".NotificationsService" android:enabled="true" android:exported="true"/>
409415
<service android:name=".NotificationRepeat" android:exported="false"/>
410-
<service android:name=".VideoEncodingService" android:enabled="true"/>
411-
<service android:name=".ImportingService" android:enabled="true"/>
416+
<service android:name=".VideoEncodingService" android:enabled="true" android:exported="true"/>
417+
<service android:name=".ImportingService" android:enabled="true" android:exported="true"/>
412418
<service android:name=".LocationSharingService"
413419
android:foregroundServiceType="location"
414-
android:enabled="true"/>
420+
android:enabled="true"
421+
android:exported="true"/>
415422
<service android:name=".voip.VoIPService" android:enabled="true" android:foregroundServiceType="mediaProjection|camera|microphone|mediaPlayback"/>
416423
<service android:name=".MusicPlayerService" android:exported="true" android:enabled="true" android:foregroundServiceType="mediaPlayback"/>
417424
<service android:name=".MusicBrowserService" android:exported="true">
418425
<intent-filter>
419426
<action android:name="android.media.browse.MediaBrowserService"/>
420427
</intent-filter>
421428
</service>
422-
<service android:name=".voip.TelegramConnectionService" android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
429+
<service android:name=".voip.TelegramConnectionService" android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE" android:exported="true">
423430
<intent-filter>
424431
<action android:name="android.telecom.ConnectionService" />
425432
</intent-filter>
426433
</service>
427434

428-
<receiver android:name=".MusicPlayerReceiver" >
435+
<receiver android:name=".MusicPlayerReceiver" android:exported="false">
429436
<intent-filter>
430437
<action android:name="org.telegram.android.musicplayer.close" />
431438
<action android:name="org.telegram.android.musicplayer.pause" />
@@ -442,7 +449,7 @@
442449
</intent-filter>
443450
</receiver>
444451

445-
<receiver android:name=".AppStartReceiver" android:enabled="true">
452+
<receiver android:name=".AppStartReceiver" android:enabled="true" android:exported="false">
446453
<intent-filter>
447454
<action android:name="org.telegram.start" />
448455
<action android:name="android.intent.action.BOOT_COMPLETED" />

‎TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public static void startPushService() {
297297
} else {
298298
applicationContext.stopService(new Intent(applicationContext, NotificationsService.class));
299299

300-
PendingIntent pintent = PendingIntent.getService(applicationContext, 0, new Intent(applicationContext, NotificationsService.class), 0);
300+
PendingIntent pintent = PendingIntent.getService(applicationContext, 0, new Intent(applicationContext, NotificationsService.class), PendingIntent.FLAG_MUTABLE);
301301
AlarmManager alarm = (AlarmManager)applicationContext.getSystemService(Context.ALARM_SERVICE);
302302
alarm.cancel(pintent);
303303
}

‎TMessagesProj/src/main/java/org/telegram/messenger/BuildVars.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public class BuildVars {
2424
public static boolean USE_CLOUD_STRINGS = true;
2525
public static boolean CHECK_UPDATES = true;
2626
public static boolean NO_SCOPED_STORAGE = Build.VERSION.SDK_INT <= 29;
27-
public static int BUILD_VERSION = 2917;
28-
public static String BUILD_VERSION_STRING = "9.1.3";
27+
public static int BUILD_VERSION = 2927;
28+
public static String BUILD_VERSION_STRING = "9.1.4";
2929
public static int APP_ID = 4;
3030
public static String APP_HASH = "014b35b6184100b085b0d0572f9b5103";
3131

‎TMessagesProj/src/main/java/org/telegram/messenger/ChatsWidgetProvider.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static void updateWidget(Context context, AppWidgetManager appWidgetManag
110110
intent.setAction("com.tmessages.openchat" + Math.random() + Integer.MAX_VALUE);
111111
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
112112
intent.addCategory(Intent.CATEGORY_LAUNCHER);
113-
PendingIntent contentIntent = PendingIntent.getActivity(ApplicationLoader.applicationContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
113+
PendingIntent contentIntent = PendingIntent.getActivity(ApplicationLoader.applicationContext, 0, intent, PendingIntent.FLAG_MUTABLE | PendingIntent.FLAG_UPDATE_CURRENT);
114114

115115
rv.setPendingIntentTemplate(R.id.list_view, contentIntent);
116116
appWidgetManager.updateAppWidget(appWidgetId, rv);

0 commit comments

Comments
 (0)