sebaubuntu_libs.libandroid.props

Android build prop library.

Classes

BuildProp

A class representing a build prop.

class sebaubuntu_libs.libandroid.props.BuildProp

A class representing a build prop. This class basically mimics Android props system, with both getprop and setprop commands

classmethod from_file(file: Path)

Create a BuildProp object from a file.

get_prop(key: str, default: str | None = None) str | None
get_prop_bool(key: str, default: bool = False) bool
get_prop_float(key: str, default: float = 0.0) float
get_prop_int(key: str, default: int = 0) int
get_readable_list(excluded_props: List[str] = [])
import_props(file: Path | BuildProp)
set_prop(key: str, value: str)
write_to_file(path: Path, excluded_props: List[str] = [])

Modules

utils