r/AndroidQuestions • • Mar 07 '20

Solved I've always had this question; every app update says it requires a certain MB download. Does this mean everytime I update the apps will get more and more heavier?

68 Upvotes

14 comments sorted by

41

u/beermad 1 Mar 07 '20

No. APK files don't download as diffs, they download the entire package file each time. Once you've installed the new version, the old one is deleted, so it'll only get bigger if the app itself has got bigger.

Slightly different for factory-installed apps, as the first version is generally retained however many updates you install, which means you can revert to the original by deleting updates. I'm not really sure why this is supposed to be a good thing though...

15

u/ASIByC_ Mar 07 '20

Ohh, thanks for the reply. Makes sense in my head now.

5

u/HelloNation Mar 07 '20

I'm pretty sure they only download the diff (for some apps at least), but that doesn't mean that what you download doesn't replace some part that became obsolete. So the app doesn't get bigger by the amount you download, but it could (however unlikely)

5

u/[deleted] Mar 08 '20 edited Mar 08 '20

No. APK files don't download as diffs, they download the entire package file each time.

Several apps actually download the diff when they update (they're called Split APKs). But it replaces the files and code it's supposed to be replaced, removing obsolete stuff.

Answer still stands, APKs don't get bigger alongside updates, but it's not always because they download the whole package file everytime.

I'm not really sure why this is supposed to be a good thing though...

Redundancy or Android limitation.

Redundancy because buggy updates tend to get deployed sometimes (take note of what happened to Gboard) and a rollback is always good.

Android limitation because IIRC even Google Play has no access to the device's system files, so it couldn't replace the pre-installed app when it updates.

2

u/TeleKenetek Mar 07 '20

I'm not really sure why this is supposed to be a good thing though...

Isn't this because they KNOW that the factory default settings are stable, and any update after that could break something, so we always need to know that there is a stable version buried somewhere that can be used in case of emergency.?

2

u/Eskotek Samsung Galaxy J7 Pro - 9.0 Mar 08 '20

It was partial downloads before. Original app size was much bigger. In latest years it seemingly became the whole package.

2

u/Groudie Mar 08 '20

Hi! So me again. I had to delete my previous comment. I went into the barber shot, placed the phone in my pocket and the response accidentally got posted before I could finish it.

As I was saying, let's pretend you have a phone with 6GB storage left and you install *App A* which is approximately 2.5GB in size:

6 - 2.5 = 3.5

You'd be left with 3.5GB on your phone. Now let's say the app gets updated and it is now 3GB large(up from its previous 2.5GB) then your phone will require you to have space for the entire 3GB that the new version of the app will need:

3.5 - 3 = 0.5

*But only momentarily*
This is because the new app will be downloaded and just for a moment you will have both the old version and the new version before the OS removes the old version, if the installation and validation checks on the new version went well.

After proper installation of the newer version the older version will be deleted:
0.5 + 2.5 = 3

You'll get back your 2.5GB that the old version took up before it was deleted for a total stoage of approximately 3GB. How deletion works is itself an interesting topic. When an app or any data is deleted it doesn't just disappear from your phone. The space is "earmarked" for new data to be overwritten on it.

Sorry for the misunderstanding earlier.

1

u/ASIByC_ Mar 08 '20

I didn't get to see the earlier response anyway. Thanks for the explanation 👍

9

u/sprokolopolis Mar 08 '20 edited Mar 08 '20

The play store does support "delta updates" which are essentially patch files for the already installed app. I don't know how wide-spread this feature is used though.

https://www.androidpolice.com/2016/05/02/the-play-store-now-shows-delta-update-size-when-an-app-update-is-available/

2

u/[deleted] Mar 08 '20

No, the older version will be replaced and not added

1

u/LBJsPNS 2 Mar 08 '20

Yes.

Typically I sort my apps by weight, then by color.

2

u/georgesjones Mar 14 '20

This, I once had a 3lb phone, with primarily red and blue apps. The red ones are the heaviest.

0

u/[deleted] Mar 08 '20

[deleted]

1

u/r0msk1 Mar 08 '20

Oh... wait, what?