Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 416cda9b authored by Rafay Kamran's avatar Rafay Kamran Committed by Gerrit Code Review
Browse files

Merge changes from topic "revert-1935201-OUHHJQVSHH"

* changes:
  Revert "libsnapshot: Fix checks for compression to work with new..."
  Revert "libsnapshot: Fix libsnapshot_fuzzer_test."
parents fe9b4ed7 146f07e0
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@
#include <fs_mgr_overlayfs.h>
#include <libfiemap/image_manager.h>

#include "utility.h"

namespace android {
namespace snapshot {

@@ -145,9 +143,5 @@ android::dm::IDeviceMapper& DeviceInfo::GetDeviceMapper() {
    return android::dm::DeviceMapper::Instance();
}

bool DeviceInfo::UseUserspaceSnapshots() const {
    return IsUserspaceSnapshotsEnabled();
}

}  // namespace snapshot
}  // namespace android
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ class DeviceInfo final : public SnapshotManager::IDeviceInfo {
    std::unique_ptr<IImageManager> OpenImageManager() const override;
    bool IsFirstStageInit() const override;
    android::dm::IDeviceMapper& GetDeviceMapper() override;
    bool UseUserspaceSnapshots() const override;

    void set_first_stage_init(bool value) { first_stage_init_ = value; }

+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ class MockDeviceInfo : public SnapshotManager::IDeviceInfo {
    MOCK_METHOD(bool, IsFirstStageInit, (), (const, override));
    MOCK_METHOD(std::unique_ptr<android::fiemap::IImageManager>, OpenImageManager, (),
                (const, override));
    MOCK_METHOD(bool, UseUserspaceSnapshots, (), (const, override));
};

}  // namespace android::snapshot
+0 −1
Original line number Diff line number Diff line
@@ -111,7 +111,6 @@ class ISnapshotManager {
        virtual bool IsFirstStageInit() const = 0;
        virtual std::unique_ptr<IImageManager> OpenImageManager() const = 0;
        virtual android::dm::IDeviceMapper& GetDeviceMapper() = 0;
        virtual bool UseUserspaceSnapshots() const = 0;

        // Helper method for implementing OpenImageManager.
        std::unique_ptr<IImageManager> OpenImageManager(const std::string& gsid_dir) const;
+0 −1
Original line number Diff line number Diff line
@@ -107,7 +107,6 @@ class TestDeviceInfo : public SnapshotManager::IDeviceInfo {
    }

    bool IsSlotUnbootable(uint32_t slot) { return unbootable_slots_.count(slot) != 0; }
    bool UseUserspaceSnapshots() const override;

    void set_slot_suffix(const std::string& suffix) { slot_suffix_ = suffix; }
    void set_fake_super(const std::string& path) {
Loading