meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.09k stars 680 forks source link

Execute /system/bin commands from container #1374

Closed rguca closed 9 months ago

rguca commented 9 months ago

I mounted /system/bin into the container and can see its contents.

root@localhost:/system/bin# ls -l setprop
lrwxr-xr-x. 1 root aid_shell 7 Jan  1  2009 setprop -> toolbox

If I try to execute a command the result is:

root@localhost:/system/bin# ./setprop
-bash: ./setprop: No such file or directory

Any idea how to get it working?

rguca commented 9 months ago

Figured it out. /system/bin/linker64 could not be found. It is a link to /apex/com.android.runtime/bin/linker64.

Fix: Mount /system/apex to /apex in linuxdeploy settings.