Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for LineageOS recovery (if possible) #210

Open
MagicLike opened this issue Jul 31, 2023 · 7 comments
Open

Add support for LineageOS recovery (if possible) #210

MagicLike opened this issue Jul 31, 2023 · 7 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@MagicLike
Copy link
Member

Is your feature request related to a problem? Please describe.
Some devices supported by LineageOS have no TWRP support.

Describe the solution you'd like
If it is possible add scripting for LineageOS recovery to OAI (related to the OrangeFox support #188 )

@tsterbak
Copy link
Member

tsterbak commented Aug 4, 2023

Yes, this is in my head for some time (and actually the installer started with only LineageOS recovery). Thanks for adding it to the issues!

Yet, I haven't figured out how to do the scripting in the LOS recovery, I have to find some time to dig in the source code of the recovery. Of course, there might be the option to use the LOS recovery without scripting, and people pressing buttons on the device screen. I thought about a "simple lineage os" mode, where you just can install official lineage OS images with the official lineage os recovery. But I'm not sure about this way. What do you think?

@tsterbak tsterbak added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Aug 4, 2023
@freechelmi
Copy link
Contributor

I add a quick look when I discovered OAI because I wanted t script with eOS recovery which is based on LOS recovery -> I could not find similar scripting support to TWRP but I might be wrong

@anon1892
Copy link
Member

anon1892 commented Aug 4, 2023

I start to take a look on it, here what I found :

This issue is similar to #73 .

@tsterbak
Copy link
Member

tsterbak commented Aug 4, 2023

But according to this, there are workarounds : https://android.stackexchange.com/questions/240997/lineageos-recovery-command-line-interface
Additionally, we can use fastboot commands to erase partitions.

These are both more dangerous than going through a recovery. Thats part of why they exist. You could also just write all required files to the right partitions directly from fastboot (like the google pixel scripts by google or the graphenos is installer is doing it). But for that you need to know way more about the devices and everything needs to work well or it breaks...

@anon1892
Copy link
Member

anon1892 commented Aug 4, 2023

Ok, so... not a good idea. So maybe we should create a step by step install process specifically for LOS recovery ?
As far I know, it's the last solution we have.

@RaptaG
Copy link
Contributor

RaptaG commented Jun 7, 2024

I believe it would be really useful to support each ROMs own recovery, if possible
edit: nvm this is #73

@anon1892
Copy link
Member

anon1892 commented Jun 7, 2024

There are only a few different recoveries :

  • TWRP
  • OrangeFox
  • LineageOS recovery, and all recoveries that are just rebranded (like /e/OS, evolutionX, ...)
  • Some other stuff like Sky Hawk, Pitch Black, but I think they can be ignored for now, unless there are phones supported by these recoveries but not TWRP/OFox.

The main point with LineageOS recovery is that it does not support scripting, so user have to follow some steps manually (factory reset & sideload). But it shouldn't be hard to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants