Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #define LOG_TAG "AppOpsService" |
| 18 | |
| 19 | #include <binder/IAppOpsService.h> |
| 20 | |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 21 | #include <utils/Log.h> |
| 22 | #include <binder/Parcel.h> |
| 23 | #include <utils/String8.h> |
| 24 | |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 25 | namespace android { |
| 26 | |
| 27 | // ---------------------------------------------------------------------- |
| 28 | |
| 29 | class BpAppOpsService : public BpInterface<IAppOpsService> |
| 30 | { |
| 31 | public: |
Chih-Hung Hsieh | e2347b7 | 2016-04-25 15:41:05 -0700 | [diff] [blame] | 32 | explicit BpAppOpsService(const sp<IBinder>& impl) |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 33 | : BpInterface<IAppOpsService>(impl) |
| 34 | { |
| 35 | } |
| 36 | |
| 37 | virtual int32_t checkOperation(int32_t code, int32_t uid, const String16& packageName) { |
| 38 | Parcel data, reply; |
| 39 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 40 | data.writeInt32(code); |
| 41 | data.writeInt32(uid); |
| 42 | data.writeString16(packageName); |
| 43 | remote()->transact(CHECK_OPERATION_TRANSACTION, data, &reply); |
| 44 | // fail on exception |
Eino-Ville Talvala | e88a85e | 2013-02-19 12:54:57 -0800 | [diff] [blame] | 45 | if (reply.readExceptionCode() != 0) return MODE_ERRORED; |
| 46 | return reply.readInt32(); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 47 | } |
| 48 | |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 49 | virtual int32_t noteOperation(int32_t code, int32_t uid, const String16& packageName, |
| 50 | const std::unique_ptr<String16>& featureId) { |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 51 | Parcel data, reply; |
| 52 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 53 | data.writeInt32(code); |
| 54 | data.writeInt32(uid); |
| 55 | data.writeString16(packageName); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 56 | data.writeString16(featureId); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 57 | remote()->transact(NOTE_OPERATION_TRANSACTION, data, &reply); |
| 58 | // fail on exception |
Eino-Ville Talvala | e88a85e | 2013-02-19 12:54:57 -0800 | [diff] [blame] | 59 | if (reply.readExceptionCode() != 0) return MODE_ERRORED; |
| 60 | return reply.readInt32(); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 61 | } |
| 62 | |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 63 | virtual int32_t startOperation(const sp<IBinder>& token, int32_t code, int32_t uid, |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 64 | const String16& packageName, const std::unique_ptr<String16>& featureId, |
| 65 | bool startIfModeDefault) { |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 66 | Parcel data, reply; |
| 67 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 68 | data.writeStrongBinder(token); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 69 | data.writeInt32(code); |
| 70 | data.writeInt32(uid); |
| 71 | data.writeString16(packageName); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 72 | data.writeString16(featureId); |
Svet Ganov | 616554c | 2018-02-26 13:27:26 -0800 | [diff] [blame] | 73 | data.writeInt32(startIfModeDefault ? 1 : 0); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 74 | remote()->transact(START_OPERATION_TRANSACTION, data, &reply); |
| 75 | // fail on exception |
Eino-Ville Talvala | e88a85e | 2013-02-19 12:54:57 -0800 | [diff] [blame] | 76 | if (reply.readExceptionCode() != 0) return MODE_ERRORED; |
| 77 | return reply.readInt32(); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 78 | } |
| 79 | |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 80 | virtual void finishOperation(const sp<IBinder>& token, int32_t code, int32_t uid, |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 81 | const String16& packageName, const std::unique_ptr<String16>& featureId) { |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 82 | Parcel data, reply; |
| 83 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 84 | data.writeStrongBinder(token); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 85 | data.writeInt32(code); |
| 86 | data.writeInt32(uid); |
| 87 | data.writeString16(packageName); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 88 | data.writeString16(featureId); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 89 | remote()->transact(FINISH_OPERATION_TRANSACTION, data, &reply); |
| 90 | } |
| 91 | |
| 92 | virtual void startWatchingMode(int32_t op, const String16& packageName, |
| 93 | const sp<IAppOpsCallback>& callback) { |
| 94 | Parcel data, reply; |
| 95 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 96 | data.writeInt32(op); |
| 97 | data.writeString16(packageName); |
Marco Nelissen | 2ea926b | 2014-11-14 08:01:01 -0800 | [diff] [blame] | 98 | data.writeStrongBinder(IInterface::asBinder(callback)); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 99 | remote()->transact(START_WATCHING_MODE_TRANSACTION, data, &reply); |
| 100 | } |
| 101 | |
| 102 | virtual void stopWatchingMode(const sp<IAppOpsCallback>& callback) { |
| 103 | Parcel data, reply; |
| 104 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
Marco Nelissen | 2ea926b | 2014-11-14 08:01:01 -0800 | [diff] [blame] | 105 | data.writeStrongBinder(IInterface::asBinder(callback)); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 106 | remote()->transact(STOP_WATCHING_MODE_TRANSACTION, data, &reply); |
| 107 | } |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 108 | |
| 109 | virtual sp<IBinder> getToken(const sp<IBinder>& clientToken) { |
| 110 | Parcel data, reply; |
| 111 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 112 | data.writeStrongBinder(clientToken); |
| 113 | remote()->transact(GET_TOKEN_TRANSACTION, data, &reply); |
| 114 | // fail on exception |
Yi Kong | fdd8da9 | 2018-06-07 17:52:27 -0700 | [diff] [blame] | 115 | if (reply.readExceptionCode() != 0) return nullptr; |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 116 | return reply.readStrongBinder(); |
| 117 | } |
Svetoslav | b412f6e | 2015-04-29 16:50:41 -0700 | [diff] [blame] | 118 | |
Svetoslav | b412f6e | 2015-04-29 16:50:41 -0700 | [diff] [blame] | 119 | virtual int32_t permissionToOpCode(const String16& permission) { |
| 120 | Parcel data, reply; |
| 121 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 122 | data.writeString16(permission); |
| 123 | remote()->transact(PERMISSION_TO_OP_CODE_TRANSACTION, data, &reply); |
| 124 | // fail on exception |
| 125 | if (reply.readExceptionCode() != 0) return -1; |
| 126 | return reply.readInt32(); |
| 127 | } |
Jean-Michel Trivi | 94a566d | 2019-02-25 12:16:02 -0800 | [diff] [blame] | 128 | |
| 129 | virtual int32_t checkAudioOperation(int32_t code, int32_t usage, |
| 130 | int32_t uid, const String16& packageName) { |
| 131 | Parcel data, reply; |
| 132 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 133 | data.writeInt32(code); |
| 134 | data.writeInt32(usage); |
| 135 | data.writeInt32(uid); |
| 136 | data.writeString16(packageName); |
| 137 | remote()->transact(CHECK_AUDIO_OPERATION_TRANSACTION, data, &reply); |
| 138 | // fail on exception |
| 139 | if (reply.readExceptionCode() != 0) { |
| 140 | return MODE_ERRORED; |
| 141 | } |
| 142 | return reply.readInt32(); |
| 143 | } |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 144 | |
Yin-Chia Yeh | 8e95ee8 | 2019-08-13 12:24:25 -0700 | [diff] [blame] | 145 | virtual void setCameraAudioRestriction(int32_t mode) { |
| 146 | Parcel data, reply; |
| 147 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 148 | data.writeInt32(mode); |
| 149 | remote()->transact(SET_CAMERA_AUDIO_RESTRICTION_TRANSACTION, data, &reply); |
| 150 | } |
| 151 | |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 152 | virtual void noteAsyncOp(const std::unique_ptr<String16>& callingPackageName, int32_t uid, |
| 153 | const String16& packageName, int32_t opCode, const std::unique_ptr<String16>& featureId, |
Philip P. Moltmann | b130188 | 2019-09-06 11:01:18 -0700 | [diff] [blame] | 154 | const String16& message) { |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 155 | Parcel data, reply; |
| 156 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 157 | data.writeString16(callingPackageName); |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 158 | data.writeInt32(uid); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 159 | data.writeString16(packageName); |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 160 | data.writeInt32(opCode); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 161 | data.writeString16(featureId); |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 162 | data.writeString16(message); |
| 163 | remote()->transact(NOTE_ASYNC_OP_TRANSACTION, data, &reply); |
| 164 | } |
| 165 | |
| 166 | virtual bool shouldCollectNotes(int32_t opCode) { |
| 167 | Parcel data, reply; |
| 168 | data.writeInterfaceToken(IAppOpsService::getInterfaceDescriptor()); |
| 169 | data.writeInt32(opCode); |
| 170 | remote()->transact(SHOULD_COLLECT_NOTES_TRANSACTION, data, &reply); |
| 171 | // fail on exception |
| 172 | if (reply.readExceptionCode() != 0) { |
| 173 | return false; |
| 174 | } |
| 175 | return reply.readBool(); |
| 176 | } |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 177 | }; |
| 178 | |
| 179 | IMPLEMENT_META_INTERFACE(AppOpsService, "com.android.internal.app.IAppOpsService"); |
| 180 | |
| 181 | // ---------------------------------------------------------------------- |
| 182 | |
Jiyong Park | b86c866 | 2018-10-29 23:01:57 +0900 | [diff] [blame] | 183 | // NOLINTNEXTLINE(google-default-arguments) |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 184 | status_t BnAppOpsService::onTransact( |
| 185 | uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) |
| 186 | { |
| 187 | //printf("AppOpsService received: "); data.print(); |
| 188 | switch(code) { |
| 189 | case CHECK_OPERATION_TRANSACTION: { |
| 190 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 191 | int32_t code = data.readInt32(); |
| 192 | int32_t uid = data.readInt32(); |
| 193 | String16 packageName = data.readString16(); |
| 194 | int32_t res = checkOperation(code, uid, packageName); |
| 195 | reply->writeNoException(); |
| 196 | reply->writeInt32(res); |
| 197 | return NO_ERROR; |
| 198 | } break; |
| 199 | case NOTE_OPERATION_TRANSACTION: { |
| 200 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 201 | int32_t code = data.readInt32(); |
| 202 | int32_t uid = data.readInt32(); |
| 203 | String16 packageName = data.readString16(); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 204 | std::unique_ptr<String16> featureId; |
| 205 | data.readString16(&featureId); |
| 206 | int32_t res = noteOperation(code, uid, packageName, featureId); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 207 | reply->writeNoException(); |
| 208 | reply->writeInt32(res); |
| 209 | return NO_ERROR; |
| 210 | } break; |
| 211 | case START_OPERATION_TRANSACTION: { |
| 212 | CHECK_INTERFACE(IAppOpsService, data, reply); |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 213 | sp<IBinder> token = data.readStrongBinder(); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 214 | int32_t code = data.readInt32(); |
| 215 | int32_t uid = data.readInt32(); |
| 216 | String16 packageName = data.readString16(); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 217 | std::unique_ptr<String16> featureId; |
| 218 | data.readString16(&featureId); |
Svet Ganov | 616554c | 2018-02-26 13:27:26 -0800 | [diff] [blame] | 219 | bool startIfModeDefault = data.readInt32() == 1; |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 220 | int32_t res = startOperation(token, code, uid, packageName, featureId, |
| 221 | startIfModeDefault); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 222 | reply->writeNoException(); |
| 223 | reply->writeInt32(res); |
| 224 | return NO_ERROR; |
| 225 | } break; |
| 226 | case FINISH_OPERATION_TRANSACTION: { |
| 227 | CHECK_INTERFACE(IAppOpsService, data, reply); |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 228 | sp<IBinder> token = data.readStrongBinder(); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 229 | int32_t code = data.readInt32(); |
| 230 | int32_t uid = data.readInt32(); |
| 231 | String16 packageName = data.readString16(); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 232 | std::unique_ptr<String16> featureId; |
| 233 | data.readString16(&featureId); |
| 234 | finishOperation(token, code, uid, packageName, featureId); |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 235 | reply->writeNoException(); |
| 236 | return NO_ERROR; |
| 237 | } break; |
| 238 | case START_WATCHING_MODE_TRANSACTION: { |
| 239 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 240 | int32_t op = data.readInt32(); |
| 241 | String16 packageName = data.readString16(); |
| 242 | sp<IAppOpsCallback> callback = interface_cast<IAppOpsCallback>(data.readStrongBinder()); |
| 243 | startWatchingMode(op, packageName, callback); |
| 244 | reply->writeNoException(); |
| 245 | return NO_ERROR; |
| 246 | } break; |
| 247 | case STOP_WATCHING_MODE_TRANSACTION: { |
| 248 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 249 | sp<IAppOpsCallback> callback = interface_cast<IAppOpsCallback>(data.readStrongBinder()); |
| 250 | stopWatchingMode(callback); |
| 251 | reply->writeNoException(); |
| 252 | return NO_ERROR; |
| 253 | } break; |
Dianne Hackborn | 913b63d | 2013-07-17 17:26:15 -0700 | [diff] [blame] | 254 | case GET_TOKEN_TRANSACTION: { |
| 255 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 256 | sp<IBinder> clientToken = data.readStrongBinder(); |
| 257 | sp<IBinder> token = getToken(clientToken); |
| 258 | reply->writeNoException(); |
| 259 | reply->writeStrongBinder(token); |
| 260 | return NO_ERROR; |
| 261 | } break; |
Svetoslav | b412f6e | 2015-04-29 16:50:41 -0700 | [diff] [blame] | 262 | case PERMISSION_TO_OP_CODE_TRANSACTION: { |
| 263 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 264 | String16 permission = data.readString16(); |
| 265 | const int32_t opCode = permissionToOpCode(permission); |
| 266 | reply->writeNoException(); |
| 267 | reply->writeInt32(opCode); |
| 268 | return NO_ERROR; |
| 269 | } break; |
Jean-Michel Trivi | 94a566d | 2019-02-25 12:16:02 -0800 | [diff] [blame] | 270 | case CHECK_AUDIO_OPERATION_TRANSACTION: { |
| 271 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 272 | const int32_t code = data.readInt32(); |
| 273 | const int32_t usage = data.readInt32(); |
| 274 | const int32_t uid = data.readInt32(); |
| 275 | const String16 packageName = data.readString16(); |
| 276 | const int32_t res = checkAudioOperation(code, usage, uid, packageName); |
| 277 | reply->writeNoException(); |
| 278 | reply->writeInt32(res); |
| 279 | return NO_ERROR; |
| 280 | } break; |
Yin-Chia Yeh | 8e95ee8 | 2019-08-13 12:24:25 -0700 | [diff] [blame] | 281 | case SET_CAMERA_AUDIO_RESTRICTION_TRANSACTION: { |
| 282 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 283 | const int32_t mode = data.readInt32(); |
| 284 | setCameraAudioRestriction(mode); |
| 285 | reply->writeNoException(); |
| 286 | return NO_ERROR; |
| 287 | } break; |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 288 | case NOTE_ASYNC_OP_TRANSACTION: { |
| 289 | CHECK_INTERFACE(IAppOpsService, data, reply); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 290 | std::unique_ptr<String16> callingPackageName; |
| 291 | data.readString16(&callingPackageName); |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 292 | int32_t uid = data.readInt32(); |
| 293 | String16 packageName = data.readString16(); |
| 294 | int32_t opCode = data.readInt32(); |
Philip P. Moltmann | aeaaf1c | 2019-11-05 12:34:36 -0800 | [diff] [blame^] | 295 | std::unique_ptr<String16> featureId; |
| 296 | data.readString16(&featureId); |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 297 | String16 message = data.readString16(); |
Philip P. Moltmann | b130188 | 2019-09-06 11:01:18 -0700 | [diff] [blame] | 298 | noteAsyncOp(callingPackageName, uid, packageName, opCode, featureId, message); |
Philip P. Moltmann | 66a8777 | 2019-06-24 16:30:00 -0700 | [diff] [blame] | 299 | reply->writeNoException(); |
| 300 | return NO_ERROR; |
| 301 | } break; |
| 302 | case SHOULD_COLLECT_NOTES_TRANSACTION: { |
| 303 | CHECK_INTERFACE(IAppOpsService, data, reply); |
| 304 | int32_t opCode = data.readInt32(); |
| 305 | bool shouldCollect = shouldCollectNotes(opCode); |
| 306 | reply->writeNoException(); |
| 307 | reply->writeBool(shouldCollect); |
| 308 | return NO_ERROR; |
| 309 | } break; |
Dianne Hackborn | 5da5ca5 | 2013-02-12 15:12:21 -0800 | [diff] [blame] | 310 | default: |
| 311 | return BBinder::onTransact(code, data, reply, flags); |
| 312 | } |
| 313 | } |
| 314 | |
Steven Moreland | 6511af5 | 2019-09-26 16:05:45 -0700 | [diff] [blame] | 315 | } // namespace android |