OSDN Git Service

Do not throw on call to isTetheringSupported w/o permission
authorChalard Jean <jchalard@google.com>
Tue, 26 Sep 2017 06:45:18 +0000 (15:45 +0900)
committerChalard Jean <jchalard@google.com>
Tue, 26 Sep 2017 10:25:48 +0000 (19:25 +0900)
commit8f76fc38ec1682667de2caf3940fbfb71744d368
tree71f169f2fad6239e884b66332c58c99b459ecd8e
parentd71227355e04076b84245c1978008be611bf97e8
Do not throw on call to isTetheringSupported w/o permission

...just return false instead. This will change in P.

Test: Made an app to test this. Made sure it doesn't have
Test: the required permission. Checked it crashes with
Test: SecurityException without this change. Checked it
Test: doesn't with it.

Bug: 65404184

Change-Id: Id20d3c240ec5d70d085e0366b92ab3a514f3e7c8
core/java/android/net/ConnectivityManager.java