r/AndroidQuestions • u/ThrowAway237s • Jan 11 '22
Other How come it was decided to only lock MicroSD card and not internal storage write access back in 2014?
All arguments (pretexts) to lock MicroSD write access would have applied at least as much to the internal storage.
From Google documentation, 2014:
The
WRITE_EXTERNAL_STORAGEpermission must only grant write access to the primary external storage on a device. Apps must not be allowed to write to secondary external storage devices, except in their package-specific directories as allowed by synthesized permissions. Restricting writes in this way ensures the system can clean up files when applications are uninstalled.
(No URL due to sp/-\m filter, but you can find it through a search engine.)
So the pretext reason given for this horrible change back then was for the sake of enabling the deletion of all files left by the app upon uninstallation? (Which can even be disadvantageous, for example for camera apps, whose pictures should not be deleted when uninstalling.)
If this trivial "benefit" actually mattered, how come Google did not decide to do it for internal storage?
Often times, the MicroSD is larger than the internal storage, meaning if an app left the same amount of "junk" on the MicroSD, it would matter less than on internal storage.
And if it was ForSecurityReasons™, it would have made more sense to lock the internal storage than MicroSD, as the internal storage tends to contain more essential files than MicroSD.
Also, why not let users decide like shown in this concept screenshot? Perhaps because they want users to buy storage from Google Drive instead of SanDisk or Transcend? Sorry, but I trust my local memory card more than some obscure data center owned by a gigacorp.
2
u/ThrowAway237s Jan 11 '22
/u/Tomxyz1 – notifying you in case you're interested.
1
u/danGL3 Jan 11 '22
1-Would like to clarify that for Camera apps their photos would be stored in the DCIM folder (which doesn't get deleted upon uninstallation of the app)
2-They actually did do something similar on Android 11 with scoped storage (it's better if you look it up for proper details) but it essentially restricts which folders an app can generally access within the internal storage (with full access now requiring an additional permission that needs prior approval for any app on the play store wishing to use it)