I want to download either:
https://android.googlesource.com/platform/frameworks/base.git/+/master/tools/aapt/
or
https://github.com/android/platform_frameworks_base/tree/master/tools/aapt
I want to download either:
https://android.googlesource.com/platform/frameworks/base.git/+/master/tools/aapt/
or
https://github.com/android/platform_frameworks_base/tree/master/tools/aapt
As of today, android.googlesource.com has a link [tgz] on each directory page, it is in small font, but it works:
You cannot download a separate file, but you can download a directory.
Yes, you can download single file in base64 text format:
curl https://github.com/android/platform_frameworks_base/tree/master/tools/aapt?format=text | base64 -d
This answer looks like it will work. It tells you how to make a sparse checkout using Git. Make sure you have Git 1.7.0 or later installed, then run this:
git init platform_frameworks_base-aapt
cd platform_frameworks_base-aapt
git remote add -f origin https://github.com/android/platform_frameworks_base.git
git config core.sparsecheckout true
echo tools/aapt/ >> .git/info/sparse-checkout
git pull origin master
If you have svn
, you can do this:
svn export https://github.com/android/platform_frameworks_base/trunk/tools/aapt
It will create the aapt
directory locally, without any version control files in it.