4 ms·
The APK bundle could definitely be kept in the factory image while still allowing true removal, there's no reason it is done this way.
by btdmaster 5y ago
The APK bundle could definitely be kept in the factory image while still allowing true removal, there's no reason it is done this way.
- Anon1096 5y agoThat's effectively what disabling apps on Android does already. All that is left is a stub in the rom.
- btdmaster 5y agoI'm almost sure that that is not the case -- for example, it explicitly asks whether to uninstall updates only when those are installed. Though I would love to know what the technical details actually are.
- jsnell 5y agoThe pre-installed apps are on a read-only partition. And it's not a stub of the app, it is the full app. When you install an update for one of those apps, the device will have both the original version on the read-only partition and the updated version on a mutable one. Uninstalling will only remove the updated version. There is no explicit factory image stored somewhere, the reset to a factory state is achieved by clearing the mutable storage. This achieves getting the device to a clean state since the read-only storage is guaranteed to be in the same state as to begin with. (The read-only storage does get updated on an OS upgrade. That's why a factory reset will not downgrade the OS itself.)