2 releases
0.1.1 | Jul 7, 2024 |
---|---|
0.1.0 | Jul 7, 2024 |
#34 in #dump
33 downloads per month
15KB
dumpsys-rs
dumpsys-rs
is a Rust library for retrieving and dumping service information in an Android system. It provides a convenient way to fetch detailed status information from different system services, similar to the dumpsys
command in the Android shell.
Features
- Retrieve handles for Android system services.
- Perform dump operations on services to obtain detailed system state information.
Usage
- Initialize the
Dumpsys
struct with the desired service name. - Use the
dump
method with a list of arguments to get the service dump information.
Example
use dumpsys_rs::{Dumpsys, error::Error};
/* equals to dumpsys SurfaceFlinger --latency */
let result: Result<String, Error> = Dumpsys::new("SurfaceFlinger")
.unwrap()
.dump(&["--latency"]);
License
dumpsys-rs
is licensed under GNU General Public License v3.0 only
.
Dependencies
~2–10MB
~113K SLoC