====== std.android.restrictions ====== Android Enterprise Restrictions (MDM-Richtlinien) auslesen. Enterprise-Richtlinien werden vom Mobile Device Management System (MDM/EMM) über den Android Restrictions-Mechanismus gesetzt und können von der App zur Laufzeit abgefragt werden. → [[lyx_-_programmiersprache:units:android|std.android]] · [[lyx_-_programmiersprache:units:android:jni|std.android.jni]] ---- > **Diese Unit stellt derzeit keine aufrufbaren Funktionen bereit.** > Die Android-API liegt in ''libandroid.so'' bzw. ''libGLESv2.so''. Für den Aufruf wären ''DT_NEEDED''-Einträge und PLT-Linking nötig, die der Compiler noch nicht erzeugt. Die Quelldatei hält nur Konstanten und Strukturbeschreibungen vor. Aus dem Kopf der Quelldatei: > Lyx Android Stdlib - Restricted Syscall Catalog WP-AND-04 Bionic / Android SELinux policy denies a fixed set of upstream-Linux syscalls to app processes. This unit exposes their syscall numbers and human-readable names as `pub con` constants so user code can reference them in seccomp filters, audit reports, or static-analysis passes without re-deriving the table. ---- ===== Konstanten ===== ^ Name ^ Typ ^ Wert ^ | ''SYS_AND_FORK_ARM64'' | ''int64'' | ''-1'' | | ''SYS_AND_FORK_X86_64'' | ''int64'' | ''57'' | | ''SYS_AND_VFORK_X86_64'' | ''int64'' | ''58'' | | ''SYS_AND_PERSONALITY'' | ''int64'' | ''92'' | | ''SYS_AND_ACCT'' | ''int64'' | ''89'' | | ''SYS_AND_KEXEC_LOAD'' | ''int64'' | ''104'' | | ''SYS_AND_INIT_MODULE'' | ''int64'' | ''105'' | | ''SYS_AND_DELETE_MODULE'' | ''int64'' | ''106'' | | ''SYS_AND_REBOOT'' | ''int64'' | ''142'' | | ''SYS_AND_SWAPON'' | ''int64'' | ''224'' | | ''SYS_AND_SWAPOFF'' | ''int64'' | ''225'' | | ''SYS_AND_PTRACE'' | ''int64'' | ''117'' | | ''SYS_AND_PROCESS_VM_READV'' | ''int64'' | ''270'' | | ''SYS_AND_PROCESS_VM_WRITEV'' | ''int64'' | ''271'' | | ''SYS_AND_GETRANDOM_ARM64'' | ''int64'' | ''278'' | | ''SYS_AND_GETRANDOM_X86_64'' | ''int64'' | ''318'' | | ''SYS_AND_MEMFD_CREATE_ARM64'' | ''int64'' | ''279'' | | ''SYS_AND_MEMFD_CREATE_X86_64'' | ''int64'' | ''319'' | | ''SYS_AND_PIDFD_OPEN_ARM64'' | ''int64'' | ''434'' | | ''SYS_AND_PIDFD_OPEN_X86_64'' | ''int64'' | ''434'' | | ''SYS_AND_CLONE3_ARM64'' | ''int64'' | ''435'' | | ''SYS_AND_CLONE3_X86_64'' | ''int64'' | ''435'' | | ''ANDROID_API_GETRANDOM'' | ''int64'' | ''23'' | | ''ANDROID_API_MEMFD_CREATE'' | ''int64'' | ''26'' | | ''ANDROID_API_PIDFD_OPEN'' | ''int64'' | ''30'' | | ''ANDROID_API_CLONE3'' | ''int64'' | ''30'' | ---- //Aus ''std/android/restrictions.lyx'' erzeugt (Stand 2026-08-02, lyxc 1.0.21A). Die zuvor hier gelisteten Funktionen existieren in der Unit nicht.//