AOSP10 TWRP Merge: fix conflicts and update libraries needed
This allows flame to boot TWRP. Still will need to work on super partition for vendor and system access. The plan will be to cherry-pick any updates to android-9.0 through gerrit.twrp.me to this branch as a WIP.
This commit is contained in:
Regular → Executable
+9
-3
@@ -52,10 +52,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <fstream>
|
||||
|
||||
#include <ext4_utils/ext4_crypt.h>
|
||||
#include "ext4_crypt.h"
|
||||
|
||||
#ifdef USE_KEYSTORAGE_4
|
||||
#include <android/security/IKeystoreService.h>
|
||||
#include <android/hardware/confirmationui/1.0/types.h>
|
||||
#include <android/security/BnConfirmationPromptCallback.h>
|
||||
#include <android/security/keystore/IKeystoreService.h>
|
||||
#else
|
||||
#include <keystore/IKeystoreService.h>
|
||||
#include <keystore/authorization_set.h>
|
||||
@@ -82,6 +84,10 @@ extern "C" {
|
||||
|
||||
#include <android-base/file.h>
|
||||
|
||||
#ifdef USE_KEYSTORAGE_4
|
||||
using android::security::keystore::IKeystoreService;
|
||||
#endif
|
||||
|
||||
// Store main DE raw ref / policy
|
||||
extern std::string de_raw_ref;
|
||||
extern std::map<userid_t, std::string> s_de_key_raw_refs;
|
||||
@@ -551,7 +557,7 @@ std::string unwrapSyntheticPasswordBlob(const std::string& spblob_path, const st
|
||||
// First get the keystore service
|
||||
sp<IBinder> binder = getKeystoreBinderRetry();
|
||||
#ifdef USE_KEYSTORAGE_4
|
||||
sp<security::IKeystoreService> service = interface_cast<security::IKeystoreService>(binder);
|
||||
sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder);
|
||||
#else
|
||||
sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user