 Okay, it's that time of year. It's Black Friday. You're watching this month from now, but actually it's Cyber Monday, I guess. But we ordered these phones, me and my wife, because they have just such good deals. Could have gotten a phone for free. We spent 50 bucks to get a slightly nicer phone. Last year we only had to pay shipping, which was like 12 bucks or something like that for our phones. But I figure 50 bucks to have an extra phone, and I can use my old phones for other things. I plan to actually send them up as security cameras around the house, and I might do some videos on that. But the thing is, when you get new phones, they come full of junk. Installing custom ROMs fine, but usually I like to leave the default operating system, the default Android on there, for at least a couple of weeks to make sure that everything works fine. That way I know that it's not the phone that's the problem, it's the accounting problems. If I can install a custom ROM, and a week from now I have problems, is it the custom ROM, or is it the phone, did I screw something up? So I like to leave the default operating system on there, but I want to get rid of all the junk that is installed on the default. These are Motorola phones. I want to get rid of most of the Motorola applications, most of Google applications. I use NextCloud and all that stuff myself. So how do we get rid of them? I've shown in the past how to uninstall stuff and how to disable stuff, but sometimes you can uninstall or disable, and in the past I've gone in as root and removed stuff. There's a better way. We're going to look at that today. You can use the default package manager solve. I just loaded this phone up. I've already done this to my phone. This is my wife's phone. I enabled USB debugging. I'm going to log in and use the package manager to disable the installed apps. You have to know the full name of the package to disable it. So we're going to look at how to disable it, and then I'm going to show you a convenient way to search through the list using FCF, as I always do. It's such a great program. And then I'll also show you how to use Logcat to find the name of an application. If you don't know the name of it, like sometimes Google has weird names, like you think Google Pay would be Google Pay, but it's actually Google Wallet, right? So I'll show you how to figure out the name of the application so that you can remove it in case you don't know. So let's go ahead and jump right in. Okay, here we are. On the left is my desktop shell. On my right is my wife's Android phone. And as you can see, we have things like Google Pay and Google Assistant and Chrome that are installed by default. Now, if I was to look at our apps here and go to settings for certain things, actually the way most people probably uninstall stuff. So let's say I want to install this play movie. I would drag this. Can I drag it with my mouse? There we go. And normally there would be an uninstall button here. But here's the issue. There isn't one. This is one of those default installed applications. And it's there. And there's no uninstall option. Sometimes you can go into your settings and go to apps and choose one of the apps. We'll go to all apps. And we'll choose something like Chrome and force up. And you can disable that one. But some you can't. For example, let's see if I go down to, like, this... Let's see Google Play if that will... Google Pay. I can disable that. You can disable it. Which, by the way, we're going to install it. I still think it's probably taken up space. So far all these can be disabled. But we're going to try to... Here we go. Launch. They're launcher. I'm using a launcher launcher. I'm not using the motor or launcher. I want to get rid of it. So how do we do that? Well, first we need to get a list of all the applications. So how do you do that? So if I ADB into the shell on the phone and I type in PN which is the package manager, I can say list packages. Right? It's going to list all the packages with the word package before it. So what I would normally do is I would say cut. And these are basic shell commands. And I could cut. I call in that. Field 2. So it gets rid of that package. But you don't need to do that. All you have to do is type in PM list packages. It will list all packages. Then you've got to find the one you're looking for. So let's see. What I'm going to do is I will grep for launcher. Right? And so I can see Motorola Launcher 3 here. That is probably the launcher I want to get rid of. Just based on the name. And if you don't know the name or you can't find it, don't worry, we're going to go over that as well. So the command I would run would be this. We're going to run the normally you would do PM uninstall. Uninstall in the name of that package. But it's going to tell me it failed. You can't delete it. Blah, blah, blah. What we're going to do is the same command. We're going to add in PM uninstall dash dash user space zero and the name of the package. Success. And it's gone. Let's do another one. Let's go ahead and search through the packages. So I'm going to grep for assistant. Assistant. Something like that. There we go. So after the package and call, I'm going to grab the name of that. And again, I'm going to run that same command. So we're going to go PM uninstall. Install dash dash user zero and the name of the package. And we should see this Google assistant icon disappear. It's gone. It's uninstalled. We got a success. Of course, we're right in the phone shell here. We could do the same thing. Let me bring that back. Screaming off there for a second. Of course, you can run the same command. We can do something straight from my computer. ADB shell and then we can go PM list packages. And it's going to list the packages right here. So I could grep each time I want to do something. But of course, what I could do is I can use that cut command. Like I said, I can say cut at colon. And in fact, I'm going to make this full screen. I'm going to get rid of my wife's screen right now, just so I have more room here. And let's clear the screen. So colon dash F2. And now I'm getting into more advanced stuff. I just showed you how to install it. I'm going to show you a way that I do it when I'm installing lots of packages. I just want to go through them. So there we go. Now I got a list of all the packages. What can I do then? If you have FZF installed, which should be in your package manager for most likes distribution, that lets you search through stuff. So now I can do this and it does a fuzzy find. And I can type in something like Google, right? And I can go desk clock. Let's say I want to get rid of their desk clock and install a free open source one. That's the name of the package right there. That's what I have to do. So now I can wrap that and I can say, okay, so we're doing dollar sign parentheses inside quotation that's saying, whatever the output of this command is string. So now I can do adb shell and I can do pm uninstall dash dash user zero. And what's going to happen is going to bring up a list of all my packages. Right? And now I can do one. Let's see. Magazine. Magazine, I think. I think it's the now I thought I thought the name of their news app was magazine. Okay, let's, let's see. I'm going to find one that I know the name of. Oh, how about Google calendar? There we go. I'm going to hit enter and it just uninstalled Google calendar. I can do another one. I can do Google calculator and it just installed the Google calculator. Great. Now what if you don't know the name and sometimes these names don't make any sense. Okay. So this is what we're going to do here. I'm going to bring up my wife's screen again. We've got all the apps here in the app drawer. And what I'm going to do is I am going to log into the phone. I'm going to go. Sorry. My daughter's sick and shit. That was just a reminder to give her medicine. ADB. And I'm going to say shell and cat log or sorry. Log cat will give you a whole bunch of information on what's going on on the screen. Right. Let's go ahead and move this up here so it's a little bit wider. Right. Let's go ahead and move this down in the bottom there. What we can do is with that just to narrow it down a little bit we're going to say grep CMP. So we're going to get all that output and we're going to grep for CMP. And now it's running. Let it run for a second. And I'm going to grab something like Google Pay. I'm going to hit that. Wait a second. Hit control C to stop. And now we can see if we look at this. We're going to look for an app name right here. Wallet. So Google Android apps wallet. So you look for the name. When you run an app it should show up here right after CMP on a line. Sometimes you click on one app and other processes start. So you find the one that looks like the most likely one. We also have a Google GSM Pay here. But I'm going to start with this wallet here. And again, let's bring up my wife's phone again. And then we can do the PM uninstall. I type that wrong every time. Install, dash, dash, user, zero. And I'm going to say com.google.android.app wallet. N-F-C-R-E-L. Boom. If I do that, boom. Google Pay just disappeared. So that is how you can uninstall these default annoying applications that you can uninstall in the Android interface. Again, the simple all you have to do is here's that command again. It's PM for package manager uninstall. But you have to set it as user zero. And then the name of the package. Like I said, if we log cat, that's going to output a whole bunch of stuff on the phone. But what we want to do is narrow it down so we're going to grep for CMP. And as applications launch and do stuff in the background, you're going to see them on here. Let me pick another one that I want to get rid of. Play movies. So there we go. I hit the button and actually it opened up the YouTube videos app here. So now, definitely want to get rid of it. No, it's right after the comp equal comp Google Android videos. And then it had a process that was calling YouTube videos. It was probably getting information from the YouTube app, which I'm going to uninstall too. So again, if I just did PM uninstall, try to run that. Let's see. It says error. But if I add to that dash dash user zero, it's gone from the phone. Again, default applications are usually installed on a partition that is not writable. So I'm assuming they're still there. They're still taking up space because even if I was to delete them from that partition, you're not using that partition for storage. So it's not really clearing up storage, but it's stopping these apps to the best of my knowledge from running in the background and doing all their things and just using up your processing battery power and reporting whatever you know from the back, you know, in the long run, sometimes it's better to install a custom ROM, but if you don't want to for some reason, and there's many reasons not to, you can at least get rid of these or disable them this way even if disabling is not an option. So thanks for watching filmsbychrist.com. That's Chris Decay. There's a link in the description. And as always, I hope that you have a great day.