More Samsung sdcard crypto fixes

This commit is contained in:
Dees_Troy
2013-01-10 15:43:00 +00:00
parent 3a16cb511b
commit c8bafa1cc1
4 changed files with 34 additions and 21 deletions
+1 -1
View File
@@ -1635,7 +1635,7 @@ int TWPartitionManager::Decrypt_Device(string Password) {
property_get("ro.crypto.sd_fs_crypto_blkdev", crypto_blkdev_sd, "error");
if (strcmp(crypto_blkdev_sd, "error") == 0) {
LOGE("Error retrieving decrypted data block device.\n");
} else if(TWPartition* emmc = Find_Partition_By_Path(TW_INTERNAL_STORAGE_PATH)){
} else if(TWPartition* emmc = Find_Partition_By_Path(EXPAND(TW_INTERNAL_STORAGE_PATH))){
emmc->Is_Decrypted = true;
emmc->Decrypted_Block_Device = crypto_blkdev_sd;
emmc->Setup_File_System(false);