经过实践,发现需要使用旧的genymotion 版本,如2.12.2, 应该 3.3.0 版本以下的都可以。
本地的adb 版本可能与 genymotion 自带的adb 版本不兼容,可以将本地的adb拷贝到genymotion tools 目录下
点击进入,移动到最下面你会看到版本号,然后连续点击版本号七次接着会提示你已经为你成功开启usb调试模式
接着返回设置,你就可以找到开发者选项了,进入找到usb调试这一项,点击打勾选上即可
本意是想把一些比较旧的脱壳工具在低版本的 android 实例上运行,但相对应的现在很多 apk 无法在低版本的 android 上运行(即使修改了 minSdkVersion 后重新打包签名可以安装,但运行时大概率出错),故在这个脱壳场景下并没有太大的意义。
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:
Download the required Android image. I've reuploaded the files to Mega and saved them on the WayBack Machine.
Open Genymotion and go to the Genymotion Settings
Then go to Virtualbox tab and copy the Virtual Devices path
Close Genymotion and open VirtualBox. Go to File and choose Import Appliance.
Choose the file you downloaded earlier and hit next
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).
Click Import and close out of VirtualBox
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.
Then open the folder named after the name you chose on Step 3. Inside, it should be a {VM Name}.vbox file.
Open that file as a text file (If you are on Windows it's better to use Notepadd++ instead of the normal Notepad).
Go to where it says GuestProperties and add this line above </GuestProperties>
:
<GuestProperty name="android_version" value="4.1.1" timestamp="" flags=""/>
Before:
After:
Save the file and close the editor.
Open Genymotion and you should see the device you added.
Optional: Edit Device's settings from the 3 dot menu (eg. Change resolution, Increase RAM and CPU Cores).
Run the Device
NOTE: Every time you open the Device, you will see this message. Just click Continue Anyway.
And ENJOY!
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.
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.
- 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)