MCPcopy Create free account
hub / github.com/Quill-OS/quill / disableStorageEncryption

Method disableStorageEncryption

src/settings/settings.cpp:977–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977void settings::disableStorageEncryption() {
978 log("Disabling encrypted storage", className);
979 setDefaultWorkDir();
980 string_writeconfig("/external_root/run/encfs_stop_cleanup", "true");
981 string_writeconfig("/opt/ibxd", "encfs_stop\n");
982 QThread::msleep(5000);
983
984 string_writeconfig(".config/18-encrypted_storage/status", "false");
985 QFile::remove(".config/18-encrypted_storage/initial_setup_done");
986 QFile::remove(".config/18-encrypted_storage/storage_list");
987 QFile::remove("/mnt/onboard/onboard/data.encfs");
988
989 QDir dumpDir("/mnt/onboard/onboard/encfs-dropbox");
990 dumpDir.removeRecursively();
991 QDir decDir("/mnt/onboard/onboard/encfs-decrypted");
992 decDir.removeRecursively();
993
994 global::settings::settingsRebootDialog = true;
995 generalDialogWindow = new generalDialog(this);
996 generalDialogWindow->setAttribute(Qt::WA_DeleteOnClose);
997}
998
999void settings::cancelDisableStorageEncryption() {
1000 enableEncryptedStorageUserChange = false;

Callers

nothing calls this directly

Calls 3

logFunction · 0.85
setDefaultWorkDirFunction · 0.85
string_writeconfigFunction · 0.85

Tested by

no test coverage detected