I am unable to get "su" to run in terminal - can anyone else confirm issue?
I'm not sure how I could type with my screen off?When you request root make sure your phone screen is on so you can grant root permissions.
Is everyone else able to get root in terminal still? Can anyone test?
This is similar to.a.script I tested but also wasn't working for me.I did have that in there actually...here's the whole script actually (with permissions set to 0755):
Code:#!/system/bin/sh #Init.d Permissive SELinux busybox mount -o remount,rw -t auto /system busybox mount -o remount,rw -t auto /data setenforce 0 SELINUX=permissive
According to an app I downloaded, the kernel I'm using does have init.d support. Still no dice
This is similar to.a.script I tested but also wasn't working for me.
#!/system/bin/sh
#Init.d Permissive SELinux
busybox mount -o remount,rw -t auto /system
setenforce 0
SELINUX=permissive
echo "Permissive SELinux set" >> /sdcard/SELinux.log
Echo to system or data. Sdcard won't work I don't think.I now have this as a script and it's NOT outputting to /sdcard/SELinux.log when rebooting, (but it does if i run the script manually from shell). So it seems like init.d is not actually working for me. Gonna investigate this more.
Code:#!/system/bin/sh #Init.d Permissive SELinux busybox mount -o remount,rw -t auto /system setenforce 0 SELINUX=permissive echo "Permissive SELinux set" >> /sdcard/SELinux.log
I now have this as a script and it's NOT outputting to /sdcard/SELinux.log when rebooting, (but it does if i run the script manually from shell). So it seems like init.d is not actually working for me. Gonna investigate this more.
Code:#!/system/bin/sh #Init.d Permissive SELinux busybox mount -o remount,rw -t auto /system setenforce 0 SELINUX=permissive echo "Permissive SELinux set" >> /sdcard/SELinux.log
What rom are you using? Last I checked, init.d doesn't work on CM. I maintain PAC and we use CM as a base and we don't have init.d either. I tested on a stock CM build as well and no dice.
I found this script which fixes it. Just remove /system/bin/sysinit and run the script and you'll be good to go. (I have tried just copying the sysinit file that the script generates into a clean build and it doesn't fix it, so there's something else the script does that fixes it. You have to remove the file before running it or it won't run and will just say that it should already be working.)
I'm using Chroma rom. I might give this a go.
Edit: Can't get this to run, how are you running it?
When you get it up and running will frameworks still show app processes - - - under active? Everything seems to work just that's throwing me for a loop. Will give the ls kernel a shot. Thanks @wrongway213
Yes, 61 under XposedBridge.jar should mean you're good I believe
su
cd /sdcard/
sh initd.sh
So I ran the init script and I installed some modules, but had to soft reboot to get them to show the framework has been installed.
They all work great but every time I do a regular reboot I also have to go back in and soft reboot. Anyone else have to do this?
su
mount -o remount,rw /system
mkdir /system/su.d
echo "#!/system/bin/sh" > /system/su.d/permissive.sh
echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh
chmod 755 > /system/su.d/permissive.sh
Why still using ini.td? Init.d needs a lot of stuff to fall into place in order to work.
Do the following and all permissive problems are solved (even on stock kernel):
1. Install SuperSU
2. Type this in terminal or adb shellt:
Code:su mount -o remount,rw /system mkdir /system/su.d echo "#!/system/bin/sh" > /system/su.d/permissive.sh echo "echo 0 > /sys/fs/selinux/enforce" >> /system/su.d/permissive.sh chmod 755 > /system/su.d/permissive.sh
3. reboot into a permissive system
chmod 755 /system/su.d/permissive.sh