diff -uNr openssh-portable-V_9_5_P1/loginrec.c openssh-portable-V_9_5_P1.mod/loginrec.c
--- openssh-portable-V_9_5_P1/loginrec.c	2023-10-04 07:34:10.000000000 +0300
+++ openssh-portable-V_9_5_P1.mod/loginrec.c	2023-11-23 16:29:34.264542664 +0200
@@ -439,6 +439,9 @@
 int
 login_write(struct logininfo *li)
 {
+#ifdef __ANDROID__
+	return 1;
+#endif
 #ifndef HAVE_CYGWIN
 	if (geteuid() != 0) {
 		logit("Attempt to write login records by non-root user (aborting)");
