b6134a6d4e
The purpose of this code was to support preserving partitions across a flashall operation. Since we are not supporting persistent read-write partitions, this merging code is effectively useless - it is preserving only partitions that will be deleted. Additionally, this code does not merge partition group changes, since doing so accurately is difficult. Partition size changes aren't sent until after update-super resolves, so a valid re-grouping could be rejected during update-super if the existing partitions are too big. This patch removes the update-super merging code until a use case comes along and we can properly evaluate how it should work. Bug: N/A Test: fastboot flashall Change-Id: I1d622b23dabdf031897be9de49f59fc8cf3caf3b
25 lines
849 B
C++
25 lines
849 B
C++
/*
|
|
* Copyright (C) 2018 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class FastbootDevice;
|
|
|
|
int Flash(FastbootDevice* device, const std::string& partition_name);
|
|
bool UpdateSuper(FastbootDevice* device, const std::string& super_name, bool wipe);
|