static public boolean isAndroidOS ( ) { String osname = OptionHelper . getSystemProperty ( "os.name" ) ; String root = OptionHelper . getEnv ( "ANDROID_ROOT" ) ; String data = OptionHelper . getEnv ( "ANDROID_DATA" ) ; return osname != null && osname . contains ( "Linux" ) && root != null && root . contains ( "/system" ) && data != null && data . contains ( "/data" ) ; }
Heuristically determines whether the current OS is Android