0

Despite the fact that I have root access, nevertheless I can not work with this directory. But why?

Info about my phone:

  • Android version - 6.0.1
  • Android security patch level - 2016-11-01
  • Kernel version - 3.18.19+
4
  • DIsable selinux and then try.
    – Firelord
    Sep 1, 2018 at 7:05
  • @Firelord setting it to "permissive" should be sufficient I guess. But could you give a pointer on how to do either of the two?
    – Izzy
    Sep 1, 2018 at 11:09
  • SELinux must be the reason. You are running with context untrusted_app which won't be able to access /data with context system_data_file. Set SELinux permissive or add a policy statement with supolicy tool. Sep 1, 2018 at 12:28
  • You must be running adb daemon with root access i.e. 'adb root'. Instead if you start adb as normal daemon and then enter a root shell with su command, your context will also be changed to su (su daemon's injected context) which can access almost everything on phone. Sep 1, 2018 at 12:35

1 Answer 1

1

Try setting SELinux to permissive then access /data again:

ibug@android:/ # setenforce 0
ibug@android:/ # ls -l /data
(output)
3
  • I tryed it, but occur error: "setenforce: Couldn't set enforcing status to '0': Permission denied" Sep 2, 2018 at 8:07
  • @SNMetamorph Did you run the command with root?
    – iBug
    Sep 2, 2018 at 8:08
  • Yes, through ADB - i.imgur.com/jJX9BqH.png Sep 2, 2018 at 8:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .