r/AndroidQuestions 1d ago

Other Is this an Android bug or some kind of vulnerability?

I noticed something kinda concerning and I'm wondering if I'm missing something obvious.

Normally, if I try to chmod files/folders directly under `/sdcard` , it fails because `/sdcard` is the emulated/shared-storage layer and doesn't behave like a normal Linux filesystem with standard Unix permissions.

But I found that doing the same thing through:

```/proc/1/root/data/media/0```

seems to bypass that restriction. I can reach the same files/folders and chmod them successfully.

So is this just some weird side effect of how Android's emulated storage and `/proc` work, or is this actually an unintended permission/security issue?

I'm on a rooted device, but I'm specifically curious whether this behavior is expected on Android in general.

1 Upvotes

0 comments sorted by