OSDN Git Service

Make another interface oneway, whitelist provider.
authorJeff Sharkey <jsharkey@android.com>
Fri, 11 Nov 2016 21:04:32 +0000 (14:04 -0700)
committerJeff Sharkey <jsharkey@android.com>
Fri, 11 Nov 2016 21:06:11 +0000 (14:06 -0700)
More progress towards removing blocking calls to improve system
stability.

Test: builds, boots
Bug: 32715088
Change-Id: I5ab2d2687f4f47e0ee68105c6998e74798af061c

core/java/android/app/ActivityThread.java
core/java/android/hardware/location/IFusedLocationHardwareSink.aidl

index a3414f4..78204a0 100644 (file)
@@ -5839,6 +5839,7 @@ public final class ActivityThread {
                     case BlockedNumberContract.AUTHORITY:
                     case CalendarContract.AUTHORITY:
                     case Downloads.Impl.AUTHORITY:
+                    case "telephony":
                         Binder.allowBlocking(provider.asBinder());
                 }
             }
index c99cb0c..a7dd035 100644 (file)
@@ -24,7 +24,7 @@ import android.location.Location;
  *
  * @hide
  */
-interface IFusedLocationHardwareSink {
+oneway interface IFusedLocationHardwareSink {
     /**
      * Event generated when a batch of location information is available.
      *
@@ -50,4 +50,4 @@ interface IFusedLocationHardwareSink {
      * changes (location is successful/unsuccessful).
      */
     void onStatusChanged(int status) = 3;
-}
\ No newline at end of file
+}