• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

修訂b10d1ac14a927c7948e1d19a09f5f3d9aaf1c848 (tree)
時間2019-04-20 07:14:08
作者Alistair Strachan <astrachan@goog...>
CommiterAndroid (Google) Code Review

Log Message

Merge "Don't assume an A/B device when overriding the super partition name." into qt-dev

Change Summary

差異

--- a/fs_mgr/fs_mgr.cpp
+++ b/fs_mgr/fs_mgr.cpp
@@ -1695,11 +1695,12 @@ bool fs_mgr_verity_is_check_at_most_once(const android::fs_mgr::FstabEntry& entr
16951695
16961696 std::string fs_mgr_get_super_partition_name(int slot) {
16971697 // Devices upgrading to dynamic partitions are allowed to specify a super
1698- // partition name, assumed to be A/B (non-A/B retrofit is not supported).
1699- // For devices launching with dynamic partition support, the partition
1700- // name must be "super".
1698+ // partition name. This includes cuttlefish, which is a non-A/B device.
17011699 std::string super_partition;
17021700 if (fs_mgr_get_boot_config_from_kernel_cmdline("super_partition", &super_partition)) {
1701+ if (fs_mgr_get_slot_suffix().empty()) {
1702+ return super_partition;
1703+ }
17031704 std::string suffix;
17041705 if (slot == 0) {
17051706 suffix = "_a";