diff --git a/Utility/Android.hs b/Utility/Android.hs index a352faa4e2..05bdc340bb 100644 --- a/Utility/Android.hs +++ b/Utility/Android.hs @@ -10,5 +10,8 @@ module Utility.Android where import Common -- Detect when the Linux build is running on Android, eg in termux. +-- +-- Note that this relies on termux's uname having been built with "Android" +-- as the os name. Often on Android, uname will report "Linux". osAndroid :: IO Bool osAndroid = ("Android" `isPrefixOf` ) <$> readProcess "uname" ["-o"]