From 062203dc24be0b88f4e3b1feef0d2d00ef9979dd Mon Sep 17 00:00:00 2001 From: Sehee Park Date: Tue, 19 Jun 2018 20:38:46 +0900 Subject: Modify catch when addInterfaceToLocalNetwork() is called. Fatal Exception is occured in system process. Becuase addInterfaceToLocalNetwork() throw IllegalStateException but it can not be handled in WifiP2pServiceImpl. Modify catch from "RemoteException" to "Exception" when addInterfaceToLocalNetwork() is called. Bug: 110396460 Test: Repeat on/off WifiP2pService Change-Id: I4acdab2ee9923a87cb1ebac324c86d67549ce9fb Signed-off-by: Sehee Park --- service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java index fa1625316..6a07ef37c 100644 --- a/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java +++ b/service/java/com/android/server/wifi/p2p/WifiP2pServiceImpl.java @@ -2240,7 +2240,7 @@ public class WifiP2pServiceImpl extends IWifiP2pManager.Stub { mNwService.addInterfaceToLocalNetwork( ifname, mDhcpResults.getRoutes(ifname)); } - } catch (RemoteException e) { + } catch (Exception e) { loge("Failed to add iface to local network " + e); } break; -- cgit v1.2.3