From 6294482b39506c27add50c9706acd903833ba724 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Wed, 6 Aug 2025 21:58:05 +0300 Subject: [PATCH] pmt: ready for release - Fix memory leaks - Writed functions and apply - Test pmt and verify stability --- .gitignore | 14 ++ .idea/editor.xml | 2 +- CMakeLists.txt | 5 +- .../{lib.hpp => PartitionManager.hpp} | 59 +++---- src/CMakeLists.txt | 43 +++++ src/FunctionManager.cpp | 53 ++++-- src/Lib.cpp | 97 ----------- src/Main.cpp | 3 +- src/PartitionManager.cpp | 119 +++++++++++++ src/functions/BackupFunction.cpp | 101 ++++++++++++ src/functions/EraseFunction.cpp | 86 ++++++++++ src/functions/FlashFunction.cpp | 104 ++++++++++++ src/functions/InfoFunction.cpp | 89 ++++++++++ src/functions/PartitionSizeFunction.cpp | 72 ++++++++ src/functions/functions.hpp | 64 +++++-- srclib/libhelper/CMakeLists.txt | 10 +- srclib/libhelper/include/libhelper/lib.hpp | 80 ++++----- srclib/libhelper/src/Checkers.cpp | 11 +- srclib/libhelper/src/Classes.cpp | 32 ++-- srclib/libhelper/src/FileUtil.cpp | 117 ++++--------- srclib/libhelper/src/Sha256.cpp | 15 +- srclib/libhelper/src/Utilities.cpp | 64 ++++--- srclib/libpartition_map/CMakeLists.txt | 10 +- .../include/libpartition_map/lib.hpp | 156 ++++++------------ srclib/libpartition_map/src/Getters.cpp | 10 ++ srclib/libpartition_map/src/PartitionMap.cpp | 57 +++++-- srclib/libpartition_map/src/Type.cpp | 52 +++--- srclib/libpartition_map/tests/test.cpp | 10 +- tests/test.cpp | 0 29 files changed, 1033 insertions(+), 502 deletions(-) rename include/PartitionManager/{lib.hpp => PartitionManager.hpp} (58%) create mode 100644 src/CMakeLists.txt delete mode 100755 src/Lib.cpp create mode 100755 src/PartitionManager.cpp create mode 100644 src/functions/BackupFunction.cpp create mode 100644 src/functions/EraseFunction.cpp create mode 100644 src/functions/FlashFunction.cpp create mode 100644 src/functions/InfoFunction.cpp create mode 100644 src/functions/PartitionSizeFunction.cpp delete mode 100755 tests/test.cpp diff --git a/.gitignore b/.gitignore index 90058ad..fa9ecd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,16 @@ +# Dont'd add IDE files cmake-build-* .idea +.vscode + +# Don't add generated headers +include/generated + +# Dont't add build directories +build_arm64-v8a +build_armeabi-v7a + +# Don't add generated objects and libs +*.o +*.so +*.a diff --git a/.idea/editor.xml b/.idea/editor.xml index 25c6c37..c8af898 100644 --- a/.idea/editor.xml +++ b/.idea/editor.xml @@ -269,7 +269,7 @@