Soft reboot when mobile data for app is restricted
Expected Behavior
Stable system, no soft reboot when permission to use mobile data is being removed from an app.
Current Behavior
If I disable "Mobile data" for an App, in this case it's AntennaPod, the phone will soft-reboot as soon as it looses connection to wireless LAN and mobile data would kick in instead.
Possible Solution
None to my knowledge, although my problem sound a lot like this one: #2514 (closed)
Steps to Reproduce
- Install AntennaPod
- Disable mobile data for AntennaPod
- Start AntennaPod while connected to wireless LAN
- Download/Stream a Podcast of your choice (this step might be optional)
- Move away from your router while running AntennaPod, until your phone loses connection to wireless LAN
- As soon as wireless LAN is gone and the phone switches to mobile data you will see a soft reboot
/device dumpling /version 18.1 /date 2021-04-01 /kernel 4.4.258-lineage /baseband .c4.7-00070-8998_GEN_PACK-2.271073.1.277412.1 /mods microG, F-Droid, magisk
I have read the directions.
This might be the interesting part of the log, but the full log is attached to this issue:
04-08 17:19:02.111 781 797 E Netd : Error adding route ::/0 -> fe80::71e2:e329:2213:7e2e rmnet_data1 to table 1010: File exists
04-08 17:19:02.109 1397 2427 D ConnectivityService: [102 CELLULAR] EVENT_NETWORK_INFO_CHANGED, going from CONNECTED to CONNECTED
04-08 17:19:02.112 1397 2427 D ConnectivityService: Setting DNS servers for network 102 to [/10.74.210.210, /10.74.210.211, /2a01:598:7ff:0:10:74:210:210, /2a01:598:7ff:0:10:74:210:211]
04-08 17:19:02.112 1397 2427 D DnsManager: sendDnsConfigurationForNetwork(102, [10.74.210.210, 10.74.210.211, 2a01:598:7ff:0:10:74:210:210, 2a01:598:7ff:0:10:74:210:211], [], 1800, 25, 8, 64, 0, 0, , [10.74.210.210, 10.74.210.211, 2a01:598:7ff:0:10:74:210:210, 2a01:598:7ff:0:10:74:210:211])
04-08 17:19:02.113 781 7566 W resolv : Validating DnsTlsServer on netId 102
04-08 17:19:02.114 781 7567 W resolv : Validating DnsTlsServer on netId 102
04-08 17:19:02.162 781 797 W IptablesRestoreController: iptables-restore process 787 terminated status=256
04-08 17:19:02.162 781 797 E IptablesRestoreController: iptables error:
04-08 17:19:02.162 781 797 E IptablesRestoreController: ------- COMMAND -------
04-08 17:19:02.162 781 797 E IptablesRestoreController: *filter
04-08 17:19:02.162 781 797 E IptablesRestoreController: -D OUTPUT -o rmnet_data0 -m owner --uid-owner 10137 -j REJECT
04-08 17:19:02.162 781 797 E IptablesRestoreController: COMMIT
04-08 17:19:02.162 781 797 E IptablesRestoreController:
04-08 17:19:02.162 781 797 E IptablesRestoreController: ------- ERROR -------
04-08 17:19:02.162 781 797 E IptablesRestoreController: iptables-restore: line 1354 failed
04-08 17:19:02.162 781 797 E IptablesRestoreController: ----------------------
04-08 17:19:02.163 1397 1415 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.fg
04-08 17:19:02.163 1397 1415 E AndroidRuntime: java.lang.IllegalStateException: android.os.ServiceSpecificException: Operation not permitted (code 1)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.NetworkManagementService.setAppOnInterfaceLocked(NetworkManagementService.java:1604)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.NetworkManagementService.updateAppOnInterfaceCallback(NetworkManagementService.java:1543)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.NetworkManagementService.access$500(NetworkManagementService.java:125)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.NetworkManagementService$1.lambda$onLinkPropertiesChanged$0$NetworkManagementService$1(NetworkManagementService.java:405)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.-$$Lambda$NetworkManagementService$1$cEe7AIGZabKkElb0YvNi_jszJbI.run(Unknown Source:6)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:44)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: Caused by: android.os.ServiceSpecificException: Operation not permitted (code 1)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:2387)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2357)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2340)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2282)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at android.net.INetd$Stub$Proxy.bandwidthRemoveRestrictAppOnInterface(INetd.java:3991)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: at com.android.server.NetworkManagementService.setAppOnInterfaceLocked(NetworkManagementService.java:1594)
04-08 17:19:02.163 1397 1415 E AndroidRuntime: ... 9 more```
[Soft_reboot_-_Oneplus_5T_Dumpling.txt](/uploads/45a41e93c2c506e87cfab44b18613e31/Soft_reboot_-_Oneplus_5T_Dumpling.txt)
Edited by luk1337