在Android 数据(Android data)恢复方面,快速的Google 搜索(Google search)会返回许多骗局、错误信息和冒充(malware posing)恢复工具的恶意软件。许多人不小心删除了重要文件,不幸的是,有很多人会试图从他们的不幸中获利。
但这并不全是坏消息。在本文中,我们将解释在Android上可以进行哪些类型的数据恢复,以及如何保护自己免于将来意外删除数据。
可以在Android上恢复数据吗?
不幸的是,如果没有备份, Android手机的内部存储中几乎没有任何数据可以恢复。要找出原因,让我们首先讨论数据是如何存储在Android 设备(Android device)中的,以及数据被删除后会发生什么。
Android(Does Android Save and Delete Files)如何保存和删除文件?
在大多数手机(和存储设备)中,当文件被删除时,它们实际上并没有被删除。相反,最近删除的文件的位置被标记为可覆盖。然后在保存新文件时替换原始数据,覆盖它。因此,虽然数据没有被覆盖,但在技术上它仍然是可检索的——或者如果光盘没有(disc wasn)加密的话。
Android 5.0 到Android 9使用全盘加密。这种加密形式使用单个128 位高级加密标准 (AES)(128-bit Advanced Encryption Standard (AES))密钥,该密钥安全地存储在设备上(受用户密码保护)。在恢复出厂设置(factory reset)的情况下,使用全盘加密存储的所有文件都将被删除并且完全无法恢复。
Android 7.0 及更高版本具有基于文件的加密功能。这种加密形式对不同的文件使用不同的密钥,这意味着它们可以相互独立地解锁。然而,这也意味着当一个文件被删除时,它的加密密钥(encryption key)也会随之被删除,从而有效地完全擦除它。
除非您从设备中删除了基于文件的加密,否则无论在线服务声称什么,任何已删除的数据都无法恢复。
而且,更糟糕的是,从 Android 的NAND 闪存(NAND flash)中恢复数据比计算机硬盘驱动器要困难得多。
存储控制器记录(storage controller)NAND 闪存(NAND flash)存储上的所有数据。当一个文件被删除时,控制器将该空间标记为“空”,但实际上并没有擦除它。由于数据不断被写入和删除,控制器必须监控越来越详细的存储地图。
但是,从Android 4.3开始,手机已经包含了一个名为TRIM的协议。TRIM通过告诉控制器停止监视已删除的数据,将其标记为垃圾收集(garbage collection)(文件被完全擦除)来提供帮助。实际上,这意味着您保留已删除数据的时间越长,您恢复它的机会就越小。
在Android(Android)上可以恢复哪些数据(Data)?
您可以从Android手机恢复的数据类型包括:
- 存储在回收站中的最近删除的照片(recycling bin)
- 使用Samsung Cloud 和 Google Drive(Samsung Cloud and Google Drive)等服务备份的所有已删除数据
- 存储在SD 卡(SD card)上的数据(尽管不能保证)
- (Data)与您的Google 帐户相关联的(Google Account)数据,例如您的联系人列表
恢复出厂(Reset)设置后可以恢复数据吗?
除非已在其他地方备份,否则无法从已恢复出厂设置的(factory reset)Android 手机(Android phone)中恢复数据。保存在SD 卡上的(SD card)数据(Data)即使被删除也可能仍然可以恢复——我们将在下面介绍这一点。
植根手机是否(Does Rooting)有助于恢复数据(Phone Help Recover Data)?
一些数据恢复应用程序(recovery apps)需要你的安卓设备(Android)来恢复数据。对于较旧的Android版本,例如OS 5或 6,root 相对容易,并且使数据恢复应用程序(recovery apps)能够绕过磁盘加密(disk encryption)并可能访问最近删除的文件。
在更高版本(包括Android 10和 11)上,如果不加载Bootloader就无法生根,这会再次擦除您的存储空间。这有效地使其无法恢复数据。
数据恢复专家(Data Recovery Specialists)呢?
数据恢复(Data recovery)专家使用复杂且通常具有破坏性的方法来直接访问NAND 存储(NAND storage)并恢复数据。对于预加密的Android 操作系统(Android OS),这些方法是成功的,但也会破坏手机。
对于加密设备,可以使用这些方法来恢复数据,但由于无法在存储密钥的手机之外解密数据,因此几乎总是毫无意义。
所有数据恢复应用程序都是骗局吗?
不可以,虽然Google Play 商店(Google Play Store)中有很多诈骗应用程序,但其中很多都是合法的。例如,它们对于 SD 卡、旧版本的Android(Android)和其他形式的存储介质可能工作得很好。
然而,许多都是骗局(ARE)。请记住,没有任何应用程序能够从恢复出厂设置(factory reset)(除非它在非常早期的Android版本上)或使用基于文件的加密的手机中恢复数据。
有时,您可以使用这些应用程序从使用全盘加密 的Android中恢复刚刚删除的文件,但这些文件是加密的,没有密钥就无法访问。(Android)
通常,数据恢复应用程序(recovery apps)会恢复缓存的缩略图并声称它们是原始照片文件(这可能总比没有好)。这就是许多应用程序提供(apps offer)“图像增强”工具的原因。
如何从您的 Android中恢复数据(Data)
(Certain)如果您过去备份过某些数据,或者如果这些数据存储在您的SD 卡上(SD card)而不是手机的内部存储上,则某些数据可以在您的Android 设备上恢复。(Android device)您还可以恢复SMS消息。
检查回收站
一些照片应用程序(photo apps),包括图库应用程序(Gallery app),具有一个临时存储最近删除的照片 的回收站。(recycle bin)
要访问它,请打开图库(Gallery)并选择右下角的三个水平线。然后,选择回收站(Recycle Bin)。
您应该会看到所有最近删除的照片,包括您的设备永久擦除它们之前的剩余时间。
从SD 卡(SD Card)中恢复已删除的数据(Data From)
SD 卡(SD card)上的数据比 Android 闪存上的数据更容易恢复。即使您的SD 卡(SD card)上的文件已被删除,或者您不小心格式化了驱动器,您仍然可以使用值得信赖的数据恢复工具来恢复它们。
如果您不小心从SD 卡中删除了照片,我们建议您使用(SD card)PhotoRec,它是一款免费的照片恢复应用程序(photo recovery app),您可以将其安装在您的 PC 上。使用SD 卡(SD card)读卡器访问驱动器,您将有望恢复您的照片。
从本地备份中恢复
大多数安卓手机都有本地备份功能(backup function)。如果您启用了定期备份,您应该能够检索已删除且由先前备份捕获的任何数据。
要访问备份的数据:
- 打开设置(Settings)>帐户和备份( Accounts and backup)。
- 点击恢复数据(Restore data)。
- 为您的手机选择最新的备份。
- 确保选择要恢复的所有数据,然后点击恢复(Restore)。
从 Google 帐户中恢复
如果您有Google 帐户并在(Google account)Android上启用了同步,则您的某些数据可能是可检索的——即使在恢复出厂设置(factory reset)后也是如此。更棒的是,Android 8和更高版本的(Android 8)Google One自动备份功能可以让您恢复任何意外删除的文件。
可恢复的数据可能包括您的联系人、应用程序数据、日历、Chrome 浏览器(Chrome browser)数据以及存储在Google Drive 或 Gmail(Google Drive or Gmail)中的文档或文件。
如果您已将手机恢复出厂设置或者您使用的是新手机,那么在设置过程中,只要将您的Google 帐户(Google account)添加到设备,您就可以恢复所有同步数据。
如何确保备份您的数据(Your Data)
有许多适用于Android设备的备份服务,如果您愿意,您甚至可以选择手动执行备份。最简单的选项是通过Android设置或通过您的 Google 帐户(via your Google Account)启用备份。
启用本地备份
启用本地备份的过程可能因手机型号和制造商而异。对于Samsung,要启用本地备份:
- 打开设置(Settings)。
- 点按帐户和备份(Accounts and backup)。
- 选择备份数据(Back up data)。
- 切换您希望自动备份的每种数据,或选择立即备份(Back up now)。
现在,当您的设备空闲并连接到WiFi时,这些数据将定期备份到三星云(periodically backup to the Samsung Cloud)。
启用 Google One 备份
要使用Google One(Google One)开启自动备份:
- 打开设置(Settings)>谷歌(Google)。
- 选择备份(Backup)。
- 在备份详细信息(Backup details)下,确保所有类别均已启用。
- 要启用这些,请点击该项目并(item and toggle)打开备份和同步(Back up & sync)。
当您的设备闲置两小时并连接到 WiFi 时,它将开始同步您的数据。
预防胜于治疗
意外删除文件很糟糕,尤其是当它们是珍贵的照片或重要文件时。在意外删除的情况下,真正确保您的文件可恢复的唯一方法是经常安全地备份您的数据。
幸运的是,有很多免费或付费的基于云的服务可以为您轻松完成这项工作!
Why It’s So Hard to Recover Deleted Data on Android and What to Do About It
When it comes to Android data recoνery, a quick Google search returns many scams, misinformation, and malware posing as recovery tools. Many peoplе accidentаlly delete important files, and unfortunately, there are many out there who would try to prоfit from their misfоrtυne.
But it isn’t all bad news. In this article, we’ll explain what kind of data recovery is possible on Android and how you can protect yourself from accidentally deleting your data in the future.
Can Data Be Recovered on Android?
Unfortunately, very little if any data is recoverable on the internal storage of Android phones if it hasn’t been backed up. To find out why, let’s start by discussing how data is stored in an Android device, and what happens when it gets deleted.
How Does Android Save and Delete Files?
In most phones (and storage devices), when files are deleted they aren’t actually erased. Instead, the location of recently deleted files is marked as overwritable. The original data is then replaced when a new file is saved, overwriting it. So, while the data isn’t overwritten, it’s still technically retrievable – or it would be if the disc wasn’t encrypted.
Android 5.0 to Android 9 utilize full-disk encryption. This form of encryption uses a single 128-bit Advanced Encryption Standard (AES) key which is securely stored on the device (protected by the user’s password). In the case of a factory reset, all files stored using full-disk encryption are erased and completely irretrievable.
Android 7.0 and up feature file-based encryption instead. This form of encryption uses different keys for different files, meaning they can be unlocked independently of each other. However, this also means that when a file is deleted, its encryption key is deleted alongside it, effectively erasing it entirely.
Unless you’ve removed file-based encryption from your device, any deleted data is impossible to recover regardless of what online services claim.
And, to make things worse, recovering data from an Android’s NAND flash memory is considerably more difficult than computer hard disk drives.
A storage controller keeps note of all data on NAND flash storage. When a file is deleted, the controller marks that space as “empty”, but doesn’t actually erase it. Since data is constantly written and deleted, the controller has to monitor an increasingly detailed map of the storage.
However, since Android 4.3, phones have included a protocol called TRIM. TRIM helps by telling the controller to stop monitoring deleted data, marking it for garbage collection (where the files are erased fully). Effectively, this means the longer you leave your deleted data, the less chance you have of being able to recover it.
What Data Is Recoverable On Android?
The kind of data you can recover from Android phones includes:
- Recently deleted photos that are being stored in the recycling bin
- Any deleted data that has been backed up using services such as Samsung Cloud and Google Drive
- Data that was stored on the SD card (though it isn’t guaranteed)
- Data associated with your Google Account such as your contacts list
Can You Recover Data After a Factory Reset?
It’s impossible to recover data from an Android phone that has undergone a factory reset unless it has been backed up elsewhere. Data held on an SD card may still be recoverable even if deleted — we’ll cover this below.
Does Rooting Your Phone Help Recover Data?
Some data recovery apps require rooting your Android to recover data. For older Android versions, such as OS 5 or 6, rooting was relatively easy and enabled data recovery apps to bypass disk encryption and potentially access recently deleted files.
On later versions, including Android 10 and 11, rooting is impossible without loading Bootloader, which wipes your storage once more. This effectively renders it useless for recovering data.
What About Data Recovery Specialists?
Data recovery specialists use intricate, often destructive methods to directly access the NAND storage and recover data. For pre-encryption Android OS, these methods were successful but would also destroy the phone.
For encrypted devices, it’s possible to use these methods to recover data, but since it’s impossible to decrypt the data outside of the phone where the key is stored, it’s almost always pointless.
Are All Data Recovery Apps Scams?
No, although there are many scam apps available on the Google Play Store, many of them are legitimate. For instance, they may work perfectly fine for SD cards, older versions of Android, and other forms of storage media.
However, many ARE scams. And keep in mind that no app is able to recover data from a factory reset (unless it’s on very early Android versions) or from phones that utilize file-based encryption.
Occasionally, you’ll be able to use these apps to recover just-deleted files from an Android that uses full-disk encryption, but the files are encrypted and inaccessible without the key.
Often, data recovery apps will recover cached thumbnails and claim that they are the original photo files (which may still be better than nothing). This is the reason that many apps offer “image enhancement” tools.
How to Recover Data from your Android
Certain data is recoverable on your Android device if you’ve backed it up in the past, or if it’s stored on your SD card rather than the phone’s internal storage. You may also be able to recover SMS messages.
Check the Recycle Bin
Some photo apps, including the Gallery app, feature a recycle bin that temporarily stores recently deleted photos.
To access this, open Gallery and select the three horizontal lines at the bottom-right corner. Then, select Recycle Bin.
You should see any recently deleted photos including the amount of time left before your device wipes them for good.
Recover Deleted Data From an SD Card
Data on your SD card is much easier to recover than data on the Android’s flash memory. Even if the files on your SD card have been deleted, or you’ve accidentally formatted the drive, you may still be able to recover them using trustworthy data recovery tools.
If you’ve deleted photos from your SD card by accident, we recommend using PhotoRec which is a free photo recovery app that you can install on your PC. Using an SD card reader to access the drive, you’ll hopefully be able to recover your photos.
Recover from Local Backup
Most Android phones have a local backup function. If you’ve enabled periodic backups, you should be able to retrieve any data that you’ve deleted that was captured by a previous backup.
To access the backed up data:
- Open Settings > Accounts and backup.
- Tap Restore data.
- Select the most recent backup for your phone.
- Ensure that all data you want to restore is selected then tap Restore.
Recover from Google Account
If you have a Google account and you enabled synchronization on your Android, some of your data might be retrievable — even after a factory reset. Even better, Android 8 and higher feature automatic backups by Google One which will enable you to recover any accidentally deleted files.
Recoverable data may include your contacts, app data, calendar, Chrome browser data, and documents or files stored in Google Drive or Gmail.
If you’ve factory reset your phone or you’re using a new phone, during setup, as soon as you add your Google account to the device it will enable you to restore all of the synced data.
How to Ensure Your Data Is Backed Up
There are many backup services available for Android devices, and you can even choose to perform backups manually if you wish. The easiest options are to enable backups via the Android settings or via your Google Account.
Enable Local Backups
The process for enabling local backups may vary depending on your phone’s model and manufacturer. For Samsung, to enable local backup:
- Open Settings.
- Tap Accounts and backup.
- Select Back up data.
- Toggle on each kind of data you wish to automatically back up, or select Back up now.
This data will now periodically backup to the Samsung Cloud when your device idles and is connected to WiFi.
Enable Google One Back Up
To turn on automatic backups with Google One:
- Open Settings > Google.
- Select Backup.
- Under Backup details and make sure that all categories are enabled.
- To enable these, tap the item and toggle on Back up & sync.
When your device is idle for two hours and connected to WiFi it will begin to sync your data.
Prevention Is Better Than the Cure
Deleting your files by accident sucks, especially if they were treasured photos or important documents. The only way to truly ensure your files are recoverable in the case of accidental deletion is by frequently backing up your data securely.
Luckily, there are plenty of free or paid cloud-based services that can do this for you with minimal effort!