From db0d8ca73d2fb0aa6519c68107c7d898bbb564d9 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 9 May 2024 09:00:02 +0800 Subject: [PATCH] Don't report erroneous /content directory on Android 4.3 and earlier * src/androidvfs.c (android_content_opendir): Skip two, not one, elements on Android <= 4.4. (cherry picked from commit 8bc4292673dfc04ce781e242596779809f1a3634) --- src/androidvfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/androidvfs.c b/src/androidvfs.c index 38bec7d349a..c326896d4c3 100644 --- a/src/androidvfs.c +++ b/src/androidvfs.c @@ -2813,7 +2813,7 @@ android_content_opendir (struct android_vnode *vnode) /* Android 4.3 and earlier don't support /content/by-authority. */ if (api < 19) - dir->next_name++; + dir->next_name += 2; /* Link this stream onto the list of all content directory streams. */ -- 2.39.5