I just spent the last 4 – 5 hours trying to get the source codes for the android apps (Camera or Gallery). I found posts which states that they are found here: https://android.googlesource.com.
Being new to git, I followed the instructions from some websites and used:
git clone https://android.googlesource.com/platform/packages/apps/Camera
git clone https://android.googlesource.com/platform/packages/apps/Gallery
But I kept getting “fatal: The remote end hung up unexpectedly”
I don’t understand. I found a question here in Stackoverflow to get Browser using git clone, which worked for me. But, I just can’t get Camera and Gallery.
Any ideas?
You can download them without Git. Try these:
https://android.googlesource.com/platform/packages/apps/Camera/+archive/master.tar.gz
https://android.googlesource.com/platform/packages/apps/Gallery/+archive/master.tar.gz
Basically, you can use for any google git with following pattern.