讓x86的android模擬器能模擬arm架構系統


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翻譯器)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM