 Well, hello there today. We're going to continue with our you know, customizing Android devices previously we installed a GSI a generic system image of lineage OS on a Motorola device that had an unlocked bootloader Well today, we're going to add in root access using something. I'm going to mispronounce It's either magic or Magic or Or mask as I think it's how I pronounce in the past which I'm pretty sure is wrong even though their logo looks like a mask I've heard people pronounce this Magisk Magisk Magisk Magisk like magic, but with an S in there I don't know forgive me for pronouncing it wrong, but let's go ahead and Have a quick look at this. Let's go to our screen over here You want to get this from the official github repository? I'll put a link in the description When you're there, you can get the source code. It's free. It's open source and it is under a gpl v3 license So what is this? What is this? How does this root? So I mean some custom ROMs will allow you to have access to root But hey if you can unlock the bootloader on an Android device You should be able to use this to get root on the device and how does it work? It actually works a little bit like something I did years ago So years ago when I first started learning how to root Android devices I really didn't like or I didn't like I didn't trust a lot of the techniques out there So I came up with my own technique which worked for a while and then newer versions Vandrey come out And they change how things work, but but what I did was I pulled the boot image Off of the device and I modified it and the way I did it was I did a loop back Telnet with root access to it so that I can telnet into the device through a Virtual network device and have root so so what does that mean? So when you have your boot image that's the first thing that boots that loads your kernel and basically your Initial RAM disk, which is a very small Operator file system that loads to RAM that loads up the rest of your system and it loads before anything else So if you can modify that you can modify how the rest of the system loads That's kind of what this does it takes when you install it. It will take your boot image and it will modify it and Basically nowadays with modern Android systems. You can't really edit the system partition Because it will detect it's been modified. It's read only if you do edit it It's going to not like it what this does it loads the regular system image But then over that it loads other things It's similar to booting a live distribution of Linux when you boot off a USB or a CD-ROM drive a live distribution of Linux It's going to load up a read only image of the system But then it's gonna overlay other file systems on top of that to overwrite any updates you do That's kind of what this does and it allows you do a lot more than just root access as you'll see in the future Parts of this tutorial like next video or video after that but what we want to do is we want to go to the official repositories and Overrun releases click it and download the latest release now the latest release it used to be they had an APK for the Application and then they had a separate zip file that you would install using a custom recovery like twerp Well right now they've packaged it together, which is nice So you download this APK some people say you have to rename it a zip You don't have to so download that now. Let me go ahead and switch on my console here my terminal I am at the fast boot bootloader for my device and again You'll have to get a twerp custom recovery for your device and either install it or boot it I've done videos on it in the past. Hopefully if you're watching this video, you know how to install a custom recovery But basically get the image for your device go to your bootloader and then fast boot boot and the Image that you've downloaded. I have a script on my desktop since I have multiple Android devices I put all my images in one directory in that script just basically list them all and I can choose the one for this device So I'm sending it over. I could install it, but I just like to send it over and boot from it and Then once it's done booting again on this particular device and actually my new phone does the same thing when I boot into twerp it takes like 20 or 30 seconds before the touchscreen starts working But there's two ways to install this Magisk You can adb side load and the name of the file, which is what I prefer But sometimes that doesn't work and if you get an error when you're trying to do that You can just push it to the device so I can go advanced adb side load. I can wipe these two things And I can swipe like that and then on my desktop again adb side load and the name of apk now again If you get an error While it like before it even gets to this point where it's pushing it over What you can do is adb push that to the thought to the device and then back in the Twerp menu there's an install option and you just click on apk and it will start doing this It's gonna run a script where it's going to again take your boot partition Basically make a backup copy of it and then it's gonna modify it so that when it loads It's gonna load certain files and the application over top of it once it's done. We can just click reboot Once it reboots we're gonna go into the application click on it It will ask most likely it will want to update itself You're gonna have to give it permissions to install applications It will download and make sure that it's all set up and then after that it might reboot But then you have root access and again this is not just regular root access because it allows you to install modules and not only install modules But make your own which is something we're going to look at in future videos because it's super duper simple and It allows you to simply add stuff to your system that you normally wouldn't be able to add Okay, so linear just about booted here. Okay now if I look at my applications I should have Give it a second here if it doesn't come up right away. Yep Right here for some reason the icon isn't correct yet, but it's right there and it's gonna want to Connect to the internet to download stuff. Oh It's telling me to connect to the internet because I have not yet. So make sure you're connected to the internet Okay, now I'll go back. So yeah, make sure you connect it to the internet and Click okay, and it's going to download and make sure it's all up to date settings allow from Unknown sources update and now you can see the icon is correct let's go ahead and click on it again and Do you want to get it allowed to give you notifications? That's a good thing in this case because it will let you know when devices are our programs are accessing The system so sometimes at this point on some devices. I've had where it wants you to reboot. Let's go ahead and Let me enable ADB debugging here Under settings, I'll scroll down about device Click the build number a bunch of times. Oh, it says I'm already system And we will go developers And turn on adb debugging. Okay And see if it asks about this device adb shell and now if I su And it says do you want to give a permission? Uh forever or just this one time. I'm gonna say forever for adb And that's it. Now I can do root things on my device a few little hiccups there like Normally i'm connected to wi-fi before I start doing this, but I didn't do that when I did the fresh install there That's it. You have root on your device. It can be uninstalled at any time by either just Taking your stock boot image and flashing it back over or it does have uninstall options with with the application actually if you just go into the Magisk, I don't know. I have such trouble saying that I guess because I don't really know how to say it But there is an uninstall option there. You can uninstall it that way Or if you don't, you know, you could always just push a new boot image and we'll override it. That's it Clear as mud. I hope you enjoy this video films by chris.com. That's chris of the k There's a link in the description as always. I hope that you have a great day