~aleteoryx/muditaos

ref: c96dc7dc30a62ea6d66bfdcc1c536726358a8925 muditaos/board/rt1051/crashdump-serial-number/crashdump_serial_number.cpp -rw-r--r-- 475 bytes
c96dc7dc — rrandomsky [MOS-686] Fixed MTP availability only after phone unlocked 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <crashdump-serial-number/crashdump_serial_number.hpp>

namespace
{
    std::string serial_number = "0000000000000";
}
namespace crashdump
{
    void setSerialNumber(const std::string &sn)
    {
        serial_number = sn;
    }
    std::string getSerialNumber()
    {
        return serial_number;
    }

} // namespace crashdump