Install and run Genymotion 2.11.0 under Windows 10 64, Oracle VM VirtualBox 5.2.2 to test the local H5 page
1. Open the URL:https://www.genymotion.com/download/, since the Oracle VM VirtualBox has been installed, so choose Without VirtualBox, as shown in Figure 1
2. After the installation is complete, create a new virtual device, select 7.0.0 for Android version, and finally select Samsung Galaxy S8 – 7.0.0, the next step, as shown in Figure 2
3. After the new creation, click the Start button to start the device, as shown in Figure 3
4. Open the browser, enter Baidu URL, test, normal, as shown in Figure 4
5. Open Windows PowerShell and execute the command: ipconfig to check the last virtualbox host-only network #3, as shown in Figure 5
6. Open the URL: 192.168.118.2/phpinfo.php, report an error: UriSyntaxException: Illegal character in path at index 0: 192.168.118.2/phpinfo.php, as shown in Figure 6
7. Open Oracle VM VirtualBox, set the Samsung Galaxy S8 – 7.0.0 network, network card 1, mixed mode: all allowed, as shown in Figure 7
8. Open the URL again: 192.168.118.2/phpinfo.php, normal, as shown in Figure 8
9. Use the domain name (default.interact.shenzhen.localhost) to connect to the local shake and shake the website, edit the hosts, similar to the local hosts, as shown in Figure 9
10. Run as an administrator, open Windows PowerShell, enter the tool directory, and execute the following commands in turn, as shown in Figure 10
cdC:\Program Files\GenyMobile\GenyMotion\Tools
.\adb devices
.\adb root
.\adb remount
.\adb pull /system/etc/hosts hosts
ls
11. Execute the command: ipconfig, copy the Ethernet adapter Ethernet: IPv4 address, as shown in Figure 11
12. Edit: C:\Program Files\GenyMobile\Genymotion\Tools\Hosts, as shown in Figure 12
172.28.28.18 default.interact.shenzhen.localhost
13. Execute the following commands, as shown in Figure 13
.\adb push hosts /system/etc/hosts
14. Open the URL: default.interact.shenzhen.localhost, report an error: webpage not available, as shown in Figure 14
15. Adjust the 12th step, give up using the Windows editor EditPlus, use Linux editing, and upload and download through FTP, as shown in Figure 15
16. Execute the following commands: , normal, as shown in Figure 16
.\adb push hosts /system/etc/hosts
.\adb shell cat -e /system/etc/hosts
.\adb shell ping default.interact.shenzhen.localhost
17. Open the URL: default.interact.shenzhen.localhost, report an error: webpage not available, as shown in Figure 14
18. Open the URL:http://www.ghisler.com/android.htm#download, download Total Commander, as shown in Figure 18
19. Drag and drop TCandroid280.apk to the virtual device, click the Allow button, as shown in Figure 19
20. Click File System Root, Etc, Hosts, Edit File in turn, as shown in Figure 20, 21, 22, 23
21. Although the modification record has been found in the hosts file, it is recommended to re-edit it again, as shown in Figure 24, 25, 26, 27, 28
22. Editing failed, as shown in Figure 29
23. Create a new virtual device, Samsung Galaxy S7 – 6.0.0, editing hosts successfully based on Total Commander, as shown in Figure 30
24. Open the URL: default.interact.shenzhen.localhost, report an error: webpage not available, as shown in Figure 14
25. Create a new virtual device, Samsung Galaxy S6 – 5.1.0, edited hosts based on Total Commander success, and open the URL: default.interact.shenzhen.localhost, normal, as shown in Figure 31
26. Due to the need to copy the URL to the virtual device, in VirtualBox, Samsung Galaxy S6 – 5.1.0, General – Advanced – Shared Pasteboard with Drag and Drop – Bidirectional, as shown in Figure 32
27. Turn off the virtual device, drag and drop kf.txt to the virtual device, and the prompt is successful, but it does not exist in the virtual device, as shown in Figure 33
28. Run as an administrator, open Windows PowerShell, enter the tool directory, and execute the following commands in turn:
cdC:\Program Files\GenyMobile\GenyMotion\Tools
.\adb devices
.\adb root
.\adb remount
.\adb push kf.txt /sdcard/storage/kf.txt
29. In the virtual device, /sdcard/storage/kf.txt already exists, as shown in Figure 34
30. Open /sdcard/storage/kf.txt, copy the link of a page, and open it in the browser, as shown in Figure 35
31. This page is a shake page, but it is still impossible to test it, and no effective method has been found to simulate it.
































