tiann / KernelSU

A Kernel based root solution for Android
https://kernelsu.org
GNU General Public License v3.0
10.47k stars 1.71k forks source link

Unable to access app data #1327

Closed androidacy-user closed 9 months ago

androidacy-user commented 9 months ago

Describe your problem.

Hi!

We're not really sure if this is a bug or intended behavior, but with KernelSU on WSA app data directories return "Permission denied" whereas Magisk has no such issue.

What we've tried:

Is this intended behavior, a setting we need to change, or a bug? If it's a bug, what information should I provide?

tiann commented 9 months ago

Maybe it is a bug, you can use adb shell and execute su -mm, then ls -al /data/data, can you see any data?

tiann commented 9 months ago

And also, which app do you test?

androidacy-user commented 9 months ago

And also, which app do you test?

App we're developing internally + adb shell (with su)

androidacy-user commented 9 months ago

Maybe it is a bug, you can use adb shell and execute su -mm, then ls -al /data/data, can you see any data?

Will check it tomorrow.

Listing folders (with just su) under /data/data works, but any sort of access to files or directories in actual app data folders results in Permission denied

tiann commented 9 months ago

Do you install Magisk with KernelSU together? Permission denied is werid.

androidacy-user commented 9 months ago

Do you install Magisk with KernelSU together? Permission denied is werid.

No, both are relatively clean installs of WSA (generated using MagiskOnWSALocal)

androidacy-user commented 9 months ago

su -mm produces no different result. We're currently trying to clean reinstall WSA, just to eliminate any issues on that front.

androidacy-user commented 9 months ago

Weird as hell. After completely uninstalling + reinstalling WSA, the problem resolved itself

What's weird, is there were no selinux denials and permissions should have been okay. We'll just chalk it up to a weird one off problem.

Anyway, thanks for your time!