Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -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 | package com.android.server; |
| 18 | |
| 19 | import android.content.Context; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 20 | import android.content.pm.ActivityInfo; |
| 21 | import android.content.pm.ApplicationInfo; |
| 22 | import android.content.pm.PackageInfo; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 23 | import android.content.pm.PackageManager; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 24 | import android.content.pm.ResolveInfo; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 25 | import android.content.res.Resources; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 26 | import android.content.Intent; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 27 | import android.util.EventLog; |
| 28 | import android.util.Slog; |
| 29 | import android.os.Binder; |
| 30 | import android.os.Build; |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 31 | import android.os.Handler; |
| 32 | import android.os.Looper; |
| 33 | import android.os.Message; |
| 34 | import android.os.Process; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 35 | import android.provider.MediaStore; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 36 | import android.system.ErrnoException; |
| 37 | import android.system.Os; |
| 38 | import android.system.OsConstants; |
| 39 | import android.system.StructStat; |
| 40 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 41 | import com.android.internal.app.ResolverActivity; |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 42 | import com.android.internal.os.BackgroundThread; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 43 | |
Philip Cuadra | d9bd884 | 2016-07-12 17:29:38 -0700 | [diff] [blame^] | 44 | import dalvik.system.DexFile; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 45 | import dalvik.system.VMRuntime; |
| 46 | |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 47 | import java.util.ArrayList; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 48 | import java.util.List; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 49 | import java.io.FileDescriptor; |
| 50 | import java.io.FileOutputStream; |
| 51 | import java.io.IOException; |
| 52 | import java.io.PrintWriter; |
| 53 | |
| 54 | /** |
| 55 | * <p>PinnerService pins important files for key processes in memory.</p> |
| 56 | * <p>Files to pin are specified in the config_defaultPinnerServiceFiles |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 57 | * overlay.</p> |
| 58 | * <p>Pin the default camera application if specified in config_pinnerCameraApp.</p> |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 59 | */ |
| 60 | public final class PinnerService extends SystemService { |
| 61 | private static final boolean DEBUG = false; |
| 62 | private static final String TAG = "PinnerService"; |
| 63 | |
| 64 | private final Context mContext; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 65 | private final ArrayList<PinnedFile> mPinnedFiles = new ArrayList<PinnedFile>(); |
| 66 | private final ArrayList<PinnedFile> mPinnedCameraFiles = new ArrayList<PinnedFile>(); |
| 67 | private final boolean mShouldPinCamera; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 68 | |
| 69 | private BinderService mBinderService; |
| 70 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 71 | private final long MAX_CAMERA_PIN_SIZE = 50 * (1 << 20); //50MB max |
| 72 | |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 73 | private PinnerHandler mPinnerHandler = null; |
| 74 | |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 75 | |
| 76 | public PinnerService(Context context) { |
| 77 | super(context); |
| 78 | |
| 79 | mContext = context; |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 80 | mShouldPinCamera = context.getResources().getBoolean( |
| 81 | com.android.internal.R.bool.config_pinnerCameraApp); |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 82 | mPinnerHandler = new PinnerHandler(BackgroundThread.get().getLooper()); |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | @Override |
| 86 | public void onStart() { |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 87 | if (DEBUG) { |
| 88 | Slog.i(TAG, "Starting PinnerService"); |
| 89 | } |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 90 | mBinderService = new BinderService(); |
| 91 | publishBinderService("pinner", mBinderService); |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 92 | mPinnerHandler.sendMessage( |
| 93 | mPinnerHandler.obtainMessage(PinnerHandler.PIN_ONSTART_MSG)); |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 94 | } |
| 95 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 96 | /** |
| 97 | * Pin camera on unlock. |
| 98 | * We have to wait for unlock because the user's |
| 99 | * preference for camera is not available from PackageManager until after |
| 100 | * unlock |
| 101 | */ |
| 102 | @Override |
| 103 | public void onUnlockUser(int userHandle) { |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 104 | mPinnerHandler.sendMessage( |
| 105 | mPinnerHandler.obtainMessage(PinnerHandler.PIN_CAMERA_MSG, userHandle, 0)); |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | /** |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 109 | * Pin camera on user switch. |
| 110 | * If more than one user is using the device |
| 111 | * each user may set a different preference for the camera app. |
| 112 | * Make sure that user's preference is pinned into memory. |
| 113 | */ |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 114 | @Override |
| 115 | public void onSwitchUser(int userHandle) { |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 116 | mPinnerHandler.sendMessage( |
| 117 | mPinnerHandler.obtainMessage(PinnerHandler.PIN_CAMERA_MSG, userHandle, 0)); |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 118 | } |
| 119 | |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 120 | /** |
| 121 | * Handler for on start pinning message |
| 122 | */ |
| 123 | private void handlePinOnStart() { |
| 124 | // Files to pin come from the overlay and can be specified per-device config |
| 125 | String[] filesToPin = mContext.getResources().getStringArray( |
| 126 | com.android.internal.R.array.config_defaultPinnerServiceFiles); |
| 127 | synchronized(this) { |
| 128 | // Continue trying to pin remaining files even if there is a failure |
| 129 | for (int i = 0; i < filesToPin.length; i++){ |
| 130 | PinnedFile pf = pinFile(filesToPin[i], 0, 0, 0); |
| 131 | if (pf != null) { |
| 132 | mPinnedFiles.add(pf); |
| 133 | if (DEBUG) { |
| 134 | Slog.i(TAG, "Pinned file = " + pf.mFilename); |
| 135 | } |
| 136 | } else { |
| 137 | Slog.e(TAG, "Failed to pin file = " + filesToPin[i]); |
| 138 | } |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Handler for camera pinning message |
| 145 | */ |
| 146 | private void handlePinCamera(int userHandle) { |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 147 | if (mShouldPinCamera) { |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 148 | synchronized(this) { |
| 149 | boolean success = pinCamera(userHandle); |
| 150 | if (!success) { |
| 151 | //this is not necessarily an error |
| 152 | if (DEBUG) { |
| 153 | Slog.v(TAG, "Failed to pin camera."); |
| 154 | } |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 155 | } |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * determine if the camera app is already pinned by comparing the |
| 162 | * intent resolution to the pinned files list |
| 163 | */ |
| 164 | private boolean alreadyPinned(int userHandle) { |
| 165 | ApplicationInfo cameraInfo = getCameraInfo(userHandle); |
| 166 | if (cameraInfo == null ) { |
| 167 | return false; |
| 168 | } |
| 169 | for (int i = 0; i < mPinnedCameraFiles.size(); i++) { |
| 170 | if (mPinnedCameraFiles.get(i).mFilename.equals(cameraInfo.sourceDir)) { |
| 171 | if (DEBUG) { |
| 172 | Slog.v(TAG, "Camera is already pinned"); |
| 173 | } |
| 174 | return true; |
| 175 | } |
| 176 | } |
| 177 | return false; |
| 178 | } |
| 179 | |
| 180 | private void unpinCameraApp() { |
| 181 | for (int i = 0; i < mPinnedCameraFiles.size(); i++) { |
| 182 | unpinFile(mPinnedCameraFiles.get(i)); |
| 183 | } |
| 184 | mPinnedCameraFiles.clear(); |
| 185 | } |
| 186 | |
| 187 | private boolean isResolverActivity(ActivityInfo info) { |
| 188 | return ResolverActivity.class.getName().equals(info.name); |
| 189 | } |
| 190 | |
| 191 | private ApplicationInfo getCameraInfo(int userHandle) { |
| 192 | // find the camera via an intent |
| 193 | // use INTENT_ACTION_STILL_IMAGE_CAMERA instead of _SECURE. On a |
| 194 | // device without a fbe enabled, the _SECURE intent will never get set. |
| 195 | Intent cameraIntent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA); |
| 196 | PackageManager pm = mContext.getPackageManager(); |
| 197 | ResolveInfo cameraResolveInfo = pm.resolveActivityAsUser( |
| 198 | cameraIntent, PackageManager.MATCH_DEFAULT_ONLY, userHandle); |
| 199 | if (cameraResolveInfo == null ) { |
| 200 | //this is not necessarily an error |
| 201 | if (DEBUG) { |
| 202 | Slog.v(TAG, "Unable to resolve camera intent"); |
| 203 | } |
| 204 | return null; |
| 205 | } |
| 206 | |
| 207 | if (isResolverActivity(cameraResolveInfo.activityInfo)) |
| 208 | { |
| 209 | return null; |
| 210 | } |
| 211 | |
| 212 | return cameraResolveInfo.activityInfo.applicationInfo; |
| 213 | } |
| 214 | |
| 215 | private boolean pinCamera(int userHandle){ |
| 216 | //we may have already pinned a camera app. If we've pinned this |
| 217 | //camera app, we're done. otherwise, unpin and pin the new app |
| 218 | if (alreadyPinned(userHandle)){ |
| 219 | return true; |
| 220 | } |
| 221 | |
| 222 | ApplicationInfo cameraInfo = getCameraInfo(userHandle); |
| 223 | if (cameraInfo == null) { |
| 224 | return false; |
| 225 | } |
| 226 | |
| 227 | //unpin after checking that the camera intent has resolved |
| 228 | //this prevents us from thrashing when switching users with |
| 229 | //FBE enabled, because the intent won't resolve until the unlock |
| 230 | unpinCameraApp(); |
| 231 | |
| 232 | //pin APK |
| 233 | String camAPK = cameraInfo.sourceDir; |
| 234 | PinnedFile pf = pinFile(camAPK, 0, 0, MAX_CAMERA_PIN_SIZE); |
| 235 | if (pf == null) { |
| 236 | Slog.e(TAG, "Failed to pin " + camAPK); |
| 237 | return false; |
| 238 | } |
| 239 | if (DEBUG) { |
| 240 | Slog.i(TAG, "Pinned " + pf.mFilename); |
| 241 | } |
| 242 | mPinnedCameraFiles.add(pf); |
| 243 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 244 | // determine the ABI from either ApplicationInfo or Build |
| 245 | String arch = "arm"; |
| 246 | if (cameraInfo.primaryCpuAbi != null |
| 247 | && VMRuntime.is64BitAbi(cameraInfo.primaryCpuAbi)) { |
| 248 | arch = arch + "64"; |
| 249 | } else { |
| 250 | if (VMRuntime.is64BitAbi(Build.SUPPORTED_ABIS[0])) { |
| 251 | arch = arch + "64"; |
| 252 | } |
| 253 | } |
Philip Cuadra | d9bd884 | 2016-07-12 17:29:38 -0700 | [diff] [blame^] | 254 | |
| 255 | // get the path to the odex or oat file |
| 256 | String baseCodePath = cameraInfo.getBaseCodePath(); |
| 257 | String odex = null; |
| 258 | try { |
| 259 | odex = DexFile.getDexFileOutputPath(baseCodePath, arch); |
| 260 | } catch (IOException ioe) {} |
| 261 | if (odex == null) { |
| 262 | return true; |
| 263 | } |
| 264 | |
| 265 | //not pinning the oat/odex is not a fatal error |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 266 | pf = pinFile(odex, 0, 0, MAX_CAMERA_PIN_SIZE); |
| 267 | if (pf != null) { |
| 268 | mPinnedCameraFiles.add(pf); |
| 269 | if (DEBUG) { |
| 270 | Slog.i(TAG, "Pinned " + pf.mFilename); |
| 271 | } |
| 272 | } |
Philip Cuadra | d9bd884 | 2016-07-12 17:29:38 -0700 | [diff] [blame^] | 273 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 274 | return true; |
| 275 | } |
| 276 | |
| 277 | |
| 278 | /** mlock length bytes of fileToPin in memory, starting at offset |
| 279 | * length == 0 means pin from offset to end of file |
| 280 | * maxSize == 0 means infinite |
| 281 | */ |
| 282 | private static PinnedFile pinFile(String fileToPin, long offset, long length, long maxSize) { |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 283 | FileDescriptor fd = new FileDescriptor(); |
| 284 | try { |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 285 | fd = Os.open(fileToPin, |
| 286 | OsConstants.O_RDONLY | OsConstants.O_CLOEXEC | OsConstants.O_NOFOLLOW, |
| 287 | OsConstants.O_RDONLY); |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 288 | |
| 289 | StructStat sb = Os.fstat(fd); |
| 290 | |
| 291 | if (offset + length > sb.st_size) { |
| 292 | Os.close(fd); |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 293 | Slog.e(TAG, "Failed to pin file " + fileToPin + |
| 294 | ", request extends beyond end of file. offset + length = " |
| 295 | + (offset + length) + ", file length = " + sb.st_size); |
| 296 | return null; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 297 | } |
| 298 | |
| 299 | if (length == 0) { |
| 300 | length = sb.st_size - offset; |
| 301 | } |
| 302 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 303 | if (maxSize > 0 && length > maxSize) { |
| 304 | Slog.e(TAG, "Could not pin file " + fileToPin + |
| 305 | ", size = " + length + ", maxSize = " + maxSize); |
| 306 | Os.close(fd); |
| 307 | return null; |
| 308 | } |
| 309 | |
| 310 | long address = Os.mmap(0, length, OsConstants.PROT_READ, |
| 311 | OsConstants.MAP_PRIVATE, fd, offset); |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 312 | Os.close(fd); |
| 313 | |
| 314 | Os.mlock(address, length); |
| 315 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 316 | return new PinnedFile(address, length, fileToPin); |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 317 | } catch (ErrnoException e) { |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 318 | Slog.e(TAG, "Could not pin file " + fileToPin + " with error " + e.getMessage()); |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 319 | if(fd.valid()) { |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 320 | try { |
| 321 | Os.close(fd); |
| 322 | } |
| 323 | catch (ErrnoException eClose) { |
| 324 | Slog.e(TAG, "Failed to close fd, error = " + eClose.getMessage()); |
| 325 | } |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 326 | } |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 327 | return null; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 328 | } |
| 329 | } |
| 330 | |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 331 | private static boolean unpinFile(PinnedFile pf) { |
| 332 | try { |
| 333 | Os.munlock(pf.mAddress, pf.mLength); |
| 334 | } catch (ErrnoException e) { |
| 335 | Slog.e(TAG, "Failed to unpin file " + pf.mFilename + " with error " + e.getMessage()); |
| 336 | return false; |
| 337 | } |
| 338 | if (DEBUG) { |
| 339 | Slog.i(TAG, "Unpinned file " + pf.mFilename ); |
| 340 | } |
| 341 | return true; |
| 342 | } |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 343 | |
| 344 | private final class BinderService extends Binder { |
| 345 | @Override |
| 346 | protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { |
| 347 | mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG); |
| 348 | pw.println("Pinned Files:"); |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 349 | synchronized(this) { |
| 350 | for (int i = 0; i < mPinnedFiles.size(); i++) { |
| 351 | pw.println(mPinnedFiles.get(i).mFilename); |
| 352 | } |
| 353 | for (int i = 0; i < mPinnedCameraFiles.size(); i++) { |
| 354 | pw.println(mPinnedCameraFiles.get(i).mFilename); |
| 355 | } |
Philip Cuadra | 7cb2f8b | 2016-06-15 16:23:43 -0700 | [diff] [blame] | 356 | } |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | private static class PinnedFile { |
| 361 | long mAddress; |
| 362 | long mLength; |
| 363 | String mFilename; |
| 364 | |
| 365 | PinnedFile(long address, long length, String filename) { |
| 366 | mAddress = address; |
| 367 | mLength = length; |
| 368 | mFilename = filename; |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 369 | } |
| 370 | } |
Philip Cuadra | a95cea0 | 2016-07-06 16:00:32 -0700 | [diff] [blame] | 371 | |
| 372 | final class PinnerHandler extends Handler { |
| 373 | static final int PIN_CAMERA_MSG = 4000; |
| 374 | static final int PIN_ONSTART_MSG = 4001; |
| 375 | |
| 376 | public PinnerHandler(Looper looper) { |
| 377 | super(looper, null, true); |
| 378 | } |
| 379 | |
| 380 | @Override |
| 381 | public void handleMessage(Message msg) { |
| 382 | switch (msg.what) { |
| 383 | |
| 384 | case PIN_CAMERA_MSG: |
| 385 | { |
| 386 | handlePinCamera(msg.arg1); |
| 387 | } |
| 388 | break; |
| 389 | |
| 390 | case PIN_ONSTART_MSG: |
| 391 | { |
| 392 | handlePinOnStart(); |
| 393 | } |
| 394 | break; |
| 395 | |
| 396 | default: |
| 397 | super.handleMessage(msg); |
| 398 | } |
| 399 | } |
| 400 | } |
| 401 | |
Philip Cuadra | 7bd0fdd | 2016-04-28 15:26:49 -0700 | [diff] [blame] | 402 | } |