dumpsys-rs

Crates.iodumpsys-rs
lib.rsdumpsys-rs
version0.1.1
sourcesrc
created_at2024-07-07 06:49:09.514956
updated_at2024-07-07 06:53:10.67566
description`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.
homepage
repositoryhttps://github.com/shadow3aaa/dumpsys-rs
max_upload_size
id1294597
size39,624
(shadow3aaa)

documentation

README

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

  1. Initialize the Dumpsys struct with the desired service name.
  2. 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.

Commit count: 9

cargo fmt