This thread was created by @EnricoD, and everything except post #6 is his work. I took over this thread when he decided to discontinue support. All credit goes to him. 
*****************************************
*****************************************
1) Download, Install and set up the Java JDK
- Download and install the JDK (32 or 64bit)
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
- Navigate to
System Properties --> Advanced system settings --> Evironmental variables
and create a new variable called "JAVA_HOME" where we'll add the JDK path:
2) Eclipse Setup
- Download Eclipse ADT and Extract to C:\
http://developer.android.com/sdk/index.html
1) We need the JDK!
- Open the terminal! roftl
- Install the OpenJDK running:
Let's make sure the correct version of Java is running on our PC. To do this just run
2) SDK setup
- Download the Standalone SDK Package from here:
DOWNLOAD: http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
- Install the SDK Package
Let's create a folder in your Home called "development" (You can also call it pincopallino, gino, pippo, Giovanni, Lemonpie, Material, Mathias Duarte... if You want lol)
Navigate to (your) downloads folder (cd Scaricati for example if You're Italian like Me xD or a custom one... you know!)
Extract the SDK package
move the folder inside development's one. We are already inside the downloads folder! so just run:
3) Setup ADB/FASTBOOT in Linux and Update Developers Tools in Linux&Windows
- Linux [You can do this step after Eclipse installation also (like in Windows), it's the same]
cd to the Android SDK tools folder by running this command:
Run the SDK Manager:
- Windows
Open Eclipse ADT and Navigate to/Open
Window --> Android SDK Manager
At this point the SDK should come up
and .. and... you will need to download all the tools and all the extras files already selected by default.
1. Be sure to select at least Android 4.4.2 (API 19)!!!!!!!, so select them and install'em all \m/ \m/.
2. !!!! Avoid Android L (API 20, L preview) & Android 4.4W (API 20) installation. You don't need it for now! (but, if You want to start developing apps for Android L then install them .. your choice!
)
Accept all licenses and click OK to all the prompts during installation
- Setting up ADB&FASTBOOT in Linux
When it finishes downloading everything you have to run this commands in terminal to return to Your Home folder:
so let's edit the .bashrc!:
(You can also use gedit if in Ubuntu, leafpad for Lubuntu, etc etc)
and add your SDK paths at the end of it:
Once done Save or press ctrl+x to exit, S and enter if You're using nano
Then Run:
If you followed everything carefully adb and fastboot should work! To check this reopen a terminal and simply type:
The output will look like this:
Fixing ???????? No permissions errors (click to show)
4) Set up Eclipse IDE in Linux
- Dowload latest Eclipse IDE (I prefer the classical one instead of Google's one)
http://www.eclipse.org/downloads/?osType=linux&release=undefined
- Install Eclipse
cd to downloads folder
Extract Eclipse folder by running:
Move this folder inside /opt folder
Run the following command to make eclipse available for all users:
Now, we are going to add a Menu's shortcut, just create this file:
and add the following content:
- Now We can run Eclipse and choose the location of our workspace (we can leave the default one and tickmark «use this as the default and do not ask again»)
NOTE: You can also use directly Eclipse ADT + sdk instead of classical Eclipse IDE.
http://developer.android.com/sdk/index.html
5) ADT Plugin setup
FOLLOW THIS:
http://developer.android.com/sdk/installing/installing-adt.html
6) Android Studio
http://developer.android.com/sdk/installing/studio.html
- Linux
To run it you just need to navigate to its bin folder and type
also, check @blinqipa 's thread because I don't use Android Studio xd
http://forum.xda-developers.com/showthread.php?t=2780923
7) APKTOOL (in case You need it)
WINDOWS INSTRUCTIONS
- Download Apktool from here and extract where You want:
http://forum.xda-developers.com/showpost.php?p=50205159&postcount=90
LINUX INSTRUCTIONS
- Download it running this in a terminal:
- Extract
- cd to apktool folder
- Root permissions
enricod[/COLOR @EnricoD-Aspire-5920G:~/Scrivania/apktool$
- Make them exec
- Move to usr/local/bin
To see if it works just run
in a terminal. The output will look like this:
- You can now delete the package and the extracted folder
- Little guide on how to use apktool
http://forum.xda-developers.com/showpost.php?p=50181967&postcount=57
*****************************************
*****************************************
1) Download, Install and set up the Java JDK
- Download and install the JDK (32 or 64bit)
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
- Navigate to
System Properties --> Advanced system settings --> Evironmental variables
and create a new variable called "JAVA_HOME" where we'll add the JDK path:
2) Eclipse Setup
- Download Eclipse ADT and Extract to C:\
http://developer.android.com/sdk/index.html
LINUX INSTRUCTIONS
1) We need the JDK!
- Open the terminal! roftl
- Install the OpenJDK running:
Code:
sudo apt-get install openjdk-7-jre
Code:
java -version
2) SDK setup
- Download the Standalone SDK Package from here:
DOWNLOAD: http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
- Install the SDK Package
Let's create a folder in your Home called "development" (You can also call it pincopallino, gino, pippo, Giovanni, Lemonpie, Material, Mathias Duarte... if You want lol)
Code:
mkdir ~/development
Code:
cd ~/Downloads
Code:
tar -zxvf android-sdk_r23.0.2-linux.tgz
Code:
mv android-sdk-linux ~/development/
LINUX & WINDOWS INSTRUCTIONS
3) Setup ADB/FASTBOOT in Linux and Update Developers Tools in Linux&Windows
- Linux [You can do this step after Eclipse installation also (like in Windows), it's the same]
cd to the Android SDK tools folder by running this command:
Code:
cd ~/development/android-sdk-linux/tools
Code:
./android
Open Eclipse ADT and Navigate to/Open
Window --> Android SDK Manager
At this point the SDK should come up
and .. and... you will need to download all the tools and all the extras files already selected by default.
1. Be sure to select at least Android 4.4.2 (API 19)!!!!!!!, so select them and install'em all \m/ \m/.
2. !!!! Avoid Android L (API 20, L preview) & Android 4.4W (API 20) installation. You don't need it for now! (but, if You want to start developing apps for Android L then install them .. your choice!
Accept all licenses and click OK to all the prompts during installation
- Setting up ADB&FASTBOOT in Linux
When it finishes downloading everything you have to run this commands in terminal to return to Your Home folder:
Code:
cd
(You can also use gedit if in Ubuntu, leafpad for Lubuntu, etc etc)
Code:
nano .bashrc
Code:
#Android PATHS
export PATH=$PATH:~/development/android-sdk-linux/tools
export PATH=$PATH:~/development/android-sdk-linux/platform-tools
Then Run:
Code:
source ./.bashrc
Code:
fastboot
if this method is not working, then install android-tools from ppa:fastboot
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall
... bla bli blu bla bli bli blu bla bla cit. Jake
Code:
sudo add-apt-repository ppa:nilarimogard/webupd8
Code:
sudo apt-get update
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
Fixing ???????? No permissions errors (click to show)
To fix this error we need to create a file called android.rules:
and create android.rules by running:
Edit the file
and copy&paste the following lines:
Save when finished.
Now we have to copy that file inside /etc/udev/rules.d/ and rename it to 51-android.rules. To do this just run:
Now you have to set the right permissions to this file, just type:
and we restart udev and kill adb:
Code:
cd /tmp/
Code:
sudo touch android.rules
Code:
sudo nano android.rules
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"
Now we have to copy that file inside /etc/udev/rules.d/ and rename it to 51-android.rules. To do this just run:
Code:
sudo cp /tmp/android.rules /etc/udev/rules.d/51-android.rules
Code:
sudo chmod 644 /etc/udev/rules.d/51-android.rules
Code:
sudo chown root. /etc/udev/rules.d/51-android.rules
Code:
sudo service udev restart
Code:
sudo killall adb
4) Set up Eclipse IDE in Linux
- Dowload latest Eclipse IDE (I prefer the classical one instead of Google's one)
http://www.eclipse.org/downloads/?osType=linux&release=undefined
- Install Eclipse
cd to downloads folder
Code:
cd ~/Downloads
Code:
tar -zxvf eclipse-standard-luna-R-linux-gtk.tar.gz
Code:
sudo mv eclipse /opt
Code:
sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
Code:
sudo nano /usr/share/applications/eclipse.desktop
ctrl+x then Y to save.[Desktop Entry]
Version=4.3.2
Name=Eclipse
Comment=IDE for all seasons
Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application;Development;IDE
- Now We can run Eclipse and choose the location of our workspace (we can leave the default one and tickmark «use this as the default and do not ask again»)
NOTE: You can also use directly Eclipse ADT + sdk instead of classical Eclipse IDE.
http://developer.android.com/sdk/index.html
5) ADT Plugin setup
FOLLOW THIS:
http://developer.android.com/sdk/installing/installing-adt.html
6) Android Studio
http://developer.android.com/sdk/installing/studio.html
- Linux
Code:
cd ~/Downloads
Code:
tar -zxvf android-studio-bundle-135.1245622-linux.tgz
mv android-studio ~/development/
Code:
./studio.sh
http://forum.xda-developers.com/showthread.php?t=2780923
7) APKTOOL (in case You need it)
WINDOWS INSTRUCTIONS
- Download Apktool from here and extract where You want:
http://forum.xda-developers.com/showpost.php?p=50205159&postcount=90
LINUX INSTRUCTIONS
- Download it running this in a terminal:
Code:
wget https://www.dropbox.com/s/6s9bxszxjl7wclz/apktool.tar.gz
Code:
tar -zxvf apktool.tar.gz
Code:
cd apktool
Code:
sudo chown -R [COLOR="red"][B]yourusername[/B][/COLOR] aapt apktool apktool.jar
- Make them exec
Code:
sudo chmod +x aapt apktool apktool.jar
Code:
sudo cp aapt apktool apktool.jar /usr/local/bin
Code:
apktool
[email protected]:~/Scrivania/apktool$ apktool
Apktool v1.5.2 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wiśniewski <[email protected]>
with smali v1.4.1, and baksmali v1.4.1
Updated by @iBotPeaches <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
... bla bli blu bla bli bli blu bla bla cit. Jake
- You can now delete the package and the extracted folder
- Little guide on how to use apktool
http://forum.xda-developers.com/showpost.php?p=50181967&postcount=57
Last edited:




