1

I am wondering how it's possible to get the granted capabilities for a file on the Android file system. libcap is not available for me, therefore, I can't use its functionalities to fetch this.

Is there any other option?

tomix86
  • 1,336
  • 2
  • 18
  • 29
fashasha
  • 481
  • 2
  • 7
  • 19
  • I did this by cross-compiling libcap and getcap tool. Yes annoying, yes I hate how this isn't a part of ls or lsattr. – domen Jul 31 '14 at 15:46

1 Answers1

0

You can use termux app

Run app and then install libcap. Libcap will installed locally for termux:

$ pkg install libcap -y
...

lets check it on Android 7.1.1

$ getcap /system/bin/run-as
/system/bin/run-as = cap_setgid, cap_setuid+ep
Sima
  • 122
  • 4