 I already recorded this video. It was just about 10 minutes long. And then I realized I never pressed record on my desktop computer. It's recording now. Today is a demonstration video. I'm going to do some advanced things. I'm not going to go into detail. A lot of what I've talked about, I've gone over in previous videos. But this is demonstration to not be afraid. Especially if you have older devices you can mess with. And I highly recommend not doing this with your main device unless you're very comfortable doing it. There's no reason to do what we're going to do. We're going to purposely mess up our device. But if you have older devices just lying around, they are great to mess with. And the more you mess up a device and fix it, the more comfortable you're going to be in modifying your devices. And what we're going to do today is we're going to purposely go into a device, my Android phone here. And we're going to go into twerp, customer recovery, and we are going to mess up the partition so that it won't boot. And then we're going to reinstall the stock ROM. Again, this video is going to be a little different. I'm going to be moving the camera around so you can see everything that's going on. I just flashed the stock ROM back onto my device. So it's like a brand new device. I haven't even logged in yet. Let's have a look at that real quick. So again, I haven't even finished logging into the device. So I'm just going to hold down the power button and then click restart. And while it's restarting on a Motorola device, I'm going to hold down the volume down button until I get into fast boot loader. There we go. I am at the boot loader screen. And so what are we going to do? Well, I am going to take an application. Let me also say it is very, very hard to permanently brick a device. If you know what you're doing, you can soft brick it and it's very easy to fix. So let's look at this. We need something. I'm going to mess with the partition. So I need an application to do this on the desktop. Lots of times you would use something like fdisk. We're not going to have that by default on a system. There's another program called parted. So here you can see up on the screen, I have uploaded a copy of that that I found online. I did not compile it myself to archive.org. There'll be links in the description of this video to all the notes and links where you can get stuff. I already have that downloaded here in my directory. So if I was to file parted, you will see that it is an elf 64 bit for an arm architecture. It is statically linked, meaning it needs no external libraries. And all I need to do is push that to my phone. So first thing I need to do is load up Torp. So I'm going to get a Torp image. I already have a Torp image. Torp is not a command that's probably on your machine. Torp, I have images for each of my Android devices in a folder and my command Torp just lists them for me so I can choose it. My phone here is the Motorola G Power or Power G 2021 is Borneo. So each phone has a codename. It's very annoying how these manufacturers have 10 different phones all with almost exactly the same name, but they all have individual codenames. The way you find out the codename, besides trying to Google it, is when you have ADB installed and you ADB in, the prompt will tell you the name. And again, this is a 2021 phone and it has its codename is Borneo. So I found an unofficial ROM for it, which brings me to another point. Notice when this starts up, look at this, touch screen's not working. I've been using this image for over a year now and I still see in forums online people saying that it doesn't work because the touch screen doesn't work. Well, guess what it does? You just need to wait a little bit. I don't know why the phone boots, if you just wait 20 or 30 seconds, the touch screen will start working, right? Let's see. There you go. It's working now. So I don't know why it takes so long, but it does work. It just takes a little while. Anyway, back to the computer here. Let me ADB in. Make sure ADB is working. And as you can see, the prompt here says Borneo, even when we're in Torp. But even if you're not in Torp, you're just in Android and you go into the shell. It will tell you the code name. So I have to work. So let's go ahead and I'm going to push the parted application to the phone. So I'm going to say push parted, sorry, ADB push parted to, and we'll put that in Espin. Once it's put there, we can now ADB shell into the phone. We will go into Espin and we'll change mod and just give it all permission so it's executed or parted. Probably don't need to do 777, but it doesn't matter. This is a temporary partition because I just booted it. I didn't install it. And now that that's going, that application will work. If we move into dev, and we go to block devices, we can list out our block devices, basically our hard drives here. And my main hard drive is going to be the MMC block zero. And then it has all these partitions, lots of partitions. It has a super partition, which has sub partitions, and then it has AB for each of them. How do you know which one's which? Just out of curiosity. Well, you could just list if we do in the dev block and then by name, you'll see it lists the name for each partition. And if we add the dash L for listing the list or long list, I don't know. It will say, okay, so VB meta A is actually pointing to partition 61. VB meta B is partition 62. My system, meta system A is here. And so you know which one is which. Let's go ahead and use the parted command though. We use parted and we will give it dev block MMC zero. Again, we don't want to go to a partition. We want to go to the full drive. So no partition, no P number. And now that we have that, we can say P free. And it's going to list all the partitions. There's where they're located, how big they are. You want to back up this text. I haven't had to, but it's good to have a copy of it. In case you mess it up more than we're going to mess it up, you can manually fix it if you have all these numbers. Although you shouldn't have to do that because there's images out there to fix it. But it doesn't hurt. It's a little piece of text. Just copy, copy all this and put it in a text file somewhere because you see there's a lot of them because there's a lot of partitions. Let's go ahead and just delete two partitions. Let's delete this VB meta system A and B. Probably just have to delete one of them. But if we do RM 63, RM 64, I can then do Q to get out of parted. And if I was to reboot my device now and go back to my camera view here, you're probably not even going to see this. It's very hard to see. There is red text on the device, which basically says, it says, no valid operating system could be found, device will not boot, blah, blah, blah. That would be very scary if you haven't done this before. So what are we going to do? Well, let's go ahead and hold down power until that screen turns off and hold down the down volume button as well. So power and volume down on a Motorola device. Once it restarts, you can let go of power, keep holding down the down volume. And look, I'm back at fast boot. It's still messed up. It says start there before start was over here and it had a colored background, like it was in a bubble. And I think it had an Android image somewhere. So it's messed up here. But as long as you can get fast boot started, you can fix pretty much any issue. Now fast boot, your boot loader is on a partition somewhere. And if you screw that up, I don't know. But you would have to really be trying to mess that up. So now that we've done that, what we need is an image that we know that works. So you should make sure you have that before you start messing with your device. I have a stock image. So again, for my Motorola device, and I've gone over this in videos past, there's a website called mirrors.lolinet.com. Again, we'll note to all this in the description of this video. And they keep track of firmware for different devices. If I go to firmware here, you can see they have Lenovo, a few other NEC. Let's go ahead and go to Motorola. Again, we know that mine is a Borneo, so I can go down here until I see Borneo. Now, a blank flash, I've talked about that in a previous video. If you really mess up your partitions badly, this will actually fix the partitions. You basically do what we're about to do, but we don't even do that with what I've done. We'll go to official. And depending on where you get your phone, there's different firmware. They keep pretty up to date on it. I got my phone from Google Fi, so we'll go to Fi. And it is currently, when I'm recording this, December of 2022. And you can see just two, three months ago, an update went out and they have it here. It's a zip file. Download and unzip that. I've already done that. I'm in this directory here. And if I cut out flash file.exe, the file. Sometimes you get the stockware image and they have a shell script already set up for you that you can just run. But if not, it will have some sort of text file most likely telling you what partitions are what. So if I cut this out, we can see here that it has a list of all the files and what we're doing. So basically they're all flash. So we're saying this file, GPT bin, flash, where we're going to flash it to partition. The bootloader image is going to be flashed to the bootloader partition. For the most part, the image name is going to be the partition name, but that's not always true. If we look here, we have a partition called Bluetooth, but the file is called BTFM all capital. Again, I'm not going to go into this detail, but basically you're going to use fast boot flash in what partition and the image. I have already taken all the information from this XML file and I have put it into separate commands. So let's clear the screen. I'll paste this here. So here we go. I can just click this and run it and it's going to start flashing all of those images one at a time. Okay. This is going to take probably about five minutes. So I'm going to pause the video and then we'll come back. Okay. It is done. Again, it only took about five minutes or so. There's one more command. If I try to reboot right now, it's probably going to give me an error and then ask if I want to factory reset and I can just click yes. Or before we restart, I think that we can just do fast boot dash w, which will wipe information on there. And then we can do fast boot reboot. And let's go ahead and watch the phone. So far, so good. Getting the message that our boot loader is unlocked, which it has been unlocked for about a year now. Oh, good. We're getting the Motorola screen and hopefully we'll get the little animation here in a moment. And it doesn't just restart. If so, then it will probably bring us back to that fast boot screen where we can say factory reset. But I'm pretty sure our little fast boot dash w will wipe that and do it. It's basically doing a factory reset, wiping all the information off there. But that's pretty much it. I wanted to show you this. Again, you do this a couple of times and you can be fearless with messing with your device. As long as you have your personal files backed up, there you go. We're getting the animation. So we're back to stock ROM, even though we wiped out some of the important partitions. Yeah. That's basically all I wanted to show. I'll let it continue booting here just so you can see it will bring us to the welcome hello screen. But especially if you have an old device lying around, unlock the boot loader if it's a device you can and start messing with it. Go and see what you could do. See how you can mess it up. See how you can fix it. It used to be nerve-racking when I would do this because a lot of times I would break it. And I knew. There we go. Hi there. Okay. I knew that I could fix it, but sometimes I wasn't sure how. And especially if it's your main device, if you don't know how, it's like trying to figure it out. You're like, I need my phone and it hasn't been working for two hours while I've been messing with it. But if you know how to do this, you do it on your extra devices. You can do it on your device. Again, in five minutes, I can always get it up and running. Now, there's a stock ROM, which means once it's booted, it's going to take another 10 minutes for it to go through all the information. Do you want to log into your Google account? Are you sure you don't want to log into your Google account? Clone things over, set up, and the setup takes forever. If you do like Lineage OS, it boots. You click a couple of screens and you're loaded, which is another reason not to use stock ROMs. But to have the stock ROMs, so you can always go back to it in case there's an issue with some other image you're using, that's great. Again, there's links in the description to the notes to where you can download parted. If not, just Google Android parted binary and you should be able to find it. And if not, I bet you could probably go into Turmux. If it's not already installed, install it and then just grab that single binary because I bet it's still statically linked so that it doesn't have to depend on any libraries. That's it. And again, the whole point of this video is just to show you, I have to really try to mess up the partitions and it still was easy to fix. Thanks for watching. Don't fear your device. Only buy devices that allow you to unlock the bootloader and that will help support companies that at least give you a little bit of freedom. I'm not saying that like, I love Motorola. They're the best company ever. But the fact that they let me unlock it is great. And I wouldn't buy, I have one Samsung, we have two Samsung tablets that I bought 12 years ago. I really liked the devices and I was able to unlock the bootloader but through trickery and tricks that people found online because Samsung doesn't allow you to unlock the bootloader and I wouldn't buy a device that doesn't allow you to unlock the bootloader unless it's like almost free and I'm using it as a test device. But my main device definitely needs to be I'll unlock it to customize it. Anyway, filmsbychrist.com. That's Chris with the K. There's a link in the description as always. I hope that you have a great day.