User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: complex
Affichage des articles dont le libellé est complex. Afficher tous les articles
Affichage des articles dont le libellé est complex. Afficher tous les articles

[Q] Permission denied on complex shell script topic






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.
The ./busybox that it's complaining about it's the second, the one that calls rm. The first get's executed. Whatever I put as the second command won't get executed.

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 whatsoever. I've tryed everything on the net besides reflashing a new kernel and changing image.






[Q] Permission denied on complex shell script topic






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.