Loading src/Helpers/Build.php +5 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,11 @@ // Try to load the build.prop from two possible paths: // - builds/CURRENT_ZIP_FILE.zip/system/build.prop // - builds/CURRENT_ZIP_FILE.zip.prop ( which must exist ) $this->buildProp = explode( "\n", @file_get_contents($this->getPropFilePath())); $prop_contents = @file_get_contents($this->getPropFilePath()); if(!file_exists($this->filePath.'.prop')) { file_put_contents($this->filePath . 'prop', $prop_contents) } $this->buildProp = explode( "\n", $prop_contents); // Try to fetch build.prop values. In some cases, we can provide a fallback, in other a null value will be given $this->timestamp = intval( $this->getBuildPropValue( 'ro.build.date.utc' ) ?? filemtime($this->filePath) ); $this->incremental = $this->getBuildPropValue( 'ro.build.version.incremental' ) ?? ''; Loading Loading
src/Helpers/Build.php +5 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,11 @@ // Try to load the build.prop from two possible paths: // - builds/CURRENT_ZIP_FILE.zip/system/build.prop // - builds/CURRENT_ZIP_FILE.zip.prop ( which must exist ) $this->buildProp = explode( "\n", @file_get_contents($this->getPropFilePath())); $prop_contents = @file_get_contents($this->getPropFilePath()); if(!file_exists($this->filePath.'.prop')) { file_put_contents($this->filePath . 'prop', $prop_contents) } $this->buildProp = explode( "\n", $prop_contents); // Try to fetch build.prop values. In some cases, we can provide a fallback, in other a null value will be given $this->timestamp = intval( $this->getBuildPropValue( 'ro.build.date.utc' ) ?? filemtime($this->filePath) ); $this->incremental = $this->getBuildPropValue( 'ro.build.version.incremental' ) ?? ''; Loading