Improve per-app proxy

This commit is contained in:
世界
2025-12-18 22:25:15 +08:00
parent 386a401c00
commit 2da0674c33
12 changed files with 322 additions and 203 deletions

View File

@@ -54,24 +54,6 @@
android:layout_marginTop="8dp"
android:text="@string/per_app_proxy_description" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/perAppProxyUpdateOnChange"
style="@style/Widget.Material3.TextInputLayout.FilledBox.ExposedDropdownMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:hint="@string/per_app_proxy_update_on_change">
<AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="none"
android:text="@string/disabled"
app:simpleItems="@array/per_app_proxy_update_on_change_value" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@@ -144,7 +144,9 @@
<string name="message_scan_app_found">找到以下应用程序,请选择您想要的操作。</string>
<string name="title_scan_result">扫描结果</string>
<string name="action_deselect">取消选择</string>
<string name="per_app_proxy_update_on_change">新中国应用安装时更新</string>
<string name="per_app_proxy_manage">管理</string>
<string name="per_app_proxy_managed_mode">托管模式</string>
<string name="per_app_proxy_managed_mode_description">自动排除中国应用</string>
<string name="import_profile">导入配置</string>
<string name="import_profile_message">您确定要导入配置文件 %s 吗?</string>
<string name="icloud_profile_unsupported">当前平台不支持 iCloud 配置文件</string>

View File

@@ -12,9 +12,4 @@
<item>@string/enabled</item>
<item>@string/disabled</item>
</array>
<array name="per_app_proxy_update_on_change_value">
<item>@string/disabled</item>
<item>@string/per_app_proxy_select</item>
<item>@string/action_deselect</item>
</array>
</resources>

View File

@@ -126,6 +126,8 @@
<string name="per_app_proxy">Per-App Proxy</string>
<string name="unavailable">Unavailable</string>
<string name="check_update_automatic">Automatic Update Check</string>
<string name="check_update_prompt_play">Would you like to enable automatic update checking from **Play Store**?</string>
<string name="check_update_prompt_github">Would you like to enable automatic update checking from **GitHub**?</string>
<string name="check_update">Check Update</string>
<string name="no_updates_available">No updates available</string>
<string name="new_version_available">New version available: %s</string>
@@ -134,6 +136,28 @@
<string name="update_track_stable">Stable</string>
<string name="update_track_beta">Beta</string>
<string name="update_track_not_supported">Current track does not support update checking yet</string>
<string name="download_and_install">Download &amp; Install</string>
<string name="view_release">View Release</string>
<string name="downloading">Downloading…</string>
<string name="download_size">Download size: %s</string>
<string name="silent_install">Silent Install</string>
<string name="silent_install_title">Silent Install</string>
<string name="silent_install_description">Install updates without interaction</string>
<string name="silent_install_method">Install Method</string>
<string name="silent_install_method_description">Select an install method. The permission will be verified immediately after selection.</string>
<string name="install_method_package_installer">PackageInstaller</string>
<string name="install_method_shizuku">Shizuku</string>
<string name="install_method_root">ROOT</string>
<string name="package_installer_not_available">Install permission not granted</string>
<string name="grant_install_permission">Grant Install Permission</string>
<string name="grant_install_permission_description">Allow installing apps from this source</string>
<string name="shizuku_not_available">Shizuku is not installed or not running</string>
<string name="shizuku_description">Shizuku allows apps to use system APIs directly with higher privileges</string>
<string name="get_shizuku">Get Shizuku</string>
<string name="silent_install_not_available">ROOT and Shizuku are not available</string>
<string name="silent_install_verify_failed">%s is not available or permission denied</string>
<string name="auto_update">Auto Update</string>
<string name="auto_update_description">Automatically download and install updates in background</string>
<string name="app_version">Version %s</string>
<string name="app_version_title">App version</string>
<string name="action">Action</string>
@@ -186,7 +210,9 @@
<string name="message_scan_app_found">Found the following apps, please choose the action you want.</string>
<string name="title_scan_result">Scan Result</string>
<string name="action_deselect">Deselect</string>
<string name="per_app_proxy_update_on_change">Update on new China App Installed</string>
<string name="per_app_proxy_manage">Manage</string>
<string name="per_app_proxy_managed_mode">Managed Mode</string>
<string name="per_app_proxy_managed_mode_description">Automatically Exclude China apps</string>
<string name="import_profile">Import profile</string>
<string name="import_profile_message">Are you sure to import profile %s?</string>
<string name="icloud_profile_unsupported">iCloud profile is not support on current platform</string>