-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
[stealth 07/11] Add Android stealth no-VPN proxy build #8782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
reflog
wants to merge
16
commits into
main
Choose a base branch
from
stealth/8769-novpn-proxy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
a6ca338
Add Android stealth no-VPN proxy build
reflog c4943d9
Address review feedback for no-VPN proxy service
reflog 866f33b
Use special-use foreground service for no-VPN proxy
reflog 90c5d66
Monitor default network in no-VPN proxy
reflog 2df2523
fix: synchronize no-vpn proxy restarts
reflog 5c0fa1e
fix: trim no-vpn manifest exposure
reflog e78143b
fix: preserve no-vpn settings and artifacts
reflog 3dfcbf6
fix: avoid no-vpn proxy autostart
reflog c8ec988
fix: refine no-vpn retry and settings copy
reflog 0dc53c1
fix: use neutral no-vpn service wrapper
reflog 1457f16
fix: avoid no-vpn proxy auto reconnect
reflog 7b7a0af
fix: clear rejected no-vpn proxy starts
reflog 4400d2b
fix: serialize no-vpn stop requests
reflog 0ebe5e1
fix: drop no-vpn write settings permission
reflog bb4bbc4
fix: queue no-vpn stop during operations
reflog 63476bf
fix: clean up no-vpn timeout state
reflog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -checkdiscard class org.getlantern.lantern.service.LanternVpnService | ||
| -checkdiscard class org.getlantern.lantern.service.QuickTileService |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:installLocation="auto"> | ||
|
|
||
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
| <uses-permission android:name="android.permission.INTERNET" /> | ||
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | ||
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" /> | ||
| <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | ||
| <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
| <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | ||
|
|
||
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> | ||
| <!-- <uses-permission android:name="android.permission.USE_EXACT_ALARM" /> --> | ||
|
|
||
| <application | ||
| android:name=".LanternApp" | ||
| android:icon="@mipmap/ic_launcher" | ||
| android:label="Lantern" | ||
| android:usesCleartextTraffic="true" | ||
| android:roundIcon="@mipmap/ic_launcher_round"> | ||
|
|
||
| <activity | ||
| android:name=".MainActivity" | ||
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" | ||
| android:exported="true" | ||
| android:hardwareAccelerated="true" | ||
| android:launchMode="singleTask" | ||
| android:taskAffinity="" | ||
| android:screenOrientation="portrait" | ||
| android:theme="@style/LaunchTheme" | ||
| android:windowSoftInputMode="adjustResize"> | ||
| <!-- Specifies an Android theme to apply to this Activity as soon as | ||
| the Android process has started. This theme is visible to the user | ||
| while the Flutter UI initializes. After that, this theme continues | ||
| to determine the Window background behind the Flutter UI. --> | ||
| <meta-data | ||
| android:name="io.flutter.embedding.android.NormalTheme" | ||
| android:resource="@style/NormalTheme" /> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.MAIN" /> | ||
| <category android:name="android.intent.category.LAUNCHER" /> | ||
| </intent-filter> | ||
| <meta-data | ||
| android:name="flutter_deeplinking_enabled" | ||
| android:value="false" /> | ||
|
|
||
| <intent-filter android:autoVerify="true"> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="https" android:host="lantern.io" android:pathPrefix="/report-issue" /> | ||
| </intent-filter> | ||
| <intent-filter android:autoVerify="true"> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="https" android:host="lantern.io" android:pathPrefix="/auth" /> | ||
| </intent-filter> | ||
| <!-- Custom scheme fallback for browsers that don't support Android App Links (e.g. Firefox) --> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="lantern" android:host="auth" /> | ||
| </intent-filter> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="lantern" android:host="report-issue" /> | ||
| </intent-filter> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="lantern" android:host="private-server" /> | ||
| </intent-filter> | ||
| <intent-filter android:autoVerify="true"> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="https" android:host="lantern.io" android:pathPrefix="/private-server" /> | ||
| </intent-filter> | ||
| <intent-filter android:autoVerify="true"> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="https" android:host="www.lantern.io" android:pathPrefix="/report-issue" /> | ||
| </intent-filter> | ||
| <intent-filter android:autoVerify="true"> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="https" android:host="www.lantern.io" android:pathPrefix="/auth" /> | ||
| </intent-filter> | ||
| <intent-filter android:autoVerify="true"> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <category android:name="android.intent.category.DEFAULT" /> | ||
| <category android:name="android.intent.category.BROWSABLE" /> | ||
| <data android:scheme="https" android:host="www.lantern.io" android:pathPrefix="/private-server" /> | ||
| </intent-filter> | ||
|
|
||
| </activity> | ||
|
|
||
| <receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" /> | ||
| <receiver android:exported="false" android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"> | ||
| <intent-filter> | ||
| <action android:name="android.intent.action.BOOT_COMPLETED"/> | ||
| <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/> | ||
| <action android:name="android.intent.action.QUICKBOOT_POWERON" /> | ||
| <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> | ||
| </intent-filter> | ||
| </receiver> | ||
|
|
||
| <!-- Don't delete the meta-data below. | ||
| This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | ||
| <meta-data | ||
| android:name="flutterEmbedding" | ||
| android:value="2" /> | ||
|
|
||
|
|
||
| <service | ||
| android:name="foundation.bridge.SyncService" | ||
| android:exported="false" | ||
| android:foregroundServiceType="specialUse"> | ||
| <property | ||
| android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" | ||
| android:value="User-controlled local proxy connection" /> | ||
| </service> | ||
|
|
||
| <meta-data | ||
| android:name="com.google.android.gms.wallet.api.enabled" | ||
| android:value="true"/> | ||
|
|
||
| </application> | ||
| <!-- Required to query activities that can process text, see: | ||
| https://developer.android.com/training/package-visibility and | ||
| https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. | ||
|
|
||
| In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> | ||
| <queries> | ||
| <intent> | ||
| <action android:name="android.intent.action.PROCESS_TEXT" /> | ||
| <data android:mimeType="text/plain" /> | ||
| </intent> | ||
| <intent> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <data android:scheme="alipays" /> | ||
| </intent> | ||
| <intent> | ||
| <action android:name="android.intent.action.VIEW" /> | ||
| <data android:scheme="alipay" /> | ||
| </intent> | ||
| <package android:name="com.eg.android.AlipayGphone" /> | ||
| </queries> | ||
|
|
||
|
|
||
| </manifest> |
5 changes: 5 additions & 0 deletions
5
android/app/src/main/kotlin/foundation/bridge/NoVpnComponents.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| package foundation.bridge | ||
|
|
||
| import org.getlantern.lantern.service.NoVpnLanternService | ||
|
|
||
| class SyncService : NoVpnLanternService() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.