commit | 8c9fc6cba6bff5e4bff52ccfb33290f6cdee9dc0 | [log] [tgz] |
---|---|---|
author | Tomasz Wasilczyk <twasilczyk@google.com> | Tue Feb 05 13:56:48 2019 -0800 |
committer | Tomasz Wasilczyk <twasilczyk@google.com> | Thu Feb 07 08:50:25 2019 -0800 |
tree | 18c681bb2a7fdc945350fe219d5005e0851fab99 | |
parent | 732e0581fca60772fb5b3ddc436f7f595d942414 [diff] |
Avoid system crash on failed AP setup. isV1_1() may return true, but getHostapdMockableV1_1() return null in case when IHostapd crashed beforehand: apparently V1_1.IHostapd.castFrom does runtime check that returns null if the binder died. Bug: 36120314 Test: crash hostapd and try to enable tethering Change-Id: I570c0264ea11208f33bc72f8f9ebd3ccdd161119