mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-21 20:23:18 +00:00
GITBOOK-4042: change request with no subject merged in GitBook
This commit is contained in:
parent
b32c1bbf16
commit
bcf227ed72
5 changed files with 31 additions and 7 deletions
BIN
.gitbook/assets/image (670).png
Normal file
BIN
.gitbook/assets/image (670).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 KiB |
BIN
.gitbook/assets/image (671).png
Normal file
BIN
.gitbook/assets/image (671).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
BIN
.gitbook/assets/image (672).png
Normal file
BIN
.gitbook/assets/image (672).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
.gitbook/assets/image (673).png
Normal file
BIN
.gitbook/assets/image (673).png
Normal file
Binary file not shown.
After Width: | Height: | Size: 130 KiB |
|
@ -46,17 +46,30 @@ export JAVA_HOME=/Applications/Android\ Studio.app/Contents/jbr/Contents/Home
|
|||
|
||||
If you installed Android Studio, you can just open the main project view and access: _**Tools**_ --> _**AVD Manager.**_
|
||||
|
||||
![](<../../.gitbook/assets/image (330).png>)
|
||||
<div align="center" data-full-width="false">
|
||||
|
||||
<figure><img src="../../.gitbook/assets/image (670).png" alt="" width="293"><figcaption></figcaption></figure>
|
||||
|
||||
</div>
|
||||
|
||||
Then, click on _**Create Virtual Device**_
|
||||
|
||||
<figure><img src="../../.gitbook/assets/image (671).png" alt="" width="188"><figcaption></figcaption></figure>
|
||||
|
||||
_**select** the phone you want to use_ and click on _**Next.**_
|
||||
|
||||
{% hint style="warning" %}
|
||||
If you need a phone with Play Store installed select one with the Play Store icon on it!
|
||||
|
||||
![](<../../.gitbook/assets/image (672).png>)
|
||||
{% endhint %}
|
||||
|
||||
Then, click on _**Create Virtual Device**_, _**select** the phone you want to use_ and click on _**Next.**_\
|
||||
In the current view you are going to be able to **select and download the Android image** that the phone is going to run:
|
||||
|
||||
![](<../../.gitbook/assets/image (331).png>)
|
||||
<figure><img src="../../.gitbook/assets/image (673).png" alt="" width="375"><figcaption></figcaption></figure>
|
||||
|
||||
So, select it and click on _**Download**_ (**now wait until the image is downloaded).**\
|
||||
**Once the image is downloaded, just select** `Next` and `Finish`.
|
||||
|
||||
![](<../../.gitbook/assets/image (332).png>)
|
||||
So, select it and if it isn't downloaded click on the _**Download**_ symbol next to the name (**now wait until the image is downloaded).**\
|
||||
Once the image is downloaded, just select **`Next`** and **`Finish`**.
|
||||
|
||||
The virtual machine will be created. Now **every time that you access AVD manager it will be present**.
|
||||
|
||||
|
@ -208,6 +221,17 @@ However there are **a lot of different command line useful options** that you ca
|
|||
* `-screen {touch(default)|multi-touch|o-touch}` : Set emulated touch screen mode.
|
||||
* **`-writable-system`** : Use this option to have a writable system image during your emulation session. You will need also to run `adb root; adb remount`. This is very useful to install a new certificate in the system.
|
||||
|
||||
## Rooting a Play Store device
|
||||
|
||||
If you downloaded a device with Play Store you are not going to be able to get root directly, and you will get this error message
|
||||
|
||||
```
|
||||
$ adb root
|
||||
adbd cannot run as root in production builds
|
||||
```
|
||||
|
||||
Using [rootAVD](https://github.com/newbit1/rootAVD) with [Magisk](https://github.com/topjohnwu/Magisk) I was able to root it (follow for example [**this video**](https://www.youtube.com/watch?v=Wk0ixxmkzAI)).
|
||||
|
||||
## Install Burp certificate on a Virtual Machine
|
||||
|
||||
First of all you need to download the Der certificate from Burp. You can do this in _**Proxy**_ --> _**Options**_ --> _**Import / Export CA certificate**_
|
||||
|
|
Loading…
Reference in a new issue