 I'm recording this with my cell phone because both the batteries in my main camera are dead, so I apologize if the quality is not up to par. But today we are going to be exploring the Android operating system a little bit more and some shell commands for Android. And we're gonna be looking at setting your home screen or your launcher from the shell, so you don't have to go, well, I'm gonna show you how to do it using menus, but then I'm also gonna show you how to do it from the shell. This is super convenient because I have a script that basically anytime I get a new phone, it just kind of pulls down packages and installs and copies over stuff how I want. And changing the launcher or home screen is something that I like to do because I really like the lawn chair launcher. So let's go ahead, jump in, we're gonna see how that works. Okay, here we go. On my left side of my screen, this is my desktop. I'm in a directory with the APK for lawn chair, which is the launcher I like using. On the right is a fresh install of Lineage OS, which is running the Trebuchet home screen launcher. And I want to install this. So I'm going to with ADB enabled on the phone, ADB install, I'm gonna say dash G to give it all its permissions because I want my launcher to have all its permissions. And within a few seconds, it is installed, but I hit my button here and it's still using Trebuchet. So how can we set it? We would go into settings. We would go down to apps. We would find lawn chair in our apps list and in its settings, there's an option to home app. It's not set. It's set to Trebuchet. We'll change it to lawn chair. And now when I hit my button here, it loads up lawn chair, but I don't want to go through all that, especially if I have a setup I like for phones, I want to be able to script this out. So how can we do this? Let's go ahead and uninstall. So ADB, uninstall, you need the name of the package, which in this case is C-H, delete scape, lawn chair, P-L-A-H. And I will quickly uninstall that. And I've shown in previous videos how you can use Logcat to figure out the name of the package, but let's go ahead and reinstall it. So we will install it again. And instead of going through all our steps, so again, if I click here, it's defaulted back to Trebuchet. So how do I get it to launch as lawn chair? Well, I'm going to use ADB shell, CMD package, and we're going to say set home activity and the name of the package. Not the name of the APK, but the name of the package. And I'll show you in a moment how to get that if you don't know how to get that, even though I showed it in previous videos. I do that. And now you can see that if I click this button here, we now have lawn chair as my home screen when I click the home button. And if we were to go into settings and we were going to go to apps and choose lawn chair, you can see that it is set as the home application and Trebuchet is unchecked. So how do you get the name of the package? Cause maybe you're not using lawn chair, you're using some other launcher. Let's go ahead and change this back. Well, it doesn't, I don't need to change it back. But with ADB, you can do ADB shell log cat. And log cat will give you a whole bunch of information on what's going on on your system. It's just everything that's happening, something's being logged, right? Remember you use grep CMP to narrow down that list. We'll run that, we'll list some things. Just going to go ahead and just make easier read. I'm going to enter a few times so we know where we're at. And now if I click any program, in this case, I'll click my home screen. You can see here, it's telling the name of the launcher. In this case, it's Trebuchet cause I changed it back to Trebuchet. But if I click lawn chair, you can now see the name of that package right there. So with that, you can use that to set it as your launcher. So again, that command, and there'll be notes in the link in the description. Where is that command? There we go. It is your ADB, you're going to use the shell. So if you're on the actual device, you don't need to put that part. We're going to say CMD package set home activity and the name of the package that we just copied, boom. And now when I hit the home screen, we'll worry about that. Now again, you can switch it back if you got the name of Trebuchet. So let's go ahead and do that real quick. Let's toil one kind of quick, right? Quickly. So say applications and we'll go all and I will scroll down to Trebuchet here. And again, if I don't know the name of this package, which actually tells you right here is another way to get it. Let's go ahead and just copy that. And let's just change that and paste it in here. Now I run that and now Trebuchet is back to my home screen. Go back up here. Now lawn chair is my home screen. Go back. So yeah, so if we didn't know the name of the package, you can look under the app information, but you can also grab it with logcat. Logcat's a good thing to get familiar with because it dump pumps out a lot of information. In fact, we're going to pull apart an APK and see some of the stuff it's doing using logcat in a future video. But I do thank you for watching. Please visit filmsbychrist.com. That's Chris the K. There's a link in the description. There you can find all my videos, search through them, find projects and notes and also places to support me like LibrePay, Patreon and PayPal. I thank you for watching. Be sure to like, share, subscribe, comment. And as always, I hope that you have a great day.