[G4 Android Development] AndyYan:
Just grabbed myself an H815 and flashed the latest LOS build, and I noticed that hotspot often refuses to work. When the switch is hit, 1) sometimes it gets stuck at "turning hotspot on...", 2) sometimes simply says "error", and 3) occasionally even when it says "active", I can't find it with any other device I have. Can't see anyone else with this issue, nothing came up on a search in this thread. I was on v20G before I flashed this - do I need a newer stock base (e.g. the flashable 20K/29A parts posted earlier), or anything else I've missed?

Quick edit: 20K modem seems to make it a lot better, but still giving it extensive tests to be sure.

Edit 2: ...no it doesn't. For now the only almost-surefire way to turn hotspot on is to first turn on WiFi (which itself takes a minute or so), then turn it off and go turn on hotspot.

I also managed to grab a logcat of when it says "error" after flipping the switch:

10-16 09:16:15.955 464 968 D SoftapController: Softap fwReload - Ok
10-16 09:16:16.924 972 3873 E wifi : Could not set interface wlan0 flags: 1
10-16 09:16:16.925 972 3873 E WifiNative-HAL: Could not start hal
10-16 09:16:16.925 972 3873 E WifiStateMachine: Failed to start HAL
10-16 09:16:17.001 464 968 D SoftapController: SoftAP started successfully
10-16 09:16:17.062 9122 9122 E hostapd : Configuration file: /data/misc/wifi/hostapd.conf
10-16 09:16:17.066 9122 9122 I hostapd : rfkill: Cannot open RFKILL control device
10-16 09:16:17.064 9122 9122 W hostapd : type=1400 audit(0.0:24): avc: denied { read } for name="rfkill" dev="tmpfs" ino=12486 scontext=u:r:hostapd:s0 tcontext=u:object_r:rfkill_device:s0 tclass=chr_file permissive=0
10-16 09:16:17.203 464 968 D SoftapController: /data/misc/wifi/sockets already exists
10-16 09:16:17.203 464 9123 D SoftapController: SoftapController::threadStart...
10-16 09:16:17.204 464 9123 D SoftapController: /data/misc/wifi/sockets already exists
10-16 09:16:17.204 972 3873 D SoftApManager: Soft AP is started
10-16 09:16:17.205 972 3873 D WifiNative-HAL: Failing getSupportedFeatureset because HAL isn't started
10-16 09:16:17.208 972 989 E BatteryStatsService: no controller energy info supplied
10-16 09:16:18.084 9122 9122 E hostapd : Could not set interface wlan0 flags (UP): Operation not permitted
10-16 09:16:18.086 9122 9122 E hostapd : nl80211: Could not set interface 'wlan0' UP
10-16 09:16:18.086 9122 9122 I hostapd : nl80211: deinit ifname=wlan0 disabled_11b_rates=0
10-16 09:16:18.087 9122 9122 E hostapd : nl80211 driver initialization failed.
10-16 09:16:18.087 972 992 E NetdConnector: NDC Command {214 interface getcfg wlan0} took too long (857ms)
10-16 09:16:18.087 9122 9122 I hostapd : wlan0: interface state UNINITIALIZED->DISABLED
10-16 09:16:18.087 9122 9122 I hostapd : wlan0: AP-DISABLED
10-16 09:16:18.088 9122 9122 E hostapd : hostapd_free_hapd_data: Interface wlan0 wasn't started
10-16 09:16:18.091 464 968 D CommandListener: Setting iface cfg
10-16 09:16:18.093 464 968 D CommandListener: Trying to bring up wlan0
10-16 09:16:18.541 972 3757 D sensors_hal_SMGR: processBufferingInd:report(on_change_sensor) eventtype 0
10-16 09:16:18.542 972 3757 V sensors_hal_Light: processReportInd: 10000 1.000000
10-16 09:16:18.623 972 3757 D sensors_hal_SMGR: processBufferingInd:report(on_change_sensor) eventtype 0
10-16 09:16:18.623 972 3757 V sensors_hal_Light: processReportInd: 10000 1.000000
10-16 09:16:19.105 464 968 E CommandListener: Error upping interface
10-16 09:16:19.107 972 992 E NetdConnector: NDC Command {215 interface setcfg wlan0 192.168.43.1 24 up multicast broadcast} took too long (1017ms)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: Error configuring interface wlan0
10-16 09:16:19.109 972 992 E TetherInterfaceSM: java.lang.IllegalStateException: command '215 interface setcfg wlan0 192.168.43.1 24 up multicast broadcast' failed with '400 215 Failed to up interface (Operation not permitted)'
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.NetworkManagementService.setInterfaceConfig(NetworkManagementService.java:1127)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.connectivity.tethering.TetherInterfaceStateMachine.configureIfaceIp(TetherInterfaceStateMachine.java:158)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.connectivity.tethering.TetherInterfaceStateMachine.-wrap0(TetherInterfaceStateMachine.java)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.connectivity.tethering.TetherInterfaceStateMachine$TetheredState.enter(TetherInterfaceStateMachine.java:210)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.internal.util.StateMachine$SmHandler.invokeEnterMethods(StateMachine.java:1021)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.internal.util.StateMachine$SmHandler.performTransitions(StateMachine.java:867)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at android.os.Handler.dispatchMessage(Handler.java:102)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at android.os.Looper.loop(Looper.java:154)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at android.os.HandlerThread.run(HandlerThread.java:61)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.ServiceThread.run(ServiceThread.java:46)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: Caused by: com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '215 interface setcfg wlan0 192.168.43.1 24 up multicast broadcast' failed with '400 215 Failed to up interface (Operation not permitted)'
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:505)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:401)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:396)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:381)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: at com.android.server.NetworkManagementService.setInterfaceConfig(NetworkManagementService.java:1125)
10-16 09:16:19.109 972 992 E TetherInterfaceSM: ... 10 more
10-16 09:16:19.110 464 968 D TetherController: untetherInterface(wlan0)
10-16 09:16:19.112 972 992 E TetherInterfaceSM: Failed to untether interface: java.lang.IllegalStateException: command '216 tether interface remove wlan0' failed with '400 216 Tether operation failed (No such file or directory)'
10-16 09:16:19.115 464 968 D CommandListener: Setting iface cfg
10-16 09:16:19.117 464 968 D CommandListener: Trying to bring down wlan0
10-16 09:16:19.132 972 3868 W ConnectivityExtension: ConnectivityExt jar file not present
10-16 09:16:19.903 419 419 I MSM-irqbalance: Decided to move IRQ240 from CPU0 to CPU1
10-16 09:16:20.364 464 9123 E SoftapController: Connection to hostapd Error.

Edit 3: clean flashed v20P then latest nightly, still working badly. Really, is no one else encountering this? I feel this should be something easily discovered if it's not a problem happening on my side.