build.gradle: update to SDK31 (#68)

Required for apps to update in the Play Store after November 1.

This requires:
- manifest must specify if Intents are exported.
- PendingIntent must declare FLAG_IMMUTABLE or MUTABLE

Signed-off-by: Denton Gentry <dgentry@tailscale.com>

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
raggi/vader
Denton Gentry 2 years ago committed by GitHub
parent b6c2536147
commit ac5e24a63d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,7 @@ android {
compileSdkVersion 30 compileSdkVersion 30
defaultConfig { defaultConfig {
minSdkVersion 22 minSdkVersion 22
targetSdkVersion 30 targetSdkVersion 31
versionCode 133 versionCode 133
versionName "1.33.21-t63ad49890-g80dfbd8a0c5" versionName "1.33.21-t63ad49890-g80dfbd8a0c5"
} }

@ -22,7 +22,8 @@
android:theme="@style/Theme.GioApp" android:theme="@style/Theme.GioApp"
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden" android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden"
android:windowSoftInputMode="adjustResize" android:windowSoftInputMode="adjustResize"
android:launchMode="singleTask"> android:launchMode="singleTask"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
@ -55,7 +56,8 @@
</intent-filter> </intent-filter>
</activity> </activity>
<service android:name=".IPNService" <service android:name=".IPNService"
android:permission="android.permission.BIND_VPN_SERVICE"> android:permission="android.permission.BIND_VPN_SERVICE"
android:exported="false">
<intent-filter> <intent-filter>
<action android:name="android.net.VpnService"/> <action android:name="android.net.VpnService"/>
</intent-filter> </intent-filter>
@ -64,7 +66,8 @@
android:name=".QuickToggleService" android:name=".QuickToggleService"
android:icon="@drawable/ic_tile" android:icon="@drawable/ic_tile"
android:label="@string/tile_name" android:label="@string/tile_name"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE"/> <action android:name="android.service.quicksettings.action.QS_TILE"/>
</intent-filter> </intent-filter>

@ -45,7 +45,8 @@ public class IPNService extends VpnService {
} }
private PendingIntent configIntent() { private PendingIntent configIntent() {
return PendingIntent.getActivity(this, 0, new Intent(this, IPNActivity.class), PendingIntent.FLAG_UPDATE_CURRENT); return PendingIntent.getActivity(this, 0, new Intent(this, IPNActivity.class),
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
} }
private void disallowApp(VpnService.Builder b, String name) { private void disallowApp(VpnService.Builder b, String name) {

Loading…
Cancel
Save