WEBVTT

00:00.300 --> 00:01.140
Welcome back.

00:01.170 --> 00:04.020
In this video, we will start our installation series.

00:04.020 --> 00:07.800
And yes, those installation videos are most of the time a little bit boring.

00:07.800 --> 00:13.590
But if you're new to Android app hacking, this might be very helpful for you because at the beginning

00:13.590 --> 00:16.600
there are a lot of things which might be a little bit confusing.

00:16.620 --> 00:22.110
The Android studio, the virtual device manager, the SDK, those platform supports and more.

00:22.110 --> 00:27.060
So therefore, I would like to include it over here in case if you already have experience in Android

00:27.060 --> 00:32.010
app hacking, you might want to skip this right now, maybe have a quick look at the emulator path because

00:32.010 --> 00:37.380
at the second half there might be some new stuff, but otherwise feel free to skip this in case if you

00:37.380 --> 00:42.630
haven't done the installation of an Android studio before then, this video series is dedicated for

00:42.630 --> 00:42.810
you.

00:42.810 --> 00:44.400
So therefore let's go.

00:44.640 --> 00:47.160
Okay, so here we are now back on our whole system.

00:47.160 --> 00:52.110
And first of all, let's insert some music because with music, it isn't that boring anymore.

00:52.140 --> 00:52.740
All right.

00:52.740 --> 00:55.980
And then let's hit up our visualization of choice.

00:56.340 --> 00:56.910
All right.

00:56.910 --> 01:02.730
We start by setting up our hacking system and this one will be in basic Ubuntu VM because all of these

01:02.730 --> 01:06.180
tools are working probably fine on this Ubuntu VM.

01:06.180 --> 01:12.750
So therefore we go into our virtualization of choice will VirtualBox VM player or whatever you you want

01:12.750 --> 01:13.500
to use.

01:13.500 --> 01:21.390
And then we create a new virtual machine, we select Ubuntu 64 bit and then legacy wave and we create

01:21.390 --> 01:22.410
a new virtual disk.

01:22.410 --> 01:22.950
All right.

01:22.950 --> 01:26.700
We save those settings to virtual machine and name this Android app hacking.

01:26.700 --> 01:29.160
And now we want to modify a few settings.

01:29.160 --> 01:33.960
And first of all, we definitely want to increase the RAM of this virtual machine because this is maybe

01:33.960 --> 01:36.330
the most important aspect of our VM.

01:36.330 --> 01:41.400
So we go into processor and memory and here we increase it to at least 8000.

01:41.400 --> 01:45.030
So in my case, I'm choosing 8128.

01:45.030 --> 01:45.600
All right.

01:45.810 --> 01:50.050
Beside the RAM, I also increase the processor cores to four OC.

01:50.160 --> 01:55.020
And then let's see, at this point you also want to increase your hard disk.

01:55.020 --> 01:59.220
I have forgotten this point unfortunately right now, but that's not a big deal.

01:59.250 --> 02:03.390
In the emulator part, I will show you how you can easily extend it afterwards.

02:03.390 --> 02:05.520
So that's that's really no problem.

02:05.580 --> 02:09.000
But if you have the choice right now, then please do it right now.

02:09.000 --> 02:15.720
So I would suggest 60 gigabyte because the Android studio, those Android images and the virtual device

02:15.720 --> 02:18.060
manager, they require a lot of disk space.

02:18.060 --> 02:24.000
So 20 gigabyte will be easily full and later on we will also install some additional tools.

02:24.090 --> 02:25.980
So therefore I recommend 60 gigabyte.

02:25.980 --> 02:27.570
This should be absolutely fine.

02:27.570 --> 02:28.050
All right.

02:28.680 --> 02:29.310
Okay.

02:29.340 --> 02:30.570
Back to this one.

02:30.600 --> 02:31.470
All right.

02:31.470 --> 02:38.010
One thing we definitely want to make sure is that our USB and Bluetooth settings and support USB three.

02:38.340 --> 02:43.380
Later on, we will connect a real smartphones and also additional devices regarding to our man in the

02:43.380 --> 02:44.190
middle setup.

02:44.340 --> 02:47.340
And some of them require a USB three connection.

02:47.340 --> 02:49.650
So this is something we definitely want to make sure.

02:49.650 --> 02:56.340
Therefore we go into use P and Bluetooth, we click on advanced USB options and then we select the USB

02:56.340 --> 02:57.120
3.1.

02:57.120 --> 02:59.130
So this is very important step.

02:59.460 --> 02:59.950
Okay.

03:00.660 --> 03:01.080
All right.

03:01.080 --> 03:03.930
Now we've got incompatibility to USB three.

03:03.930 --> 03:07.410
Right now we want to proceed with installing our operating system.

03:07.410 --> 03:12.480
So therefore we need to insert it as an S in virtual disk into our virtual machine.

03:12.480 --> 03:15.150
And therefore we have to download this ISO first.

03:15.480 --> 03:21.060
To do this, we simply open our web engine of choice and then we are searching for open to ISO 2004

03:21.060 --> 03:24.570
and here we can see we've got it over here on Ubuntu dot com.

03:24.570 --> 03:28.140
So that's an trustworthy site and we will download it from here.

03:28.440 --> 03:34.680
2004 simply means this one has been released in April and 2020 and you might think right now, isn't

03:34.680 --> 03:36.060
this a little bit outdated?

03:36.060 --> 03:42.450
Well, not at all, because we can see this stands for long term support, which means five years.

03:42.450 --> 03:45.360
So we can talk about this in 2025.

03:45.360 --> 03:45.960
All right.

03:46.890 --> 03:52.140
So let's click on this one and then we hit this download button.

03:54.640 --> 03:55.840
And let's see.

03:56.350 --> 04:03.550
Yes, the download is now being started and we can see we are downloading the 24 desktop AMD 64, which

04:03.550 --> 04:05.010
means 64 bit version.

04:05.020 --> 04:06.910
This is exactly what we want to have.

04:07.300 --> 04:10.120
So now we need to wait until this download has been finished.

04:10.120 --> 04:11.830
And this might take a while.

04:11.830 --> 04:12.670
Let's see.

04:13.030 --> 04:14.650
Yes, 4 minutes.

04:14.650 --> 04:17.260
I mean, it's okay regarding to this internet connection.

04:17.260 --> 04:23.050
So I'm not complaining too much about this, but nevertheless, relax a little bit, get some coffee

04:23.050 --> 04:26.170
and tea and then I will see you after the download has been finished.

04:26.170 --> 04:26.980
All righty.

04:26.980 --> 04:28.840
So see you in just a moment.

04:30.520 --> 04:31.630
Download has been finished.

04:31.630 --> 04:32.680
Back to this phone.

04:33.220 --> 04:38.800
So now we go into CD, then we select our virtual disk, and then we select the ISO, which we have

04:38.800 --> 04:40.450
downloaded just right before.

04:40.780 --> 04:41.380
Over here.

04:41.380 --> 04:46.300
Please make sure that connect CD DVD drive is being enabled, otherwise the virtual machine would not

04:46.300 --> 04:49.390
have an drive and we couldn't start from this one.

04:49.720 --> 04:55.330
Afterwards, we start the system and yes, we can immediately see that the system is now booting from

04:55.330 --> 04:55.910
the CD.

04:55.930 --> 05:03.090
So from our Ubuntu iso, we wait until the boot process has been finished and there we have it.

05:03.100 --> 05:08.860
So now we've got the desktop and we can use try ubuntu which means we we try the system out or we can

05:08.860 --> 05:11.410
simply install it now of case we want to install it.

05:11.410 --> 05:16.660
So I click install ubuntu then we select the language here.

05:16.660 --> 05:20.920
We want to make sure that we have the minimal installation because otherwise the system gets blown up

05:20.920 --> 05:23.230
with a lot of trash software.

05:23.230 --> 05:28.180
And we also want to make sure that install third party software is being enabled here.

05:28.180 --> 05:30.760
We can see right now the graphics is being resized.

05:30.760 --> 05:32.620
So now we've gotten better resolution.

05:33.430 --> 05:40.210
We click on Continue and we want to make sure that we select erase disk and install Ubuntu OC.

05:40.360 --> 05:47.200
Then we click install now and then we get a warning or an information that all those data will be deleted.

05:47.200 --> 05:51.310
But that's perfectly fine because we haven't any data on the system right now.

05:51.310 --> 05:58.330
So we click continue, we select our timezone and now we need to define our username.

05:58.330 --> 06:01.480
So in this case app the system name will be hacking.

06:01.480 --> 06:03.880
The username is EBP and we have to provide a password.

06:03.880 --> 06:04.630
All right.

06:04.960 --> 06:06.160
And that's all.

06:06.160 --> 06:10.810
So the system is now being installed and this might take a while, so we have to wait until the process

06:10.810 --> 06:11.620
has been finished.

06:11.620 --> 06:16.870
So you will definitely have some time to grab some tea or coffee and turn back to this one.

06:17.350 --> 06:17.750
Okay.

06:17.800 --> 06:19.960
I will fast forward this process right now.

06:19.990 --> 06:20.590
There we go.

06:20.590 --> 06:21.670
Installation complete.

06:21.670 --> 06:25.060
Now we can click restart now and the system will reboot.

06:25.820 --> 06:29.310
After the system has been rebooted, there should be this logging screen.

06:29.330 --> 06:30.050
There we have it.

06:30.080 --> 06:33.380
Now we enter our credentials and this is our system.

06:33.380 --> 06:35.720
So we have set up our Ubuntu VM.

06:36.050 --> 06:40.910
The first time we run our system, we get a bunch of pop ups, for example, connect online accounts.

06:40.910 --> 06:42.980
This is something we definitely want to skip.

06:43.280 --> 06:49.670
Then we've got live pictures, we click next, then we've got some stats, but we do not want to send

06:49.670 --> 06:50.540
anything out there.

06:50.540 --> 06:55.520
So we simply click, No don't, and then we click next privacy.

06:55.520 --> 06:57.140
No Location Services Enabled.

06:57.140 --> 06:59.810
Perfect next and that's it.

06:59.810 --> 07:06.500
So here we've got now ready to go and some recommended software packages from the Ubuntu side.

07:06.530 --> 07:11.630
We will install some of them but we will do this via the command line so therefore we can click done.

07:11.630 --> 07:11.930
Okay.

07:12.050 --> 07:15.380
The first thing we want to do is updating our repository.

07:15.380 --> 07:20.600
So those packages that we fetched in newest versions of them, therefore we open a new terminal and

07:20.600 --> 07:28.130
we are running sudo update update we insert the user credentials and now we can install some additional

07:28.130 --> 07:28.640
software.

07:28.640 --> 07:32.660
So by updating it before we can make sure that we are fetching the newest repositories.

07:32.660 --> 07:37.310
So for now at least I want to have settings h git and vim enabled.

07:37.370 --> 07:39.200
So let's install all of them.

07:39.590 --> 07:39.910
Okay.

07:40.130 --> 07:40.520
We click.

07:40.520 --> 07:43.280
Yes, now we have them installed.

07:43.280 --> 07:46.610
And next I want to have an a nicer terminal view.

07:46.610 --> 07:49.910
So I like the all my set this h a template for this one.

07:49.910 --> 07:51.590
So let's open Firefox.

07:53.070 --> 07:53.390
Okay.

07:53.430 --> 07:55.590
And let's search for all mites at this age.

07:56.570 --> 07:58.350
You have to get a repository.

07:58.350 --> 08:03.420
And if you scroll down, we can find the basic installation part within cur command.

08:03.450 --> 08:10.040
Let's simply copy this cur command inserting it in our terminal over here and oh well, I haven't gotten

08:10.050 --> 08:12.600
inside yet, so therefore let's do this right now.

08:12.640 --> 08:13.260
Upgrading.

08:13.260 --> 08:15.240
Getting cur oc.

08:16.930 --> 08:21.190
Now we can use the upper hierarchy to repeat the last command, this one.

08:21.550 --> 08:24.160
And now we can see that this edge is being installed.

08:24.160 --> 08:25.140
Over here, we can see.

08:25.150 --> 08:28.300
Do you want to change your default channel to set an edge?

08:28.300 --> 08:33.370
And this is something we want to have because our default shell is the bash and now we want to have

08:33.370 --> 08:34.690
this set as H.

08:34.780 --> 08:35.560
All right.

08:35.860 --> 08:38.100
We insert our credentials and here we have it.

08:38.110 --> 08:41.250
This is now set this h with the almighty set of H template.

08:41.260 --> 08:44.530
Okay, let's tune some settings in this terminal.

08:44.530 --> 08:48.430
So within preferences colors, let's play around with the background.

08:48.430 --> 08:54.460
So we start maybe with a solar stack and then make it a little bit more dark, the text terminal, a

08:54.460 --> 08:57.790
little bit more upright, so a little bit white.

08:57.910 --> 09:00.370
And then we also change all these other colors.

09:00.370 --> 09:06.820
So we want to have them a little bit lighter right now and then be enabled, transparent a little bit.

09:08.350 --> 09:09.170
Just a little bit.

09:09.190 --> 09:09.780
There we go.

09:10.180 --> 09:13.250
And this looks this looks nice right now and perfect.

09:13.270 --> 09:15.400
Let's also change the desktop background.

09:15.400 --> 09:20.230
And I do not know why they have disabled it, but we cannot choose an solid color anymore.

09:20.260 --> 09:25.840
Therefore we simply make a screenshot of the black box, drag it on to our Ubuntu VM and then choose

09:25.840 --> 09:28.840
select this as background and here we have it.

09:28.870 --> 09:34.420
The last thing I want to add and then we have the basic configuration done is an shortcut for our terminal.

09:34.420 --> 09:39.210
So opening this on the left side with the mouse is a little bit annoying and we will use quite a lot

09:39.210 --> 09:40.050
of terminals.

09:40.060 --> 09:45.730
Therefore we create an shortcut within settings, we go into keyboard and shortcuts and here we are

09:45.730 --> 09:48.670
searching for terminal and this one already has one.

09:48.670 --> 09:53.530
But we change this to control and at least for my preference, and choose whatever you like.

09:53.530 --> 09:56.710
But now I simply can start a new terminal by hitting control.

09:56.720 --> 10:01.270
T We can see that this HRC has not been selected yet.

10:01.270 --> 10:06.850
We can run this manually within settings h here we can see yes, it's working, but if you want to have

10:06.850 --> 10:12.670
it right now, we could restart or simply lock off from this current user account and then we will start

10:12.670 --> 10:14.590
a new session and everything should be fine.

10:14.590 --> 10:15.820
So let's do this.

10:15.970 --> 10:17.200
We look out.

10:19.350 --> 10:24.020
We lock in again and let's open a new terminal control key.

10:24.090 --> 10:25.050
There we have it.

10:25.120 --> 10:26.250
So this is working.

10:26.250 --> 10:26.940
Perfect.

10:27.090 --> 10:32.850
Now we can move on with installing the Android studio to install the Android studio.

10:32.880 --> 10:37.770
We simply open the Firefox which has been already installed on the system, but feel free to install

10:37.770 --> 10:39.450
the browser of your choice.

10:39.450 --> 10:42.420
And then we are typing Android studio into Google.

10:42.570 --> 10:46.800
Then we click on the link https developer dot android dot com.

10:46.800 --> 10:52.410
So this is our trustworthy source, but we want to download the Android studio and here we have it.

10:52.440 --> 10:54.320
Download the Android studio.

10:54.330 --> 10:54.930
All right.

10:55.260 --> 11:00.270
After what we have to read carefully through those terms and conditions and in case if we agree, we

11:00.270 --> 11:04.290
hit this checkbox and download the Android studio safe file.

11:04.290 --> 11:05.500
And there we go.

11:05.520 --> 11:06.120
All right.

11:06.270 --> 11:11.550
The studio is now being downloaded and it's about one gigabyte large, so this might take a while.

11:11.580 --> 11:15.390
I will fast forward this process that we do not lose any time on this one.

11:18.000 --> 11:18.560
All right.

11:18.570 --> 11:19.850
The studio has been downloaded.

11:19.860 --> 11:22.470
Would be absolutely nice if it's always that fast.

11:22.650 --> 11:26.760
So by simply clicking on this, those files will be decompressed.

11:26.790 --> 11:29.750
This might take once again a little bit of time.

11:29.760 --> 11:30.870
And here we have it.

11:30.900 --> 11:36.150
Now we select this one extract and we select, for example, just downloads directory.

11:36.600 --> 11:37.200
All right.

11:37.210 --> 11:39.240
These files are now being extracted.

11:39.270 --> 11:41.130
These are now two gigabyte large.

11:41.130 --> 11:44.910
So we can see our disk space needs to be really big.

11:45.720 --> 11:48.580
So once again, let's fast forward this process.

11:49.260 --> 11:51.440
Now we can click on Show the Files.

11:51.450 --> 11:54.910
So this is now our Android studio with all these binaries.

11:54.970 --> 12:01.440
Okay, let's create a new directory within our home directory, but we can put it in afterwards.

12:02.250 --> 12:04.740
So within the home directory, we create a new one.

12:04.770 --> 12:08.460
We name these tools and then we simply drag and drop it into this one.

12:09.340 --> 12:09.910
All right.

12:10.060 --> 12:14.710
We do a little bit of cleanup because we do not want to waste one gigabyte in our downloads directory

12:14.710 --> 12:15.460
right now.

12:15.850 --> 12:18.730
And then we want to proceed installing the Android studio.

12:18.730 --> 12:23.890
So we simply go into these tools Android studio directory and we can now do a little bit of a trick.

12:23.890 --> 12:26.620
We can do right click open a new terminal.

12:26.620 --> 12:30.100
This will open a new terminal in this current directory.

12:30.100 --> 12:34.180
So we do not have to change this path until we end up in this one over here.

12:34.180 --> 12:35.620
That's that's super handy.

12:36.190 --> 12:42.310
Okay, then we go into this bin directory and we launch the studio by typing in bash studio dot stage

12:43.090 --> 12:44.170
and then we go.

12:44.170 --> 12:46.120
So the Android studio is now being launched.

12:46.120 --> 12:51.850
We can see we can import existing settings, but we have not installed yet, so we do not have any existing

12:51.850 --> 12:52.570
settings.

12:52.720 --> 12:53.270
Okay.

12:53.770 --> 12:55.300
We click on next.

12:55.690 --> 12:56.530
All right.

12:56.560 --> 12:59.710
Now the installation process finally begins.

13:02.390 --> 13:03.250
Data sharing?

13:03.260 --> 13:05.330
Nope, don't send any data.

13:05.360 --> 13:11.150
Next here, we want to choose custom because we want to be in charge of what is being installed and

13:11.150 --> 13:11.780
what not.

13:11.780 --> 13:14.570
So therefore we choose custom next.

13:15.050 --> 13:18.530
Here we can now define an Java runtime environment.

13:18.530 --> 13:21.560
So regarding to Java, this is a little bit ridiculous.

13:21.560 --> 13:26.510
If we have an application written in Java, it needs an runtime environment, so we need to have Java

13:26.510 --> 13:27.950
installed on our system.

13:28.040 --> 13:28.970
So far so good.

13:29.330 --> 13:35.060
But regarding to new Java versions, there will be also new classes and old ones gets removed.

13:35.060 --> 13:40.850
So it could be the case that our travel runtime environment is not compatible to the Android studio

13:40.850 --> 13:46.430
runtime environment, and therefore the Android studio is shipping its own environment where the developers

13:46.430 --> 13:50.000
of Android studio make sure that everything works perfectly fine.

13:50.000 --> 13:56.120
So in this case, we definitely want to use the Java runtime environment which can ship and not the

13:56.120 --> 13:59.120
ones which might have been already installed on our system.

13:59.120 --> 14:05.060
All right so we leave this edit is and simply hit next that's that's definitely the best option.

14:05.510 --> 14:09.830
All right and now we have to make this difficult choice, that color or light.

14:09.830 --> 14:15.380
I mean, for you, there might be only one choice available, but I choose light because within the

14:15.380 --> 14:21.770
light version, we can see certain buttons or text a little bit better, so it's easier to follow them.

14:22.010 --> 14:23.270
And then clicking next.

14:23.270 --> 14:26.120
And here we have now the SDK component set up.

14:26.990 --> 14:31.730
So we can see the Android SDK is already being checked and please make sure that that's also the case

14:31.730 --> 14:32.330
for you.

14:32.360 --> 14:37.200
It's about 300 and and that's the most important part in our Android studio right now.

14:37.220 --> 14:42.410
So these are all the tools which we will need to access our device and play around with this one.

14:42.410 --> 14:43.610
That's the SDK.

14:43.970 --> 14:49.010
Then we can see there's also an SDK platform support for API version 32.

14:49.340 --> 14:54.980
We leave this checked and later on we will also install some older version platform support, for example,

14:54.980 --> 15:00.920
for Android version ten, nine, eight, seven and things like this that we have some pretty good backwards

15:00.920 --> 15:01.820
compatibility.

15:01.850 --> 15:04.670
For now we have only this one and that's good to go.

15:05.030 --> 15:07.460
Last but not least, we've got the Android virtual device.

15:07.460 --> 15:11.270
In my case, it's already been installed with the Android studio.

15:11.300 --> 15:15.110
I guess this happens if we install the newest version of the Android studio.

15:15.140 --> 15:17.780
If this is not being checked, then please check it.

15:17.810 --> 15:20.420
If you forget it at this point right now, don't worry.

15:20.420 --> 15:22.250
We can also install it later on.

15:22.340 --> 15:22.940
All right.

15:22.940 --> 15:25.310
So we simply have those two enabled.

15:25.340 --> 15:27.410
This, by the way, the Android SDK platform.

15:27.410 --> 15:28.760
This box cannot be checked.

15:28.760 --> 15:36.260
So the check is within this app 32 and then we click next and we've got an overview of what is being

15:36.260 --> 15:37.070
installed.

15:37.100 --> 15:40.520
After clicking next, once again we can see license agreement.

15:40.520 --> 15:46.010
So we have to read carefully through this license agreement for the SDHC and accept it.

15:46.010 --> 15:51.380
And we also have to read carefully through the Android SDK, build to its license and accept it.

15:52.610 --> 15:56.930
Then we click Finish and now all these things are being downloaded once again.

15:56.930 --> 15:57.860
This might take a while.

15:57.860 --> 16:02.840
So I will I will boost up my Internet connection that it's pretty fast and fast forward this process

16:02.840 --> 16:03.590
right now.

16:05.690 --> 16:06.230
Okay.

16:06.260 --> 16:08.420
Unzipping here, we have to finish screen.

16:08.420 --> 16:09.120
Perfect.

16:09.140 --> 16:10.370
Let's click finish.

16:10.610 --> 16:13.400
And now we've got the Android studio up and running.

16:13.490 --> 16:15.050
But we are not done yet.

16:15.050 --> 16:19.610
We want to install some additional tools, so therefore we go into more actions.

16:20.210 --> 16:21.530
SDK Manager.

16:22.710 --> 16:25.350
And if you have now some additional platform support.

16:25.350 --> 16:31.080
So if you want to write applications, then it's good to have an Yeah far backwards compatibility in

16:31.080 --> 16:36.570
case if you are using any device which is Android version seven, for example, you want to make sure

16:36.570 --> 16:40.330
that you have some platform support for Android nougat enabled here.

16:40.350 --> 16:43.230
Right now I will only enable 12 and 11.

16:43.230 --> 16:48.840
Afterwards, we will install the additional ones, for example, ten up to Marshmallow, which is version

16:48.840 --> 16:49.410
six.

16:49.410 --> 16:54.660
And then you have the comparison against the disk size, how much space this requires right now.

16:54.660 --> 16:56.730
So that's the only relevant factor.

16:56.730 --> 17:02.310
In case if you have enough disk space, you can also enable them down to Android Marshmallow right now.

17:03.030 --> 17:06.240
All righty then we go into the SDK tools.

17:07.220 --> 17:12.950
And here we want to enable, indicate, indicate this is the native development kit, which means our

17:12.950 --> 17:15.310
Android applications are normally written in Java.

17:15.320 --> 17:21.800
We will have several videos on this later on, but Java might be a little bit slow regarding to certain

17:21.800 --> 17:26.120
actions, for example, in mobile games, graphics, rendering and things like this.

17:26.390 --> 17:33.650
Therefore, we need native code C, C++ code and having this indicate Xbox enabled means the Android

17:33.650 --> 17:40.790
studio will also fetch this native development kit, which means we are able to write in C C++ code.

17:40.820 --> 17:45.140
But this requires a certain toolchain which is this nndc over here.

17:45.140 --> 17:50.510
So having this box indicate enabled over here means the Android studio is fetching this native development

17:50.510 --> 17:55.160
kit and afterwards we will be able to write our own C C++ code.

17:55.160 --> 17:58.400
So this one will be compiled afterwards into a certain library.

17:58.400 --> 18:02.300
But these are things we will have a look into later in this course.

18:02.300 --> 18:07.580
Right now, we simply want to make sure that the box is enabled, that we have this type of support.

18:07.610 --> 18:12.350
Okay, then we want to definitely check the Android SDK command line tools.

18:12.350 --> 18:14.900
So this is maybe the most important part.

18:14.930 --> 18:16.310
These are the command line tools.

18:16.310 --> 18:21.590
For example, the ADB, which will be used to interact with this device, or FASTBOOT, which will be

18:21.590 --> 18:23.960
used to interact with the bootloader of this device.

18:23.960 --> 18:28.370
So that's the most important tools we will have in our Android studio.

18:28.490 --> 18:29.150
All right.

18:29.300 --> 18:32.120
Last but not least, we also enabled C MEC.

18:32.120 --> 18:37.520
So this makes the compilation of certain parts of an Android project a little bit easier.

18:37.520 --> 18:43.310
For example, we can check out the Android Open Source Project and compile certain projects out of this

18:43.310 --> 18:43.730
one.

18:43.730 --> 18:44.420
All right.

18:44.720 --> 18:47.780
And then let's see, the rest can be skipped.

18:47.840 --> 18:49.190
SDK update sites.

18:49.220 --> 18:50.900
Nothing interesting over here.

18:50.930 --> 18:51.530
All right.

18:51.530 --> 18:52.700
I guess we're good to go.

18:52.700 --> 18:55.250
So these are the panels we want to install.

18:55.460 --> 18:56.690
We simply click apply.

18:56.690 --> 19:00.020
And here we can see the estimated download size is about one gigabyte.

19:00.020 --> 19:04.250
But if we extract those files, we will require four gigabyte of disk space.

19:04.250 --> 19:08.840
And now you know why 20 gigabyte might not be sufficient enough right now.

19:08.870 --> 19:10.160
Okay, then we click.

19:10.160 --> 19:13.910
Okay, and I will boost up my internet connection once again.

19:16.770 --> 19:17.540
All right.

19:17.550 --> 19:18.720
Download has been finished.

19:18.720 --> 19:20.160
So let's click on Finish.

19:20.160 --> 19:25.500
And now I also enable a platform support, let's say up till marshmallow.

19:25.770 --> 19:30.390
All right, here we can see the estimated disk size is four gigabytes.

19:30.390 --> 19:34.830
So having a platform support back to marshmallow just requires four gigabytes.

19:34.860 --> 19:36.810
I guess that's in fact you're right now.

19:37.140 --> 19:42.510
So click on okay and once again boosting up those these Internet connection.

19:43.330 --> 19:43.830
Okay.

19:43.870 --> 19:47.680
And then we can click finish, apply and och, och.

19:47.680 --> 19:50.260
And that's the installation process of this Android studio.

19:50.260 --> 19:55.210
So now we can start writing our own applications or play around with existing ones.

19:55.210 --> 19:58.270
But to do this, we have to do a little bit of setup first.

19:58.380 --> 20:03.310
By the way, over here we've got things like the plug ins which we will use later on in this course.

20:03.310 --> 20:07.450
I mean, I'm not using much of them, but a few are pretty awesome.

20:07.450 --> 20:10.300
But we will perform the installation when we require them.

20:10.300 --> 20:12.910
For now we are done installing the Android studio.

20:12.940 --> 20:14.560
Okay, let's close this one.

20:15.960 --> 20:21.540
So as already mentioned, within our home directory, there's now a new directory, the Android directory,

20:21.540 --> 20:25.660
and this one has this SDK toolset being downloaded and installed.

20:25.680 --> 20:29.580
Over here you will find all these binaries which we're going to use during this course.

20:29.640 --> 20:33.440
For example, in platform tools, we've got this ADB binary.

20:33.450 --> 20:36.930
This is maybe one of the most important ones over here.

20:37.320 --> 20:42.570
If you want to run this binary, we would assume that we simply can open a new terminal type in ADB

20:42.570 --> 20:43.550
and we're good to go.

20:43.560 --> 20:50.070
But here we can see the command has not been found, which means the ADB binary is not visible for our

20:50.070 --> 20:51.270
terminal right now.

20:51.300 --> 20:57.540
If you want to start this, we have to provide the full path for this binary and we can do this by performing

20:57.540 --> 21:03.150
and right click open new terminal PWT to get this current directory.

21:03.150 --> 21:07.680
Then we copy this be inserted over here and then we append ADB.

21:07.710 --> 21:13.530
All right, here we can see the ADB shell is being started, but this is super inconvenient to memorize.

21:13.560 --> 21:19.260
Also, if you're using later on some scripts, we have to insert this this path in all of our scripts

21:19.260 --> 21:21.390
and this is something we do not want to have.

21:21.600 --> 21:28.170
What we can do is we can include this directory in our path variable, which means if you run an command,

21:28.170 --> 21:33.870
for example, ADB afterwards, the path variable is looking into all these directories which are listed

21:33.870 --> 21:41.040
in this path variable and searching for an ADB binary in case if it finds one, it will execute it and

21:41.040 --> 21:45.840
in case if there is not, we get this command not found like we have seen before.

21:46.410 --> 21:50.910
By having this included in the path variable, we do not need to insert your whole path all the time.

21:50.910 --> 21:54.750
We can simply run ADB from our terminal wherever we are right now.

21:54.750 --> 21:56.670
And this is super convenient, right?

21:56.760 --> 21:57.660
Absolutely.

21:57.660 --> 21:58.710
So let's do this.

21:58.980 --> 22:01.710
The things we need to do is we need to copy this path.

22:01.860 --> 22:04.020
Then we are opening the set of HRC.

22:04.020 --> 22:09.600
I'm using VIM, but you can also use non or tree edit results to do code at the door, whatever you

22:09.600 --> 22:10.140
like.

22:10.230 --> 22:13.260
All right then within this file, we scroll down.

22:14.240 --> 22:21.500
And now we insert export path, which means we will export a new path variable and we have to include

22:21.500 --> 22:22.640
the existing ones.

22:22.640 --> 22:28.100
Otherwise we will overwrite all the existing directories which has been already included in this path

22:28.100 --> 22:28.820
variable.

22:28.850 --> 22:34.550
All right, this looks a little bit crazy, but what we are doing over here is we are exporting this

22:34.550 --> 22:38.450
existing path variable to a new variable, which is the same name.

22:38.450 --> 22:45.320
But now we can extend additional directories and therefore we are hitting colon slash and now we are

22:45.320 --> 22:48.260
inserting the path which has been copied before.

22:48.260 --> 22:53.510
But we need to make sure that we are including this directory and not this this binary.

22:53.510 --> 22:57.020
So we need to delete this ADB and there we go.

22:57.440 --> 23:00.170
So what this line over here does is the following.

23:00.170 --> 23:03.650
We're taking the existing path, variable dollar path.

23:03.650 --> 23:09.980
Then we append our new directory, the platform tools directory to it, and then we export all of them

23:09.980 --> 23:16.310
into a new variable named path, which is identical regarding to the old one, which means we simply

23:16.310 --> 23:20.300
append or extend this variable by the platform tools directory.

23:20.420 --> 23:21.260
All right.

23:22.040 --> 23:27.170
Doing this will give us access to all these binaries in this platform tools directory right now, which

23:27.170 --> 23:31.640
means we can open a new terminal and simply run ADB from this new terminal.

23:31.640 --> 23:33.820
And everything works perfectly fine.

23:33.830 --> 23:35.150
Nice, isn't it?

23:35.450 --> 23:41.030
But before we do this, let's also append another directory which has some useful binaries in there,

23:41.030 --> 23:43.370
and this one is within the SDK directory.

23:43.370 --> 23:51.200
Build tools and then 30 200 all right, once again, right click open the new terminal p.w dx copying

23:51.200 --> 23:55.490
this path and please make sure that there are some columns separating those two.

23:55.490 --> 24:02.810
So this is the separator for our path variable and then we simply insert it directly afterwards appending

24:02.810 --> 24:04.790
and slash and we are good to go.

24:05.210 --> 24:10.760
All right, so then let's close this file and we can do this by hitting src colon w.

24:10.760 --> 24:14.150
Q Yes, that's the way to leave them absolutely crazy.

24:14.150 --> 24:16.630
And now let's try if everything works.

24:16.640 --> 24:20.900
So by typing in ADB, we should get what command not found.

24:21.110 --> 24:21.890
Yes.

24:21.890 --> 24:27.310
Because this path variable has not been updated for this current terminal yet.

24:27.320 --> 24:33.320
If we open a new terminal, it would work so we could simply open a new one and then type in ADB.

24:33.350 --> 24:38.350
Or we can simply update this path variable for the terminal we have already opened.

24:38.360 --> 24:45.170
We can do this by simply running source and this one on set is HRC, which means the set is HRC will

24:45.170 --> 24:51.770
be refreshed for this terminal and this means the path variable will be extended with the two directories

24:51.770 --> 24:53.210
we have inserted before.

24:53.660 --> 24:57.950
All right, so let's see, running ADB and there we go.

24:57.950 --> 25:01.520
So here we can see we can now start ADB wherever we like.

25:01.520 --> 25:06.350
So we do not need to mesmerize this whole path or going into this directory first.

25:06.380 --> 25:07.110
All righty.

25:07.520 --> 25:08.300
Okay.

25:08.450 --> 25:13.550
And this is all so we can close everything and finish this installation video over here.

25:13.880 --> 25:18.770
Okay, so this installation video did become quite long, and I'm not sure what happened over here.

25:18.770 --> 25:25.100
So if this was your first time, then I guess it's really helpful to have this view into the SDK tools,

25:25.100 --> 25:28.280
setting these path variables and stuff like this.

25:28.280 --> 25:31.250
I guess the other installation videos won't take that long.

25:31.280 --> 25:35.840
In case of any questions, please drop me a message underneath this video and otherwise.

25:35.840 --> 25:38.180
I'm looking forward to see you in the next one.
