celzero / rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
https://rethinkfirewall.com/
Apache License 2.0
2.61k stars 132 forks source link

Re-start the app after updates automatically #1493

Open najjara opened 4 weeks ago

najjara commented 4 weeks ago

After an update the app doesn't start up again, and I have to open it manually. This might have privacy implications, for example when the app updates during the night while asleep only to discover in the morning that apps have been busy homing info back to the mothership.

Many (most, I should say) start up automatically right after an update (for example the email client doesn't require any interactions to resume receiving mail or show notifications immediately). I'm comparing apps installed from F-Droid together, as well as apps installed from Play to each other. The behavior is the same.

The app autostarts on startup as expected. Just not after updates.

v0.5.5l (fdroid) Android 14

ignoramous commented 4 weeks ago

After an update the app doesn't start up again, and I have to open it manually

I may be mistaken, but I don't think an app can control this behaviour...? Which apps (which aren't launchers) do you see always auto-start after updates? Or, is it all apps except Rethink?

You can try turning ON Always-on VPN to see if Rethink would start after updates.

najjara commented 3 weeks ago

Which apps (which aren't launchers) do you see always auto-start after updates? Or, is it all apps except Rethink?

The most noticeable example is FairEmail (email client). It immediately shows new email notifications after it updates (if there are any unread emails), without relaunching the app. KDE Connect is another example off the top of my head.

You can try turning ON Always-on VPN to see if Rethink would start after updates.

Always-on VPN causes issues when transitioning between networks. Sometimes the tunnel needs to be rebuilt for connections to resume going through.

ignoramous commented 3 weeks ago

Thanks for the FairEmail and KDE Connect examples. we'll take a look to see what we're missing.

Always-on VPN causes issues when transitioning between networks.

Surprising.

Always-on has no bearing on how Rethink transitions between networks. In fact, Rethink doesn't need to rebuild the Android-side of the tunnel even on ALL network changes (just a few of them). The Rethink side of the tunnel is never rebuilt from v055f onwards.

najjara commented 3 weeks ago

I haven't tried "always-on" in some time (but not that long ago), since before v055f. Generally speaking, the app functions as it should and doesn't disappear on its own under normal operation. The only issue is after updates.

v055m should drop in F-Droid soon. I'll see how that one goes.

najjara commented 2 weeks ago

Still doesn't autostart on 055n