开发者

security - Process.execute() on android

开发者 https://www.devze.com 2023-01-15 21:10 出处:网络
Given i have compiled linux exe file in my resources/raw directory. Can i execute it using Process.execute(\"./resources/raw/f开发者_JAVA百科ilename\") or i have to have special permissions (like ROOT

Given i have compiled linux exe file in my resources/raw directory. Can i execute it using Process.execute("./resources/raw/f开发者_JAVA百科ilename") or i have to have special permissions (like ROOT or smth) ?


Firstly, How did you compile the executable? I hope you've used a Cross-Compiler.

And Yes, you can execute applications...No special rights required.

I haven't tried that method, (Process.execute()) But i can Confirm Runtime.getRuntime().exec("/path/a.out"); works.... :)

When you execute it, the application will have the same privilege level as your application (non-root)...unless you rooted the device.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号