Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2016, 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 "dumpstate" |
| 18 | |
| 19 | #include "DumpstateService.h" |
| 20 | |
Nandana Dutt | 2bbba94 | 2019-01-30 13:13:52 +0000 | [diff] [blame] | 21 | #include <memory> |
Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 22 | |
Nandana Dutt | 2bbba94 | 2019-01-30 13:13:52 +0000 | [diff] [blame] | 23 | #include <android-base/stringprintf.h> |
Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 24 | #include "android/os/BnDumpstate.h" |
| 25 | |
Felipe Leme | f029297 | 2016-11-22 13:57:05 -0800 | [diff] [blame] | 26 | #include "DumpstateInternal.h" |
| 27 | |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 28 | using android::base::StringPrintf; |
| 29 | |
Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 30 | namespace android { |
| 31 | namespace os { |
| 32 | |
Felipe Leme | 009ecbb | 2016-11-07 10:18:44 -0800 | [diff] [blame] | 33 | namespace { |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 34 | |
Nandana Dutt | d2f5f08 | 2019-01-18 17:13:52 +0000 | [diff] [blame] | 35 | struct DumpstateInfo { |
| 36 | public: |
| 37 | Dumpstate* ds = nullptr; |
| 38 | int32_t calling_uid = -1; |
| 39 | std::string calling_package; |
Kholoud Mohamed | 7c3fb7c | 2023-10-18 12:56:22 +0000 | [diff] [blame^] | 40 | int32_t user_id = -1; |
| 41 | bool keep_bugreport_on_retrieval = false; |
Nandana Dutt | d2f5f08 | 2019-01-18 17:13:52 +0000 | [diff] [blame] | 42 | }; |
| 43 | |
Hunter Knepshield | e30d821 | 2020-12-21 18:08:17 -0800 | [diff] [blame] | 44 | static binder::Status exception(uint32_t code, const std::string& msg, |
| 45 | const std::string& extra_msg = "") { |
| 46 | if (extra_msg.empty()) { |
| 47 | MYLOGE("%s (%d) ", msg.c_str(), code); |
| 48 | } else { |
| 49 | MYLOGE("%s %s (%d) ", msg.c_str(), extra_msg.c_str(), code); |
| 50 | } |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 51 | return binder::Status::fromExceptionCode(code, String8(msg.c_str())); |
| 52 | } |
| 53 | |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 54 | // Creates a bugreport and exits, thus preserving the oneshot nature of the service. |
| 55 | // Note: takes ownership of data. |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 56 | [[noreturn]] static void* dumpstate_thread_bugreport(void* data) { |
Nandana Dutt | 2bbba94 | 2019-01-30 13:13:52 +0000 | [diff] [blame] | 57 | std::unique_ptr<DumpstateInfo> ds_info(static_cast<DumpstateInfo*>(data)); |
| 58 | ds_info->ds->Run(ds_info->calling_uid, ds_info->calling_package); |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 59 | MYLOGD("Finished taking a bugreport. Exiting.\n"); |
| 60 | exit(0); |
| 61 | } |
| 62 | |
Gavin Corkery | a44686c | 2022-11-23 18:16:51 +0000 | [diff] [blame] | 63 | [[noreturn]] static void* dumpstate_thread_retrieve(void* data) { |
| 64 | std::unique_ptr<DumpstateInfo> ds_info(static_cast<DumpstateInfo*>(data)); |
Kholoud Mohamed | 7c3fb7c | 2023-10-18 12:56:22 +0000 | [diff] [blame^] | 65 | ds_info->ds->Retrieve(ds_info->calling_uid, ds_info->calling_package, ds_info->keep_bugreport_on_retrieval); |
Gavin Corkery | a44686c | 2022-11-23 18:16:51 +0000 | [diff] [blame] | 66 | MYLOGD("Finished retrieving a bugreport. Exiting.\n"); |
| 67 | exit(0); |
| 68 | } |
| 69 | |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 70 | [[noreturn]] static void signalErrorAndExit(sp<IDumpstateListener> listener, int error_code) { |
| 71 | listener->onError(error_code); |
| 72 | exit(0); |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 73 | } |
| 74 | |
Nandana Dutt | d2f5f08 | 2019-01-18 17:13:52 +0000 | [diff] [blame] | 75 | } // namespace |
Felipe Leme | 009ecbb | 2016-11-07 10:18:44 -0800 | [diff] [blame] | 76 | |
Hunter Knepshield | e30d821 | 2020-12-21 18:08:17 -0800 | [diff] [blame] | 77 | DumpstateService::DumpstateService() : ds_(nullptr), calling_uid_(-1), calling_package_() { |
Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | char const* DumpstateService::getServiceName() { |
| 81 | return "dumpstate"; |
| 82 | } |
| 83 | |
| 84 | status_t DumpstateService::Start() { |
| 85 | IPCThreadState::self()->disableBackgroundScheduling(true); |
| 86 | status_t ret = BinderService<DumpstateService>::publish(); |
| 87 | if (ret != android::OK) { |
| 88 | return ret; |
| 89 | } |
| 90 | sp<ProcessState> ps(ProcessState::self()); |
| 91 | ps->startThreadPool(); |
| 92 | ps->giveThreadPoolName(); |
| 93 | return android::OK; |
| 94 | } |
| 95 | |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 96 | binder::Status DumpstateService::preDumpUiData(const std::string&) { |
| 97 | std::lock_guard<std::mutex> lock(lock_); |
| 98 | MYLOGI("preDumpUiData()"); |
| 99 | |
| 100 | if (ds_ != nullptr) { |
| 101 | MYLOGE("Error! DumpstateService is currently already being used. Returning."); |
| 102 | return exception(binder::Status::EX_SERVICE_SPECIFIC, |
| 103 | "DumpstateService is already being used"); |
| 104 | } |
| 105 | |
| 106 | ds_ = &(Dumpstate::GetInstance()); |
| 107 | ds_->PreDumpUiData(); |
| 108 | |
| 109 | return binder::Status::ok(); |
| 110 | } |
| 111 | |
Nandana Dutt | d2f5f08 | 2019-01-18 17:13:52 +0000 | [diff] [blame] | 112 | binder::Status DumpstateService::startBugreport(int32_t calling_uid, |
| 113 | const std::string& calling_package, |
Jiyong Park | 3b25ae1 | 2019-11-25 11:06:16 +0900 | [diff] [blame] | 114 | android::base::unique_fd bugreport_fd, |
| 115 | android::base::unique_fd screenshot_fd, |
Nandana Dutt | 05290ad | 2019-01-04 15:48:09 +0000 | [diff] [blame] | 116 | int bugreport_mode, |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 117 | int bugreport_flags, |
Paul Chang | f59c2b7 | 2020-03-10 02:08:55 +0800 | [diff] [blame] | 118 | const sp<IDumpstateListener>& listener, |
| 119 | bool is_screenshot_requested) { |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 120 | MYLOGI("startBugreport() with mode: %d\n", bugreport_mode); |
| 121 | |
Abhijeet Kaur | ed5d6a6 | 2019-10-07 15:02:05 +0100 | [diff] [blame] | 122 | // Ensure there is only one bugreport in progress at a time. |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 123 | std::lock_guard<std::mutex> lock(lock_); |
| 124 | if (ds_ != nullptr) { |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 125 | MYLOGE("Error! DumpstateService is currently already being used. Returning."); |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 126 | if (listener != nullptr) { |
Nandana Dutt | 0eb86bf | 2019-02-21 16:10:10 +0000 | [diff] [blame] | 127 | listener->onError(IDumpstateListener::BUGREPORT_ERROR_ANOTHER_REPORT_IN_PROGRESS); |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 128 | } |
| 129 | return exception(binder::Status::EX_SERVICE_SPECIFIC, |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 130 | "DumpstateService is already being used"); |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 131 | } |
| 132 | |
| 133 | // From here on, all conditions that indicate we are done with this incoming request should |
| 134 | // result in exiting the service to free it up for next invocation. |
| 135 | if (listener == nullptr) { |
| 136 | MYLOGE("Invalid input: no listener"); |
| 137 | exit(0); |
| 138 | } |
| 139 | |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 140 | if (bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_FULL && |
| 141 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE && |
| 142 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_REMOTE && |
| 143 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_WEAR && |
| 144 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_TELEPHONY && |
Abhijeet Kaur | 904e0e0 | 2018-12-05 14:03:01 +0000 | [diff] [blame] | 145 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_WIFI && |
Elis Elliott | 8e401ad | 2023-08-08 11:18:59 +0000 | [diff] [blame] | 146 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_ONBOARDING && |
Abhijeet Kaur | 904e0e0 | 2018-12-05 14:03:01 +0000 | [diff] [blame] | 147 | bugreport_mode != Dumpstate::BugreportMode::BUGREPORT_DEFAULT) { |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 148 | MYLOGE("Invalid input: bad bugreport mode: %d", bugreport_mode); |
| 149 | signalErrorAndExit(listener, IDumpstateListener::BUGREPORT_ERROR_INVALID_INPUT); |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 150 | } |
| 151 | |
Abhijeet Kaur | 1f3d886 | 2019-03-28 11:04:43 +0000 | [diff] [blame] | 152 | std::unique_ptr<Dumpstate::DumpOptions> options = std::make_unique<Dumpstate::DumpOptions>(); |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 153 | options->Initialize(static_cast<Dumpstate::BugreportMode>(bugreport_mode), bugreport_flags, |
| 154 | bugreport_fd, screenshot_fd, is_screenshot_requested); |
Abhijeet Kaur | 1f3d886 | 2019-03-28 11:04:43 +0000 | [diff] [blame] | 155 | |
Paul Chang | 0d2aad7 | 2020-02-13 20:04:03 +0800 | [diff] [blame] | 156 | if (bugreport_fd.get() == -1 || (options->do_screenshot && screenshot_fd.get() == -1)) { |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 157 | MYLOGE("Invalid filedescriptor"); |
| 158 | signalErrorAndExit(listener, IDumpstateListener::BUGREPORT_ERROR_INVALID_INPUT); |
Nandana Dutt | 54dbd67 | 2019-01-11 12:58:05 +0000 | [diff] [blame] | 159 | } |
| 160 | |
Nandana Dutt | 54dbd67 | 2019-01-11 12:58:05 +0000 | [diff] [blame] | 161 | |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 162 | ds_ = &(Dumpstate::GetInstance()); |
| 163 | ds_->SetOptions(std::move(options)); |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 164 | ds_->listener_ = listener; |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 165 | |
Hunter Knepshield | e30d821 | 2020-12-21 18:08:17 -0800 | [diff] [blame] | 166 | // Track caller info for cancellation purposes. |
| 167 | calling_uid_ = calling_uid; |
| 168 | calling_package_ = calling_package; |
| 169 | |
Nandana Dutt | 2bbba94 | 2019-01-30 13:13:52 +0000 | [diff] [blame] | 170 | DumpstateInfo* ds_info = new DumpstateInfo(); |
| 171 | ds_info->ds = ds_; |
| 172 | ds_info->calling_uid = calling_uid; |
| 173 | ds_info->calling_package = calling_package; |
Nandana Dutt | d2f5f08 | 2019-01-18 17:13:52 +0000 | [diff] [blame] | 174 | |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 175 | pthread_t thread; |
Abhijeet Kaur | a407fb8 | 2020-03-27 12:51:12 +0000 | [diff] [blame] | 176 | // Initialize dumpstate |
| 177 | ds_->Initialize(); |
Kean Mariotti | 306633e | 2022-09-05 16:30:47 +0000 | [diff] [blame] | 178 | status_t err = pthread_create(&thread, nullptr, dumpstate_thread_bugreport, ds_info); |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 179 | if (err != 0) { |
Nandana Dutt | 2bbba94 | 2019-01-30 13:13:52 +0000 | [diff] [blame] | 180 | delete ds_info; |
Nandana Dutt | 16d1aee | 2019-02-15 16:13:53 +0000 | [diff] [blame] | 181 | MYLOGE("Could not create a thread"); |
| 182 | signalErrorAndExit(listener, IDumpstateListener::BUGREPORT_ERROR_RUNTIME_ERROR); |
Nandana Dutt | 197661d | 2018-11-16 16:40:21 +0000 | [diff] [blame] | 183 | } |
Nandana Dutt | cccbb5f | 2018-09-27 09:23:36 +0100 | [diff] [blame] | 184 | return binder::Status::ok(); |
| 185 | } |
| 186 | |
Hunter Knepshield | e30d821 | 2020-12-21 18:08:17 -0800 | [diff] [blame] | 187 | binder::Status DumpstateService::cancelBugreport(int32_t calling_uid, |
| 188 | const std::string& calling_package) { |
Nandana Dutt | 8ae16e6 | 2020-03-27 10:20:22 +0000 | [diff] [blame] | 189 | std::lock_guard<std::mutex> lock(lock_); |
Hunter Knepshield | e30d821 | 2020-12-21 18:08:17 -0800 | [diff] [blame] | 190 | if (calling_uid != calling_uid_ || calling_package != calling_package_) { |
| 191 | // Note: we use a SecurityException to prevent BugreportManagerServiceImpl from killing the |
| 192 | // report in progress (from another caller). |
| 193 | return exception( |
| 194 | binder::Status::EX_SECURITY, |
| 195 | StringPrintf("Cancellation requested by %d/%s does not match report in " |
| 196 | "progress", |
| 197 | calling_uid, calling_package.c_str()), |
| 198 | // Sharing the owner of the BR is a (minor) leak, so leave it out of the app's exception |
| 199 | StringPrintf("started by %d/%s", calling_uid_, calling_package_.c_str())); |
| 200 | } |
Nandana Dutt | 8ae16e6 | 2020-03-27 10:20:22 +0000 | [diff] [blame] | 201 | ds_->Cancel(); |
Nandana Dutt | cc4ead8 | 2019-01-23 08:29:23 +0000 | [diff] [blame] | 202 | return binder::Status::ok(); |
| 203 | } |
| 204 | |
Gavin Corkery | a44686c | 2022-11-23 18:16:51 +0000 | [diff] [blame] | 205 | binder::Status DumpstateService::retrieveBugreport( |
Kholoud Mohamed | 7c3fb7c | 2023-10-18 12:56:22 +0000 | [diff] [blame^] | 206 | int32_t calling_uid, const std::string& calling_package, int32_t user_id, |
Gavin Corkery | a44686c | 2022-11-23 18:16:51 +0000 | [diff] [blame] | 207 | android::base::unique_fd bugreport_fd, |
| 208 | const std::string& bugreport_file, |
Kholoud Mohamed | 7c3fb7c | 2023-10-18 12:56:22 +0000 | [diff] [blame^] | 209 | const bool keep_bugreport_on_retrieval, |
Gavin Corkery | a44686c | 2022-11-23 18:16:51 +0000 | [diff] [blame] | 210 | const sp<IDumpstateListener>& listener) { |
| 211 | |
| 212 | ds_ = &(Dumpstate::GetInstance()); |
| 213 | DumpstateInfo* ds_info = new DumpstateInfo(); |
| 214 | ds_info->ds = ds_; |
| 215 | ds_info->calling_uid = calling_uid; |
| 216 | ds_info->calling_package = calling_package; |
Kholoud Mohamed | 7c3fb7c | 2023-10-18 12:56:22 +0000 | [diff] [blame^] | 217 | ds_info->user_id = user_id; |
| 218 | ds_info->keep_bugreport_on_retrieval = keep_bugreport_on_retrieval; |
Gavin Corkery | a44686c | 2022-11-23 18:16:51 +0000 | [diff] [blame] | 219 | ds_->listener_ = listener; |
| 220 | std::unique_ptr<Dumpstate::DumpOptions> options = std::make_unique<Dumpstate::DumpOptions>(); |
| 221 | // Use a /dev/null FD when initializing options since none is provided. |
| 222 | android::base::unique_fd devnull_fd( |
| 223 | TEMP_FAILURE_RETRY(open("/dev/null", O_WRONLY | O_CLOEXEC))); |
| 224 | |
| 225 | options->Initialize(Dumpstate::BugreportMode::BUGREPORT_DEFAULT, |
| 226 | 0, bugreport_fd, devnull_fd, false); |
| 227 | |
| 228 | if (bugreport_fd.get() == -1) { |
| 229 | MYLOGE("Invalid filedescriptor"); |
| 230 | signalErrorAndExit(listener, IDumpstateListener::BUGREPORT_ERROR_INVALID_INPUT); |
| 231 | } |
| 232 | ds_->SetOptions(std::move(options)); |
| 233 | ds_->path_ = bugreport_file; |
| 234 | pthread_t thread; |
| 235 | status_t err = pthread_create(&thread, nullptr, dumpstate_thread_retrieve, ds_info); |
| 236 | if (err != 0) { |
| 237 | MYLOGE("Could not create a thread"); |
| 238 | signalErrorAndExit(listener, IDumpstateListener::BUGREPORT_ERROR_RUNTIME_ERROR); |
| 239 | } |
| 240 | return binder::Status::ok(); |
| 241 | } |
| 242 | |
Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 243 | status_t DumpstateService::dump(int fd, const Vector<String16>&) { |
Nandana Dutt | 8ae16e6 | 2020-03-27 10:20:22 +0000 | [diff] [blame] | 244 | std::lock_guard<std::mutex> lock(lock_); |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 245 | if (ds_ == nullptr) { |
| 246 | dprintf(fd, "Bugreport not in progress yet"); |
| 247 | return NO_ERROR; |
| 248 | } |
| 249 | std::string destination = ds_->options_->bugreport_fd.get() != -1 |
| 250 | ? StringPrintf("[fd:%d]", ds_->options_->bugreport_fd.get()) |
| 251 | : ds_->bugreport_internal_dir_.c_str(); |
| 252 | dprintf(fd, "id: %d\n", ds_->id_); |
| 253 | dprintf(fd, "pid: %d\n", ds_->pid_); |
| 254 | dprintf(fd, "update_progress: %s\n", ds_->options_->do_progress_updates ? "true" : "false"); |
Nandana Dutt | 402a839 | 2019-06-14 14:25:13 +0100 | [diff] [blame] | 255 | dprintf(fd, "last_percent_progress: %d\n", ds_->last_reported_percent_progress_); |
Felipe Leme | 7447d7c | 2016-11-03 18:12:22 -0700 | [diff] [blame] | 256 | dprintf(fd, "progress:\n"); |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 257 | ds_->progress_->Dump(fd, " "); |
| 258 | dprintf(fd, "args: %s\n", ds_->options_->args.c_str()); |
Kedar Chitnis | 9fd8c05 | 2021-11-16 09:09:22 +0000 | [diff] [blame] | 259 | dprintf(fd, "bugreport_mode: %s\n", ds_->options_->bugreport_mode_string.c_str()); |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 260 | dprintf(fd, "version: %s\n", ds_->version_.c_str()); |
Nandana Dutt | 9a76d20 | 2019-01-21 15:56:48 +0000 | [diff] [blame] | 261 | dprintf(fd, "bugreport_dir: %s\n", destination.c_str()); |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 262 | dprintf(fd, "screenshot_path: %s\n", ds_->screenshot_path_.c_str()); |
| 263 | dprintf(fd, "log_path: %s\n", ds_->log_path_.c_str()); |
| 264 | dprintf(fd, "tmp_path: %s\n", ds_->tmp_path_.c_str()); |
| 265 | dprintf(fd, "path: %s\n", ds_->path_.c_str()); |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 266 | dprintf(fd, "base_name: %s\n", ds_->base_name_.c_str()); |
| 267 | dprintf(fd, "name: %s\n", ds_->name_.c_str()); |
| 268 | dprintf(fd, "now: %ld\n", ds_->now_); |
Nandana Dutt | d973766 | 2019-01-29 15:59:38 +0000 | [diff] [blame] | 269 | dprintf(fd, "notification title: %s\n", ds_->options_->notification_title.c_str()); |
| 270 | dprintf(fd, "notification description: %s\n", ds_->options_->notification_description.c_str()); |
Felipe Leme | 75876a2 | 2016-10-27 16:31:27 -0700 | [diff] [blame] | 271 | |
| 272 | return NO_ERROR; |
| 273 | } |
| 274 | } // namespace os |
| 275 | } // namespace android |