-
@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!
-
@vince-vs Similar issue to.....?
https://forums.ubports.com/topic/8851/can-t-re-install-the-music-app?_=1701061044568 -
Worst comes to the worst, you could always reinstall using the UT installer. That generally sorts out any mess I have created...
-
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, runadb 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 useIn case the app does not start, clear the config files for that app under
~/.config/APPNAME
. [~
is equal to/home/phablet
] -
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.
-
@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. -
@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).
-
-
@danfro
Hello,
Here is what I did with the correct information from @danfroOpen 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.ubportsThen reboot the phone and ...
The Camera is back!Thank you, danfro for your efficiency !
-
-
-
@vince-vs Thanks a lot for your feedback. Glad I could help.