mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-05-22 19:20:59 +00:00
The off-by-default toggle silenced VpnHide logs everywhere — which silently broke the two diagnostic capture paths that bug reports actually depend on: Start recording would share a logcat with zero VpnHide-tagged lines, and Collect debug log would zip up a useless `logcat.txt` stub. Extract applyDebugLoggingRuntime() that pushes the flag to runtime sinks (VpnHideLog.enabled + the two flag files) without writing SharedPreferences. exportDebugZip and LogcatRecorder.start call it to force-enable on entry when the persisted preference is OFF; on exit they reconcile against the current SharedPreferences state so a user who flipped the UI toggle mid-capture wins over the rollback. Rewrites the toggle's description string to reflect that users don't need to touch it for one-off bug reports — the capture buttons handle it — and keep the toggle as an escape hatch for "emit logs continuously" cases. |
||
|---|---|---|
| .. | ||
| src | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||