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

Commit 2b8cf31a authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

fixup! move getSystemProperty() to Telemetry.kt and delete Utils.kt

parent c1bfc288
Loading
Loading
Loading
Loading
+0 −19
Original line number Diff line number Diff line
package foundation.e.lib.telemetry

import android.annotation.SuppressLint

object Utils {

    @SuppressLint("PrivateApi")
    fun getSystemProperty(key: String?): String? {
        var value: String? = null
        try {
            value = Class.forName("android.os.SystemProperties")
                .getMethod("get", String::class.java).invoke(null, key) as String
        } catch (e: Exception) {
            e.printStackTrace()
        }
        return value
    }

}
 No newline at end of file