I have an old Nexus 5X running Paranoid Android 6.0.1. I've started noticing that disk space is constantly running low despite not really adding any new files, and poking around with root I found that the main culprit are 30 duplicate copies of
com.google.android.gms, sequentially numbered
/data/app/, each taking up 300 to 400 Mb, ultimately adding up to little over half the entire disk space available on the device. The first one has been created back in 2016 when the phone was new and the 30th just last week. Similarly I have 35 copies of
com.google.android.vending, but at the very least they take up considerable less space.
I'm aware that this is supposed to be the app for Google Play Services but I don't understand why there are so many of it. The folder sizes are different, the lower numbered being smaller and constantly rising, so they aren't the exact same files either.
Currently it's getting to the point that it's impossible to update apps because Play Store requires a lot of free space to initiate any update and any time I free up enough space the phone seems to start creating yet more copies of the app with no end in sight.
Basically my question boils down to:
- Why are there so many copies of these files, is this intentional or a bug?
- Can I somehow safely reclaim any of this space? What would happen if I deleted some of them?