Whenever factory reset is tried on device using encryption, the following error shows up:
wiping data... formatting /data... E:failed to mount /data (Invalid argument) E:format_volume failed to mount "/data" E:format_volume: wipe_data_without_wipe_media failed Formatting /cache... Data wipe failed.
What is the solution?