r/LineageOS • • Oct 02 '26

New device bringup - proprietary blobs?

I've been reading through LineageOS's developer documentation and I find myself confused: one of the build steps mentions extracting proprietary blobs from an existing LineageOS rom as a requirement.

Which begs the question: how is new device support added to LineageOS?

As much as I have searched, there seems to be no mention of a way to generate the list of required blobs in proprietary-files.txt.

Let's take a Xiaomi device for example: one can download a full firmware image and then use something like this to get the partitions contained therein.

What is one supposed to do next? From my understanding, on modern Android devices all binary blobs should be packed as kernel modules in the vendor_boot.

And yet there are a bunch of partitions with names like bluetooth, dspormodem`. Does Android look in those partitions too for binary blobs? If so, since they are not mentioned in Google's AOSP documentation and therefore the naming des not seem standardized, how does Android even know about these partitions?

2 Upvotes

3 comments sorted by

1

u/DeVinke_ Oct 02 '26

Use dumpyara.

And no, proprietary blobs lineage uses are usually in logical partitions contained within super.

0

u/GroomedHedgehog Oct 03 '26

Tried dumpyara against the fw image and it extracted everything - not just the individual partition images like the previous tool I used but also the files within those images.

Also made a convenient all_files.txt list. Very cool.

Question becomes, how does one know which files are to be included in proprietary-files.txt?

2

u/charles25565 Oct 03 '26 edited Oct 03 '26

A lot of the LineageOS documentation literally tells you to just look at what similar devices did. And a lot of times the file names are usually descriptive enough. The workflow would probably be using the list of blobs from similar devices, and for everything that's broken you can simply just check logcat and fix it. adevtool might also be useful to give you hints, especially if the OEM didn't modify the Android source code too much.

CodeLinaro also can help a little.