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

Commit 0d5e154e authored by Joel Galenson's avatar Joel Galenson
Browse files

Migrate to the librustutils system property bindings.

Bug: 182498247
Test: Build
Change-Id: I6767e304f5771ab1bb8efbfa8e52377c4c48556f
parent c3e93c66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ rust_library {
        android: {
            rustlibs: [
                "libandroid_logger",
                "libsystem_properties-rust",
                "librustutils",
            ],
            shared_libs: [
                "libcutils",
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
/// Gets the value of a system property on Android
#[cfg(target_os = "android")]
pub fn get(name: &str) -> Option<String> {
    system_properties::read(name).ok()
    rustutils::system_properties::read(name).ok()
}

/// Fake getter for non-Android, which will always return nothing.