Skip to main content
Bumped by Community user
Tweeted twitter.com/StackAndroid/status/1445041089178656768
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
xuwenbuwer
  • 139
  • 1
  • 6
Source Link
xuwenbuwer
  • 139
  • 1
  • 6

Can I run a Linux executable on Android?

I wondered if it is possible to run a Linux executable on Android so I made a simple console application in Code::Blocks in C++ (I am using Ubuntu Linux), built it in release mode and copied it into a virtual device in GenyMotion (because I don't have a real x86 Android device).

I installed the app called material terminal on the virtual device and moved the executable into /data/local/tmp.

I gave it execute permissions by typing: chmod 777 hwrel.

Then I tried to run it by typing ./hwrel ,but it said sh: ./hwrel: no such file or directory.

Is it even possible to run Linux executables on Android?