We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbeb1ef commit b5cf57bCopy full SHA for b5cf57b
lib/xy.h
@@ -1284,13 +1284,14 @@ xy_detect_os ()
1284
}
1285
1286
1287
- char *android_env = getenv ("ANDROID_ROOT");
1288
- if (android_env == "/system")
1289
- {
1290
- xy.on_linux = true;
1291
- xy.on_android = true;
1292
- return;
1293
- }
+ // REF: https://android.googlesource.com/platform/system/core/+/refs/heads/main/rootdir/init.environ.rc.in
+ char *android_env = getenv ("ANDROID_ROOT");
+ if (xy_str_find (android_env, "/system").found)
+ {
+ xy.on_linux = true;
+ xy.on_android = true;
+ return;
1294
+ }
1295
1296
/* 判断 macOS */
1297
DIR *d = opendir ("/System/Applications");
0 commit comments