Android - socket accept function (A/libc: Fatal signal 31 (SIGSYS)) lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- ytkim · 2018-04-07 18:24 I am writing an Android program using indy Component. Since the Android oreo version, the accept function does not work because of security. This can be found at https://android.googlesource.com/platform/bionic. git/+/master/libc/SYSCALLS.TXT. I want to know how to use the accept4 function. Or I want to know how to use server sockets in Android on oreo version. Thank you. tool, laz4Android indy, 10.2.0.3 ---------------------------------------------------------------------- madmai · 2018-04-29 01:52 hi, can explain me how uses indy compnents in laz4droid?, thanks in advance ---------------------------------------------------------------------- Remy Lebeau · 2018-05-04 01:39 Quote from: kim yun-tae on April 07, 2018, 08:24:27 pmI am writing an Android program using indy Component. Since the Android oreo version, the accept function does not work because of security. Are you referring to this? Android 8.0 Behavior Changes | Security QuoteAndroid 8.0 (API level 26) applies a Secure Computing (SECCOMP) filter to all apps. The list of allowed syscalls is restricted to those exposed through bionic. Although there are several other syscalls provided for backwards compatibility, we recommend against their use. Quote from: kim yun-tae on April 07, 2018, 08:24:27 pmThis can be found at https://android.googlesource.com/platform/bionic.git/+/master /libc/SYSCALLS.TXT. accept4() is on that list, and accept() is just a wrapper for accept4(), so it should work.  So what is the actual problem? Quote from: kim yun-tae on April 07, 2018, 08:24:27 pmI want to know how to use the accept4 function. Or I want to know how to use server sockets in Android on oreo version. Are you saying that Indy's TIdTCPServer and TIdSimpleServer components do not work on Android OREO? Quote from: kim yun-tae on April 07, 2018, 08:24:27 pmindy, 10.2.0.3 That is a VERY old version of Indy, and predates any support for Android in Indy.  At the time of this writing, the latest version is 10.6.2.5455.  You really need to upgrade.  Indy 10.6.2 is available in Lazarus' Online Package Manager.