OSDN Git Service

Modify catch when addInterfaceToLocalNetwork() is called.
authorSehee Park <sehee32.park@samsung.com>
Tue, 19 Jun 2018 11:07:37 +0000 (20:07 +0900)
committerErik Kline <ek@google.com>
Mon, 2 Jul 2018 09:17:31 +0000 (18:17 +0900)
commita1874cc580a96fad684820d264d1c0fb7babf6e4
treecd1947c67b27a4f2660adbe5ad3689f78fc7a8a4
parent2e371c1b5a8326c1af21b6d12f90f61591d0b1c9
Modify catch when addInterfaceToLocalNetwork() is called.

Fatal Exception is occured in system process. Becuase addInterfaceToLocalNetwork()
throw IllegalStateException but it can not be handled in TetherInterfaceStateMachine.
Modify catch from "RemoteException" to "Exception" when addInterfaceToLocalNetwork() is called.

Test: Repeat on/off tethering
Test: "runtest --no-hidden-api-checks frameworks-net" passes

Bug: 110396460
Change-Id: I2f2f1325cfcce40c3113ccccf69b2bbd5df4ae5b
Signed-off-by: Sehee Park <sehee32.park@samsung.com>
services/core/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachine.java