这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danog
Copy link
Contributor

@danog danog commented Aug 15, 2019

Fixes #377 by whitelisting termux when the user clicks on the wakelock button for the first time.

Even if the android docs say a foreground service is enough to prevent suspension, on my devices running CLI services stop sending UDP/TCP packets and get suspended if the app is reduced or the device is locked.
This is especially noticeable when running a simple time ping 192.168.1.1; on resume, the ICMP sequence number is way lower than the number of elapsed seconds, indicating a suspension of the process.

Anyway, I encountered this issue on my devices and noticed that manual whitelisting fixed it, thought I could contribute with an automated fix.

@fornwall fornwall merged commit 94e5bc8 into termux:master Aug 18, 2019
@fornwall
Copy link
Member

Really nice work @danog!

This will be in v0.74 of the app, to be released in an hour or so.

@danog
Copy link
Contributor Author

danog commented Aug 22, 2019

Thanks <3<3<3!
Would you mind checking on my other PR for working fingerprint recognition in termux/termux-api#283?

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Termux slows down in "doze mode" (battery optimization) even with the wake lock

2 participants