Reputation: 133
A long time ago, I followed this guide: https://source.android.com/source/downloading.html to download the master copy of Android Source Code. That was ~5GB as far as I remember.
Today I wanted to update my local copy to branch Android 4.4.4, so I followed the same guide but instead of requesting the master, I specified a branch using the -b
command.
I noticed that the size of the final source code increased dramatically to ~12GB which leaves me suspicious that old unneeded files are not deleted using the repo sync
command.
How can I clean up?
The output folder is not counted so those 12GB are pure source code only.
Upvotes: 3
Views: 3588
Reputation: 467
AOSP has increased in size a lot, so this size is perfectly normal. However, you can remove all files which is started with tmp_pack.
Go inside of source folder, then insert this command:
find -name tmp_pack_* -delete
It can delete files which is downloaded partially.
Upvotes: 4