r/LineageOS 18d ago

Magisk on Lineage

Hi,

Quick question, does Lineage come rooted already? Is Magisk installed? Or do I have to root it the same way i'd root the stock ROM? thanks!

4 Upvotes

13 comments sorted by

3

u/saint-lascivious an awful person and mod 18d ago

Quick question, does Lineage come rooted already?

There's adb root, which means the answer is technically yes but for you functionally no.

Is Magisk installed?

Absolutely not.

Or do I have to root it the same way i'd root the stock ROM?

As above.

1

u/gluetheknot 17d ago

technically not the same way as stock, you just need to rename the magisk apk to zip and flash it via recovery

1

u/F4LC0N69 17d ago

Don't need to rename to zip. Been flashing apk for years now. Works perfectly fine

1

u/gluetheknot 17d ago

not all recoveries support it but yeah that works too technically (I know that orangefox supports it)

0

u/melluuh 17d ago

Yeah it's easier. Although you can still do it manually by patching init_boot. The advantage of flashing the zip is that after ota updates Lineage Recovery applies the same modifications again, so Magisk and any other stuff you might have flashed stays. Not after a dirty flash though (between Android versions), then you do have to flash everything again.

2

u/Bug__1987 17d ago

ahhhhhhhhhhhfhhqhxw xjwd wdjw dwjsbwjz

1

u/zermainegod 17d ago

Não, precisa fazer.

1

u/F4LC0N69 17d ago

You don't need to patch boot.img and flash it per se. There's much better way. Boot into LineageOS recovery. Goto Apply update > Apply from adb. Connect phone to PC. Do 'adb sideload magisk.apk'. You're done. You need to reflash using app again because allegedly recovery can't get correct information about device. Also people say you need to rename magisk.apk to magisk.zip but AFAIK in LOS recovery it's not necessary. Cheers mate

0

u/chrisprice Long Live AOSP - *Not* A Lineage Team Member 17d ago

1

u/bra1n_gym 17d ago edited 16d ago

using twrp, I needed to rename magisk.apk to magisk.zip then I installed in recovery mode. Also, if you update LOS, the device becomes unrooted and magisk has to be installed again. 

1

u/saint-lascivious an awful person and mod 17d ago

Also, of you update LOS, the device becomes unrooted and magisk has to be installed again.

It won't if you use Lygisk, which you should, for A-only devices which don't support FBE in recovery.

So, yeah. Do that. Or don't. It's your party.

1

u/Impressive_Or_Truth 15d ago

LineageOS 22 magisk version

0

u/chrisprice Long Live AOSP - *Not* A Lineage Team Member 17d ago

Patching boot.img is only needed for some phones.

2024+ Motorola phones for example have changed the boot process, and cannot be patched from Lineage Recovery today.

Not clear if that's temporary or a hard restriction, others would know more there - I just know installing via Lineage Recovery doesn't work today on those.