可以在Linux的应用程序在Android中运行? [英] Can Linux apps be run in Android?

查看:130
本文介绍了可以在Linux的应用程序在Android中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的Andr​​oid是基于Linux;可以原生Linux应用程序可以在Android上运行吗?

Android is based on Linux; can native Linux applications be run on Android?

推荐答案

在一般情况下,没有。 Android应用程序通常运行在沙盒类似Java的虚拟机,所以必须用Java或一些语言编译为使用Android的API虚拟机字节code。

In general, no. Android apps generally run in a sandboxed Java-like virtual machine, so have to be written in Java or some language that compiles to virtual-machine bytecode that use the Android API.

但是,虚拟机也运行在底层Linux操作系统之上,并且有一些方法可以调用本地code。请参见 https://developer.android.com/tool​​s/sdk/ndk/index。 HTML

However, the virtual machine does run on top of the underlying Linux OS, and there are ways to call native code. See https://developer.android.com/tools/sdk/ndk/index.html

所以,虽然在技术上可以运行本地Linux程序,因为有一切的下方运行的是Linux内核,大多数用户将无法安装此类应用程序或使用它们。 (如果你有root权限或正在建设自己的固件,然后你可以做任何你想要的。)

So, while it is technically possible to run native Linux programs, as there is a Linux kernel running beneath everything, most users would not be able to install such applications or use them. (If you have root access or are building your own firmware, then you can do whatever you want.)

这篇关于可以在Linux的应用程序在Android中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆