Go to developer.android.com/studio/index.html and download Android Studio for your OS version. For Linux, unzip the file where you want it to be installed (for example in /opt folder) :
$ sudo cp android-studio-ide-171.4443003-linux.zip /opt/ $ cd /opt/ $ unzip android-studio-ide-171.4443003-linux.zip
If you have any troubles, please follow the link developer.android.com/studio/install.html
Run the installer (launcher) :
$ cd android-studio/bin $ ./studio.sh
Then, follow the instructions about SDK installation and accept the creation of desktop launcher (otherwise, you have to manualy execute studio.sh)
You can now clone this repo by clicking in the menu VCS > Checkout from Version Control > GitHub Fill in the repo address: github.com/ekylibre/zero-android.git and clone it where you want.
At this time, you must have a Github account with access granted to zero-android repository. We recommended you to create a new token for Android studio (Go to Github.com and Settings / Developer settings / Personal access tokens to create a new token with access to repository)
Accept to create a new project from this repo.
Globally, accept all recommendations from Android Studio about upgrading Gradle, and downloading requiered SDK tools.
You’re done to start !
You need to install 32-bit libs:
$ sudo apt-get install libc6-i386 lib32z1 lib32stdc++6
-
Install Android Studio
go to this site and download android studio : http://developer.android.com/sdk/index.html make sure the file you downloaded is in the folder you want android studio to be installed in. unzip the file you downloaded with : $ unzip android-studio-ide-141.2456560-linux.zip.crdownload
-
Install Android SDK
$ wget http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz $ tar xzvf android-sdk_r23.0.2-linux.tgz -C </path/to/android/sdk>
-
Set environment variable ANDROID_HOME
$ export ANDROID_HOME=</path/to/android/sdk>
-
Adds SDK tools path to PATH
$ export PATH="$ANDROID_HOME/platform-tools:$PATH" $ export PATH="$ANDROID_HOME/tools:$PATH"
-
Launch android and install packages: Android 4.1.2 (API 16) Intel x86 Atom System Image
$ android
-
Add an AVD <my-smartphone> based on Galaxy Nexus for example
-
In Android studio click on the “run ‘app’” button (or use Maj+F10)
-
In Android Studio click on Build (alt+b)
-
Click on “generate build APK”
-
If you do this for the first time click on “Create new”
Choose a folder in which will be saved your .jks Fill in the information needed and click on "ok"
If you already have a java keystore, select it by clicking “Choose existing…” Select your .jks in the files and click on “Ok”
-
Click on “Next”
-
Make sure the build type “release” is selected
-
Click on “Finish”
-
Create a signing key to release your APK in your repository. Create it unless it already exists:
$ keytool -genkey -v -keystore release.keystore -alias <repository> -keyalg RSA -keysize 2048 -validity 10000
-
Build a release APK
$ make release
-
Push on repository
Zero is released under the GNU/GPL3 license.