Closed Mewnojs closed 2 years ago
Does the directory /etc/selinux
exist on your device? I can only check with Termux right now, and something is linking /etc
to /system/etc
, dunno if it's Android or Termux.
If it does, I'd like to change the check so that:
/etc/selinux
implies Linux,/etc/selinux
+ the two Android-specific paths imply Android,/proc/sys/kernel/ostype
and then the macOS SystemVersion
check.This should also fix possible issues in other Linux environments with SELinux enforced.
Does the directory
/etc/selinux
exist on your device? I can only check with Termux right now, and something is linking/etc
to/system/etc
, dunno if it's Android or Termux.If it does, I'd like to change the check so that:
* `/etc/selinux` implies Linux, * `/etc/selinux` + the two Android-specific paths imply Android, * anything else falls through to `/proc/sys/kernel/ostype` and then the macOS `SystemVersion` check.
This should also fix possible issues in other Linux environments with SELinux enforced.
Yes it does, and the symbol link /etc -> /system/etc is documented in here, giving us a steady proof of doing that.
I've just merged your changes with a subsequent cleanup commit. Thank you :)
Use /data directory and /system/build.prop to identify android device, since
/proc/sys/kernel/ostype
is inaccessible on later version of Android (>=5.0) because of SELinux policies.