1

Several years ago, a friend of mine was working on a Samsung S8 Active. He was trying to remove most of the apps on it so it was just a basic phone. He had some instructions for a Ponderosa system. He was having trouble with several things so I was helping him. We got a list of all the packages on the phone using ADB and then copied them into a text editor. We removed the name of any package that we didn't want and then saved the file and pushed it back onto the phone using ADB again. I'm not certain but there might have been an app or something on the phone that had something to do with it as well but the end result was that only the apps on the list were left on the phone. I believe that we could put a password in on the phone and the apps came back but I'm not 100% sure.

Since then I have lost the papers that had the instructions on them and the place we originally got them from no longer has them either. I have another Samsung S8 Active that needs the same system (or simular) put on it. I know how to get a list of all the app package names using ADB.

adb shell pm list packages

But does anyone know of a system that would be capable of removing apps by pushing a file to the phone? Is there an app that would work like I described? Any help would be appreciated.

Edit: I am working with a Windows 10 computer. I installed xargs but it says The '<' operator is reserved for future use. when I try to run xargs -l adb uninstall < pkgs2rm. Is there a different character to use?

11
  • push your own shell script
    – alecxs
    Feb 9, 2022 at 13:48
  • @alecxs Not gonna lie, I haven't done much with adb and that doesn't make any sense. I mean I know that you can push files to the phone via adb but what do I push and where to?
    – ajarrow
    Feb 9, 2022 at 14:29
  • Does this answer your question? How to uninstall an app when "Uninstall" dialog is not shown?
    – Robert
    Feb 9, 2022 at 14:33
  • @Robert Not really. I guess I could go through and uninstall each one separately but I was trying to find something like what I had. Someone on stackoverflow said something about using a file called pkgs2rm but he used xargs which I am not familiar with. stackoverflow.com/questions/71042853/…
    – ajarrow
    Feb 9, 2022 at 14:42
  • Why not accept the challenge and learn how xargs works? BTW: Are you aware that if you uninstall the wrong package your phone may end up in a boot loop?. Therefore I would strongly recommend only to uninstall apps you exactly know what they are for like weather widgets or something like that. The rest just leave alone.
    – Robert
    Feb 9, 2022 at 14:54

0

You must log in to answer this question.

Browse other questions tagged .