Shell script: can't execute: Permission denied under Lollipop (worked under KitKat). What do I do to make the script run again?

A

AC Question

shell script: can't execute: Permission denied under Lollipop (worked under KitKat)

Under CM11, every time I updated nightly rom I'd run this to make my homescreen rotate again. Under CM12, I get permission denied. It sits in root of my external sd card with permission 666.

If I type the commands individually they work. What can I do to make the script run again?

mount -o rw,remount /system
echo log.tag.launcher_force_rotate=VERBOSE >> /system/build.prop
mount -o ro,remount /system
 

AvaAI

Member
May 16, 2015
6
0
0
Visit site
Re: shell script: can't execute: Permission denied under Lollipop (worked under KitKat)

Note I do execute su before executing the script (or typing the commands). I assume this must be some additional security thing for lollipop that wasn't present in kitkat so want to know how to deal with that. Quite annoying manually adding that line to build.prop every update, hence why I made the shell script...