• Stars
    star
    181
  • Rank 205,515 (Top 5 %)
  • Language
    C
  • License
    BSD 3-Clause "New...
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

System V shared memory emulation on Android, using ashmem. That includes shmget, shmat, shmdt and shmctl functions.

android-shmem

System V shared memory emulation on Android, using ashmem. That includes shmget, shmat, shmdt and shmctl functions. It does not use Binder service, and does not link to Java libraries. It uses Linux sendmsg/recvmsg API instead to transfer file handlers.

Before compiling it, run

git submodule update --init libancillary

To use in Android add the android-shmem folder to your jni/ directory and add

LOCAL_SHARED_LIBRARIES += android-shmem

to any Android.mk module file using the android-shmem library. Add include $(call all-subdir-makefiles) to the jni/Android.mk so that it builds the android-shmem module unless you already specify that explicitly in some other way.

Also, you will need to add the following to your CFLAGS:

-D_LINUX_IPC_H -Dipc_perm=debian_ipc_perm

if you link to this library from Android code.

The most obvious reasons to use this lib is to speed up Linux GUI applications, connected to XServer on Android - it will work for both Xtightvnc Xserver inside Linux chroot, and for standalone Xserver, which can be downloaded here: https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/

To use it inside Linux chroot installed on Android, do

env LD_PRELOAD="/path/to/libandroid-shmem-gnueabihf.so" linux_command

The shared memory segments it creates will be automatically destroyed when an owner process destroys them or dies, however Xserver and it's clients do not depend on that functionality.

More Repositories

1

android-keyboard-gadget

Convert your Android device into USB keyboard/mouse, control your PC from your Android device remotely, including BIOS/bootloader.
C
1,200
star
2

debian-noroot

Debian running on Android, without rooting your phone
C
355
star
3

xserver-xsdl

XSDL - X.Org server ported to Android using SDL.
C
284
star
4

android-print-plugin-cups

CUPS print plugin for Android
Java
91
star
5

openttd-android

OpenTTD for Android
C++
75
star
6

wget-android

Wget ported to Android
C
61
star
7

pulseaudio-android

PulseAudio server for Android, built as user-land executable, using NDK
C
55
star
8

screen-dimmer-pixel-filter

Android screen dimmer, which disables individual pixels, for AMOLED screens
Java
52
star
9

libiconv-libicu-android

Port of libiconv and libicu to Android
Shell
30
star
10

BasiliskII-android

Android port of BasiliskII MacOs emulator: http://basilisk.cebix.net/
C++
16
star
11

openttd-touch-webapp

OpenTTD webapp with touch interface
HTML
11
star
12

AndroidInputEventsLogger

Simple Android app to show events from gamepad, mouse, stylus etc.
Java
9
star
13

busybox-android

Scripts to build busybox for Android-x86, taken from http://danilogiulianelli.blogspot.com/
Shell
8
star
14

libancillary

Clone of git://gitorious.org/libancillary/libancillary.git
C
5
star
15

newgrf-giant-cats

Giant Cats to place on your OpenTTD map
Python
4
star
16

openarena-vm

http://code.google.com/p/oax/ fork - the OpenArena non-engine code
C
4
star
17

xsdl-launcher-example

Example how to launch XSDL Android app and retrieve display number
Java
3
star
18

kaios-keycodes

App to print key codes and names on KaiOS
JavaScript
3
star
19

dpmaster-udp-hole-punching

Master server for OpenArena Android port, with UDP hole punching capabilities
C
1
star
20

gtkradiant-openarena-setup

A script to download and install GTKRadiant, and configure it for OpenArena
Shell
1
star
21

kdeconnect-android

Fork of https://projects.kde.org/projects/extragear/network/kdeconnect-android/repository
Java
1
star
22

webpage-libsdl-android.sf.net

libsdl-android.sf.net webpage
HTML
1
star
23

mpd-android

Music Player Daemon binary for Android
C++
1
star
24

s-planner-killer

Hide notifications from Samsung S Planner calendar app, because it cannot be disabled in any other way
Java
1
star
25

slay-radio-live-shows-feed

iCal and RSS feeds for SLAYRadio live shows http://www.slayradio.org/home.php#schedule
Shell
1
star