Apply one fixed baseline to every scoped app; drop all settings
Per-app settings never worked: a hooked app reads Veil's config through XSharedPreferences, which for a legacy module points at Veil's private data dir (/data/data/space.bdeshi.veil/shared_prefs). Hooked apps can't read it, so every app silently fell back to "hide everything" and every toggle, hidden-package edit and picker entry was ignored. Confirmed on device with Veil Probe: unticking a feature changed nothing. The framework's fix for this (xposedsharedprefs, redirecting the module's prefs dir to one hooked apps can read) needs the framework to hook Veil's own process. On Vector v2.2 here it never does, even with Veil in its own scope and after a reboot, so there's no reliable channel from Veil's app to a hooked app. So stop pretending there is one: - VeilHook applies all six features with the fixed Features.HIDDEN_PACKAGES (KernelSU, Magisk, Veil) to every app in scope, with no prefs read. - Remove discovery: the Application#attach hook, the exported provider (one less way for an app to spot Veil) and the launcher <queries>. - The settings screen becomes a read-only summary plus the help panel; help tips cover leaving an app out of scope, changing the list by rebuilding, and turning verbose logging off afterwards, since it names Veil in each hooked app's own logcat. Verified on device: all 24 testable hooked paths in Veil Probe stay hidden, Veil's provider no longer resolves, a scoped app still loads Veil. Co-Authored-By: agent <agent@bdeshi.space>
This commit is contained in:
7 files changed
+102
-576
No files matched your search
@@ -1,15 +1,5 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- Lets the "Add app" picker list launchable apps, including ones that can't see Veil
|
||||
and so never reach its discovery provider. This only widens what Veil can see; it
|
||||
doesn't make Veil any more visible to the apps it hides things from. -->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
<application
|
||||
android:label="@string/app_name"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
@@ -39,10 +29,5 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name=".VeilProvider"
|
||||
android:authorities="space.bdeshi.veil.provider"
|
||||
android:exported="true" />
|
||||
|
||||
</application>
|
||||
</manifest>
|
||||
Reference in new issue
Block a user