How can I rephrase: adb shell "pm block com.sec.knox.bridge" to work in an Android 10 phone? Hope I am asking the right kind of question. I recently gained from my father a brand new phone his company gave him shortly before his retirement. They gave it to him knowing he was leaving and were trying to be nice. However the phone was still attached to the security settings of the company, including being tied to a Intune Company Portal app, I believe via Knox. Long story short I managed to uninstall that app after eventually being able to revoke its admin app permissions (previously it kept reinstalling itself). I am now trying to put the final nail in the coffin to make sure it can't come back to haunt me.
I have managed to connect my s10 to ADB on my computer and a site I found that helped me with some of the above gave a list of commands to remove Knox. They all follow the format in the title, which to repeat here is
adb shell &quot;pm block com.sec.knox.bridge&quot;
however the return is Unknown command: block
I imagine this was a fix for a previous version using old nomenclature. So my question is how do I correct the above syntax for that statement to do its job?
Cheers,
Shane
As mentioned by @Firelord, use pm disable --user 0 instead of pm block. pm block is deprecated (not exist of new versions of pm). if you have an error with disable then the application still device admin or the package name is not com.sec.knox.bridge.
Check if the App is device admin
adb shell dumpsys device_policy | grep knox

If the command output a result, then the application still device admin.
To be sure that the package name is com.sec.knox.bridge:
adb shell pm list packages | grep knox