Android::_distro PHP Method

_distro() protected method

Distribution
protected _distro ( ) : void
return void
    protected function _distro()
    {
        $buf = "";
        if (CommonFunctions::rfts('/system/build.prop', $lines, 0, 4096, false) && preg_match('/^ro\\.build\\.version\\.release=([^\\n]+)/m', $lines, $ar_buf)) {
            $buf = trim($ar_buf[1]);
        }
        if (is_null($buf) || $buf == "") {
            $this->sys->setDistribution('Android');
        } else {
            if (preg_match('/^(\\d+\\.\\d+)/', $buf, $ver) && ($list = @parse_ini_file(APP_ROOT . "/data/osnames.ini", true)) && isset($list['Android'][$ver[1]])) {
                $buf .= ' ' . $list['Android'][$ver[1]];
            }
            $this->sys->setDistribution('Android ' . $buf);
        }
        $this->sys->setDistributionIcon('Android.png');
    }