Loading src/Helpers/Build.php +9 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ $this->model = $this->getBuildPropValue( 'ro.lineage.device' ) ?? $this->getBuildPropValue( 'ro.cm.device' ) ?? ( $tokens[1] == 'cm' ? $tokens[6] : $tokens[5] ); $this->version = $tokens[2]; $this->displayVersion = $this->getBuildPropValue( 'ro.cm.display.version' ) ?? $this->getBuildPropValue( 'ro.lineage.display.version' ) ?? ''; $this->androidVersion = $this->getBuildPropValue( 'ro.build.version.release' ) ?? ''; $this->uid = hash( 'sha256', $this->timestamp.$this->model.$this->apiLevel, false ); $this->size = filesize($this->filePath); Loading Loading @@ -256,6 +257,14 @@ return $this->displayVersion; } /** * Get the Android version of the current build * @return string the Android version value */ public function getAndroidVersion() { return $this->androidVersion; } /* Utility / Internal */ /** Loading src/Helpers/Builds.php +1 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ 'datetime' => $build->getTimestamp(), 'version' => $build->getVersion(), 'display_version' => $build->getDisplayVersion(), 'android_version' => $build->getAndroidVersion(), 'id' => $build->getUid(), 'size' => $build->getSize(), )); Loading Loading
src/Helpers/Build.php +9 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,7 @@ $this->model = $this->getBuildPropValue( 'ro.lineage.device' ) ?? $this->getBuildPropValue( 'ro.cm.device' ) ?? ( $tokens[1] == 'cm' ? $tokens[6] : $tokens[5] ); $this->version = $tokens[2]; $this->displayVersion = $this->getBuildPropValue( 'ro.cm.display.version' ) ?? $this->getBuildPropValue( 'ro.lineage.display.version' ) ?? ''; $this->androidVersion = $this->getBuildPropValue( 'ro.build.version.release' ) ?? ''; $this->uid = hash( 'sha256', $this->timestamp.$this->model.$this->apiLevel, false ); $this->size = filesize($this->filePath); Loading Loading @@ -256,6 +257,14 @@ return $this->displayVersion; } /** * Get the Android version of the current build * @return string the Android version value */ public function getAndroidVersion() { return $this->androidVersion; } /* Utility / Internal */ /** Loading
src/Helpers/Builds.php +1 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ 'datetime' => $build->getTimestamp(), 'version' => $build->getVersion(), 'display_version' => $build->getDisplayVersion(), 'android_version' => $build->getAndroidVersion(), 'id' => $build->getUid(), 'size' => $build->getSize(), )); Loading