Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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 | #include "adb_listeners.h" |
| 18 | |
Dan Albert | 357bd49 | 2015-02-20 17:20:09 -0800 | [diff] [blame] | 19 | #include <stdio.h> |
Elliott Hughes | 1679e92 | 2015-02-24 12:37:13 -0800 | [diff] [blame] | 20 | #include <stdlib.h> |
Dan Albert | 357bd49 | 2015-02-20 17:20:09 -0800 | [diff] [blame] | 21 | |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 22 | #include <algorithm> |
| 23 | #include <list> |
Pirama Arumuga Nainar | 5231aff | 2018-08-08 10:33:24 -0700 | [diff] [blame] | 24 | #include <memory> |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 25 | |
Elliott Hughes | f55ead9 | 2015-12-04 22:00:26 -0800 | [diff] [blame] | 26 | #include <android-base/stringprintf.h> |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 27 | #include <android-base/strings.h> |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 28 | #include <android-base/thread_annotations.h> |
Elliott Hughes | 43df109 | 2015-07-23 17:12:58 -0700 | [diff] [blame] | 29 | #include <cutils/sockets.h> |
Elliott Hughes | 88b4c85 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 30 | |
Josh Gao | 4a5a95d | 2016-08-24 18:38:44 -0700 | [diff] [blame] | 31 | #include "socket_spec.h" |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 32 | #include "sysdeps.h" |
Dan Albert | b302d12 | 2015-02-24 15:51:19 -0800 | [diff] [blame] | 33 | #include "transport.h" |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 34 | |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 35 | // A listener is an entity which binds to a local port and, upon receiving a connection on that |
| 36 | // port, creates an asocket to connect the new local connection to a specific remote service. |
| 37 | // |
| 38 | // TODO: some listeners read from the new connection to determine what exact service to connect to |
| 39 | // on the far side. |
| 40 | class alistener { |
| 41 | public: |
| 42 | alistener(const std::string& _local_name, const std::string& _connect_to); |
| 43 | ~alistener(); |
| 44 | |
Josh Gao | 9528df2 | 2018-05-14 11:14:33 -0700 | [diff] [blame] | 45 | fdevent* fde = nullptr; |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 46 | int fd = -1; |
| 47 | |
| 48 | std::string local_name; |
| 49 | std::string connect_to; |
| 50 | atransport* transport = nullptr; |
| 51 | adisconnect disconnect; |
| 52 | |
| 53 | private: |
| 54 | DISALLOW_COPY_AND_ASSIGN(alistener); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 55 | }; |
| 56 | |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 57 | alistener::alistener(const std::string& _local_name, const std::string& _connect_to) |
| 58 | : local_name(_local_name), connect_to(_connect_to) { |
| 59 | } |
| 60 | |
| 61 | alistener::~alistener() { |
| 62 | // Closes the corresponding fd. |
Josh Gao | 9528df2 | 2018-05-14 11:14:33 -0700 | [diff] [blame] | 63 | fdevent_destroy(fde); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 64 | |
| 65 | if (transport) { |
| 66 | transport->RemoveDisconnect(&disconnect); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // listener_list retains ownership of all created alistener objects. Removing an alistener from |
| 71 | // this list will cause it to be deleted. |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 72 | static auto& listener_list_mutex = *new std::mutex(); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 73 | typedef std::list<std::unique_ptr<alistener>> ListenerList; |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 74 | static ListenerList& listener_list GUARDED_BY(listener_list_mutex) = *new ListenerList(); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 75 | |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 76 | #if ADB_HOST |
Elliott Hughes | d98ca8a | 2015-05-29 17:55:19 -0700 | [diff] [blame] | 77 | static void ss_listener_event_func(int _fd, unsigned ev, void *_l) { |
Elliott Hughes | 54e3efe | 2015-11-20 22:01:06 -0800 | [diff] [blame] | 78 | if (ev & FDE_READ) { |
Josh Gao | c270596 | 2019-01-23 15:36:42 -0800 | [diff] [blame] | 79 | unique_fd fd(adb_socket_accept(_fd, nullptr, nullptr)); |
Elliott Hughes | 54e3efe | 2015-11-20 22:01:06 -0800 | [diff] [blame] | 80 | if (fd < 0) return; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 81 | |
Elliott Hughes | 54e3efe | 2015-11-20 22:01:06 -0800 | [diff] [blame] | 82 | int rcv_buf_size = CHUNK_SIZE; |
Josh Gao | c270596 | 2019-01-23 15:36:42 -0800 | [diff] [blame] | 83 | adb_setsockopt(fd.get(), SOL_SOCKET, SO_RCVBUF, &rcv_buf_size, sizeof(rcv_buf_size)); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 84 | |
Josh Gao | c270596 | 2019-01-23 15:36:42 -0800 | [diff] [blame] | 85 | asocket* s = create_local_socket(std::move(fd)); |
Elliott Hughes | 54e3efe | 2015-11-20 22:01:06 -0800 | [diff] [blame] | 86 | if (s) { |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 87 | connect_to_smartsocket(s); |
| 88 | return; |
| 89 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 90 | } |
| 91 | } |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 92 | #endif |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 93 | |
Elliott Hughes | d98ca8a | 2015-05-29 17:55:19 -0700 | [diff] [blame] | 94 | static void listener_event_func(int _fd, unsigned ev, void* _l) |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 95 | { |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 96 | alistener* listener = reinterpret_cast<alistener*>(_l); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 97 | |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 98 | if (ev & FDE_READ) { |
Josh Gao | c270596 | 2019-01-23 15:36:42 -0800 | [diff] [blame] | 99 | unique_fd fd(adb_socket_accept(_fd, nullptr, nullptr)); |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 100 | if (fd < 0) { |
| 101 | return; |
| 102 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 103 | |
Josh Gao | c270596 | 2019-01-23 15:36:42 -0800 | [diff] [blame] | 104 | asocket* s = create_local_socket(std::move(fd)); |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 105 | if (s) { |
| 106 | s->transport = listener->transport; |
Josh Gao | 4a037e2 | 2018-12-20 17:00:13 -0800 | [diff] [blame] | 107 | connect_to_remote(s, listener->connect_to); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 108 | return; |
| 109 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 110 | } |
| 111 | } |
| 112 | |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 113 | // Called as a transport disconnect function. |arg| is the raw alistener*. |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 114 | static void listener_disconnect(void* arg, atransport*) EXCLUDES(listener_list_mutex) { |
| 115 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 116 | for (auto iter = listener_list.begin(); iter != listener_list.end(); ++iter) { |
| 117 | if (iter->get() == arg) { |
| 118 | (*iter)->transport = nullptr; |
| 119 | listener_list.erase(iter); |
| 120 | return; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 121 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 122 | } |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 123 | } |
| 124 | |
Elliott Hughes | 88b4c85 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 125 | // Write the list of current listeners (network redirections) into a string. |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 126 | std::string format_listeners() EXCLUDES(listener_list_mutex) { |
| 127 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
Elliott Hughes | 88b4c85 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 128 | std::string result; |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 129 | for (auto& l : listener_list) { |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 130 | // Ignore special listeners like those for *smartsocket* |
Elliott Hughes | 88b4c85 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 131 | if (l->connect_to[0] == '*') { |
| 132 | continue; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 133 | } |
Elliott Hughes | 88b4c85 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 134 | // <device-serial> " " <local-name> " " <remote-name> "\n" |
Elliott Hughes | 5259178 | 2015-07-21 17:09:06 -0700 | [diff] [blame] | 135 | // Entries from "adb reverse" have no serial. |
Luis Hector Chavez | b4edbdf | 2018-07-18 21:18:27 -0700 | [diff] [blame] | 136 | android::base::StringAppendF( |
| 137 | &result, "%s %s %s\n", |
| 138 | !l->transport->serial.empty() ? l->transport->serial.c_str() : "(reverse)", |
| 139 | l->local_name.c_str(), l->connect_to.c_str()); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 140 | } |
| 141 | return result; |
| 142 | } |
| 143 | |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 144 | InstallStatus remove_listener(const char* local_name, atransport* transport) |
| 145 | EXCLUDES(listener_list_mutex) { |
| 146 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 147 | for (auto iter = listener_list.begin(); iter != listener_list.end(); ++iter) { |
| 148 | if (local_name == (*iter)->local_name) { |
| 149 | listener_list.erase(iter); |
Elliott Hughes | a585cbd | 2015-04-20 08:09:20 -0700 | [diff] [blame] | 150 | return INSTALL_STATUS_OK; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 151 | } |
| 152 | } |
Elliott Hughes | a585cbd | 2015-04-20 08:09:20 -0700 | [diff] [blame] | 153 | return INSTALL_STATUS_LISTENER_NOT_FOUND; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 154 | } |
| 155 | |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 156 | void remove_all_listeners() EXCLUDES(listener_list_mutex) { |
| 157 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 158 | auto iter = listener_list.begin(); |
| 159 | while (iter != listener_list.end()) { |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 160 | // Never remove smart sockets. |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 161 | if ((*iter)->connect_to[0] == '*') { |
| 162 | ++iter; |
| 163 | } else { |
| 164 | iter = listener_list.erase(iter); |
| 165 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 166 | } |
| 167 | } |
| 168 | |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 169 | void enable_server_sockets() EXCLUDES(listener_list_mutex) { |
Daniel Colascione | 232c39c | 2019-11-13 17:51:19 -0800 | [diff] [blame] | 170 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
| 171 | for (auto& l : listener_list) { |
| 172 | if (l->connect_to == "*smartsocket*") { |
| 173 | fdevent_set(l->fde, FDE_READ); |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 178 | #if ADB_HOST |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 179 | void close_smartsockets() EXCLUDES(listener_list_mutex) { |
| 180 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
| 181 | auto pred = [](const std::unique_ptr<alistener>& listener) { |
| 182 | return listener->local_name == "*smartsocket*"; |
| 183 | }; |
Josh Gao | 8b53280 | 2017-10-20 17:57:42 -0700 | [diff] [blame] | 184 | listener_list.remove_if(pred); |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 185 | } |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 186 | #endif |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 187 | |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 188 | InstallStatus install_listener(const std::string& local_name, const char* connect_to, |
Daniel Colascione | 232c39c | 2019-11-13 17:51:19 -0800 | [diff] [blame] | 189 | atransport* transport, int flags, int* resolved_tcp_port, |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 190 | std::string* error) EXCLUDES(listener_list_mutex) { |
| 191 | std::lock_guard<std::mutex> lock(listener_list_mutex); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 192 | for (auto& l : listener_list) { |
Elliott Hughes | fb59684 | 2015-05-01 17:04:38 -0700 | [diff] [blame] | 193 | if (local_name == l->local_name) { |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 194 | // Can't repurpose a smartsocket. |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 195 | if (l->connect_to[0] == '*') { |
Spencer Low | 3262585 | 2015-08-11 16:45:32 -0700 | [diff] [blame] | 196 | *error = "cannot repurpose smartsocket"; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 197 | return INSTALL_STATUS_INTERNAL_ERROR; |
| 198 | } |
| 199 | |
Daniel Colascione | 232c39c | 2019-11-13 17:51:19 -0800 | [diff] [blame] | 200 | // Can't repurpose a listener if INSTALL_LISTENER_NO_REBIND is set |
| 201 | if (flags & INSTALL_LISTENER_NO_REBIND) { |
Spencer Low | 3262585 | 2015-08-11 16:45:32 -0700 | [diff] [blame] | 202 | *error = "cannot rebind"; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 203 | return INSTALL_STATUS_CANNOT_REBIND; |
| 204 | } |
| 205 | |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 206 | l->connect_to = connect_to; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 207 | if (l->transport != transport) { |
Yabin Cui | 2d4c198 | 2015-08-28 15:09:44 -0700 | [diff] [blame] | 208 | l->transport->RemoveDisconnect(&l->disconnect); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 209 | l->transport = transport; |
Yabin Cui | 2d4c198 | 2015-08-28 15:09:44 -0700 | [diff] [blame] | 210 | l->transport->AddDisconnect(&l->disconnect); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 211 | } |
| 212 | return INSTALL_STATUS_OK; |
| 213 | } |
| 214 | } |
| 215 | |
Josh Gao | f2a988c | 2018-03-07 16:51:08 -0800 | [diff] [blame] | 216 | auto listener = std::make_unique<alistener>(local_name, connect_to); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 217 | |
Josh Gao | 4a5a95d | 2016-08-24 18:38:44 -0700 | [diff] [blame] | 218 | int resolved = 0; |
| 219 | listener->fd = socket_spec_listen(listener->local_name, error, &resolved); |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 220 | if (listener->fd < 0) { |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 221 | return INSTALL_STATUS_CANNOT_BIND; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 222 | } |
| 223 | |
Josh Gao | 4a5a95d | 2016-08-24 18:38:44 -0700 | [diff] [blame] | 224 | // If the caller requested port 0, update the listener name with the resolved port. |
| 225 | if (resolved != 0) { |
| 226 | listener->local_name = android::base::StringPrintf("tcp:%d", resolved); |
| 227 | if (resolved_tcp_port) { |
| 228 | *resolved_tcp_port = resolved; |
| 229 | } |
| 230 | } |
| 231 | |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 232 | close_on_exec(listener->fd); |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 233 | if (listener->connect_to == "*smartsocket*") { |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 234 | #if ADB_HOST |
Josh Gao | 9528df2 | 2018-05-14 11:14:33 -0700 | [diff] [blame] | 235 | listener->fde = fdevent_create(listener->fd, ss_listener_event_func, listener.get()); |
Josh Gao | 65d18e2 | 2020-04-22 20:57:26 -0700 | [diff] [blame] | 236 | #else |
| 237 | LOG(FATAL) << "attempted to connect to *smartsocket* in daemon"; |
| 238 | #endif |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 239 | } else { |
Josh Gao | 9528df2 | 2018-05-14 11:14:33 -0700 | [diff] [blame] | 240 | listener->fde = fdevent_create(listener->fd, listener_event_func, listener.get()); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 241 | } |
Daniel Colascione | 232c39c | 2019-11-13 17:51:19 -0800 | [diff] [blame] | 242 | if ((flags & INSTALL_LISTENER_DISABLED) == 0) { |
| 243 | fdevent_set(listener->fde, FDE_READ); |
| 244 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 245 | |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 246 | listener->transport = transport; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 247 | |
| 248 | if (transport) { |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 249 | listener->disconnect.opaque = listener.get(); |
Josh Gao | 165460f | 2017-05-09 13:43:35 -0700 | [diff] [blame] | 250 | listener->disconnect.func = listener_disconnect; |
Yabin Cui | 2d4c198 | 2015-08-28 15:09:44 -0700 | [diff] [blame] | 251 | transport->AddDisconnect(&listener->disconnect); |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 252 | } |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 253 | |
David Pursell | 19d0c23 | 2016-04-07 11:25:48 -0700 | [diff] [blame] | 254 | listener_list.push_back(std::move(listener)); |
| 255 | return INSTALL_STATUS_OK; |
Dan Albert | 020292b | 2015-02-18 18:03:26 -0800 | [diff] [blame] | 256 | } |