[Philips, Sony, TCL Android TV] derschnelle:
A happy new to to everybody!

I'm sorry to interrupt your conversation with a noob-question, but I can't find a solution at the moment:

I just got a XR-A80J and I'm trying to get rid of some of the bloatware. My problem is, that my "adb shell"-commands don't work.

Here is what I did:

- activated developer options on tv

- activated ADB-Debugging

- successfully connected to adb (via adb connect [ip])

- adb devices shows my tv

BUT when I enter:

adb shell pm disable -k --user 0 tv.samba.ssm

I get

Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: --user
at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:21560)
at com.android.server.pm.PackageManagerService.setApplicationEnabledSetting(PackageManagerService.java:21504)
at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:1826)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:212)
at android.os.ShellCommand.exec(ShellCommand.java:104)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22083)
at android.os.Binder.shellCommand(Binder.java:881)
at android.os.Binder.onTransact(Binder.java:765)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4892)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4166)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)

So I tried without "--user"

adb shell pm disable -k tv.samba.ssm

but than I get

Security exception: Shell cannot change component state for tv.samba.ssm/null to 2

java.lang.SecurityException: Shell cannot change component state for tv.samba.ssm/null to 2
at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:21619)
at com.android.server.pm.PackageManagerService.setApplicationEnabledSetting(PackageManagerService.java:21504)
at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:1826)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:212)
at android.os.ShellCommand.exec(ShellCommand.java:104)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22083)
at android.os.Binder.shellCommand(Binder.java:881)
at android.os.Binder.onTransact(Binder.java:765)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4892)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4166)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)

I also tried "adb root" but that didn't work either.

Can someone give me hint about what I'm doing wrong?

Thanks a lot in advance!

UPDATE:

I think I found a solution myself. The problem was the missing "-user" in the command:

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell pm disable-user com.disney.disneyplus

Package com.disney.disneyplus new state: disabled-user

At least, this seems to work for me.