-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android: implement fast user switching (#209)
Updates tailscale/corp#18202 Updates ENG-2875 Fixes ENG-2863 Adds everything we need to do fast user switching and support multiple accounts. Some work here to make the settings rows and a few other composables common and reusable. Correct the focus and clear behavior on the search bar and corrected the connected in state of SelfNode. Quick fix for requesting VPN permissions on newer Android phones. Signed-off-by: Jonathan Nobels <[email protected]>
- Loading branch information
Showing
22 changed files
with
1,401 additions
and
946 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1,85 +1,104 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28"/> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | ||
|
||
<!-- Disable input emulation on ChromeOS --> | ||
<uses-feature android:name="android.hardware.type.pc" android:required="false"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | ||
<uses-permission | ||
android:name="android.permission.WRITE_EXTERNAL_STORAGE" | ||
android:maxSdkVersion="28" /> | ||
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | ||
|
||
<!-- Signal support for Android TV --> | ||
<uses-feature android:name="android.software.leanback" android:required="false" /> | ||
<uses-feature android:name="android.hardware.touchscreen" android:required="false" /> | ||
<!-- Disable input emulation on ChromeOS --> | ||
<uses-feature | ||
android:name="android.hardware.type.pc" | ||
android:required="false" /> | ||
|
||
<application android:label="Tailscale" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" | ||
android:banner="@drawable/tv_banner" | ||
android:name=".App" android:allowBackup="false"> | ||
<activity android:name="MainActivity" | ||
android:label="@string/app_name" | ||
android:theme="@style/Theme.GioApp" | ||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden" | ||
android:windowSoftInputMode="adjustResize" | ||
android:launchMode="singleTask" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
<category android:name="android.intent.category.DEFAULT"/> | ||
<data android:mimeType="application/*" /> | ||
<data android:mimeType="audio/*" /> | ||
<data android:mimeType="image/*" /> | ||
<data android:mimeType="message/*" /> | ||
<data android:mimeType="multipart/*" /> | ||
<data android:mimeType="text/*" /> | ||
<data android:mimeType="video/*" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND_MULTIPLE" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<data android:mimeType="application/*" /> | ||
<data android:mimeType="audio/*" /> | ||
<data android:mimeType="image/*" /> | ||
<data android:mimeType="message/*" /> | ||
<data android:mimeType="multipart/*" /> | ||
<data android:mimeType="text/*" /> | ||
<data android:mimeType="video/*" /> | ||
</intent-filter> | ||
</activity> | ||
<receiver android:name="IPNReceiver" | ||
android:exported="true" | ||
> | ||
<intent-filter> | ||
<action android:name="com.tailscale.ipn.CONNECT_VPN" /> | ||
<action android:name="com.tailscale.ipn.DISCONNECT_VPN" /> | ||
</intent-filter> | ||
</receiver> | ||
<service android:name=".IPNService" | ||
android:permission="android.permission.BIND_VPN_SERVICE" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="android.net.VpnService"/> | ||
</intent-filter> | ||
</service> | ||
<service | ||
android:name=".QuickToggleService" | ||
android:icon="@drawable/ic_tile" | ||
android:label="@string/tile_name" | ||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.service.quicksettings.action.QS_TILE"/> | ||
</intent-filter> | ||
</service> | ||
</application> | ||
</manifest> | ||
<!-- Signal support for Android TV --> | ||
<uses-feature | ||
android:name="android.software.leanback" | ||
android:required="false" /> | ||
<uses-feature | ||
android:name="android.hardware.touchscreen" | ||
android:required="false" /> | ||
|
||
<application | ||
android:label="Tailscale" | ||
android:icon="@mipmap/ic_launcher" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:banner="@drawable/tv_banner" | ||
android:name=".App" | ||
android:allowBackup="false"> | ||
<activity | ||
android:name="MainActivity" | ||
android:label="@string/app_name" | ||
android:theme="@style/Theme.GioApp" | ||
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden" | ||
android:windowSoftInputMode="adjustResize" | ||
android:launchMode="singleTask" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:mimeType="application/*" /> | ||
<data android:mimeType="audio/*" /> | ||
<data android:mimeType="image/*" /> | ||
<data android:mimeType="message/*" /> | ||
<data android:mimeType="multipart/*" /> | ||
<data android:mimeType="text/*" /> | ||
<data android:mimeType="video/*" /> | ||
</intent-filter> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEND_MULTIPLE" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
|
||
<data android:mimeType="application/*" /> | ||
<data android:mimeType="audio/*" /> | ||
<data android:mimeType="image/*" /> | ||
<data android:mimeType="message/*" /> | ||
<data android:mimeType="multipart/*" /> | ||
<data android:mimeType="text/*" /> | ||
<data android:mimeType="video/*" /> | ||
</intent-filter> | ||
</activity> | ||
<receiver | ||
android:name="IPNReceiver" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="com.tailscale.ipn.CONNECT_VPN" /> | ||
<action android:name="com.tailscale.ipn.DISCONNECT_VPN" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
<service | ||
android:name=".IPNService" | ||
android:permission="android.permission.BIND_VPN_SERVICE" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="android.net.VpnService" /> | ||
</intent-filter> | ||
</service> | ||
<service | ||
android:name=".QuickToggleService" | ||
android:icon="@drawable/ic_tile" | ||
android:label="@string/tile_name" | ||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.service.quicksettings.action.QS_TILE" /> | ||
</intent-filter> | ||
</service> | ||
</application> | ||
</manifest> |
Oops, something went wrong.