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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user