Skip to content

Instantly share code, notes, and snippets.

@JnuSimba
Forked from 1nikolas/genymotion-4.x.md
Last active April 30, 2024 01:38
Show Gist options
  • Save JnuSimba/1c397bce8e933cbcd54fe068520dc67e to your computer and use it in GitHub Desktop.
Save JnuSimba/1c397bce8e933cbcd54fe068520dc67e to your computer and use it in GitHub Desktop.
Install Android 4.1, 4.2, 4.3 on Genymotion

first

经过实践,发现需要使用旧的genymotion 版本,如2.12.2, 应该 3.3.0 版本以下的都可以。

本地的adb 版本可能与 genymotion 自带的adb 版本不兼容,可以将本地的adb拷贝到genymotion tools 目录下

image

开启调试模式

运行手机,点击设置,然后找到关于手机 image

点击进入,移动到最下面你会看到版本号,然后连续点击版本号七次接着会提示你已经为你成功开启usb调试模式 image

接着返回设置,你就可以找到开发者选项了,进入找到usb调试这一项,点击打勾选上即可 image image

后记

本意是想把一些比较旧的脱壳工具在低版本的 android 实例上运行,但相对应的现在很多 apk 无法在低版本的 android 上运行(即使修改了 minSdkVersion 后重新打包签名可以安装,但运行时大概率出错),故在这个脱壳场景下并没有太大的意义。

Install Android 4.1, 4.2, 4.3 on Genymotion

I found a way to install older Android versions (4.x) on latest version of Genymotion. I only tested it on Windows but it should work on Mac and Linux too. So here is what you need to do:

Step 1

Download the required Android image. I've reuploaded the files to Mega and saved them on the WayBack Machine.

Step 2:

Open Genymotion and go to the Genymotion Settings

Step2.1

Then go to Virtualbox tab and copy the Virtual Devices path

Step2.2

Step 3

Close Genymotion and open VirtualBox. Go to File and choose Import Appliance.

Step3.1

Choose the file you downloaded earlier and hit next

Step3.2

On the next screen you need to change the Machine Base Folder to the path you copied on Step 2. You can also change the name to something more distinguishable if you want. Leave everything else as is (VM specs can be changed later via Genymotion).

Step 3.3

Click Import and close out of VirtualBox

Step 3.4

Step 4

Make sure VirtualBox is closed and navigate to the folder from Step 2. On Windows 10 you can paste the path in the Search and hit enter.

Step4.1

Then open the folder named after the name you chose on Step 3. Inside, it should be a {VM Name}.vbox file.

Step4.2

Open that file as a text file (If you are on Windows it's better to use Notepadd++ instead of the normal Notepad).

Step4.3

Go to where it says GuestProperties and add this line above </GuestProperties>:

<GuestProperty name="android_version" value="4.1.1" timestamp="" flags=""/>

⚠️ Make sure to replace the value to the corresponding Android version (4.1.1, 4.2.2 or 4.3). ⚠️

Before:

Step4.4

After:

Step4.5

Save the file and close the editor.

Step 5

Open Genymotion and you should see the device you added.

Step5.1

Optional: Edit Device's settings from the 3 dot menu (eg. Change resolution, Increase RAM and CPU Cores).

Step5.2

Step 6

Run the Device

NOTE: Every time you open the Device, you will see this message. Just click Continue Anyway.

Step6.1

And ENJOY!

Step6.2

It seems that these old VMs run a bit slower and glitch a little bit but that's to be expected since they are discontinued for quite a while. But overall they run very well.

Gapps

To install Google Apps on these Devices you need to Download this file (Mega mirror) and drag-n-drop it into the Device (while it's running). It will ask you if you want to flash it, just say yes. After that, restart the Device and leave the it for a little while to auto update Play Store and Play Sevices and you are done.

Credits

  • Guide by me
  • Gapps by Formula84 (I don't remeber exactly where I found them)
  • OVA files thanks to this old version of a Gist (mirrors provided by me)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment