AnotherTerm-docs

Another Term documentation (wiki replacement)

View this documentation on GitHub View the described project on GitHub GitHub all releases Get it on Google Play Support Project

Installing System V shmem ashmem wrapper for nonrooted Android

Android does not provide the System V shmem calls due to possibility of orphaned memory allocations accumulation. A better organised ashmem mechanism is provided instead. This wrapper library provides shmem calls emulation for dynamically linked software.

Warning: It will not work on Android 10 with Google Play and .redist Another Term flavors.
See https://developer.android.com/about/versions/10/behavior-changes-10#shared-memory

DEPRECATED

Better solution: Installing shared memory APIs emulation for nonrooted Android.

It’s supposed to use a PRooted environment to install it (see Installing Linux under PRoot first).

Script to build it right on your phone (under PRooted Linux and with bash installed):

Copy-paste snippet to download, build and install:

( S=install-chrooted-libandroid-shmem-0.3.sh ; "$TERMSH" copy -f -fu "https://raw.githubusercontent.com/green-green-avk/AnotherTerm-scripts/master/$S" -tp . && chmod 755 $S && ./$S )

Note: It will not be added to your startup scripts automatically:
add /opt/shm/lib/libandroid-shmem.so to the LD_PRELOAD paths where required.