Skip to content

Commit 3d51c54

Browse files
committed
🐞 fix(android): fix android 14 crash issue
1 parent 23bd6db commit 3d51c54

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ If this project has helped you out, please support us with a star 🌟
2020
| --------------- | ------------- |
2121
| `1.0.0 ~ 1.2.0` | `0.56 ~ 0.66` |
2222
| `2.0.0 ~ 2.1.1` | `0.63 ~ 0.71` |
23-
| `>= 2.1.2` | `>= 0.72` |
23+
| `2.1.2` | `0.72` |
24+
| `>= 2.1.3` | `>= 0.73` |
2425

2526
See [CHANGELOG](CHANGELOG.md) for details
2627

README.zh-CN.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ react-native-simple-openvpn 提供了与 OpenVPN 交互的接口
2020
| --------------- | ------------- |
2121
| `1.0.0 ~ 1.2.0` | `0.56 ~ 0.66` |
2222
| `2.0.0 ~ 2.1.1` | `0.63 ~ 0.71` |
23-
| `>= 2.1.2` | `>= 0.72` |
23+
| `2.1.2` | `0.72` |
24+
| `>= 2.1.3` | `>= 0.73` |
2425

2526
详细信息请参考[更改日志](CHANGELOG.md)
2627

android/src/main/AndroidManifest.xml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<uses-permission android:name="android.permission.INTERNET" />
66
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
77
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
8+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
89

910
<application
1011
android:extractNativeLibs="true"
@@ -15,6 +16,7 @@
1516
<service
1617
android:name="de.blinkt.openvpn.core.OpenVPNService"
1718
android:exported="false"
19+
android:foregroundServiceType="specialUse"
1820
android:permission="android.permission.BIND_VPN_SERVICE">
1921
<intent-filter>
2022
<action android:name="android.net.VpnService" />

0 commit comments

Comments
 (0)