TESTED AND WORKING (JANUARY 2026)
First of all, why did I attempt this? Because I had an extra M20 with a cracked screen glass, and my goal was to speed it up and also use it as an internet provider (USB tethering) on a computer. The reason I opened this repo: even if it helps just 1 person, that is a big gain for me.
SOURCES OF REQUIRED FILES (You can download from these links and check their reliability. I do not claim that these files are 100% safe, but I used them and verified their reliability, there were no issues. I am not responsible for any problems that may occur.)
Also, LineageOS comes without Google services. If you also want Google services, you need to download MindTheGapps or NikGapps.
magisk https://github.com/topjohnwu/Magisk
lineage https://github.com/SamarV-121/releases/releases/
(download the lineage zip from the top releases)
twrp https://twrp.me/samsung/samsunggalaxym20.html
(select primary europe from the download links)
odin3 https://xdaforums.com/t/patched-odin-3-13-1.3762572/
(download the one named 3.14.1_3B, the one at the bottom right)
samsung driver https://developer.samsung.com/android-usb-driver
ACCA (optional, for battery control) https://github.com/mattecarra/acca/releases
Make sure you have enabled developer mode on the phone; you need to tap the build number 7 times from settings > about phone.
ODIN3
1- As the first step, you need to install the Samsung driver on your computer so that Odin3 can recognize your Samsung device.
2- After installing the drivers, install Odin3 and run it AS ADMINISTRATOR, and disable Auto Reboot from the options section (VERY IMPORTANT).
3- You need to put the phone into download mode: press and hold the volume up and volume down buttons at the same time, and without releasing the buttons, connect the phone to the computer via USB. A warning screen may appear; release the buttons there and press the volume up button once. A turquoise screen should appear, something similar to a file with a download icon.
4- Then put the TWRP file into the AP section (it must have a .img.tar extension!) and press Start. The application should say PASS, and after the process finishes, the phone screen will remain the same.
First entry to TWRP (be careful, do not proceed without reading all steps)
1- Unplug the cable.
2- Press and hold the volume down and power buttons.
3- The moment the screen turns off, immediately release the volume down button and press the volume up button (keep holding the power button).
4- When the Samsung logo appears, you can release the power button, but keep holding the volume up button until the TWRP main screen appears.
TWRP
1- When TWRP opens, it will ask something like Keep System Read Only, swipe to the right to continue.
2- Go to Wipe > Format Data and type yes. After it says data format complete, press the back button until you return to the TWRP main menu.
LineageOS Installation
1- After connecting your phone back to the computer via USB, copy the LineageOS zip file you downloaded to the phone storage by selecting the file with ctrl+c or ctrl+x and pasting it into the phone storage with ctrl+v. (Dragging did not work for me, so use the ctrl combinations.) If your phone does not appear in the file explorer, tap Mount in the TWRP main menu and select the Data, Cache, and System checkboxes. If it says "Enable MTP" at the bottom, tap it. (If it says "Disable MTP", it is already active.)
2- From the TWRP main menu, go to Install > (select the LineageOS file from here and swipe the bar at the bottom.)
3- After the installation finishes, tap "Wipe Cache/Dalvik", and after it says "Done", tap "Reboot System".
4- At this stage, it should install. Do not unplug the cable from the computer. I don’t remember exactly, but if "Wipe Cache/Dalvik" appears again here, tap it and swipe, then tap the "Reboot System" button.
5- At this stage, the Welcome to LineageOS screen should have appeared.
LineageOS
During setup, I recommend skipping WiFi. After installation, if you are going to use a SIM card, I recommend checking SIM and network status, because sometimes issues like IMEI deletion or no network signal can occur. I was going to use it with WiFi anyway, so it was not a problem for me.
SO HOW DO YOU INSTALL MAGISK (ROOT)?
Note: You have two options for Magisk: you can copy the .zip file to your phone storage and install it using the "Apply Update" option, or you can use the ‘adb sideload’ command from your computer without copying the file. I explain adb here, but in step 6 I also explained "Apply Update".
1- Delete the .apk part of the downloaded file name and change it to .zip, you will only rename it. (In the file explorer, go to View and enable show file extensions.)
2- I tried transferring it via USB while the phone was on, but there were connection issues, so go to the recovery menu (volume up + power buttons together), and while there, connect the phone and transfer the file.
3- Go to the "Apply Update" option (navigate with volume buttons, select with power button; touch also works).
4- Select "Apply from ADB", and a text like "Now send the package" should appear at the bottom left of the phone.
5- Open the terminal on the computer and copy the path of the Magisk file, then type: cd (file path) and press enter (To copy the file path, right-click, go to properties, and copy the location written there.)
6- Then type in the terminal: adb sideload (file name: if the file is magisk.zip, type adb sideload magisk.zip) (extra error) - if it gives an adb not found error, it means adb is not installed on your computer. If your computer can recognize the phone properly while it is on, you can transfer it that way and in recovery select "Apply Update" > "Choose from internal storage". If Lineage Recovery gives a "Signature verification failed" warning, continue by selecting "Install anyway" or "yes".
7- If you see a text like "total xfer:xxx" in the terminal and the phone says "Done", select "Reboot system now" on the phone.
8- When the phone boots, go to the app drawer (opened by swiping up from the bottom) and tap Magisk. It will ask for updates, connect to WiFi and allow it to update. Then it may say "Requires Additional Setup", tap "OK" and continue.
ACCA
1- When you open the app, it will ask something like magisk: grant root access?, tap "Grant". After that, once you enter the app, you can figure it out yourself. I used the app to start charging when the battery drops to x percent and stop charging when it reaches y percent, since the phone will be constantly plugged in.
That’s all from me, I hope you managed to do it without any issues :)
TEST EDILDI VE CALISIYOR (OCAK 2026)
not:ingilizce klavyeye alistim o yuzden turkce harfler yok Oncelikle neden bu ise kalkistim? Cunku elimde ekran cami catlamis ekstra bir M20 vardi ve amacim bunu hizlandirmaya ek olarak bir bilgisayarda internet saglayicisi (usb tethering) olarak kullanmakti bu repoyu acma sebebim: 1 kisinin bile isine yaramasi benim acimdan buyuk bir kazanc.
GEREKLI OLAN DOSYALARIN KAYNAGI (bu linklerden indirebilir ve guvenilirligini kontrol edebilirsiniz, bu dosyalarin %100 guvenilir oldugunu iddia etmiyorum ama ben kullandim ve guvenilirliklerini teyit ettim bir sorun olmadi, olusacak sorunlardan sorumlu degilim)
Ayrica LineageOS google servisleri olmadan geliyor eger google servislerini de isterseniz MindTheGapps veya NikGapps indirmeniz gerekiyor.
magisk https://github.com/topjohnwu/Magisk
lineage https://github.com/SamarV-121/releases/releases/ (en ustteki releasesdan lineage zipi indirin)
twrp https://twrp.me/samsung/samsunggalaxym20.html (download linksden primary europe secin)
odin3 https://xdaforums.com/t/patched-odin-3-13-1.3762572/ (3.14.1_3B olani indirin en sag alttakini)
samsung driver https://developer.samsung.com/android-usb-driver
ACCA(opsiyonel, batarya kontrolu icin) https://github.com/mattecarra/acca/releases
Telefonu gelistirici moduna aldiginizdan emin olun, ayarlardan cihaz hakkindada yapim numarasina 7 kez tiklamaniz gerekiyor
ODIN3
1-ilk adim olarak bilgisayariniza samsung driveri kurmaniz gerekli ki odin3 samsung cihazinizi taniyabilsin
2-driverlari kurduktan sonra odin3 u kurup YONETICI OLARAK calistirin ve options kismindan Auto Reboot u kapatin (COK ONEMLI)
3-telefonu download moduna almaniz gerekiyor: ses acma ve ses kisma tuslarina ayni anda basin ve ellerinizi tuslardan kaldirmadan telefonu usb ile bilgisayara baglayin. Ekranda bir uyari gelebilir orada tuslari birakip bir kez ses acma tusuna basin, turkuaz bir ekran gelmesi lazim indirme isaretli dosyaya benzer bir seyin oldugu.
4-ardindan AP kismina TWRP dosyasini atin (.img.tar uzantili olmasi gerek!) ve Start diyin, uygulamada PASS demesi lazim islem bittikten sonra telefonun ekrani ayni kalicak.
TWRPye ilk giris (dikkatli olun, adimlarin tamamini okumadan islem yapmayin)
1-kabloyu cikarin
2-ses kisma ve guc tusuna basili tutun
3-ekran karardigi an elinizi hemen ses kisma tusundan cekip ses acma tusuna basin (guc tusu hala basili kalsin)
4-samsung logosu gelince guc tusunu birakabilirsiniz ancak ses acma tusuna TWRP ana ekrani gelene kadar basili tutun
TWRP
1-TWRP acildiginda Keep System Read Only gibi bir soru sorucak onu saga kaydirip gecin
2-Wipe > Format Data yoluna girin ve yes yazin, data format complete dedikten sonra TWRP ana menusune gelene kadar geri tusuna basin
LineageOS Kurulumu
1-bilgisayariniza indirdiginiz LineageOS zip dosyasini telefonunuzu tekrar USB ile bilgisayara bagladiktan sonra ctrl+c veya ctrl+x ile dosyayi sectikten sonra telefon depolamasinin icine ctrl+v yaparak kopyalayin. (suruklemek bende ise yaramamisti o yuzden ctrl kombinasyonlarini kullanin) Eger telefonunuz dosya gezgininde gozukmuyor ise TWRP ana menusunde mounta tiklayin ve burada Data, Cache ve system kutucuklarini secin, Altta "Enable MTP" yaziyorsa ona tiklayin. (Eger "DisableMTP" yaziyorsa zaten aktiftir.)
2-TWRP ana menusunden Install > (buradan LineageOS dosyasini secin ve alttaki cubugu kaydirin.)
3-yukleme bitince "Wipe Cache/Dalvik" e tiklayin ve "Done" olduktan sonra "Reboot System" e tiklayin
4-bu asamada Installamasi lazim, kabloyu bilgisayardan cikarmayin. tam hatirlamiyorum fakat burada tekrardan "Wipe Cache/Dalvik" cikarsa ona basin ve kaydirin ardindan "Reboot System" butonuna tiklayin
5-bu asamada Welcome to LineageOS ekrani gelmis olmasi lazim
LineageOS
Kurulumda wifi yi skiplemenizi oneririm. Kurduktan sonra eger hatli kullanicaksaniz hat takip kontrol etmenizi oneririm bazen IMEI silinmesi veya sebeke cekmemesi gibi sorunlar yasanabiliyor. Ben zaten wifi ile kullanacagim icin benlik sorun yok.
PEKI MAGISK NASIL KURACAKSINIZ (ROOT ATMA)?
Not: Magisk için iki seçeneğiniz var: .zip dosyasını telefonunuzun depolama alanına kopyalayıp "Apply Update" seçeneği ile yükleyebilir veya dosyayı kopyalamadan bilgisayarınızdan ‘adb sideload’ komutunu kullanabilirsiniz. ben adb yi anlatiyorum burada fakat 6. asamada "Apply Update" i de anlattim
1-indirdiginiz dosyanin adindaki .apk kismini silip .zip olarak degistirin, sadece isim degistireceksiniz. (dosya gezgininde Gorunum kisminda gosterden dosya uzantilarini gosteri secin)
2-telefon acikken atmayi denedim usb ile fakat baglantida sorun cikiyor o yuzden recovery menusune gelin (ses acma + guc tuslari ayni anda) ve oradayken telefonu baglayip dosyayi atin
3-"Apply Update" secenegine gelin (ses tuslariyla hareket, guc tusuyla sec. dokunmatik de ise yariyor)
4-"Apply from ADB" secenegini secin, telefonun sol altinda "Now send the package" gibi bir yazi cikmasi lazim
5-bilgisayarda terminali acin ve magisk dosyasinin yolunu kopyalayip: cd (dosya yolu) yazip enterlayin (dosya yolunu kopyalamak icin sag tik yapip ozelliklere girin ve oradaki Konum yazan yeri kopyalayin)
6-ardindan terminale adb sideload (dosya adi: magisk.zip ise adb sideload magisk.zip yazin) (ek hata)-eger adb bulunamadi hatasi verirse bilgisayarinizda adb yok demektir eger sizde telefon acikken bilgisayarin telefon algilamasinda sorun yoksa o sekilde atip recoveryden "Apply Update" > "Choose from internal storage" diyin. Lineage Recovery "Signature verification failed" uyarisi verirse "Install anyway" veya "yes" diyerek devam edin.
7-terminalde "total xfer:xxx" gibi bir yazi gorduyseniz ve telefonun altinda "Done" diyorsa telefonunuzda "Reboot system now" secenegini secin
8-telefon acilinca uygulama menusune gelin (telefonu alttan kaydirarak acilan) ve oradan magiske tiklayin size update falan filan dicek wifi baglayip updatelemesine izin verin ardindan "Requires Additional Setup" diyebilir ona "OK" diyin ve gecin.
ACCA
1-uygulamayi acinca magisk: grant root acces? gibi bir sey olucak ona "Grant" diyin, zaten sonrasinda uygulama icine girdiginiz zaman kendiniz cozersiniz, uygulamayi ben sarj yuzdesi x e dusunce sarj et, y ye cikinca sarji kes amacli kullandim, surekli sarja takili olacagi icin telefon.
benden bu kadar umarim sorunsuzca yapabilmissinizdir :)