Is Android Studio an open source project? If it is, where can I get its source code?
Can we add plugins for Android Studio?
Where is the API available for Android Studio?
Is Android Studio an open source project? If it is, where can I get its source code?
Can we add plugins for Android Studio?
Where is the API available for Android Studio?
Indeed Android Studio is an open source project. It encourages developers to work on plugins and extensions. You can get the source code here
https://android.googlesource.com/platform/tools/adt/idea/+/refs/heads/mirror-goog-studio-master-dev
Well some of android studio may be but the binary build of the SDK is not. (https://developer.android.com/studio/terms.html). People have asserted that the source code is open source, but this is difficult confirm. But a lot of the source is distributed under the apache project license.
It has some objectionable terms:
"2.1 In order to use the SDK, you must first agree to the License Agreement. You may not use the SDK if you do not accept the License Agreement." <-- This may well violate the terms of any copyleft part of the the SDK... though I doubt anything is copyleft. Probably not enforceable.
"3.8 You agree that you will not remove, obscure, or alter any proprietary rights notices (including copyright and trademark notices) that may be affixed to or contained within the SDK." <-- Probably not enforceable, unless you distribute things
"4.2 You agree to use the SDK and write applications only for purposes that are permitted by (a) the License Agreement and" <-- You aren't even allowed to use android studio.
This posts states that these restrictions only apply to the "binary", so maybe you could just build this from source code, the license is not clear about this.
Who knows if it's true, the source code is not exactly easy to get: (see http://tools.android.com/build/studio). I could not find a list of licenses, the studio code is spread across multiple repos: https://android.googlesource.com/platform/manifest/+/studio-2.2.2/default.xml and looking at a few repositories each source file seems to be copyrighted separately under APL v2.0.
Just a little addition:
Android Studio is based on a bare version of IntelliJ which is open source. The guys from Google added the Android taste on top of IntelliJ and release this under Apache 2 license which is also open source.
Here's a little more specific and hopefully clearer information...
The following is from http://tools.android.com/build/studio:
After following the download instructions (here), you will have the Android plugin source code under tools/adt/idea, the IntelliJ IDE base in tools/idea/, and a lot of shared libraries in tools/base/.
So...
The source code for Android Plug-in is available here: https://android.googlesource.com/platform/tools/adt/idea/
The source code for Android Studio is available here: https://android.googlesource.com/platform/tools/idea/
Android Studio is an open source project. and it is hosted as git reposotiry
In order to checkout the latest Android Studio you have to use instructions from this page: https://android.googlesource.com/platform/tools/base/+/studio-master-dev/source.md
Download an install the repo tool to checkout the source of Android Studio.
Check out the latest published source code using the following commands in a shell
$ mkdir studio-master-dev
$ cd studio-master-dev
$ repo init -u https://android.googlesource.com/platform/manifest -b studio-master-dev
$ repo sync -c -j4 -q
It's free opensource software, but Google releases only EULA (hence non-free) builds.
EULA-free binary builds are available here: https://android-rebuilds.beuc.net/