rethink-app icon indicating copy to clipboard operation
rethink-app copied to clipboard

Fine tuning app instead of adding buggy features

Open allmightyasian opened this issue 1 year ago • 9 comments

Please for god sake, stop adding features for a while and make current one work properly, Vpn and other things can wait, please make it more efficient, in battery and data aspects

allmightyasian avatar May 19 '23 05:05 allmightyasian

Hi there,

We already went through a massive 8 month rewrite to arrive at this point (#282 / #354). So it isn't that we don't take stability seriously. We do. The VPN feature should have otherwise landed in June 2021 (which it still hasn't)!

It is disappointing to hear that the app isn't stable. What issues are you seeing in particular? Are you okay with sharing bugreports (at the time of crashes) with us over email (I am mz at celzero dot com)?

As for battery use, what do your ROM's battery stats tell you? Anything beyond 10% is concerning. On my Android 12 device, Rethink doesn't go beyond 3%.

Usually, battery use is a function of firewall rules. It could be that installed apps are hammering away at the firewall in a bid to get its connections out. When you spot such apps (see the Stats screen for apps with most blocked connections), Force Stop them. Rethink cannot Force Stop these for you, since Google removed that API citing security reasons (rightly so).

A tip: If you have any app on Bypass DNS & Firewall, you can instead switch all of them to Bypass Universal / Exclude instead. The firewall works a tad differently for all apps when any app is Bypass DNS & Firewall.

ignoramous avatar May 19 '23 18:05 ignoramous

First of all a well a refined ui will be better, For example there are two sections of firewall in homepage, one universal page for one feature will be good, again its your choice im not the one to talk, As for battery usage this version is better than previous one, but the thing i don't like about this update, is you can use domain filtering only with rethink dns, if there's a way to improve it please do it, thanks for responding

allmightyasian avatar May 21 '23 16:05 allmightyasian

trusting (allowing) domains works with rdns better. It should also work with other dns upstreams, but it may not work; that's a guarantee we can't give (for example, if Quad9 / AdGuard decides to block a domain you've trusted (allowed), the app won't override it). The current version only makes that more explicit since a lot of folks were confused why trusting domains didn't work for other dns upstreams #874

The UI bit will improve over time (or, so I hope). We aren't great at UI, but I'd appreciate specific examples of what could be improved #834

ignoramous avatar May 21 '23 17:05 ignoramous

As for battery use, what do your ROM's battery stats tell you? Anything beyond 10% is concerning. On my Android 12 device, Rethink doesn't go beyond 3%.

It's about 29% at the moment for me.

mervyn-mccreight avatar Oct 08 '23 22:10 mervyn-mccreight

about 29% at the moment for me.

I'd expect it to be this high only if WireGuard / SOCKS5 / HTTP proxying or PCAP (Configure -> Settings -> Packet Capture) is enabled. Or, the Universal rule "Block any app not in use" turned ON (it uses Android's built-in Accessibility Service which is super expensive in terms of resources it consumes).

Are you using on-device blocklists? We have long suspected that it might cause power drain, but we haven't yet found any concrete reports of it.

Some users have reported that turning OFF Configure -> Settings -> Enable on-device logging improved battery life dramatically (we are unsure why or how).

Generally though, power drain is also a function of installed apps and rules. Some apps try frantically to connect to the Internet when firewalled / denied. You can spot such heavy hitting apps in the "Stats" section on "Most blocked apps". I usually Force Stop such apps.

ignoramous avatar Oct 08 '23 23:10 ignoramous

about 29% at the moment for me.

I'd expect it to be this high only if WireGuard / SOCKS5 / HTTP proxying or PCAP (Configure -> Settings -> Packet Capture) is enabled. Or, the Universal rule "Block any app not in use" turned ON (it uses Android's built-in Accessibility Service which is super expensive in terms of resources it consumes).

Are you using on-device blocklists? We have long suspected that it might cause power drain, but we haven't yet found any concrete reports of it.

Some users have reported that turning OFF Configure -> Settings -> Enable on-device logging improved battery life dramatically (we are unsure why or how).

Generally though, power drain is also a function of installed apps and rules. Some apps try frantically to connect to the Internet when firewalled / denied. You can spot such heavy hitting apps in the "Stats" section on "Most blocked apps". I usually Force Stop such apps.

Well after new update surprisingly it's working normal

allmightyasian avatar Oct 09 '23 04:10 allmightyasian

about 29% at the moment for me.

I'd expect it to be this high only if WireGuard / SOCKS5 / HTTP proxying or PCAP (Configure -> Settings -> Packet Capture) is enabled. Or, the Universal rule "Block any app not in use" turned ON (it uses Android's built-in Accessibility Service which is super expensive in terms of resources it consumes).

Are you using on-device blocklists? We have long suspected that it might cause power drain, but we haven't yet found any concrete reports of it.

Some users have reported that turning OFF Configure -> Settings -> Enable on-device logging improved battery life dramatically (we are unsure why or how).

Generally though, power drain is also a function of installed apps and rules. Some apps try frantically to connect to the Internet when firewalled / denied. You can spot such heavy hitting apps in the "Stats" section on "Most blocked apps". I usually Force Stop such apps.

Yes I use on device blocklists. I'll check the stuff you said and see if any of it reduces battery drain.

mervyn-mccreight avatar Oct 09 '23 06:10 mervyn-mccreight

I wasn't using most of the stuff you mentioned. I deactivated storing the logs for now and see if that helps. If not, I'm going to activate it again and deactivate the on device blocklists.

mervyn-mccreight avatar Oct 09 '23 06:10 mervyn-mccreight

Deactivating the local storage of logs seemed to change nothing.

Deactivating the local blocklists (I was using 5, I can share the link if that helps) brought the consumption down to 19%, which is still pretty high IMO. It might also be caused by my usage of the phone, but the nearly 30% was independent of my personal usage behavior as far as I could see.

I'll have a closer look at the third thing you mentioned (firewall).

mervyn-mccreight avatar Oct 10 '23 12:10 mervyn-mccreight

We've since employed static and dynamic analysis to improve the stability of the app, and continue to fix bugs/crashes as they get reported.

It is always a struggle to keep the app bug free (missing tests are one big reason for this, but we haven't got the bandwidth to add tests today) as every new major feature we add, ends up in us having to change a bulk of what was there before.

Closing this issue as it is too meta and fit for a "discussion" instead.

Thanks for your feedback folks, much appreciated (and keep it coming).

ignoramous avatar May 18 '24 21:05 ignoramous