{%hackmd @cimeesia/SJv5Zgj1yl %} # A guidance for One-Thing ## Preface This note basically just translated from my past notes, which are ... - [Flash LineageOS 20 to my Galaxy S8](/@cimeesia/Skde2EDej) - [Flash LineageOS 19 to my Galaxy S8](/@cimeesia/H1VxeOjXq) - [Root my Galaxy S8](/@cimeesia/HJLGq0BXc) If you know Chinese, maybe you may have a look at it as well. They are basically the same as this one I'm writing, but a bit more document and describe on troubleshooting and some research. ## Preparation ### Software - TWRP - https://twrp.me/samsung/samsunggalaxys8.html - Newest version should be `twrp-3.7.0_9-0-dreamlte.img`, that published at 2022 Oct 15 - LineageOS (unofficial ROM for S8), made by Ivan Meler - https://ivanmeler.github.io/devices/dreamlte.html - Odin - This is a tool that use for flash/install ROMs into phone. - https://forum.xda-developers.com/t/patched-odin-3-13-1.3762572/ - Try `Odin3_v3.14.1_3B_PatcheD` first, this should be the _actual_ newest version. (There are some fake versions on Internet that version numbers are bigger than this. Careful.) - GApps (Optional) - GApps is a package included those apps made by Google. And, yes, these 3rd party custom ROM are made without Google's apps originally, and intentionally. If you need to use Google's services like Google Play or Map or something, you will need to install it by your self. - Ivan Meler recommend people install this brand so you better follow thier call too. - https://nikgapps.com/ - This has to be done **before** your phon boot into system for the first time, or Google's service won't work functionally. ### Hardware - cable, use to connect PC and phone. - SD card (Optional) ## 1st Step: OEM unlocking Go to setting -> About phone -> Software Information Spam "Build Number" 7 times (at least), to unlock the hidden section called Developer options. Scroll down a bit, you should be able to see ==OEM unlocking==, turn it on so that we can unlock bootloader, which is something blocked us to install 3rd party system. ## 2nd Step: USB debugging Just scroll down a bit more, you should be able to find **USB debugging**, and turn it on, so that this phone is preparing to communiate with PC. :::danger Before you move to 3rd Step, it is to better to back-up all your data, because after the next step, all the data on your phone will be deleted/formatted. ::: ## 3rd Step: Get into Download Mode Turn off you phone. And press and hold these 3 buttons at the same time while your phone was in shut-down. - Power button - Volume down button - Bixby button Once you notice the screen is working, release the Power button, but still hold other 2 buttons. And then you should be able to get into Download Mode. ## 4th Step: Flash TWRP as new Recovery Mode by Odin On your PC side, turn on Odin. See the 2nd tab called "Options", unselect the **Auot Reboot**, this step is optional but just in case if we missed any error message. At the right-hand side, choose AP mode, and select TWRP that you downloaded. If it succeeded, you may turn off you phone now. Press the same 3 buttons for turning it off. ## 5th Step: Get into TWRP (Our new Recovery Mode) Press 3 buttons but it is a bit different !! - Power button - ==Volume up== button - Bixby button Once you get into the TWRP, Wipe this phone is needed. - Wipe - Advenced Wipe - Dalvik/ART Cache - Cache - System - Data Now your phone has no system, and we are going to flash one into it, which is LineageOS. ## 6th Step: Flash ROM into phone :::warning If you want to install GApps into this phone, don't restart your phone into system once the ROM installed. Please check 7th Step. ::: If you have SD card, this step should be easier. Because you can put that ROM (.zip) to your SD card, and then flash it from SD card. If you don't have SD card, you will have to use another way called **sideload**. You will have to download Android Debug Bridge (ADB) for this step. :::info I will skip this part for now. If you don't have SD card, I will fill this part later. ::: ## 7th: Flash GApps into phone If you need it, you will **have to** flash it right after you flashed LineageOS, or Google's service won't work functionally. It is the same step like flashing ROM. ## Done Now you can boot your phone into system now. And hope Colorful Stage works well.