• 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

修訂cad2733f491af1d2757d63b9ff0317ccc572001a (tree)
時間2019-04-19 06:35:49
作者David Anderson <dvander@goog...>
CommiterDavid Anderson

Log Message

Don't assume an A/B device when overriding the super partition name.

Bug: 130750333
Test: launch cuttlefish with DAP enabled
Change-Id: I1ea309d448866a8914f58be98d860eca36d47062
Merged-In: I1ea309d448866a8914f58be98d860eca36d47062

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";