meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.27k stars 680 forks source link

Network trigger not triggered #809

Open aterrones opened 7 years ago

aterrones commented 7 years ago

Hi,

My Linux Deploy configuration worked perfectly on Android Marshmallow, however, since upgrading to Lineage 14.1 (Android 7.1.2), network changes are not notified to the container (there is no console log event neither) although the option is enabled, so when the device alternates wifi/lte, the linux container has no connectivity. If I press on "Start", connectivity is restored.

"Privacyguard" and "doze mode" are disabled for Linux Deploy.

flickfeeder commented 7 years ago

Hello @aterrones did you find a workaround yet? Or has the problem been solved?

meefik commented 7 years ago

Unfortunately, the event of connecting to the network does not work in Android 7+:

"Apps targeting Android 7.0 (API level 24) and higher do not receive this broadcast if they declare the broadcast receiver in their manifest." https://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION

Maybe someone will have ideas on how to fix this.