Utilizing btrfs snapshots to protect Android from malware
Let's continue our ride with btrfs. The snapshot feature is probably the most eye-catching one in btrfs. As the name implies, it allows to revert the filesystem back to an older state. Since btrfs uses CoW, which always append the data instead of updating it in-place, this feature makes a lot of sense. If you're a sane person, first thing that pops to your head should be : BACKUPS ! But keep in mind that snapshots are not the same as backups. - You don't get any additional redundancy. If hardware fails, you lose all snapshots. - Malwares with root permissions can still mess around with snapshots. However, snapshots could be great as a backup solution in Android. - You really don't need redundancy. How many NAND failure have you seen on a smartphone( excluding LG, cough cough )? - Most of the data destructions are owner-made. - Most of the malwares are also installed by the owner. - Most...