Often enough for those android devices you already have the sources for most components but only compatible with some age old android kernel and it's "just" porting it and poking around. LLMs are quite good at this.