Coder Social home page Coder Social logo

Can't save to SD card about librecamera HOT 13 OPEN

iakmds avatar iakmds commented on July 19, 2024 2
Can't save to SD card

from librecamera.

Comments (13)

maverick74 avatar maverick74 commented on July 19, 2024

@iakmds I would like to ask 2 off topic questions. Should I open an issue or can I ask here?

from librecamera.

iakmds avatar iakmds commented on July 19, 2024

You can create a new issue and I'll assign the "Help wanted" label

*Also, regarding the SD card issue, may I know which Android version you are running?

from librecamera.

maverick74 avatar maverick74 commented on July 19, 2024

*Also, regarding the SD card issue, may I know which Android version you are running?

I'm on Android 8.1.
if you need to know something else I'll be around (No, I don't know the lottery numbers! XP )

Side note: This issue keeps me from using the app full time because I really want to save photos to SD card

from librecamera.

ksnnkr avatar ksnnkr commented on July 19, 2024

I am facing the same problem.
Android version is 9.
Even though I have given permissions regarding the SD card, it gives me the message as shown in the attached image and I am unable to save it.
It used to be the case in my environment.

It takes the picture but the white frame surrounding the image never goes away and the image is never saved.

But today, after updating to version 1.6.0, it now gives the error message as shown in the attached image.

Screenshot_20230225-104312

from librecamera.

iakmds avatar iakmds commented on July 19, 2024

@ksnnkr thanks for your info. Is the path /storage/6CD1-3126/DCIM/ a path on the SD card, or is it on the phone in this case?

You're right, the new version includes some error messages when things go wrong. What this error says is that it cannot copy the image file from the cache to the final destination; Probably because of an SD card related permission issue when saving that needs to be fixed

from librecamera.

ksnnkr avatar ksnnkr commented on July 19, 2024

Sorry for the lack of words.
/storage/6CD1-3126/DCIM/ is the path on the SD card.

In addition, today I tried to disable the permissions related to storage, and the message shown in the attached image appears at startup. The screen is dark because the cover is still on.
Screenshot_20230226-140347

from librecamera.

nettlebay avatar nettlebay commented on July 19, 2024

Hello! Same issue for me... and approximately the same error message. No problem with the Samsung's photo app. Not a read only issue as I created a new folder "LibreCamera" in the DCIM (in SD) without any difficulty.
Android 9. Samsung Galaxy XCover 4.

from librecamera.

mega-stoffel avatar mega-stoffel commented on July 19, 2024

same issue here.
Libre Camera can't write any files, neither to SD card nor to the internal storage.

Running Lineage19.1, and other apps (like Open Camera) are working fine.

Libre Camera in the latest 1.7.0 from f-droid.

Screenshots from the (pretty similar) error messages:

Screenshot_20230426-153430_LibreKamera.png

Screenshot_20230426-154244_LibreKamera.png

from librecamera.

rgabbo avatar rgabbo commented on July 19, 2024

I can confirm this issue also in Android 10

from librecamera.

sillyrat avatar sillyrat commented on July 19, 2024

Same issue here with GrapheneOS (Android 13): "Operation not permitted" errors when trying to access internal storage.

from librecamera.

jdenm8 avatar jdenm8 commented on July 19, 2024

Confirming on Graphene 230805 on a Pixel 6a. The Give Storage Permission button in the Onboarding Wizard does nothing and manually pointing the app at a directory throws the previously posted 'Operation Not Permitted' error.

from librecamera.

EllesarDragon avatar EllesarDragon commented on July 19, 2024

I have a samsung galaxy J5 2017(yes I know, but was practically forced to get a samsung phone, since only unaltered samsung phones where allowed).
android 9
app version 1.9.1

I could give t the permissions from the settings,
saving images to internal storage does work, but when saving to external storage it gives a
PathAccesException: Cannot copy file to '/storage/sdIDhere/libcam/imagename.jpg', path = '/data/user/0/com.iakmds.librecamera/cache/otherimagename.jpg' (OS Error: Permission denied, errno =13)

perhaps it is related to t[](his: https://stackoverflow.com/questions/60558577/how-to-solve-os-error-permission-denied-errno-13-in-flutter )
which is a problem which happens due to a conflict between before and including android sdk28 and android sdk29 and later.
android sdk 29 is aimed for android 10 and later and uses a difference in how it handles and requests external storage
they say that adding:
"
<application
android:requestLegacyExternalStorage="true"

"
to the AndroidManifest file would fix it
however would need to see if that doesn't affect newer devices, and if it does it would only be worth it if it only enables that setting on older devices, or if it has to be manually enabled.

from librecamera.

EllesarDragon avatar EllesarDragon commented on July 19, 2024

I see you already used that setting in the main AndroidManifest file.

in my case the first path it shows in the error is a correct one, the /data/user path I do not know, I think that is cache or ram where the image is stored before writing to normal storage or such.

FreeDCam does work on my device and is also opensource.
https://github.com/KillerInk/FreeDcam/blob/60682b2a086988f291725f8c9866a41350abda91/app/src/main/AndroidManifest.xml#L4
so perhaps you can find the solution for the problem there.
their AndroidManifest file does not seem to use that line which is supposed to fix this issue, so perhaps that one line might be the cause of the problem?

or perhaps a older android apk version is used there?(I don't know which versions either projects uses)

from librecamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.