pelya / android-shmem

System V shared memory emulation on Android, using ashmem. That includes shmget, shmat, shmdt and shmctl functions.
BSD 3-Clause "New" or "Revised" License
200 stars 43 forks source link

How to use this library for chroot? #9

Closed Aloento closed 2 years ago

Aloento commented 6 years ago

I try to used env LD_PRELOAD=“/path/to/libandroid-shmem.so” chroot /rootfs /bin/su -l But he told me, could not find the file or directory. If I only use chroot /rootfs /bin/su -l ,will enter the system. I am sure the library file directory is correct and given permission. @pelya

mgood7123 commented 5 years ago

it needs Android Dynamic Linker in order to be loaded (usually in /system/lib/linker or something)