Question Debloated Samsung Dex apps from S22+ and now can't install again - Samsung Galaxy S22

I debloated several apps of my Samsung S22+ and Dex was one of them. I did it with adb command. Now, I want to install Dex again but can't do it. Is there any solution to this problem?

You need to re-enable it with another adb command.
adb shell cmd package install-existing <name of package>

Just do factory rest of the phone or download official firmware

Related

Always getting INSTALL_FAILED_INVALID_APK when trying to uninstall package via adb

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.

Bootloop after uninstalling com.miui.securitycenter app with adb

Hi,
I've got Redmi Note 8T updated yesterday (I think V11.0.5.0.PCXEUXM).
Today I used adb command to uninstall com.miui.securitycenter app and after a reboot the device doesn't boot anymore.
Bootloader is locked.
Is there a way to recover without deleting user data?
ildani said:
Hi,
I've got Redmi Note 8T updated yesterday (I think V11.0.5.0.PCXEUXM).
Today I used adb command to uninstall com.miui.securitycenter app and after a reboot the device doesn't boot anymore.
Bootloader is locked.
Is there a way to recover without deleting user data?
Click to expand...
Click to collapse
yes there are a few apps which you can't uninstall otherwise you'll face bootloop like mi security, digital wellbeing etc..but the good news is since you uninstalled using adb so you don't have to do a lot of work to recover your phone..use the following command to reinstall the app :
Code:
adb shell cmd package install-existing <name of package>
This works because applications truly aren’t being fully uninstalled from the device using adb command, they are just being uninstalled for the current user (user 0 is the default/main user of the phone) and come back when you reset your phone or use the above mentioned command.
Thank you @the_weird_aquarian for your reply, but I couldn't access adb shell anymore so I had to wipe data.
(digital wellbeing as far as I know can be disabled/uninstalled without problems).
Same here, I use redmi note 8 pro. Just go to recovery mode, wipe data... Ur phone should working now. Wipe data make factory reset. I don't see other option to keep data. Except u ever back up using mipcsuite
where to use this command ? in twrp or fastboot mode ?
loopypalm said:
is there a way to freez or delete "com.miui.securitycenter" and "com.android.updater" without bootloop ???
where to use this command ? in twrp or fastboot mode ?
is this the right way to use it :
adb shell cmd package install-existing com.android.updater
Click to expand...
Click to collapse
Unfortunately you cannot uninstall com.miui.securitycenter or else your phone will go into bootloop...It's a core miui component and xiaomi designed it that way..
regarding the com.android.updater I haven't tried deleting it so I can't confirm if your phone will enter bootloop after deleting it or not...
adb shell cmd package install-existing com.android.updater
is the command to install any package back if you want..but it'll only work if you've only removed packages via adb..I've already explained why it works that way in my previous reply...If you delete folders right away from /system/app or /system/priv-app like I do, then this command won't work.
To uninstall any package via adb, download minimal adb and fastboot, connect phone normally to pc (no twrp or fastboot required), open cmd in adb and fastboot drivers path and use following commands (Hit ENTER after each command):
Code:
adb shell
pm uninstall -k --user 0 packagename
the_weird_aquarian said:
Unfortunately you cannot uninstall com.miui.securitycenter or else your phone will go into bootloop...It's a core miui component and xiaomi designed it that way..
regarding the com.android.updater I haven't tried deleting it so I can't confirm if your phone will enter bootloop after deleting it or not...
adb shell cmd package install-existing com.android.updater
is the command to install any package back if you want..but it'll only work if you've only removed packages via adb..I've already explained why it works that way in my previous reply...If you delete folders right away from /system/app or /system/priv-app like I do, then this command won't work.
To uninstall any package via adb, download minimal adb and fastboot, connect phone normally to pc (no twrp or fastboot required), open cmd in adb and fastboot drivers path and use following commands (Hit ENTER after each command):
Code:
adb shell
pm uninstall -k --user 0 packagename
Click to expand...
Click to collapse
yes, i did the command while the phone is on and it worked
but i'm speaking about when the phone is in bootloop
what do you do in that case ? (beside restore the twrp image)
loopypalm said:
yes, i did the command while the phone is on and it worked
but i'm speaking about when the phone is in bootloop
what do you do in that case ? (beside restore the twrp image)
Click to expand...
Click to collapse
oh just connect your device to pc while it's in twrp and then use the commands.
the_weird_aquarian said:
oh just connect your device to pc while it's in twrp and then use the commands.
Click to expand...
Click to collapse
Thx ! I'll try that .
the_weird_aquarian said:
oh just connect your device to pc while it's in twrp and then use the commands.
Click to expand...
Click to collapse
dosn't work
i try : adb shell pm list packages
while the phone is ON = worked
while the phone is in TWRP = not work
Does adb respond while device is in bootloop?
OliveReeve said:
Does adb respond while device is in bootloop?
Click to expand...
Click to collapse
yes but as far as i know, only adb fastboot commands work
OliveReeve said:
Does adb respond while device is in bootloop?
Click to expand...
Click to collapse
Yes It works. Just try installing the com.miui.securitycenter package through "adb shell pm install-existing com.miui.securitycenter" while the MIUI logo appears in the bootloop.
Tried and saved my bricked device.
Thanks for the tip on "install-existing", folks. Saved my bacon.
the_weird_aquarian said:
yes there are a few apps which you can't uninstall otherwise you'll face bootloop like mi security, digital wellbeing etc..but the good news is since you uninstalled using adb so you don't have to do a lot of work to recover your phone..use the following command to reinstall the app :
Code:
adb shell cmd package install-existing <name of package>
This works because applications truly aren’t being fully uninstalled from the device using adb command, they are just being uninstalled for the current user (user 0 is the default/main user of the phone) and come back when you reset your phone or use the above mentioned command.
Click to expand...
Click to collapse
thanks! You just safed my phone xD
same problem here. had to wipe data. never going to buy this **** again. **** xiaomi. **** them
Saved my data!
Reminds me of when I use to play with Regedit... dependencies, dependencies, dependencies
can i disable (not delete) security center via ADB or causes this also bootloop? What About Gallery & Theme App?
droi1 said:
can i disable (not delete) security center via ADB or causes this also bootloop? What About Gallery & Theme App?
Click to expand...
Click to collapse
the adb command :
pm uninstall -k --user 0
just freez the app for user 0 , it does not remove it (check with a file explorer after a reboot)
and you can't touch security app or you will face bootloop
that app alone is what made me look for a custom rom ...
about gallery and theme you can, but i suggest you do a full backup just in case ...

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?

Question Need help remove Active Device Admin app

I have Galaxy S22 Ultra un-rooted.
I installed Sgallery app and I enable device admin via ADB in order to use some fuctions like "App Hide".
adb command : adb shell dpm set-device-owner com.hld.anzenbokusu/.receiver.DPMReceiver
How can I reset the device-owner to default so I can uninstall Sgallery?
I need help.
what's the adb command to remove "com.hld.anzenbokusu/.receiver.DPMReceiver" as device-owner?
anyone kind enough to HELP.
It is very time consuming to flash stock firmware and setup all apps all over again.

Question How to Enable All Packages Via CMD

I screwed up my S22 by disabling the permission package via ADB AppControl app, and now my phone is stuck in a bootloop.
Is there a way to enable all disabled packages during the phone's bootup?
I remember the command is 'pm enable', but I can't locate the package name.
Thank you

Categories

Resources