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

Commit ef2469e5 authored by Tom Cherry's avatar Tom Cherry
Browse files

base: fix out of date documentation with PropertySet()

As of Android-P, __system_property_set() is synchronous and only will
return '0' if the property was successfully set.

Test: n/a
Change-Id: Icbc0a6d8be1ae683565f378c534ea8e5c5f25357
parent c76078e4
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -49,9 +49,6 @@ template <typename T> T GetUintProperty(const std::string& key,
                                        T max = std::numeric_limits<T>::max());

// Sets the system property `key` to `value`.
// Note that system property setting is inherently asynchronous so a return value of `true`
// isn't particularly meaningful, and immediately reading back the value won't necessarily
// tell you whether or not your call succeeded. A `false` return value definitely means failure.
bool SetProperty(const std::string& key, const std::string& value);

// Waits for the system property `key` to have the value `expected_value`.