OSDN Git Service

Make OBB results a one-way call
authorKenny Root <kroot@google.com>
Wed, 26 Jan 2011 00:39:35 +0000 (16:39 -0800)
committerKenny Root <kroot@google.com>
Wed, 26 Jan 2011 01:29:59 +0000 (17:29 -0800)
OBB result back to an application needs to be a one-way binder call.

Bug: 3353699
Change-Id: I0e625914d18a001c2fa9d764ea6463f34cf96743

core/java/android/os/storage/IObbActionListener.java
services/java/com/android/server/MountService.java

index d6fa58a..6a6292d 100644 (file)
@@ -112,7 +112,8 @@ public interface IObbActionListener extends IInterface {
                     _data.writeString(filename);
                     _data.writeInt(nonce);
                     _data.writeInt(status);
-                    mRemote.transact(Stub.TRANSACTION_onObbResult, _data, _reply, 0);
+                    mRemote.transact(Stub.TRANSACTION_onObbResult, _data, _reply,
+                            Binder.FLAG_ONEWAY);
                     _reply.readException();
                 } finally {
                     _reply.recycle();
index 85bb3aa..a191549 100644 (file)
@@ -78,7 +78,7 @@ class MountService extends IMountService.Stub
     private static final boolean LOCAL_LOGD = false;
     private static final boolean DEBUG_UNMOUNT = false;
     private static final boolean DEBUG_EVENTS = false;
-    private static final boolean DEBUG_OBB = true;
+    private static final boolean DEBUG_OBB = false;
 
     private static final String TAG = "MountService";