Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
12
third-party/vendor/android-properties/examples/property_refresh.rs
vendored
Normal file
12
third-party/vendor/android-properties/examples/property_refresh.rs
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use android_properties::{setprop, AndroidProperty};
|
||||
|
||||
const HELLO_WORLD_PROPERTY: &str = "hello.world";
|
||||
|
||||
fn main() {
|
||||
setprop(HELLO_WORLD_PROPERTY, "initial value").expect("Cannot set android property");
|
||||
let hello_world = AndroidProperty::new(HELLO_WORLD_PROPERTY);
|
||||
println!("Initial property: {}", hello_world);
|
||||
|
||||
setprop(HELLO_WORLD_PROPERTY, "refreshed value").expect("Cannot set android property");
|
||||
println!("Refreshed property: {}", hello_world);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue