All right, guys, welcome back.
After all this annoying setup, we want to do some more interesting stuff in this video.
It's perfect to begin with this one.
So in this video over here, we want to release our smartphone.
So how can we do this?
And what do I mean with releasing the smartphone?
Well, let's have a look here.
We've got our laptop and we've gotten smartphone, for example, this one over here.
But this one, it's some consumer device and therefore, some features are not being enabled by default.
Those features can enable us as a developer to perform or investigate certain things.
And these features, I mean, they are core features.
If you want to do some epic thing, if we enable them, then our smartphone will become unlocked.
So this one has then more powerful features to inspect and interact with certain applications.
And this one, I mean, it's some core feature to perform Android application hacking to enable those
developer options.
This can be done within three simple steps.
The first one is we have to go into the settings of our smartphone and then we've got something like
about the phone and within about the phone we have to hit eight times this build number.
I mean, it has to be that fast.
It can be also a little bit slower.
But after hitting this eight times, we have now enabled those developer options and we can find them
within our settings.
The question is now what makes them that amazing?
So what's that important about those developer options?
Well, let's have a look because I mean, these are really underrated.
The most important feature is, of course, the ADB shell.
So the use backing, we can attach USB cable to our phone and then we can start debugging interacting
with those applications.
But those developer options have some really underrated options in there.
For example, we can select the mocking location might be not that interesting.
We can spoof GPS location for applications.
Sounds nice, but maybe not that interesting.
All right.
I get this point then we've got things like select and debugging application.
Okay, it's getting interesting.
Then we've got to point a location and this is this is freaking awesome.
I mean, we can get the exact coordinates of Yeah.
Often view of our application and we can interact with this one.
We have a nice example regarding to this one, but I guess the most underrated option is the Bluetooth
HCI new block option.
So what is this?
Well, if our application communicates by a Bluetooth, for example, Bluetooth, low energy, then
we can log every single byte into an file and we can analyze this afterwards, for example, with Wireshark.
So this one is freaking awesome and absolutely helpful.
All right.
So after all this hype up right now, let's start releasing our smartphone and then let's have a look
in those amazing options.
You ready for this?
So let's finally start hacking something in our smartphone right now.
Let's go.
All right.
So here we've got the smartphone right now.
And after enabling those developer options, all those things will be more handy.
We can also replicate the screen on our laptop, but for now we have to enable them first.
So let's see how we can do this.
So all we need to do is we need to go under settings.
And I've put on my glove that you do not see my fat fingers everywhere.
All right.
And then within about the phone.
So we might have to scroll down a little bit.
There we have it.
We scroll down until we can see the build number.
There we have it.
So let's zoom in a little bit.
All right.
So here we have it.
And all we need to do is we simply need to hit eight or I guess seven times.
Not true anymore.
This build number.
So let's do this.
One, two, three, four, five, six, seven.
Now, we are a developer.
I mean, we are not developer, but we have enabled those developer options.
Where can we find them?
Well, let's zoom out.
All right.
And now let's go back one menu.
And within system we've got now this advanced and we can see now developer options.
So these are our developer options.
Let's open them.
And here we have it so we can see those developer options are on and we can now use them.
Let's zoom in a little bit.
All right.
The most important option for me right now is to use speedy backing option, because then we can access
this device via USB.
So let's enable them because then we get a lot of useful features.
So let's see, we scroll down a little bit here we have it, USB debugging, so let's enable this.
All right.
And we already get the warning because I mean, enabling them, it gives us access to certain features
of the device.
And this could be, of course, critical.
This is also the reason why I would like to use a dedicated device and not my real private device for
picking stuff that's in dedicated device.
So I simply agree and that's it.
So now we've got use speed backing enabled and let's zoom out.
All right.
So this is the whole picture right now.
But this picture on the smartphone, it's it's not really convenient.
Let's get this picture on our laptop screen.
The only thing we need for this is this USB cable.
So we black this USB cable in and then we have be using our ADB, our Android debug bridge to get this
screen on our laptop because then we can browse through all the other features and yet this is all way
more convenient.
All righty, let's do this.
All right, so let's see how we can get the screen of our smartphone on our laptop.
And the things we need are in smartphone, this USB cable and some tool.
Let's have a look.
I plug this in.
So the first thing we need to do is we need to make sure that the device is connected to our virtual
machine.
And therefore we have to go into the virtual machine settings and then use P and we have to make sure
that the that the device in my case, it's Google Pixel two is connected to our virtual machine.
So we can see I can disconnect it.
It means it's being connected.
All right.
Okay.
After this device has been connected, we can open a new terminal and then we simply type in ADB, Shell,
ADB.
We have set this up in the installation video.
And if you have skipped this, I mean, I can fully understand that you that you have skipped this installation
video, but maybe you want to rewatch the last half of it because then we set up the Android SDK.
And if this is new, this might be very helpful to you.
All right.
Okay.
So after setting up the ADB, so the Android Debug Bridge, we can now use Android Debug Bridge and
we execute the command shell and now we can see we are getting an arrow.
And this one says ADB service.
ADB window key is not set.
So if you look on our smartphone right now and then we can see some kind of screen we have to accept.
So this means allow you speedy backing the computer is are key fingerprint is the following do you trust
this computer?
I say yes.
Always allow connection from this computer and now we're good to go.
So after making sure that the device is being connected by a USB and that we have given those permissions,
it should work.
Let's see.
Yes.
So here we can see the terminal changes.
And this one, the fancy color stuff is our Linux system, our Ubuntu VM and this one walleye is now
the pixel device.
So that's the shell of the pixel device.
We have now access to this device over here.
All right.
There could be a case that you get an additional arrow, and this arrow is regarding to the USB data
transfer.
So maybe let's get the screen on the on the laptop finally, and then let's have a look into this one.
So how can we get the screen?
We have to use the tool which is screen copy.
So SDR copy, I'm using AppKit instead install by the way, if we use exit on the on the Android backward
shell, then we enter our system once again.
So at the beginning it's a little bit confusing.
Those different terminals remember the color one?
This is our Linux system and the trust white grayish one.
This is our device.
And we can also see this code name of this device, pixel two has code name Wally Pixel three is I guess
sailfish not true about this one.
Nexus is hammerhead.
This is something I know for sure.
Okay, so.
But we we want to install something, so let's see again, install SCR copy.
Yes, we need root privileges.
So we add sudo, we enter the password and now yes, it's going to be installed.
So see our copies and tool which is using the Android debug bridge to print the screen on our laptop
and let's do this.
Finally, we simply start this tool by typing in SCR copy.
I clear the screen and make this a little bit larger.
There we go.
All right.
And here we have it.
This is our device.
Perfect.
So now I can show you all these things a little bit better in case if you get an additional error.
This might be regarding to USB and data transfer.
So if you normally just plug in your device, it might be only charging, which is, I mean, perfect
in case if you just want to charge it, then there is no need to transfer data to give someone access
to this device.
But regarding to this one, access is required and we can set this path if we track this down.
So that's absolutely fancy.
We can use the mouse right now to show all of this.
And then here we can see Android system charging this device via USB OC.
Tap for more options.
Let's open this.
Yes, you might want to set it to file transfer.
Android auto.
Okay.
We can see it's restarting right now.
And now we get this this message that we that we are reconnecting this device.
I say, yes, connect this device to my virtual machine.
Always keep this connected, and this should solve your error.
So now if you are opening the ADB shell, then the other arrow should be gone.
All right.
So this is all for this video right now.
And let me close this.
Put this on the left.
All right.
What have we done?
We have enabled developer options.
Oh, one last thing.
Maybe one one fun fact.
If you go into settings and then within system, there's an Easter egg in here.
Is it within system advanced?
No, sorry.
It's.
It's about the phone.
Yes.
The Android version has some kind of Easter egg in there.
So if we press or tap this a few times, oops, this one, then we can see, Hey, we got something.
I'm not sure if that's useful, but I mean, it's an Easter egg and if you notice, then you might sound
or look like absolute legit right now, right?
Absolutely.
So in case if you have another version that was some versions are named after Sweets.
It did start with Cupcake.
Then we've got something like version six was marshmallow nougat and stuff like this.
So it's a two set and it's always sweet.
All right.
Okay.
But now back to this one.
So what have you done?
This I playing around over here?
We have enabled those developer options.
So within system advanced, we have now those developer options.
And yes, here we have them.
So in the next couple of videos, we will figure out what is important and interesting for you and what
can be skipped.
I mean, there are some really cool options that you might not be familiar with and those can be super
useful to hack games or analyze Bluetooth applications or do other amazing stuff.
All righty.
Okay.
So therefore, I'm really looking forward to see you in the next video.