Question Need help remove Active Device Admin app - Samsung Galaxy S22

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.

Related

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 Shizuku Local ADB !

Hello guys . In shizuku app that use pairing adb over network . In this app there is option allow you to use shizuku in your terminal apps like Termux and I use Termux in this case the problem is I can't use this option because I don't know what is steps should I do in locked bootloader and non rooted device I need full access to adb by this way because I don't have PC in real time
The error in the attachment files
AmrMero said:
Hello guys . In shizuku app that use pairing adb over network . In this app there is option allow you to use shizuku in your terminal apps like Termux and I use Termux in this case the problem is I can't use this option because I don't know what is steps should I do in locked bootloader and non rooted device I need full access to adb by this way because I don't have PC in real time
The error in the attachment files
Click to expand...
Click to collapse
https://www.reddit.com/r/termux/comments/i2nrbm
I this allow me to run adb and she'll commands from my device to the same device (local) I think the like to send adb to another device right !?
AmrMero said:
I think the like to send adb to another device right !?
Click to expand...
Click to collapse
I don't understand what you want to ask.
To send ADB command to another device, you can use ADB over WIFI setting in developer option.
I mean I need send adb from my device to my device by shizuku . (All in the same device )
I'm not really sure what your issue is. Shizuku is pretty simple, even if you use it for terminal. You exported the files. You changed the Package ID. So what's the problem? You can use it now.
For example, `adb shell pm disable com.bloatware.app` just becomes `shizuku pm disable com.bloatware.app`. shizuku basically gives you ADB shell access. Use `shizuku` similar to how you'd use `sudo` on Linux.
To test, just do `./shizuku ls`. First time you should get a permission prompt by the shizuku appz asking if you wanna grant permissions to termux.
AmrMero said:
Hello guys . In shizuku app that use pairing adb over network . In this app there is option allow you to use shizuku in your terminal apps like Termux and I use Termux in this case the problem is I can't use this option because I don't know what is steps should I do in locked bootloader and non rooted device I need full access to adb by this way because I don't have PC in real time
The error in the attachment files
Click to expand...
Click to collapse
You said you don't have computer access all the time. So, I'm assuming you have it at least once. If so, try rhis.
1. Connect to computer and enable wireless adb (just google it)
2. Download this app named Remote ADB Shell by Cameron Gutman https://play.google.com/store/apps/details?id=com.cgutman.androidremotedebugger
3. Enter IP as 127.0.0.1 and port as 5555 (assuming you didn't change it in the first step)
Can't say if your Shizuku needs will be satisfied but this way, you'll be able to run commands in adb shell (from your phone) as if doing from computer. Make sure that you don't use aadb sheelll iin the commands

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

Question Game Optimizing Service How to delete?

I want to delete this application completely, I do it with code, but when the phone restarts, it comes back.
Make a little and ol' root, install something interesting like sd maid or package manager and say Goodbye, or with adb execute this command: adb shell pm uninstall com.samsung.android.game.gos and this: adb reboot. Note that you need to activate the usb debugging settings

Categories

Resources