0.4.0 Release Candidate 1
parent
939088676f
commit
5324f5ac2e
@ -0,0 +1,16 @@
|
|||||||
|
package android.os;
|
||||||
|
|
||||||
|
import androidx.annotation.Keep;
|
||||||
|
|
||||||
|
import com.topjohnwu.superuser.ShellUtils;
|
||||||
|
|
||||||
|
@Keep
|
||||||
|
public class SystemProperties {
|
||||||
|
@Keep
|
||||||
|
public static String get(String key) {
|
||||||
|
String prop = ShellUtils.fastCmd("getprop " + key).trim();
|
||||||
|
if (prop.endsWith("\n"))
|
||||||
|
prop = prop.substring(0, prop.length() - 1).trim();
|
||||||
|
return prop;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue