-
-
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
Closed
Closed
Changes from all commits
Commits
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,129 @@ | ||
| <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"/> | ||
|
|
||
| <!-- | ||
| Stealth no-VPN manifest. | ||
|
|
||
| Identity (label, icon, scheme) is injected via manifestPlaceholders so | ||
| the integrator can supply neutral / randomized values without modifying | ||
| this file. Placeholders mirror the naming used by the identity | ||
| randomization PR (#8781): | ||
| appLabel – visible app name | ||
| appIcon – launcher icon (mipmap reference) | ||
| appRoundIcon – round launcher icon (mipmap reference) | ||
| appAuthScheme – custom-scheme fallback for deep-links | ||
|
|
||
| Surfaces removed vs the normal manifest (stealth / QA requirements): | ||
| - usesCleartextTraffic (proxy handles TLS termination) | ||
| - Brand domain app-links with domain verification | ||
| - Hardcoded custom scheme replaced with ${appAuthScheme} placeholder | ||
| - Payment-provider metadata and query intents | ||
| - VPN service, quick-tile service, TUN (removed in earlier commits) | ||
|
|
||
| android:name references the application class by its current source name. | ||
| The identity randomization PR (#8781) renames this class; the reference | ||
| here will be updated to match when that lands. | ||
| --> | ||
|
|
||
| <application | ||
| android:name=".LanternApp" | ||
| android:icon="${appIcon}" | ||
| android:label="${appLabel}" | ||
| android:roundIcon="${appRoundIcon}"> | ||
|
|
||
| <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"> | ||
| <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" /> | ||
|
|
||
| <!-- Custom-scheme deep-link fallback using a neutral per-build scheme. | ||
| The ${appAuthScheme} placeholder is supplied by build.gradle | ||
| manifestPlaceholders and must be set to a value that does not | ||
| contain any brand-identifying token. --> | ||
| <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="${appAuthScheme}" 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="${appAuthScheme}" 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="${appAuthScheme}" android:host="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> | ||
|
|
||
| </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> | ||
| </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.