Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e4d359a authored by Akhil's avatar Akhil 🙂
Browse files

Added build prop save after build prop get

parent 1f230c38
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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' ) ?? '';