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+
  • DIsable selinux and then try. – Firelord Sep 1 '18 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 '18 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. – Irfan Latif Sep 1 '18 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. – Irfan Latif Sep 1 '18 at 12:35
1

Try setting SELinux to permissive then access /data again:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.