Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が自分のresources/rawディレクトリにlinuxexeファイルをコンパイルしたと仮定します。Process.execute( "./ resources / raw / filename")を使用して実行できますか、それとも特別な権限(ROOTやsmthなど)が必要ですか?
まず、実行可能ファイルをどのようにコンパイルしましたか? クロスコンパイラを使用したことを願っています。
はい、アプリケーションを実行できます...特別な権限は必要ありません。
Process.execute()私Runtime.getRuntime().exec("/path/a.out");はその方法を試したことはありません.
Process.execute()
Runtime.getRuntime().exec("/path/a.out");
実行すると、デバイスをルート化していない限り、アプリケーションはアプリケーション (非ルート) と同じ権限レベルを持ちます。