Would like to start building a LineageOS ROM for my device - Where to start? And other beginner questions.

Question

Hello everyone!

I'd like to create a LineageOS ROM of the latest version for my smartphone. The latest official supported version of Android is Oreo and the bootloader can be unlocked. The manufacturer hasn't provided the kernel source, as far as I know.

I'm not new to programming, but I am totally new to Android ROM development and I was hoping someone could help me with the following questions:

  • Where do I start, if I to start building from scratch and there is no kernel source or anything else related to my device available except for the stock ROM?

  • From which topics do I need to have knowledge in order to start creating ROMs? Is there any literature you recommend?

  • Are there any up-to-date guides that shows how to set up the environment and how to build the latest version of LineageOS step-by-step that can be followed?

  • Let's say I successfully compiled LineageOS and I'm able to boot the ROM successfully, but something is not working, like the fingerprint reader. Where would I start to fix issues like that?

  • How about an unstable ROM? How would I debug things like this? Does fixing these issues require modifying the LineageOS source? (Where is the line between LineageOS code and device specific code?)

  • Do you have any other tips, or things I should know, in order to get started?

Thank you very much for reading!

Posted Nov 24, 2020, 12:11 PM UTC · edited

8452
Loading comments…