Thursday, August 4, 2016

Error running self compiled binary on Android

Hello all,

I am having issues running a self-compiled program compiled by ARM cross compiler (Linaro) on Android device. Here is the file info of my program: :~/Android/Test$ file hello3 hello3: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.7.0, BuildID[sha1]=3e1cddb8843bcaf8a1eb9777b4ebfdeb75d35501, not stripped

After I push this executable into Android within /System/bin and try to run it I get the following error: ./hello3 /system/bin/sh: ./hello3: No such file or directory

I am not sure why this file is not being detected.

The file has the proper permissions for an executable: :/system/bin # ls -l hello3 -rwxr-xr-x root shell 12656 2016-07-31 16:54 hello3

I pulled an executable off the device to see if there is any major difference between the one I compiled and the one that came already on the device:

ping: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[md5/uuid]=ee42915f4738b3dd4324aefb73835a0d, stripped

They both are ARM 64-bit executables so I'm not sure what is the variance that keeps mine from executing on the device.

I am not sure why this is happening?


from xda-developers http://ift.tt/2akykE1
via IFTTT

No comments:

Post a Comment