mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-05-20 17:28:49 +00:00
Two bugs in live UID reload: 1. FileObserver was created as a local variable and garbage collected after watchTargetUidsFile() returned, killing the inotify watch. Fix: store as a class field (targetUidsFileObserver). 2. Watched the file directly — inotify tracks inodes, so cp/mv replacing the file made the watch stale. Fix: watch the directory /data/system/ and filter by filename in onEvent. Also fix sanitizeNetworkCapabilitiesString regex crash by replacing regex with indexOf/substring operations. |
||
|---|---|---|
| .. | ||
| src/main | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||