UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Faulty camera

    Scheduled Pinned Locked Moved Solved Support
    19 Posts 6 Posters 1.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • V Offline
        vince.vs @MrT10001
        last edited by

        @MrT10001

        Thank you for your prompt reply.
        After rebooting, the camera application cannot be reinstalled.
        I had already reinstalled UT 20.04 after ota-1.
        I will, when possible for me, erase reset the phone with the reset option, and if that does not work I will reinstall.
        However, it shouldn't become the norm that when an application doesn't work, you have to go through a full installation of UT again; that would become too cumbersome.
        Best regards

        MrT10001M LakotaubpL danfroD 3 Replies Last reply Reply Quote 0
        • MrT10001M Online
          MrT10001 @vince.vs
          last edited by

          @vince-vs I agree, however you are dealing with older hardware and an OS. that is still at some stage of beta, but very usable. I wonder if Waydroid may have caused the issue. If it fails to work again, raise it as a bug with the porter.

          Xiaomi Redmi Note 7.... And more...
          I have too many devices...

          V 1 Reply Last reply Reply Quote 0
          • CiberSheepC CiberSheep moved this topic from 20.04 Focal Fossa on
          • LakotaubpL Offline
            Lakotaubp @vince.vs
            last edited by

            @vince-vs Not ideal situation. Have you tried swopping update channel to devel and see if that fixesIf it? If it does just swop back to Stable.

            V 1 Reply Last reply Reply Quote 1
            • V Offline
              vince.vs @MrT10001
              last edited by

              @MrT10001
              Hello,
              after uninstalling Waydroid and rebooting UT, application camera still not installable.
              So it's not coming from Waydroid ...

              1 Reply Last reply Reply Quote 0
              • V Offline
                vince.vs @Lakotaubp
                last edited by

                @Lakotaubp

                Hello,
                I followed your suggestion and the camera app installation didn't work on the development channel. I switched back to the stable channel, and the camera app still can't be installed on my OP5T ota-3.

                MoemM 1 Reply Last reply Reply Quote 0
                • MoemM Offline
                  Moem @vince.vs
                  last edited by

                  Try the following:
                  Go into the file manager, unlock it, and delete the following directory:

                  ~/.config/camera.ubports
                  

                  Then reboot. The camera should be back and working.

                  Is currently using an Op5t
                  Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                  V 1 Reply Last reply Reply Quote 0
                  • V Offline
                    vince.vs @Moem
                    last edited by

                    @Moem
                    after your suggestion to delete
                    ~/.config/camera.ubports file and restart, unfortunately the installation of the camera app is still not possible.
                    The config camera folder is now empty ...

                    MoemM IanI 2 Replies Last reply Reply Quote 0
                    • MoemM Offline
                      Moem @vince.vs
                      last edited by

                      @vince-vs Hmm! In that case you may need to remove more to force the camera (which is a pre-installed app) to come back after a reboot. Unfortunately that's most easily done by terminal and me and the terminal are not friends!

                      Is currently using an Op5t
                      Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                      1 Reply Last reply Reply Quote 0
                      • IanI Offline
                        Ian @vince.vs
                        last edited by

                        @vince-vs Similar issue to.....?
                        https://forums.ubports.com/topic/8851/can-t-re-install-the-music-app?_=1701061044568

                        1 Reply Last reply Reply Quote 1
                        • MrT10001M Online
                          MrT10001
                          last edited by

                          Worst comes to the worst, you could always reinstall using the UT installer. That generally sorts out any mess I have created...:beaming_face_with_smiling_eyes:

                          Xiaomi Redmi Note 7.... And more...
                          I have too many devices...

                          danfroD 1 Reply Last reply Reply Quote 0
                          • danfroD Offline
                            danfro @vince.vs
                            last edited by

                            @vince-vs

                            For installing the camera app please try to follow this guide I just wrote (https://t.me/ut_troubleshooting/19😞

                            Likely due to the migration there are parts of the old installation left on your device. In most cases this happens with core apps, because they faced a change in namespace, due to the renaming form unity8 to lomiri.

                            So you need to clear those "leftover" parts of the app.
                            In most cases you need to search the /opt folder for those code parts.
                            You can either do that manually with filemanager (make sure to have show hidden files enabled.) But this is quite tedious and you will likely miss something. This task is much easier to do with the terminal.
                            Also it is recommended to not use the terminal on the device, but a terminal via adb.

                            1 a) open terminal app on the device OR
                            1 b) open a terminal on your computer, plug in the device, run adb shell
                            2. find the files: run this command, replace APPNAME with the common name part of the app, but keep the *
                            sudo find /opt -iname *APPNAME*
                            (example weather app: sudo find /opt -iname *weather*)
                            3. remove all files of that app that are listed, (core apps have their code in the rootfs, not in /opt, so this is safe to do): you can use this terminal command to do so, replace PATH with the path of the files or folders to delete:
                            sudo rm -r PATH
                            (example weather app: sudo rm -r /opt/click.ubuntu.com/weather.ubports for the full folder)
                            4. reboot your device, this will make the device go back to the preinstalled version of the core app, so after reboot the app should be ready to use

                            In case the app does not start, clear the config files for that app under ~/.config/APPNAME. [~ is equal to /home/phablet]

                            V 1 Reply Last reply Reply Quote 1
                            • danfroD Offline
                              danfro @vince.vs
                              last edited by

                              @vince-vs

                              Does this happen after you had an incoming phone call? Is the sound back after a reboot?

                              There is this issue with an instruction how to apply a workaround: https://github.com/ubports/ubuntu-touch/issues/2022#issuecomment-1548180414. I hope this helps.

                              1 Reply Last reply Reply Quote 0
                              • danfroD Offline
                                danfro @MrT10001
                                last edited by

                                @MrT10001 In this case this will not help. The broken files are in the /opt folder (almost always at least). And the installer will not touch /opt unless you do a full reinstall with wiping all user data. And that we try to avoid. 😉

                                MrT10001M 1 Reply Last reply Reply Quote 0
                                • MrT10001M Online
                                  MrT10001 @danfro
                                  last edited by

                                  @danfro said in Faulty camera:

                                  And that we try to avoid

                                  And that we do, however sometimes it's the quickest and easiest solution (backing up data beforehand of course). 😃

                                  Xiaomi Redmi Note 7.... And more...
                                  I have too many devices...

                                  V 1 Reply Last reply Reply Quote 0
                                  • V Offline
                                    vince.vs @MrT10001
                                    last edited by

                                    @MrT10001
                                    @danfro
                                    Hello,
                                    Unfortunately I don't have the time this week.
                                    I'll get back to you next week and let you know the results of the procedures you've told me about.
                                    Have a nice weekend !

                                    1 Reply Last reply Reply Quote 0
                                    • V Offline
                                      vince.vs @danfro
                                      last edited by

                                      @danfro
                                      Hello,
                                      Here is what I did with the correct information from @danfro

                                      Open the terminal ( on your computer ), then adb shell

                                      After the command :
                                      sudo find /opt -iname camera
                                      you can see what is in the list in /opt ( you are in lomri )
                                      .... ( I do not recopy the detail )

                                      I did this :
                                      sudo rm -r /opt/click.ubuntu.com/camera
                                      sudo rm -r /opt/click.ubuntu.com/camera.ubports
                                      This is what appears :
                                      opt/click.ubuntu.com/.click/users/phablet/camera.ubports
                                      /opt/click.ubuntu.com/.click/users/@all/camera.ubports
                                      Here we are in (I think) the old data.
                                      ... ( I do not recopy the detail )
                                      so delete with :
                                      sudo rm -r /opt/click.ubuntu.com/.click/users/phablet/camera.ubports
                                      sudo rm -r /opt/click.ubuntu.com/.click/users/@all/camera.ubports

                                      Then reboot the phone and ...
                                      The Camera is back!

                                      Thank you, danfro for your efficiency !

                                      danfroD 1 Reply Last reply Reply Quote 0
                                      • V vince.vs marked this topic as a question on
                                      • V vince.vs has marked this topic as solved on
                                      • danfroD Offline
                                        danfro @vince.vs
                                        last edited by

                                        @vince-vs Thanks a lot for your feedback. Glad I could help. 👍

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post