OSDN Git Service

Merge "vold: remove checkEncryption" am: 2d9777bfbf am: 15c0d3e5d0
authorEric Biggers <ebiggers@google.com>
Thu, 16 Jul 2020 21:00:33 +0000 (21:00 +0000)
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Thu, 16 Jul 2020 21:00:33 +0000 (21:00 +0000)
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/1363339

Change-Id: I23b9a01632b61a92896ae83e2152fa047dd85c48

1  2 
Android.bp
VoldNativeService.cpp
VoldNativeService.h
binder/android/os/IVold.aidl
vdc.cpp

diff --cc Android.bp
Simple merge
  
  #include "VoldNativeService.h"
  
 +#include <android-base/logging.h>
 +#include <android-base/stringprintf.h>
 +#include <android-base/strings.h>
 +#include <fs_mgr.h>
 +#include <fscrypt/fscrypt.h>
 +#include <private/android_filesystem_config.h>
 +#include <utils/Trace.h>
 +
 +#include <fstream>
 +#include <thread>
 +
  #include "Benchmark.h"
- #include "CheckEncryption.h"
  #include "Checkpoint.h"
  #include "FsCrypt.h"
  #include "IdleMaint.h"
@@@ -351,20 -339,9 +350,9 @@@ binder::Status VoldNativeService::bench
      return Ok();
  }
  
- binder::Status VoldNativeService::checkEncryption(const std::string& volId) {
-     ENFORCE_SYSTEM_OR_ROOT;
-     CHECK_ARGUMENT_ID(volId);
-     ACQUIRE_LOCK;
-     std::string path;
-     auto status = pathForVolId(volId, &path);
-     if (!status.isOk()) return status;
-     return translate(android::vold::CheckEncryption(path));
- }
  binder::Status VoldNativeService::moveStorage(
 -    const std::string& fromVolId, const std::string& toVolId,
 -    const android::sp<android::os::IVoldTaskListener>& listener) {
 +        const std::string& fromVolId, const std::string& toVolId,
 +        const android::sp<android::os::IVoldTaskListener>& listener) {
      ENFORCE_SYSTEM_OR_ROOT;
      CHECK_ARGUMENT_ID(fromVolId);
      CHECK_ARGUMENT_ID(toVolId);
Simple merge
Simple merge
diff --cc vdc.cpp
Simple merge