Loading bootstat/OWNERS +2 −0 Original line number Diff line number Diff line dvander@google.com achant@google.com markcheng@google.com bootstat/bootstat.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -467,7 +467,7 @@ const std::map<std::string, int32_t> kBootReasonMap = { {"reboot,longkey,master_dc", 235}, {"reboot,ocp2,pmic,if", 236}, {"reboot,ocp,pmic,if", 237}, {"reboot,fship", 238}, {"reboot,fship.*", 238}, {"reboot,ocp,.*", 239}, {"reboot,ntc,pmic,sub", 240}, }; Loading fs_mgr/libsnapshot/scratch_super.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -396,7 +396,7 @@ std::string MapScratchOtaMetadataPartition(const std::string& scratch_device) { } // Entry point to create a scratch device on super partition // This will create a 1MB space in super. The space will be // This will create a 2MB space in super. The space will be // from the current active slot. Ext4 filesystem will be created // on this scratch device and all the OTA related directories // will be created. Loading fs_mgr/libsnapshot/scratch_super.h +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ namespace snapshot { constexpr char kMkExt4[] = "/system/bin/mke2fs"; constexpr char kOtaMetadataFileContext[] = "u:object_r:ota_metadata_file:s0"; constexpr char kOtaMetadataMount[] = "/mnt/scratch_ota_metadata_super"; const size_t kOtaMetadataPartitionSize = uint64_t(1 * 1024 * 1024); const size_t kOtaMetadataPartitionSize = uint64_t(2 * 1024 * 1024); constexpr char kPhysicalDevice[] = "/dev/block/by-name/"; bool IsScratchOtaMetadataOnSuper(); Loading fs_mgr/tests/adb-remount-test.sh +8 −0 Original line number Diff line number Diff line Loading @@ -1360,6 +1360,14 @@ cat "${system_build_prop_original}" - <<EOF >"${system_build_prop_modified}" # Properties added by adb remount test test.adb.remount.system.build.prop=true EOF # Move /system/build.prop to make sure we can move and then replace files # Note that as of kernel 6.1 mv creates the char_file that whites out the lower # file with different selabels than rm does # See b/394290609 adb shell mv /system/build.prop /system/build.prop.backup >/dev/null || die "adb shell rm /system/build.prop" adb push "${system_build_prop_modified}" /system/build.prop >/dev/null || die "adb push /system/build.prop" adb pull /system/build.prop "${system_build_prop_fromdevice}" >/dev/null || Loading Loading
bootstat/OWNERS +2 −0 Original line number Diff line number Diff line dvander@google.com achant@google.com markcheng@google.com
bootstat/bootstat.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -467,7 +467,7 @@ const std::map<std::string, int32_t> kBootReasonMap = { {"reboot,longkey,master_dc", 235}, {"reboot,ocp2,pmic,if", 236}, {"reboot,ocp,pmic,if", 237}, {"reboot,fship", 238}, {"reboot,fship.*", 238}, {"reboot,ocp,.*", 239}, {"reboot,ntc,pmic,sub", 240}, }; Loading
fs_mgr/libsnapshot/scratch_super.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -396,7 +396,7 @@ std::string MapScratchOtaMetadataPartition(const std::string& scratch_device) { } // Entry point to create a scratch device on super partition // This will create a 1MB space in super. The space will be // This will create a 2MB space in super. The space will be // from the current active slot. Ext4 filesystem will be created // on this scratch device and all the OTA related directories // will be created. Loading
fs_mgr/libsnapshot/scratch_super.h +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ namespace snapshot { constexpr char kMkExt4[] = "/system/bin/mke2fs"; constexpr char kOtaMetadataFileContext[] = "u:object_r:ota_metadata_file:s0"; constexpr char kOtaMetadataMount[] = "/mnt/scratch_ota_metadata_super"; const size_t kOtaMetadataPartitionSize = uint64_t(1 * 1024 * 1024); const size_t kOtaMetadataPartitionSize = uint64_t(2 * 1024 * 1024); constexpr char kPhysicalDevice[] = "/dev/block/by-name/"; bool IsScratchOtaMetadataOnSuper(); Loading
fs_mgr/tests/adb-remount-test.sh +8 −0 Original line number Diff line number Diff line Loading @@ -1360,6 +1360,14 @@ cat "${system_build_prop_original}" - <<EOF >"${system_build_prop_modified}" # Properties added by adb remount test test.adb.remount.system.build.prop=true EOF # Move /system/build.prop to make sure we can move and then replace files # Note that as of kernel 6.1 mv creates the char_file that whites out the lower # file with different selabels than rm does # See b/394290609 adb shell mv /system/build.prop /system/build.prop.backup >/dev/null || die "adb shell rm /system/build.prop" adb push "${system_build_prop_modified}" /system/build.prop >/dev/null || die "adb push /system/build.prop" adb pull /system/build.prop "${system_build_prop_fromdevice}" >/dev/null || Loading