Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes on launch from DCL via memory error #5871

Open
An-anonymous-coder opened this issue Nov 16, 2024 · 0 comments
Open

App crashes on launch from DCL via memory error #5871

An-anonymous-coder opened this issue Nov 16, 2024 · 0 comments

Comments

@An-anonymous-coder
Copy link

What

  • When using OpenFoodFacts on a GrapheneOS device, restricting DCL via memory will cause the app to crash on launch.

Steps to reproduce the behavior

  1. Install OpenFoodFacts on a device running GrapheneOS
  2. Go to Settings > Apps > OpenFoodFacts > Dynamic code loading via memory
  3. Set the permission to "Restricted"
  4. Open OpenFoodFacts

The app will immediately crash on launch with the following error log:

type: memory_DCL
osVersion: google/shiba/shiba:15/AP3A.241105.007/2024110700:user/release-keys
flags: dev options enabled
package: org.openfoodfacts.scanner:1364, targetSdk 34

package: org.openfoodfacts.scanner:1364

DCL denial type: DENY_EXECMEM

Expected behavior

The app should run as intended without the need for DCL via memory.

Why

Dynamic Code Loading is an opt-in security feature, used to protect against exploitation as explained here and here.

Part of

Screenshot/Mockup/Before-After

Smartphone model

  • Device: Google Pixel 8
  • OS: Android 15, GrapheneOS version 2024110700
  • App Version: Version 4.16.1, Version Code 1364

Additional context

GrapheneOS is a privacy and security focused custom Android distribution. It offers a permission toggle to restrict the use of DCL via memory. Creating an app that does not use Dynamic Code Loading is best-practice.

@An-anonymous-coder An-anonymous-coder changed the title App crashes on launch from DCL via memory App crashes on launch from DCL via memory error Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 💬 To discuss and validate
Development

No branches or pull requests

1 participant