mercredi 7 janvier 2015

[Q] Permission denied on complex shell script topic

13:24






I'm porting a script that runs well on android 4.0.4 to android 4.4.2

Simplified it does this:

Code:


ls *.a | ./busybox xargs ./busybox rm -f

I'm using a busybox binary in mi app's folder (/data/data/com.myapp.bla/)

The error I'm getting is:

Code:


    xargs: ./busybox: Permission denied

However, if I run

Code:


./busybox rm -f x.a

it works.

I'm rooted and can execute simple commands as root, the problem is when a comand has a nested command inside.

same thing happens with rsync -e.

I've tested this on Samsung galaxy note 10.1 android 4.0.4 where it works fine, and Samsung galaxy note 10.1 2014 edittion android 4.4.2 where it fails.

I'm sensing this has something to do with SELinux set in enforced. I can't change it what so ever. I've tryed everything on the net besides reflashing a new kernel and changing image.






Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top