M 101: Genymotion (15 pts) M 101:Genymotion(15分)

What You Need for This Project你需要什么这个项目

Purpose目的

To prepare a Genymotion Android emulator, so you can easily install apps from Google Play and audit their security.要准备Genymotion Android模拟器,您可以轻松地从Google Play安装应用并审核其安全性。

Genymotion is a very nice, luxurious Android virtual machine, more convenient and efficient than the emulator Google Studio provides. Genymotion是一款非常漂亮,豪华的Android虚拟机,比Google Studio提供的模拟器更加方便和高效。

Task 1: Installing Genymotion任务1:安装Genymotion

Dowloading Genymotion下载Genymotion

In a Web browser, go to在Web浏览器中,转到

https://www.genymotion.com/fun-zone/ https://www.genymotion.com/fun-zone/

Click " Download Genymotion Personal Edition ", as shown below.单击“ 下载Genymotion个人版 ”,如下所示。

In the next screen, click " Create an account ".在下一个屏幕中,单击“ 创建帐户 ”。 Fill in the form with your email address and other details, as shown below.使用您的电子邮件地址和其他详细信息填写表单,如下所示。

Accept the terms and click " Create account ".接受条款并单击“ 创建帐户 ”。

Download links appear.出现下载链接。 Download the correct version for your OS.为您的操作系统下载正确的版本。 There are four choices:有四种选择:

If you are using Windows, download the version including VirtualBox unless VirtualBox is already installed.如果您使用的是Windows,请下载包含VirtualBox的版本,除非已安装VirtualBox。

While the download proceeds, check your email and activate your Genymotion account.下载过程中,请检查您的电子邮件并激活您的Genymotion帐户。

Installing Genymotion安装Genymotion

If you are using Mac or Window, double-click the installer file and install the software with the default options.如果您使用的是Mac或Window,请双击安装程序文件并使用默认选项安装软件。

Ubuntu Users Ubuntu用户

If you are using Ubuntu, execute these commands:如果您使用的是Ubuntu,请执行以下命令:
sudo apt-get update sudo apt-get update
sudo apt-get install virtualbox -y sudo apt-get install virtualbox -y
cd光盘
cd Downloads cd下载
ls -l ls -l
You should see the name of the downloaded file, which should be something like genymotion-2.7.2-linux_x64.bin .您应该看到下载文件的名称,该名称应该类似于genymotion-2.7.2-linux_x64.bin Use that name in the next two commands:在接下来的两个命令中使用该名称:
chmod +x genymotion-2.7.2-linux_x64.bin chmod + x genymotion-2.7.2-linux_x64.bin
./genymotion-2.7.2-linux_x64.bin ./genymotion-2.7.2-linux_x64.bin
Install the software with the default options.使用默认选项安装软件。 Once it's installed, launch it with these commands:安装完成后,使用以下命令启动它:
cd /opt/genymobile/genymotion/ cd / opt / genymobile / genymotion / 
./genymotion ./genymotion

Creating a Virtual Device创建虚拟设备

After Genymotion starts, it asks if you want to add a new virtual device. Genymotion启动后,它会询问您是否要添加新的虚拟设备。 Click Yes .单击

Sign in with your Genymotion account to see available devices.使用您的Genymotion帐户登录以查看可用设备。

In the list of "Available templates", double-click " Google Nexus 5 ", as shown below.在“可用模板”列表中,双击“ Google Nexus 5 ”,如下所示。

In the "Install virtual device" box, click INSTALL .在“安装虚拟设备”框中,单击“安装”。

The virtual device downloads.虚拟设备下载。

In Genymotion, your device appears in the top section, under the heading "My installed devices", as shown below.在Genymotion中,您的设备显示在顶部,“我已安装的设备”标题下,如下所示。

Starting the Genymotion Device启动Genymotion设备

In the Genymotion window, in the "My installed devices" section, double-click " Google Nexus 5 ".在Genymotion窗口的“我安装的设备”部分中,双击“ Google Nexus 5 ”。

The Android device starts up, showing the Home Screen, as shown below. Android设备启动,显示主屏幕,如下所示。

Installing Google Apps (Outside China Only)安装Google Apps(仅限中国境外)

To test apps, we need access to the Google Play Store.要测试应用,我们需要访问Google Play商店。 Genymotion now makes that very easy. Genymotion现在让这很容易。 However, you cannot use this method inside China--see the next section for another method.但是,您不能在中国境内使用此方法 - 请参阅下一节中的另一种方法。

In your Genymotion machine, at the top right, click the " OPEN GAPPS " button, outlined in green in the image above.在Genymotion机器的右上角,单击“ OPEN GAPPS ”按钮,上图中以绿色标出。

A box opens, titled "OPEN GAPPS".打开一个标题为“OPEN GAPPS”的框。 Click the Accept button.单击“ 接受”按钮。

When you are prompted to, click " Restart now ".系统提示您时,单击“立即重新启动 ”。

When your device restarts, click on the hone screen, hold down the mouse button, and swipe up to see all apps.当您的设备重新启动时,单击“磨刀石”屏幕,按住鼠标按钮,然后向上滑动以查看所有应用程序。

You should see " Play Store ", outlined in green in the image below.您应该看到“ Play商店 ”,下图中以绿色标出。

Installing Google Apps (In China)安装Google Apps(在中国)

If you are unable to connect to Google, download this file and drop it on your Genymotion device to install Google apps.如果您无法连接到Google,请下载此文件并将其放在Genymotion设备上以安装Google应用。

open_gapps-x86-6.0-pico-20190601.zip open_gapps-x86-6.0-pico-20190601.zip

A box pops up saying "Do you want to flash it..."弹出一个方框,上面写着“你想闪一下......”

Click OK .单击确定

After the flash is complete, click OK .完成闪存后,单击“ 确定” Close the Genymotion window to power off the virtual device and restart it.关闭Genymotion窗口以关闭虚拟设备并重新启动它。

Launching Play Store启动Play商店

If you are in China, skip this section--Play Store won't be able to connect to the Google servers. 如果您在中国,请跳过此部分 - Play商店将无法连接到Google服务器。

Click " Play Store ".点击“ Play商店 ”。

When you are prompted to, log in with a Gmail account.系统提示您时,请使用Gmail帐户登录。

Agree to the terms.同意条款。

The Play Store opens, as shown below. Play商店打开,如下所示。


M 101: ID (15 pts) M 101:身份证(15分)

On the right side of Genymotion, in the black bar, click the seventh icon down, titled ID , as colored pink in the image above.在Genymotion的右侧,在黑色条中,单击第七个图标,标题为ID ,上图中为粉红色。

An Identifiers box pops up, as shown on the right side in the image above.弹出标识符框,如上图中右侧所示。

Find the text in that box that is covered by the green box in the image above.在上面的图片中的绿色框中找到该框中的文本。 That's the flag.那是旗帜。


Installing Chrome安装Chrome

If you are in China, skip this section--Play Store won't be able to connect to the Google servers. 如果您在中国,请跳过此部分 - Play商店将无法连接到Google服务器。

In the Play Store, search for chrome .在Play商店中,搜索chrome Install "Google Chrome", as shown below.安装“Google Chrome”,如下所示。


Modifications made to support Chinese users 6-1-19为支持中国用户而进行的修改6-1-19