OSDN Git Service

throw runtimeException for applicable TM APIs
authorfionaxu <fionaxu@google.com>
Fri, 23 Mar 2018 18:52:44 +0000 (11:52 -0700)
committerChen Xu <fionaxu@google.com>
Wed, 4 Apr 2018 01:38:55 +0000 (01:38 +0000)
commitb877688ca239339478bff29070b63fd29f818857
treeba30e2e5920fbcce43cfc04d8dedbc79452e4f35
parentaef9956de295378608306740bdc927e47e09794a
throw runtimeException for applicable TM APIs

1. This CL revert some API change from ag/3710629.
2. throw runtime exception when running in a non-1000 UID.
3. throw for methods that persist some sort of state and readers could continue to
return placeholder values.
4. for rest of TelephonyManager API cleanup b/74401420.

Bug: 74016743
Test: Build
Change-Id: I2846efc11eebce4a923762f56f09daaf37c44763
(cherry picked from commit f20f0d916f2326bee618600119107da1a8ae15a8)
Merged-in: I2846efc11eebce4a923762f56f09daaf37c44763
telephony/java/android/telephony/TelephonyManager.java