diff options
| -rw-r--r-- | libs/binder/Android.bp | 2 | ||||
| -rw-r--r-- | libs/binder/Binder.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp index 541ec37eec..441a4a8be4 100644 --- a/libs/binder/Android.bp +++ b/libs/binder/Android.bp @@ -87,7 +87,6 @@ cc_defaults { "FdTrigger.cpp", "IInterface.cpp", "IResultReceiver.cpp", - "IShellCallback.cpp", "OS.cpp", "Parcel.cpp", "ParcelFileDescriptor.cpp", @@ -234,6 +233,7 @@ cc_library { srcs: [ "IMemory.cpp", + "IShellCallback.cpp", "LazyServiceRegistrar.cpp", "MemoryBase.cpp", "MemoryDealer.cpp", diff --git a/libs/binder/Binder.cpp b/libs/binder/Binder.cpp index b9a8ba9651..532bacbdfe 100644 --- a/libs/binder/Binder.cpp +++ b/libs/binder/Binder.cpp @@ -648,13 +648,14 @@ status_t BBinder::onTransact( for (int i = 0; i < argc && data.dataAvail() > 0; i++) { args.add(data.readString16()); } - sp<IShellCallback> shellCallback = IShellCallback::asInterface( - data.readStrongBinder()); + sp<IBinder> shellCallbackBinder = data.readStrongBinder(); sp<IResultReceiver> resultReceiver = IResultReceiver::asInterface( data.readStrongBinder()); // XXX can't add virtuals until binaries are updated. - //return shellCommand(in, out, err, args, resultReceiver); + // sp<IShellCallback> shellCallback = IShellCallback::asInterface( + // shellCallbackBinder); + // return shellCommand(in, out, err, args, resultReceiver); (void)in; (void)out; (void)err; |