I am thoroughly confused. In a terminal, without root, when I run bootanimation, it says /system/bin/sh: bootanimation: not found. But when I am root, and run it, it works. Why is this? I attached a screenshot.Here is the screenshot


It's because SELinux is enabled at the time.
Take a look at this. Let's pick sh as a comparison. Note if you installed busybox then specify toolbox ls explicitly because SELinux-related functions in busybox is totally failing.

root@android:/system/bin # toolbox ls -Z bootanimation sh
-rwxr-xr-x root shell u:object_r:bootanim_exec:s0 bootanimation
-rwxr-xr-x root shell u:object_r:system_file:s0 sh


u0_a0@android:/system/bin $ toolbox ls -Z bootanimation sh
ls: bootanimation: Permission denied
-rwxr-xr-x root shell u:object_r:system_file:s0 sh
| improve this answer | |

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.