C:\tools_r34.0.1-windows>adb shell pm uninstall --user 0 com.android.camera
Success
C:\tools_r34.0.1-windows>adb shell pm install-existing --user 0 com.android.camera
Package com.android.camera installed for user: 0
C:\tools_r34.0.1-windows>adb shell pm enable com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraFiltersWidgetProvider
Exception occurred while executing 'enable':
java.lang.SecurityException: Shell cannot change component state for ComponentInfo{com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraFiltersWidgetProvider} to 1
at com.android.server.pm.PackageManagerService.setEnabledSettings(Unknown Source:697)
at com.android.server.pm.PackageManagerService.-$$Nest$msetEnabledSettings(Unknown Source:0)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.setComponentEnabledSetting(Unknown Source:23)
at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(Unknown Source:138)
at com.android.server.pm.PackageManagerShellCommand.onCommand(Unknown Source:1103)
at com.android.modules.utils.BasicShellCommandHandler.exec(Unknown Source:27)
at android.os.ShellCommand.exec(Unknown Source:4)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(Unknown Source:24)
at android.os.Binder.shellCommand(Unknown Source:0)
at android.os.Binder.onTransact(Unknown Source:148)
at android.content.pm.IPackageManager$Stub.onTransact(Unknown Source:28)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(Unknown Source:0)
at android.os.Binder.execTransactInternal(Unknown Source:105)
at android.os.Binder.execTransact(Unknown Source:16)
C:\tools_r34.0.1-windows>adb shell pm enable com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraLens2WidgetProvider
Exception occurred while executing 'enable':
java.lang.SecurityException: Shell cannot change component state for ComponentInfo{com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraLens2WidgetProvider} to 1
at com.android.server.pm.PackageManagerService.setEnabledSettings(Unknown Source:697)
at com.android.server.pm.PackageManagerService.-$$Nest$msetEnabledSettings(Unknown Source:0)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.setComponentEnabledSetting(Unknown Source:23)
at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(Unknown Source:138)
at com.android.server.pm.PackageManagerShellCommand.onCommand(Unknown Source:1103)
at com.android.modules.utils.BasicShellCommandHandler.exec(Unknown Source:27)
at android.os.ShellCommand.exec(Unknown Source:4)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(Unknown Source:24)
at android.os.Binder.shellCommand(Unknown Source:0)
at android.os.Binder.onTransact(Unknown Source:148)
at android.content.pm.IPackageManager$Stub.onTransact(Unknown Source:28)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(Unknown Source:0)
at android.os.Binder.execTransactInternal(Unknown Source:105)
at android.os.Binder.execTransact(Unknown Source:16)