mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-01 07:26:53 -08:00
Use find_if
This commit is contained in:
@@ -229,14 +229,6 @@ kv_pairs load_partition_map() {
|
||||
return {};
|
||||
}
|
||||
|
||||
std::string get_partition_name_for_device(const kv_pairs &partition_map, const std::string &query_device){
|
||||
for (const auto &[device, partition] : partition_map) {
|
||||
if (query_device == device)
|
||||
return partition;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
bool check_two_stage() {
|
||||
if (access("/apex", F_OK) == 0)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user