让x86的android模拟器能模拟arm架构系统

摘要:
我的云盘里有其可执行程序。(这个需要5G的根目录空间,不推荐,太大了,这个是linux上运行,不是模拟器内运行。)2、http://www.shashlik.io/,这个也不错。

2019年展月6日更新:

1、最近发现了一个能在linux下模拟arm的模拟器: xdroid,网址: https://www.linzhuotech.com/index.php/home/index/down.html, 特别好用。直接模拟arm。我的云盘里有其可执行程序。 (这个需要 5G 的根目录空间,不推荐,太大了,这个是linux上运行,不是模拟器内运行。)

2、http://www.shashlik.io/, 这个也不错。 如何使用: https://www.howtoforge.com/tutorial/how-to-install-and-run-android-apk-on-linux-with-shashlik/ ,如下是使用方法的描述:

After Shashlik is installed, visit an APK database and download the application that you want to run with Shashlik. Then open a terminal on the location of the downloaded APKs and type the following command to install it to your system: “/opt/shashlik/bin/shashlik-install name_of_apk_file”. As an example, I installed the Viber apk as shown in the following screenshot:

Next step is to run the APK by typing the following command on the same terminal session: “/opt/shashlik/bin/shashlik-run name_of_splash_png name_of_apk_file”. One important thing to note at this point is that during the installation, Shashlik has created and stored some required files in /.local/share/shashlik. Those files include the splash png image file and the userdata.img. Upon launching an APK, Shashlik looks for the file you have indicated in the command. So, if there is a splash.png corresponding to an application named test.apk, the command becomes: “/opt/shashlik/bin/shashlik-run splash test.apk”. Here's how I did it for Viber。

To make things simpler, I should point out that the APKs are installed in our system with the command I showed previously, so if you look for them in the applications menu/dash you should find them and run them with a simple click. This however, may not work well for all apps, but if it does it's quite handy. Whatever the case, you should know how to run it from the terminal in order to get the insight needed to solve any issues.

As there is currently no uninstall function implemented, you can manually remove the binaries installed by Shashlik by navigating to /.local/share/applications and deleting the corresponding files. This should remove them from your applications menu.

  Landscape Tip

As the software hasn't even reached its first stable version, you can't fiddle with any options that could be critical to the user experience with certain apps. The case of setting the emulator to the landscape screen mode is a usual one, so here's how to do it. Open your file manager as administrator and navigate to /opt/shashlik/bin and open “shashlik.run with your favorite text editor. Then locate the “-noskin” argument and replace it with “-skin 480x320” or any other resolution in the standard ratios.

  Conclusion

Shashlik may be unstable and not very powerful just yet, but the fact that it is very simple to use doesn't go unnoticed and unappreciated. With time, I am sure that it will become even leaner and even more successful in regards to how many apps it can run. People report demanding 3D games running well on Shashlik which is indicative of what the software can already do. Have fun testing Android apps on Linux, and good luck running them!

3、‌Anbox, 也不错。

网上介绍共计三种模拟器比较常用,分别是bluestacks、andy和Genymotion,前者支持ARM架构,中者支持远程控制,后者启动速度快,各有优缺点。

如果要用genymotion模拟arm的话,还是放弃吧,直接用bluestacks。

houdini 是intel 研发的ARM binary translator

解决Android x86 系统的兼容性问题
可以安装各种安卓中文输入法,允许各种安卓游戏,号称可以兼容90%以上的安卓应用!
关键词:Android x86中文输入法应用兼容性。
在玩Android x86 系统的时候,很多童鞋们都发现没有什么应用可以用,连中文输入法都找不到。然而4.0 rc2 系统发布时,也同时有了传说中的arm Translator,从此Android x86可以运行各种各样的arm应用了!
向arm Translator的原作者致敬。本人是在如下这个链接学到的http://www.charlesmaggs.com/home/vocation/links/linux-resources-current/embedded-linux/android
arm Translator的安装很简单,只要下载两个文件和一个文件夹复制到安卓x86系统的/system/lib下就好了。安装需求:Android x86 4.0
文件1:http://www.buildroid.org/Download/libhoudini.so
文件2:http://www.buildroid.org/Download/libdvm_houdini.so
文件夹:http://www.buildroid.org/Download/houdini_armlibs.tgz
将最后一个链接的文件下载下来后,解压缩得到一大堆文件,新建个文件夹叫做arm把这些文件放进去,然后把前两个文件,和这个名叫arm的文件夹一起复制到Android x86 4.0的 /system/lib目录下,修改好权限,即可享用各种arm应用啦。
注意!最后一个链接下载得到的文件如果用winrar解压,只能得到一个文件。请把这个文件的扩展名手工改成.tar,再解压一次,即可得到45个小文件,这样才是我们要的。

(附:这些文件在我的云盘里,目录名叫:work/android/ARM translate(ARM翻译器)

免责声明:文章转载自《让x86的android模拟器能模拟arm架构系统》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Win2003 播放 wmv、WebCast视频 的解决方法C# 测试代码#if DEBUG使用下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Android Studio 3.0.1 版本包下载

Android Studio 3.0.1 发布了,这是对 Android Studio 3.0 的一个小的更新,包括一般错误修复和性能改进 下载地址: Windows 64 位:https://dl.google.com/dl/android/studio/ide-zips/3.0.1.0/android-studio-ide-171.4443003-w...

安卓系统中各镜像介绍

背景 对于安卓开发而言,了解各镜像的意义、内容以及如何制作,有极大的意义。 注意,ROM中的5个镜像文件的扩展名都是img,但其格式却不同,也就是说不能使用同一种方法对其进行格式解析。 系统镜像(System.img) 系统镜像用于存储Android系统的核心文件,将其解压出来,就是设备中/system目录,里面包含了Android系统主要的目录和文件。一...

MonkeyRunner (一)

monkeyrunner The monkeyrunner tool provides an API for writing programs that control an Android device or emulator from outside of Android code. With monkeyrunner, you can write a...

用adb命令组装PowerShell实用小工具——Android测试小助手

[本文出自天外归云的博客园] 简介 APP性能测试一般对以下几个方面进行测试: 1.启动时间(可以通过本工具测试); 2.CPU的占用(可以通过本工具测试); 3.内存的占用(可以通过本工具测试); 4.流量的耗用(可以通过本工具测试); 5.电量的耗用(用户实际使用中感知即可)。 除了可以做以上这几个专项测试外,本工具还能进行monkey测试等等。 可...

Winfrom 简单的安卓手机屏幕获取和安卓简单操作

为啥我要做这个东西了,是因为经常要用投影演示app ,现在有很多这样的软件可以把手机界面投到电脑上 ,但都要安装,比如说360的手机助手,我又讨厌安装,于是就自己捣鼓了下 做了这个东西,   实现了以下简单功能      1、屏幕获取(因为是截图方式获取的,所以有点卡顿)    2、实现点击功能,并在点击的时候出现一个手势图标,方便用户观看     3、实...

Android学习笔记主题(Theme)资源文件

安卓的主题资源文件,可以用于对Android应用的美化。 styles文件是主题资源文件。定义一个主题资源格式如下: <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Ligh...