Always getting INSTALL_FAILED_INVALID_APK when trying to uninstall package via adb - Samsung Galaxy A50 Questions & Answers

Hi everyone,
I would like to debloat my phone by uninstalling apps for my profile instead of disabling them but i'm always getting "Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for null]"
Code:
PS C:\Program Files (x86)\Mini ADB and Fastboot> ./adb.exe shell pm uninstall -k --user 0 com.microsoft.office.officehubrow
Failure [INSTALL_FAILED_INVALID_APK: Missing existing base package for null]
I tried other apps with the same result. Of course,I have installed the samsung android drivers for windows, activated USB Debugging mode on my phone and if i send other kinds of commands like "./adb.exe shell pm list package", it work.
Thank you for your help!

Because those aren't apps but app stubs. Disable them instead.

Related

Stock gallery3d apk needed

Hello, can I kindly ask for link to stock gallery3d apk 'cause after debloating by uninstall command in adb I removed it. I don't wanna do factory reset. Reinstalling command is not working but it's obvious since it is not disabled.
I did it myself. For everyone who don't know how to reinstall app after uninstalling it with adb.
Go to adb again. Type adb shell after that you need to enable deleted package typing pm enable com.coloros.gallery3d after that you need to install package typing package install-existing com.coloros.gallery3d (or pm install-existing com.coloros.gallery3d - I forgot what exactly I type). After that everything is working.
Were you able to uninstall game center and app market safely?

Disable system update?

Hi,
I was wondering how I can stop my phone from updating to one UI 3.0? I forgot to disable automatic updates and so it downloaded the update and is saying I will be forced to install in 3 hours...are there certain services in adb I can disable? I tried wiping the cache partition thinking the update might be there, but when I rebooted the message was still there. Please help if you can, thank you.
If it's a carrier phone using a package blocker or ADB to disable the update apk -might- get it.
It's a good question.
I'm curious to see what others with more knowledge about this have to say.
On my AT&T 10+ it only updates on wifi unless you are near... an update tower, if so then bam!
It's important to keep the carrier's autoupdate apk disabled at all times. The carrier can also disable it on their end if you bug them enough.
The phone is unlocked(xac).
I tried installed adb but it didn't work(installed the sdk) but for some reason the platform tools folder would not show up. Going to factory reset and try disabling auto update from the start.
I succesfully disabled software updates using ADB. This is the full recipe I used:
- Conected phone via USB to PC (Windows 7 64 bits). Waited a while for drivers to install.
- Installed "minimal_adb_fastboot_v1.4.3_setup.exe" (from XDA-Developers).
- Enabled USB DEBUG under "Config / Developer Options" on phone.
- Connected phone to PC via USB.
- Opened a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
- Typed ADB SHELL, and the phone´s shell opened.
- Then I used the following commands:
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable packages (USE THESE):
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
to reenable later (IF YOU CHANGE YOUR MIND):
pm enable --user 0 com.sec.android.soagent
pm enable --user 0 com.wssyncmldm
By the way: after freezing update to Android 11 UI 3.0 for a week, I changed my mind and enabled it. Immediately downloaded the upgrade to 11 and installed. So far so good: not a single issue. I was worried for the "scoped storage" introduced by Android 11, but it was not a problem. I was able to read and write my SD Card as usual, use my "ES File Explorer" as usual, etc, etc. And I can also confirm that battery autonomy is at least the same as with Android 10.
Regards,
Pablo.
paggps said:
I succesfully disabled software updates using ADB. This is the full recipe I used:
- Conected phone via USB to PC (Windows 7 64 bits). Waited a while for drivers to install.
- Installed "minimal_adb_fastboot_v1.4.3_setup.exe" (from XDA-Developers).
- Enabled USB DEBUG under "Config / Developer Options" on phone.
- Connected phone to PC via USB.
- Opened a Command Prompt under the folder "C:\Program Files (x86)\Minimal ADB and Fastboot"
- Typed ADB SHELL, and the phone´s shell opened.
- Then I used the following commands:
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable packages (USE THESE):
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
to reenable later (IF YOU CHANGE YOUR MIND):
pm enable --user 0 com.sec.android.soagent
pm enable --user 0 com.wssyncmldm
By the way: after freezing update to Android 11 UI 3.0 for a week, I changed my mind and enabled it. Immediately downloaded the upgrade to 11 and installed. So far so good: not a single issue. I was worried for the "scoped storage" introduced by Android 11, but it was not a problem. I was able to read and write my SD Card as usual, use my "ES File Explorer" as usual, etc, etc. And I can also confirm that battery autonomy is at least the same as with Android 10.
Regards,
Pablo.
Click to expand...
Click to collapse
Hello. Thanks for the help. Does the phone have to be in a certain mode in order to use these commands? Like download mode or something? Because I installed adb fastboot and the terminal window came up just as you described. But when I try typing in "ADB SHELL", I get ":adb :shell unknown command SHELL" What am I doing wrong?
Edit: nevermind I figured it out. For anyone else struggling with getting adb to run, I had to run "adb devices" first and then it said "daemon not running" before starting the service and then I saw my phones serial number pop up. After that I was able to run the "adb shell" command and the prompt changed to "d2q: /$" there I put in the services listed by paggps and the auto update service was disabled instantly and the annoying update notification was gone!
Thanks you very much paggps! Maybe Android 11 is good, but I really like having system access to my android folder and some of the other changes just aren't to my taste. I'll probably update in time though once it's more stable. Thanks again! Have a great day!
It appears that there is no ‘wssyncmldm’ package on my Samsung A50 (Model: SM-A505U). Does anyone no of any equivalent commands to those shown above in post #5 by user ‘paggps’ that might disable the system updates on my device? I’m trying to stop the system updates because the system/security updates also update the boot loader version and I’d like to try and root this device some day.
a50:/ $ pm list packages | grep soagent
package:com.sec.android.soagent
a50:/ $ pm list packages | grep wssyncmldm
a50:/ $ *** So it appears that there is no 'wssyncmldm' package ***
a50:/ $ pm disable-user --user 0 com.sec.android.soagent
Package com.sec.android.soagent new state: disabled-user
a50:/ $ pm disable-user --user 0 com.wssyncmldm
Exception occurred while executing 'disable-user':
java.lang.IllegalArgumentException: Unknown package: com.wssyncmldm
at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:25552)
...
...
a50:/ $
Also here’s what I’ve already tried so far on my Samsung A50 (Model: SM-A505U) device using the User Interface Settings options that I thought might help some users on certain devices with certain system software versions to try and disable the system software updates:
To Enable the Developer Options:
Settings
About Phone
Software Information
Tap on 'Build number' quickly 7 times to Enable 'Developer Options' section of Settings
Enter your screen lock pattern or password
To Enable 'USB debugging' option which will allow ADB to connect to the device:
Settings
Developer Options
Debugging Section
USB debugging ENABLE
And to attempt to disable System Software updates via the User Interface (UI):
Settings
Developer Options
Auto update system DISABLE
Settings
Biometrics and Security
Scroll all the way to the bottom and Select ‘Other security settings’
Security policy updates DISABLE
Thanks for any help or suggestions.
tech_dude said:
It appears that there is no ‘wssyncmldm’ package on my Samsung A50 (Model: SM-A505U). Does anyone no of any equivalent commands to those shown above in post #5 by user ‘paggps’ that might disable the system updates on my device? I’m trying to stop the system updates because the system/security updates also update the boot loader version and I’d like to try and root this device some day.
a50:/ $ pm list packages | grep soagent
package:com.sec.android.soagent
a50:/ $ pm list packages | grep wssyncmldm
a50:/ $ *** So it appears that there is no 'wssyncmldm' package ***
a50:/ $ pm disable-user --user 0 com.sec.android.soagent
Package com.sec.android.soagent new state: disabled-user
a50:/ $ pm disable-user --user 0 com.wssyncmldm
Exception occurred while executing 'disable-user':
java.lang.IllegalArgumentException: Unknown package: com.wssyncmldm
at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:25552)
...
...
a50:/ $
Also here’s what I’ve already tried so far on my Samsung A50 (Model: SM-A505U) device using the User Interface Settings options that I thought might help some users on certain devices with certain system software versions to try and disable the system software updates:
To Enable the Developer Options:
Settings
About Phone
Software Information
Tap on Build number quickly 7 times
Enter your screen lock pattern or password
And to attempt to disable System Software updates:
Settings
Developer Options
Auto update system DISABLE
Settings
Biometrics and Security
Scroll all the way to the bottom and Select ‘Other security settings’
Security policy updates DISABLE
Thanks for any help or suggestions.
Click to expand...
Click to collapse
Try a search of the apps, "update".
It can have other names.
Or load Package Disabler as it will show there.
These are all the ones on my N10+/Android 10:
com.wssyncmldm
com.sec.android.systemupdate
com.sec.android.soagent
handled it thanks to these commands for my Samsung Galaxy S10E:
pm enable --user 0 com.sec.android.soagent
pm enable --user 0 com.wssyncmldm
thanks!
paggps said:
to find packages:
pm list packages | grep soagent
pm list packages | grep wssyncmldm
to disable packages (USE THESE):
pm disable-user --user 0 com.sec.android.soagent
pm disable-user --user 0 com.wssyncmldm
Click to expand...
Click to collapse
I just performed these steps on my and my-wife's S10+ phones (currently A11 January update). The second step caused the update in the notification bar to disappear. I only just did it, so maybe we'll get an update in the next few days, but it looks like this worked for me, thanks!
schwinn8 said:
I just performed these steps on my and my-wife's S10+ phones (currently A11 January update). The second step caused the update in the notification bar to disappear. I only just did it, so maybe we'll get an update in the next few days, but it looks like this worked for me, thanks!
Click to expand...
Click to collapse
It's DOA
Yay, a nasty app.

Question HELP How to restore com.android.systemui?

Good evening. When removing system packages, inadvertently deleted com.android.systemui, now it's just a black screen. I can use adb. Tried 2 commands: adb shell cmd package install-existing com.android.systemui and adb shell pm install-existing com.android.systemui but didn't help. Maybe there are ideas how to restore the com.android.systemui package without resetting the phone, please help.
although the apk is not really deleted, it is flagged as disabled in /data/system/users/0/package-restrictions.xml. you could download ROM according to ro.build.fingerprint then extract the apk, copy to /data/local/tmp and try to install..

Question Remove screenrecoder using adb fail with error -10000

I have MIUI 14 running Andriod 13.
I have been remove those miui bloatware one by one. So far it is fine.
But I am not able to remove the below. Any advise?
pm uninstall -k --user 0 com.miui.screenrecorder
Failure [-1000]
pm list package --user 0 | grep miui
package:com.miui.powerkeeper
package:com.miui.miwallpaper.overlay.customize
package:android.miui.overlay
package:android.miui.home.launcher.res
package:com.miui.face
package:com.miui.phone.carriers.overlay.vodafone
package:com.miui.global.packageinstaller
package:com.miui.micloudsync
package:com.miui.rom
package:com.miui.core.internal.services
package:com.miui.audiomonitor
package:com.miui.aod
package:com.android.server.telecom.overlay.miui
package:com.miui.screenrecorder
package:com.miui.guardprovider
package:com.miui.cloudbackup
package:com.miui.systemui.overlay.devices.android
package:com.lbe.security.miui
package:com.miui.securityadd
package:com.miui.gallery
package:com.miui.calculator
package:com.miui.notification
package:miui.systemui.plugin
package:com.miui.bugreport
package:com.miui.mediaeditor
package:com.miui.system
package:com.miui.securitycenter
package:com.miui.audioeffect
package:com.miui.qr
package:com.miui.home
package:com.miui.wmsvc
package:com.android.systemui.overlay.miui
package:com.android.inputsettings.overlay.miui
package:com.miui.systemui.devices.overlay
package:com.miui.misound
package:com.miui.wallpaper.overlay.customize
package:com.google.android.cellbroadcastservice.overlay.miui
package:com.miui.daemon
package:com.miui.securitycore
package:com.miuix.editor
package:com.android.carrierconfig.overlay.miui
package:com.miui.android.fashiongallery
package:com.miui.settings.rro.device.hide.statusbar.overlay
package:com.android.settings.overlay.miui
package:com.miui.phrase
package:com.miui.extraphoto
package:com.miui.wallpaper.overlay
package:com.miui.core
package:com.miui.settings.rro.device.type.overlay
package:com.miui.compass
package:com.miui.face.overlay.miui
package:com.miui.freeform
package:com.miui.phone.carriers.overlay.h3g
package:com.miui.notes
package:com.miui.miwallpaper
package:com.miui.systemui.carriers.overlay
package:com.miui.backup
package:com.miui.settings.rro.device.config.overlay
package:com.miui.screenshot
package:com.google.android.cellbroadcastreceiver.overlay.miui
package:com.miui.system.overlay
package:com.miui.miinput
package:com.miui.cloudservice
package:com.miui.miwallpaper.overlay
package:com.android.phone.overlay.miui
Some apps are prevented from uninstalling. I believe you can disable them instead.
Bash:
pm disable-user --user 0 <package>
If this still doesn't work you can try manually disabling/uninstalling it in settings.
PS: You don't need adb & computer to open shell, you can download termux/terminal emulator instead
hadrbass89 said:
Some apps are prevented from uninstalling. I believe you can disable them instead.
Bash:
pm disable-user --user 0 <package>
If this still doesn't work you can try manually disabling/uninstalling it in settings.
PS: You don't need adb & computer to open shell, you can download termux/terminal emulator instead
Click to expand...
Click to collapse
Thank you. I notice inside the setting option there is screen recorder there and long list of items. It seems to be by various apps that integrated together.
As such it cannot be removed.
Try to install ADB App Control, so you could delete every system app you want

[GUIDE][Bloatware] Uninstall carrier/OEM bloatware from Motorola Stock ROM [Android 12+]

Hi everyone,
Follow the procedure to remove / uninstall bloatware from Motorola Stock Rom.
This guide applies to Motorola Android 12 and Android 13 but I've pretty sure this can be adapted to others roms and brands.
Originally adapted from: https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
Step1:
Ensure that you have ADB installed on your computer.
Enable USB Debugging.
Inside ADB folder (Open command/PowerShell)
Type adb devices (ensure that your phone is connected)
From your phone authorize a connection with the computer.
Step2:
After the connection has benn established type:
adb shell
pm list packages
Copy the list and paste into a notepad or other app that you like
find all the packages with: "package:com.motorola."
Step3:
Removing the apps that you don't want.
pmuninstall -k --user 0 NameOfPackage
pm uninstall -k --user 0 com.motorola.motocare <Hit enter>
Click to expand...
Click to collapse
Expected: result Success
You can find the package name in the Google Play Store: https://play.google.com/store/apps
Search for the app you want to uninstall, for example: Moto AI Services and copy the packname in the link: https://play.google.com/store/apps/details?id=com.motorola.aiservices
id=com.motorola.aiservices
Click to expand...
Click to collapse
Here is a list of the packages that I uninstall without problems:
com.motorola.motocare
com.motorola.ccc.notification
com.motorola.dimo
com.motorola.moto
com.motorola.spaces
com.motorola.aiservices
com.inmobi.weather
com.motorola.securityhub
com.motorola.brapps
com.motorola.gamemode
Click to expand...
Click to collapse
Note: After remove those packages you can run the command pm list packages to check the updated list of the packages.
Are there many other apps that you can uninstall by this command, just check the app and dependencies to not crash the integrity of the Android OS.

Categories

Resources