liblineage.wiki.device_data
Classes
|
LineageOS wiki device data. |
- class liblineage.wiki.device_data.DeviceData(architecture: str | ArchitectureData, battery: BatteryData | Dict[str, BatteryData] | None, bluetooth: BluetoothData | None, codename: str, cpu: str, cpu_cores: int | str, cpu_freq: str, current_branch: float, dimensions: DimensionData | Dict[str, DimensionData] | None, gpu: str, image: str, install_method: str, kernel: KernelData | None, maintainers: List[str], name: str, network: List[str] | Dict[str, List[str]] | None, peripherals: List[str] | Dict[str, List[str]] | None, release: date | Dict[str, date], screen: ScreenData | Dict[str, ScreenData] | None, soc: str | List[str] | None, tree: str, type: str, vendor: str, vendor_short: str, versions: List[float], wifi: str, before_install: str | None = None, before_lineage_install: str | None = None, before_recovery_install: str | None = None, cameras: Sequence[CameraData] | None = None, carrier: str | None = None, custom_recovery_codename: str | None = None, custom_recovery_link: str | None = None, custom_unlock_cmd: str | None = None, download_boot: str | None = None, format_on_upgrade: bool | None = None, has_recovery_partition: bool | None = None, is_ab_device: bool | None = None, is_unlockable: bool | None = None, models: List[str] | None = None, recovery_boot: str | None = None, required_bootloader: List[str] | None = None, sdcard: SdcardData | None = None, uses_twrp: Literal[True] | None = None)
LineageOS wiki device data.
Attributes: - architecture: The architecture of the device - battery: Battery info - bluetooth: Bluetooth support info - codename: The codename of the device - cpu: CPU name - cpu_cores: Number of CPU cores - cpu_freq: CPU frequency - current_branch: The current branch of the device - dimensions: Dimensions of the device - gpu: GPU name - image: The image of the device - install_method: The install method of the device - kernel: Kernel info - maintainers: The maintainers of the device - name: Commercial name of the device - network: The network of the device - peripherals: Peripherals supported by the device - release: The release date of the device - screen: Screen info - soc: The SoC of the device - tree: Device tree repository of the device - type: The form factor of the device - vendor: Brand name of the device vendor - vendor_short: Short name of the device vendor - versions: The versions of the device - wifi: The supported Wi-Fi bands of the device
Optional attributes: - before_install: The before_install script for the device - before_lineage_install: The before_lineage_install script for the device - before_recovery_install: The before_recovery_install script for the device - cameras: The cameras of the device - carrier: The carrier of the device - custom_recovery_codename: The custom recovery codename of the device - custom_recovery_link: The custom recovery link of the device - custom_unlock_cmd: The custom unlock command of the device - download_boot: The download boot of the device - format_on_upgrade: Whether to format on upgrade - has_recovery_partition: Whether the device has a recovery partition - is_ab_device: Whether the device is an A/B device - is_unlockable: Whether the device is unlockable - models: The models of the device - recovery_boot: The recovery boot of the device - required_bootloader: The required bootloader of the device - sdcard: The SD card info of the device - uses_twrp: Whether the device uses TWRP
- __init__(architecture: str | ArchitectureData, battery: BatteryData | Dict[str, BatteryData] | None, bluetooth: BluetoothData | None, codename: str, cpu: str, cpu_cores: int | str, cpu_freq: str, current_branch: float, dimensions: DimensionData | Dict[str, DimensionData] | None, gpu: str, image: str, install_method: str, kernel: KernelData | None, maintainers: List[str], name: str, network: List[str] | Dict[str, List[str]] | None, peripherals: List[str] | Dict[str, List[str]] | None, release: date | Dict[str, date], screen: ScreenData | Dict[str, ScreenData] | None, soc: str | List[str] | None, tree: str, type: str, vendor: str, vendor_short: str, versions: List[float], wifi: str, before_install: str | None = None, before_lineage_install: str | None = None, before_recovery_install: str | None = None, cameras: Sequence[CameraData] | None = None, carrier: str | None = None, custom_recovery_codename: str | None = None, custom_recovery_link: str | None = None, custom_unlock_cmd: str | None = None, download_boot: str | None = None, format_on_upgrade: bool | None = None, has_recovery_partition: bool | None = None, is_ab_device: bool | None = None, is_unlockable: bool | None = None, models: List[str] | None = None, recovery_boot: str | None = None, required_bootloader: List[str] | None = None, sdcard: SdcardData | None = None, uses_twrp: Literal[True] | None = None)
Initialize the device information.
- static _print_data(data: Any | List[Any] | List[Dict[str, Any]] | None) str
Return a string representation of the data.
- classmethod get_device_data(device: str) DeviceData