Skip to content
/ liblk Public

Tiny and simple library to tinker with MediaTek bootloader images (LK).

License

Notifications You must be signed in to change notification settings

R0rt1z2/liblk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liblk

License GitHub Issues

liblk is a simple and tiny python library for manipulating LK (Little Kernel) images. It's flexible and has an easy-to-use API. The library requires Python 3.11 or higher.

Installation

sudo apt install python3-pip # If you don't have pip installed.
pip3 install --upgrade git+https://github.com/R0rt1z2/liblk

Examples

The folder examples contains a set of examples that aim to show how to use the library and highlight its features.

Quick Start

The library is very simple to use. You can use it to dump the information of an LK image. For example, to get details of all the partitions in the LK image, you can use the following code:

import sys
from liblk.LkImage import LkImage

def main():
    lk_image = LkImage(sys.argv[1])
    partitions = lk_image.get_partition_list()

    for partition in partitions:
        print(str(partition))

if __name__ == "__main__":
    main()

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

About

Tiny and simple library to tinker with MediaTek bootloader images (LK).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages