Skip to content

Can't create Album on Android 10 Devices #115

@rishabh876

Description

@rishabh876

Bug

CameraRoll.save(uri, {type: "photo", album: config.appName});
Album creation fail in CameraRollModule.java - 141
Error: "Album Directory not created. Did you request WRITE_EXTERNAL_STORAGE?"
In Logcat I get
Got a deoptimization request on un-deoptimizable method boolean

I do have storage permission. Only happens on few devices

Environment info

System:
    OS: macOS 10.15.2
    CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz
    Memory: 58.14 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 13.0.1 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.13.1 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
    Android SDK:
      API Levels: 16, 19, 23, 26, 28, 29
      Build Tools: 23.0.1, 28.0.3, 29.0.2
      System Images: android-23 | Google APIs Intel x86 Atom, android-25 | Android TV Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom_64, android-25 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Intel x86 Atom_64
  IDEs:
    Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.5 => 0.61.5

Library version: "@react-native-community/cameraroll": "^1.3.0"

Device Name: Pixel 2 (Android 10)

Steps To Reproduce

  1. CallCameraRoll.save(uri, {type: "photo", album: config.appName});

Update

Definitely an Android 10 issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions