From 3ee56ac6e6e723a371f5e3c4f9a4b3b73069cc7d Mon Sep 17 00:00:00 2001 From: bdeshi Date: Thu, 6 Aug 2026 21:04:35 +0600 Subject: [PATCH] Drop manual package-name entry now that auto-detection covers it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If an app is genuinely scoped in LSPosed, Veil already picks it up on its own. If it isn't scoped, typing its package name here wouldn't do anything anyway — the hook never runs in that process. The manual entry field was redundant either way. Co-Authored-By: Claude Sonnet 5 --- .../space/bdeshi/veil/SettingsActivity.kt | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/app/src/main/java/space/bdeshi/veil/SettingsActivity.kt b/app/src/main/java/space/bdeshi/veil/SettingsActivity.kt index 5284f16..dca47d4 100644 --- a/app/src/main/java/space/bdeshi/veil/SettingsActivity.kt +++ b/app/src/main/java/space/bdeshi/veil/SettingsActivity.kt @@ -50,7 +50,6 @@ class SettingsActivity : AppCompatActivity() { private lateinit var hiddenPackagesChips: ChipGroup private lateinit var helpContainer: View private lateinit var helpToggle: MaterialButton - private lateinit var packageInput: TextInputEditText private lateinit var hiddenPackageInput: TextInputEditText private var helpVisible = false @@ -105,25 +104,14 @@ class SettingsActivity : AppCompatActivity() { root.addView(sectionTitle("Apps")) root.addView(TextView(this).apply { - text = "Add the package name of an app you've scoped this module to in LSPosed, " + - "or just scope it in LSPosed and open the target app once — Veil picks it up " + - "automatically. Apps not listed here get everything hidden by default." + text = "Scope this module to a target app in LSPosed Manager, then open that app " + + "once — it shows up here automatically. Apps not listed here get everything " + + "hidden by default." textSize = 13f alpha = 0.8f setPadding(0, dp(4), 0, dp(8)) }) - packageInput = textInput("e.g. com.example.targetapp") - root.addView(addRow(packageInput) { - val pkg = packageInput.text.toString().trim() - if (pkg.isNotEmpty() && pkg.contains(".")) { - prefs.edit().putStringSet(Features.keyFor(pkg), Features.ALL.toMutableSet()).apply() - fixPermissions() - packageInput.setText("") - refreshAppList() - } - }) - appListContainer = LinearLayout(this).apply { orientation = LinearLayout.VERTICAL setPadding(0, dp(8), 0, 0) @@ -232,7 +220,7 @@ class SettingsActivity : AppCompatActivity() { if (packages.isEmpty()) { appListContainer.addView(TextView(this).apply { text = "No apps yet — scope Veil to a target app in LSPosed Manager and open " + - "it once, or add a package name above." + "it once." textSize = 13f alpha = 0.8f })