wiping: this will fix wipe with devices that don't use the

/dev/block/mapper/userdata symlink to the setup device mapper.

Change-Id: I1d5a1ed59f7c445ce86ccd52dae1e2e729e06815
This commit is contained in:
bigbiff
2020-09-11 14:03:31 -04:00
parent fdca6b8a5a
commit c2cb385d5d
+1 -3
View File
@@ -1722,9 +1722,7 @@ void TWPartitionManager::Update_System_Details(void) {
void TWPartitionManager::Post_Decrypt(const string& Block_Device) {
TWPartition* dat = Find_Partition_By_Path("/data");
#ifdef USE_FSCRYPT
dat->Set_Block_Device("/dev/block/mapper/userdata");
#endif
if (dat != NULL) {
DataManager::SetValue(TW_IS_DECRYPTED, 1);
dat->Is_Decrypted = true;