Loading src/Helpers/Build.php +3 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,9 @@ // - builds/CURRENT_ZIP_FILE.zip.prop ( which must exist ) $this->buildProp = explode( "\n", @file_get_contents($this->getPropFilePath())); // Try to fetch build.prop values. In some cases, we can provide a fallback, in other a null value will be given if(!file_exists($this->filePath.'.prop')) { file_put_contents($this->filePath . '.prop', implode("\n", $this->buildProp)); } $this->timestamp = intval( $this->getBuildPropValue( 'ro.build.date.utc' ) ?? filemtime($this->filePath) ); $this->incremental = $this->getBuildPropValue( 'ro.build.version.incremental' ) ?? ''; $this->apiLevel = $this->getBuildPropValue( 'ro.build.version.sdk' ) ?? ''; Loading Loading
src/Helpers/Build.php +3 −0 Original line number Diff line number Diff line Loading @@ -81,6 +81,9 @@ // - builds/CURRENT_ZIP_FILE.zip.prop ( which must exist ) $this->buildProp = explode( "\n", @file_get_contents($this->getPropFilePath())); // Try to fetch build.prop values. In some cases, we can provide a fallback, in other a null value will be given if(!file_exists($this->filePath.'.prop')) { file_put_contents($this->filePath . '.prop', implode("\n", $this->buildProp)); } $this->timestamp = intval( $this->getBuildPropValue( 'ro.build.date.utc' ) ?? filemtime($this->filePath) ); $this->incremental = $this->getBuildPropValue( 'ro.build.version.incremental' ) ?? ''; $this->apiLevel = $this->getBuildPropValue( 'ro.build.version.sdk' ) ?? ''; Loading