13 Pro Global, camera widget?


On fresh fastboot flash latest dev beta 14.0.23.4.2
Still not connecting to Camera
Camera Version 4.5.002120.0
I am wondering why you still have this "Download" icon on widgets.. did you try tap on it and download them?

0375aafb69f15b64b3a35645a39f4b19.jpg
 
Last edited:
  • Like
Reactions: kcorrea1
OK, we have found a reason why you could not add camera widgets.. it should be fixed in rebuilt version of 23.4.2 now and in next stable version...

Download and install ROM for Xiaomi 13 Pro

Download and install ROM for Xiaomi 13

and run these two adb commands to enable widgets or make a factory reset..
Code:
adb shell pm uninstall --user 0 com.android.camera
adb shell pm install-existing --user 0 com.android.camera
 
Last edited:
  • Like
Reactions: JiaiJ
OK, we have found a reason why you could not add camera widgets.. it should be fixed in rebuilt version of 23.4.2 now and in next stable version...

Download and install ROM for Xiaomi 13 Pro

Download and install ROM for Xiaomi 13

and run these two adb commands to enable widgets or make a factory reset..
Code:
adb shell pm uninstall --user 0 com.android.camera
adb shell pm install-existing --user 0 com.android.camera
Thank you for all your efforts to make this work, this is truly appreciated! My son is downloading the updates now, I will let you know how this goes.
 
Last edited by a moderator:
OK, we have found a reason why you could not add camera widgets.. it should be fixed in rebuilt version of 23.4.2 now and in next stable version...

Download and install ROM for Xiaomi 13 Pro

Download and install ROM for Xiaomi 13

and run these two adb commands to enable widgets or make a factory reset..
Code:
adb shell pm uninstall --user 0 com.android.camera
adb shell pm install-existing --user 0 com.android.camera
Upon running given command in ADB i get "java.lang.SecurityException: Shell cannot change component state for ComponentInfo{com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraLens2WidgetProvider} to 1"
 

Attachments

  • Screenshot 2023-04-10 083526.png
    Screenshot 2023-04-10 083526.png
    51.1 KB · Views: 135
Last edited by a moderator:
Upon running given command in ADB i get "java.lang.SecurityException: Shell cannot change component state for ComponentInfo{com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraLens2WidgetProvider} to 1"
Try these commands as an alternative, they will simply force-reinstall the Camera app:
Code:
adb shell pm uninstall --user 0 com.android.camera
adb shell pm install-existing --user 0 com.android.camera
 
Try these commands as an alternative, they will simply force-reinstall the Camera app:
Code:
adb shell pm uninstall --user 0 com.android.camera
adb shell pm install-existing --user 0 com.android.camera
Thank you Igor, the camera widget works for me now, thank you for making this happen. How can I show my appreciation in form of a small donation? Greetings from the South Island of New Zealand, Birgit
 
Hi. Have a similar problem with camera widgets on Xiaomi 13Pro. I tried the solutions proposed here, including reinstalling the camera application. It didn't help. I didn't do a factory reset
Code:
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)
 
Last edited by a moderator:
Hi. Have a similar problem with camera widgets on Xiaomi 13Pro. I tried the solutions proposed here, including reinstalling the camera application. It didn't help. I didn't do a factory reset
Code:
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)
and did you install reuploaded ROM?
 
Not fixed. Even in reuploaded rom.
and did you install reuploaded ROM?

Even after adb uninstall/re install camera,

pm enable com.android.camera/com.android.camera2.compat.theme.custom.cv.widget.CameraFiltersWidgetProvider

Both commands not running. Widgets still throwing same error.
 

Attachments

  • Screenshot_2023-04-11-10-20-31-037_com.draco.ladb.jpg
    Screenshot_2023-04-11-10-20-31-037_com.draco.ladb.jpg
    549.3 KB · Views: 113
  • Screenshot_2023-04-11-14-27-30-271_com.miui.home.jpg
    Screenshot_2023-04-11-14-27-30-271_com.miui.home.jpg
    1.5 MB · Views: 129
  • Screenshot_2023-04-11-14-27-39-816_com.miui.home.jpg
    Screenshot_2023-04-11-14-27-39-816_com.miui.home.jpg
    1,011.6 KB · Views: 124
  • Like
Reactions: PDanil0590
so did you ran these commands?
Code:
adb shell pm uninstall --user 0 com.android.camera
adb shell pm install-existing --user 0 com.android.camera
Yes.
But still the error.
 

Attachments

  • Screenshot_2023-04-11-22-37-53-305_com.draco.ladb.jpg
    Screenshot_2023-04-11-22-37-53-305_com.draco.ladb.jpg
    247.4 KB · Views: 114
  • Screenshot_2023-04-11-22-37-57-488_com.draco.ladb.jpg
    Screenshot_2023-04-11-22-37-57-488_com.draco.ladb.jpg
    249.5 KB · Views: 111
  • Screenshot_2023-04-11-22-38-51-074_com.miui.home.jpg
    Screenshot_2023-04-11-22-38-51-074_com.miui.home.jpg
    433.3 KB · Views: 134
commands are OK..

seems you dont have correct ROM installed.. so download it again, install and run commands again..
 
commands are OK..

seems you dont have correct ROM installed.. so download it again, install and run commands again..
I have the same behaviour with the re-downloaded ROM. commands run successfully but widget cannot be enabled.

Is this the correct md5 for nuwa re-downloaded ROM?

Code:
1fb425ce5246c321bedcf66710f77f22
Sent from my Xiaomi 13 Pro using Tapatalk
 
Last edited by a moderator:
do you have installed some Magisk or any Magisk module?
 
do you have installed some Magisk or any Magisk module?
Only magisk module installed is the systemless host. I have magisk delta though with magisk hide enabled if it makes any difference

Sent from my Xiaomi 13 Pro using Tapatalk