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 2.7k 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.
    • 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 Online
        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 Offline
          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 Offline
                  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

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post