Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android上的security-Process.execute()_Android_Security_Process_Execute - Fatal编程技术网

android上的security-Process.execute()

android上的security-Process.execute(),android,security,process,execute,Android,Security,Process,Execute,假设我已经在我的resources/raw目录中编译了linux exe文件。 我可以使用Process.execute(“/resources/raw/filename”)执行它吗?或者我必须拥有特殊权限(如ROOT或smth)?首先,您是如何编译可执行文件的?我希望您使用了交叉编译器 是的,您可以执行应用程序…不需要特殊权限 我还没有尝试过那种方法(Process.execute()),但我可以确认Runtime.getRuntime().exec(“/path/a.out”)工作…) 当您

假设我已经在我的resources/raw目录中编译了linux exe文件。
我可以使用Process.execute(“/resources/raw/filename”)执行它吗?或者我必须拥有特殊权限(如ROOT或smth)?

首先,您是如何编译可执行文件的?我希望您使用了交叉编译器

是的,您可以执行应用程序…不需要特殊权限

我还没有尝试过那种方法(
Process.execute()
),但我可以确认
Runtime.getRuntime().exec(“/path/a.out”)工作…)


当您执行它时,应用程序将具有与您的应用程序相同的特权级别(非root)…除非您将设备根化。

我的意思当然是“Runtime.getRuntime().exec”。可以使用adb和push文件,并根据需要设置其模式(通过chmod)。是否可以设置必要的权限或更改所有者或组以允许其读取/dev/graphics/fb0 f.e.?嗯,是的,但这仅适用于您的模拟器…在设备上,您不能(…再次,除非其根目录)