首页 > 解决方案 > 如何在 adb shell 中运行 C 程序?

问题描述

因此adb shell,当它连接到计算机时,将一个 linux 终端连接到 Android 手机。可以在安卓手机中运行所有标准的 linux 命令,ls并使用.catadb shell

现在我想知道,是否可以像在 linux 上那样在 android 手机中使用 C/C++ 编译器clanggcc编译和执行 C/C++ 程序?我不是在这里谈论 android 应用程序开发,我的意思是用于 android 的 linux 命令行 C/C++ 程序。另外,我可以像在 linux 上那样在 android 中使用 C 标准库和 linux 系统调用(例如fork(), exec(), kill(), 和使用文件描述符)adb shell吗?

标签: androidcadb

解决方案


推荐阅读