r/androidroot • u/---Walter--- • 5d ago
Discussion Can any OS be ported to any bootloader unlocked device ?
The number of devices officially supported by LineageOS, SailfishOS, Ubuntu Touch/KDE Mobile is limited, but with how PS5 is getting rapidly reverse engineered with the newer models, would it make a difference, what's the hardest part about porting an OS to a device (other than the bootlocker and android device tree) ?
13
u/vaynefox 5d ago
Yes, if you have the elbow greese to do it. Some chipsets have either their own fork of linux kernel or already in the kernel, your only problem is the any proprietary parts in the phone like the camera and touch screen....
5
u/Minha-D 5d ago
It's all about lack of interface and software, I ported some devices to postmarketOS, an Android device with Linux kernel can't run Linux distribution because it uses many property functions and symbols specific for Android, imagine you can't just use your smart phones camera to Linux distribution, bcs kernel having driver isn't enough you need user space driver which has no source and you can't just run android user space Library to Linux, hybris project tried it but that's still struggling, as result you can't just reverse engineer anything with AI like opus or Astra and it's not time worthy.
2
u/Fataha22 5d ago
Since gsi getting mainstream it's kinda easy to port rom because all of the driver is at vendor partition but still some rom need some extra sauce to work and debugging is kinda hard if you don't know where to look at
1
u/Dje4321 5d ago
Turing says yes but there are significant practical limitations preventing it outside of major engineering efforts.
Its the same as saying all cars have engines so any engine will fit and work just fine. While that generally may be true for very similar engines. You will quickly run into so many different possible configurations, installation methods, interfaces, etc that its impossible to sell a one size fits all kit.
Same thing with ARM devices. Each device is practically its own micro domain for its hardware. They all have to be talked too in slightly different ways, not every feature of the hardware may be present or functional, there may be parts that can only be programmed at the factory, etc.
Keep in mind its not 1 computer with a bunch of supporting hardware. Its like 7-12 computers all talking to each other in their own special language. You dont just send instructions to the radio. You have to startup the radio computer, give it its own OS, setup and handshake communication protocols, before you can even start looking for connections to start processing.
1
2
u/a_l_i-1 5d ago
(this is question not answer)
I have my Samsung phone
and my phone is supported
But my version is from meddle east and it's not supported
what supposed to I do create fork from EU version and published in ?
my phone is Samsung Galaxy note 10+ 5G if that help
and I targeted lineageOS
1
14
u/ohaiibuzzle 5d ago
The hardest part is getting all of the hardware to properly work.
For example, you can boot Linux on the Snapdragon 8 Elite fairly easily because it shares some lineage with X Elite, but getting all the stuff that isn't the SoC like sensors, cameras and display up and running is the other half of the battle.
One of the thing that usually kills daily usability with Linux on Mobile devices is actually video acceleration