SPLOIT: Building Android Applications for Hackers: Part 2: Setting Up the Environment

Dec 19, 2015 02:00 PM
Dec 19, 2015 08:03 PM
635860924788536664.jpg

Greetings my fellow aspiring hackers,

Android Development like other programming languages requires the use of some basic essential components, programs and configurations to get started. Android Development requires a little bit of knowledge of the Java language which means the knowledge of Java is required to atleast get a grip of the Development otherwise you will just be a guy sitting in the sofa thinking about committing suicide after been dumped by your girlfriend, fired by your boss and accidentally misplacing your lottery card that has just won $100,000. Same applies to you, The you here stands for people who don't know what the Java language is or how to write programs in java. I would recommend you head over to Code Academy and get some 60% completion on the Java Course and be back, I will be right here waiting for you. Ok, that been said, This tutorial assumes you know what Java is as I am basically not going to cover that. In Android Development, the following programs or files or configuration are required from the system of every developer or hacker as you are.

  • Java JDK ( Java Development Kit )
  • Android Studio

1. Java JDK Configuration and Installation

Android apps as well as some part of the Android system itself is written in Java. Primarily, the JDK is the core foundation that we need to build our apps. Let's head over to google and type download Java JDK. We should be presented with a list of links, Usually the first one applies. Basically, look for one with Java SE - Download | Oracle Technology ...

635860927433067819.jpg

After clicking the link, We should now be served the Java homepage.

635860928753536400.jpg

Select the Java Platform (JDK) 8u .... We will be sent to the download page. First thing to do is to Accept the License Agreement and then we can select our platform package. In this series, I will be using a Windows machine so I am going to choose the Windows packages. Now here lies the problem for some people, x86 and x64

635860932797601205.jpg
  • x86 - Belongs to 32 bit users
  • x64 - Belongs to 64 bit users.

No big deal !!!. Select your platform package and download it. Your browser's downloader should pick the file up.

635860938645880042.jpg

Installing Java JDK

After downloading the file above, We can then run it by double clicking.

635860936166349191.jpg

This software is like all other softwares. We click Next and Next and Next until we see finish even without reading License Agreement which is very bad.

635860939443223922.jpg

Now, when prompted with this window.

635860940270098966.jpg

It is highly recommended to leave the Java location as default and click 'Next'. It should then start installing Java.

635860940821351315.jpg

After the installation is done. We should be presented with our finish dialog.

635860942625257253.jpg

Configuring Java JDK

After installing the package, we should cross-check some few things before we download the android studio package.

  • First, we need to set the JAVA_HOME variable in the user settings if it hasn't been created.

We move to the directory C:\Program Files\Java\ where C: is your Hard Drive letter. In my case: C:\Program Files\Java\jdk1.8.0_60. If you have no problem accessing yours, then you are all set.

Note: There are two folders in the C:\Program Files\Java\. One is jdk and the other is jre. Bewarned, its jdk.

Open the Control Panel and Navigate to System and Security, and then click System and finally Advanced System Settings. This should be: Control Panel>System and Security>System>Advanced System Settings. We should have this dialog pop up.

635860965061036823.jpg

At the lower right of the popup dialog, there should be a button saying Environment Variables. Click on it and another cute dialog should pop up.

635860969056945598.jpg

There are two sections of the dialog, The upper part is the User variables and the other is System Variables, We are interested in the User variables. Click on the 'New' button as the arrow indicates. Another marvelous dialog will pop up ask for two inputs ( Variable Name, Variable Value ).

635860972315070835.jpg

We set the value of Variable name to JAVA_HOME and set the Variable Value to the location of the folder we accessed earlier. Click 'Ok' and 'Ok' and 'Close'.

2. Android Studio

Lets head to google and download android studio. We use the first link.

635860977343646180.jpg

We should be sent to the Android Studio Page. Click on the download button and that should lead us to the license agreement box.

635860979597553467.jpg

The License Agreement page requires us like all other forms to check the box before downloading.

635860982745989631.jpg

The android studio package should pop up right in your face. You can save it.

635860990165208040.jpg

This is where you feel as if the world hates you when you don't have a fast and active internet connection.

Installing and Configuring Android Studio

Run your downloaded package file with administrative privileges. And rest is to click 'Next' and 'Next' until installation complete. It should take some time so you can take five.

635860997510989848.jpg

When it is done, Uncheck the 'Start Android Now' and close. We can also create a Desktop shortcut which is what I will be doing.

635861009863801666.jpg

We are unchecking Start Android Studio because we want to start it as Adminstrator so kindly go to the program, Create a shortcut on the desktop and run the shortcut as administrator.

First Time Run

635861016358489170.jpg

During the first run, Its going to download some packages which is the most irritating of all so you have to give it some time to finish. After it is done, should you be the patient type, you can close the studio and wait for me to bring up the next tutorial before you open the studio again but if you are the curious type, I know you will be opening the interface to see how it looks. I will end it here and see you in the next tutorial.

In A Nut Shell

We have been able to setup and configure our environment. In the next tutorial should I be around, I would pin-point some little tasks we have to perform to ensure we have the maximum stability of the Android Studio and also enjoy the comfortable experience. Have a nice day and Peace

635861008243802194.jpg

# Sergeant.

Comments

No Comments Exist

Be the first, drop a comment!