Can't access ADB Shell - PM through command terminal - Android Q&A, Help & Troubleshooting

Phone: Samsung S6
Carrier: T-Mobile
I am unable to get PM to list any of the packages on my phone even though it's connected (I confirmed with adb devices). When I try to to run the command
Code:
pm list packages | grep '<OEM/Carrier/App Name>'
it simply loads another line to enter a command, and no packages are listed. I tried installing App Analyzer and getting the package names that way. After obtaining a package name for an app I wanted to uninstall, I tried entering the required command
Code:
pm uninstall -k --user 0 <app name>
Again, it just loads another line to enter a command, no success or fail message.

Related

'pm list packages --user 1' shows empty

Hi,
I have a Mi Max 1 gen with Lineage OS 14.1 recent nightly build installed. There's another user besides the default user, and I think it should be referred as user 1.
When I run:
Code:
adb shell pm list packages --user 0
It shows a list of packages.
When I run:
Code:
adb shell pm list packages --user 1
It shows nothing.
I think it shouldn't show nothing, although I haven't installed a third-party app.
So could you advise is it normal?
Thanks.

How to delete PayJoy? Samsung A720F (2017)

Hello. Could you please tell me how to remove PayJoy app from the phone?
Help me remove payjoy app
I think you only can DISABLE it - might be Android must got rooted before.
Using ADB commands
Code:
adb devices
adb shell "pm list packages -e | grep 'payjoy'" [color=red] <- this gets the package name used in next line[/color]
adb shell "pm disable-user --user 0 [color=blue]com.payjoy.status[/color]" [color=red]<- here you enter the [color=blue]true package name[/color] retrieved in previous line[/color]
adb shell "recovery --wipe-data"

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
here is a way you can delete system without pc without root

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
thanks. It was much needed.
Won't it be better if you have created list of removable apps? Other than sharing guide which everyone knows

How To Guide [GUIDE][MIUI] How to fix notification delay on MIUI

It work only on MIUI rom.
Method through ADB.
1) Install ADB, there are tons of packages out there
2) connect USB on phone and give permission to your computer access the phone
3) Type
Code:
adb shell pm disable-user --user 0 com.miui.notification

Categories

Resources