yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] danarama:
Yes. You can make all that a bash shell script (.sh) and call it from updater-script. Have a look at the first flashable zip not by me to see how that's done.
[Nexus 6  General] wrongway213:
Awesome, gonna look into it and see if I comprehend it. I've been wanting to try to learn how to actually do something useful on here for awhile, this doesn't seem like too intimidating of a starting point.
[Nexus 6  General] danarama:
No it isn't taxing to be fair. Look in the updater-script and you'll see it calls a .sh script. Change the name of that to whatever yours is called and put yours in there. Also note the first line of the existing shell script. That should exist in all shell scripts.
[Nexus 6  General] selayan:
Thanks for the info but I just installed elemental x kernel and once it was done now Xposed works without issues. Haven't rebooted since but I may try that to see if anything happens if it continues to require a soft reboot but now it shouldn't.
[Nexus 6  General] flar2:
You don't need this if you have elementalx and choose the permissive option. This is exactly the same as choosing the permissive option in elementalx.
[Nexus 6  General] flar2:
Any executables in su.d are executed right after the su daemon starts up. The only requirement is SuperSU

init.d can be implemented several different ways, but usually requires edits to the boot.img (or a hack to install_recovery.sh) and depends on proper installation of busybox, and doesn't run until later in the boot process (usually too late for xposed in this case). Too many things can go wrong.
[Nexus 6  General] wrongway213:
Checking it out, have it open right now but realizing all the init.d stuff is probably irrelevant and I don't know what "if SuperSu not installed" type code to use to replace it for su.d commands quite yet.. We shall see where reading takes me
[Nexus 6  General] danarama:
Erm...what are you talking about?
[Nexus 6  General] wrongway213:
When I open up the .sh script there are lots of lines about "if init.d support not present" and things about init.d - I don't know if I would just replace every instance of init.d with su.d or just remove them entirely as init.d is irrelevant to this script? As said, I've never done anything like this before, so even if I do end up learning how here there's a good chance what I make will never be released (I'm sure by the time I figure this all out someone will have beaten me to it). init.d tutorials seem pretty simple but really haven't found much about su.d scripts whatsoever, I would hate for a derp in a simple line to brick my device lol
[Nexus 6  General] danarama:
The idea is you replace the shell script with your own and edit the updater-script with the name of your shell script. The even easier way is to delete everything inside the shell script except the first line then paste the code in from the other page. I think you're looking too deeply into this.
[Nexus 6  General] wrongway213:
Yes I think I am - like I said, never done this bef0re. Only experience with scripts I've applied through terminal or they've been zipped when I downloaded them.. figure you gotta start learning somewhere though, so even if someone else makes this a flashable zip before I do I should still learn to do it. Thanks for helping me do that - it's funny how new you feel trying to do something like this even if you spend tons of time flashing and messing with stuff.
[Nexus 6  General] l.tutles7:
Sweet it worked! Thanks guys.
[Nexus 6  General] flar2:
All that is necessary is what I posted earlier, but if you want, here is your bash scripting homework:

Write an if statement that tests whether SuperSU is installed.

hint1: the output of "su -v" will contain SUPERSU

hint2: google this: bash test output of command contains string
[Nexus 6  General] wrongway213:
Woah... yeah I'm gonna go ahead and let someone else handle making the zip and just soak in what I can... that's a lot more involved than I thought it would be. Although you said the commands you posted are all that's necessary, i assume all that formatting is being done for some reason or another.. definitely informative. Thanks for that.
[Nexus 6  General] jason504:
Mine was working then it stopped. I Flashed ElementalX chose permissive when my phone booted up all my exposed modules where working.
[Nexus 6  General] danarama:
But like we both said, you don't NEED to do that.

But yeah basically bash shell scripts are essentially Linux terminal commands. So if you want to get fancy, you can learn all that. But for your exercise, you just need to replace the contents of the shell script in the zip with the code posted a couple of pages back. Really simple. Can do it on your phone with a few seconds.
[Nexus 6  General] wrongway213:
Ah, well I suppose if the script will run just fine without all the other stuff I may as well go ahead and give it a shot and just stop worrying about things beyond the scope of my understanding (in this case why you guys use all the extra 'fancy' stuff)
[Nexus 6  General] danarama:
Its all baby steps.
[Nexus 6  General] elevatorguy:
What module is that?
[Nexus 6  General] bmg1001:
Niwatori. http://repo.xposed.info/module/jp.tkgktyk.xposed.niwatori
[Nexus 6  General] wrongway213:
SuperSu installed, rooted properly, Busybox installed and this script is appearing to execute. Gives me R, h, -- options, but none are recognized in TE? Am I an idiot, do I need to update to 2,46 (2.45 installed) or not a clue? Never had an issue like this with a terminal script before. Normally I just run a permissive kernel but one ROM I use baked in kernel so I would like to get whatever script I should be using to execute if I can.
[Nexus 6  General] danarama:
Please explain exactly what you're doing, how you're doing it and exactly what is happening.

If you upgrade to 0 26, you won't need scripts.
[Nexus 6  General] wrongway213:
I'm copying and pasting flar2's post into TE, giving it root and the menu I get after I hit enter says

Usage: chmod [OPTION] <MODE> <FILE>

-R, --recursive change files and directories recursively

-h, --no deference do not follow symlink

--help display this help and exit

10!root@android:/ # (! is a line, not an exclamation point - I dont have the key on my keyboard)

The only odd thing I notice is in the middle of the script running it says mkdir failed for/system/su.d, File exists - everything else looks normal, dunno what that means or if I need to delete some files or something.

Edit: When I look in that directory in ES File Explorer I find "permissive.sh" but I think it's an empty file
[Nexus 6  General] danarama:
Chmod is asking for an option. Just give it one to be happy..

Change...

chmod 755

To....

chmod -R 755
[Nexus 6  General] wrongway213:
Still nothing, booting in enforcing. I suppose it'll be init.d for now, that worked for me earlier
[Nexus 6  General] edounn:
02-16 18:43:54.935 I/Xposed ( 4199): SELinux enabled: yes, enforcing: no

Are we supposed to still post if it works?

I took the lazy way. I am seemingly getting persistent selinux no enforcing with "selinuxmodechange" app from plah store. Haven't tried these scripts, just method one. I did do one slightly different thing, I flashed framework first, had the same problem with enforcement, then choose to have app flash framework from recovery. Then reboot after flash, and soft reboot after enabling a module. Now that module is on, it seems to be turning enforcement off in time even after hardboot. Working and have lollipops power menu working.

I assume the init.d script is just setting enforcement flag before boot? I'll shout out if selinux flag changes, but so far, its persistently not enforced
[Nexus 6  General] elevatorguy:
I know the feeling just giving me fits. Like you going to go with what works
[Nexus 6  General] iBuzman:
root cloak works and I can now run a previously blocked app.. (streaming to Chromecast app) very happy indeed.. (chroma 12/2, franco15, selinux changer, root cloak xposed module)
[Nexus 6  General] flar2:
All you need to do is make a file called /system/su.d/permissive.sh, put this inside:

#!/system/bin/sh
setenforce 0

and then make it executable (i.e. change the permissions)

All those commands I wrote down are a way to do the whole process completely from the command line.
[Nexus 6  General] parcou:
If we are working fine with Xposed meaning no issue, can I use Method 3 (zip1 or zip2) if it can force Xposed to work on a full reboot without having to do the soft reboot?

I could be understanding it wrong I am thinking Method 3 will eliminate that second soft reboot.

I am on custom rom Chroma that has Franco kernel cooked in that is passive already...so all is working with Xposed
[Nexus 6  General] ldkud50:
I was successful with Flar2 method. Thank you. Init.d didn't work for me.
[Nexus 6  General] nEUTRon666:
I flashed ElementalX Kernel which now has an option to set kernel to permissive, but still no go with xposed. Anyone with the same problem ?
[Nexus 6  General] jason504:
I am running elementalx with no problems on xposed. When you Flashed kernel did you check permissive? Then check all your modules and then softboot from inside xposed. It works for me every time.
[Nexus 6  General] nEUTRon666:
Yes i choose custom install and set permissive. Strange enough, i now tried one of the scripts in here which do a "set permisse" via init.d and STILL xposed is not activated. I checked and all files from xposed are installed. Also tried the soft reboot, no-go at all. What the hell... i don't get it..

Stock 5.01 ROM.
[Nexus 6  General] methuselah:
Will this script work in other phones. I mean this just sets permissions right. So I hope it should work on other phones too???
[Nexus 6  General] wrongway213:
My ROM/kernel didn't have init.d support - maybe yours is the same. I had to download universal init.d from the Play Store, use it to enable init.d support in my ROM/kernel, and then I was able to use the init.d script to get Xposed going.. hope that helps you.
[Nexus 6  General] nEUTRon666:
ElementalX Kernel has init.d support from scratch. Sorted it out...it was just a module which was activated but not configured, works out of the box without init.d scripts on ElementalX Kernel. So solved for me, but thanks anyway.
[Nexus 6  General] bmg1001:
It might work on other devices. I don't think there would be an issue, but one can never be sure. Try it out.
[Nexus 6  General] danarama:
There's nothing ROM specific in either init.d zips. Its just questionable as to whether init.d will work as desired.
[Nexus 6  General] 414isaiah:
I have xposed/youtube adaway working with validus rom (1/19 build which is awesome!) latest franco kernel. I used the app to change kernel to permissive, flashed the zip for init.d, always works after a reboot, you guys are awesome, thank you!
[Nexus 6  General] md1008:
I thought xposed wasn't working due to the app saying that it wasn't, and apps like greenify and boot manager would not work. However xgels is working so apparently I do have xposed installed
[Nexus 6  General] danarama:
Xposed is working, but modules that actively check if the framework is installed do not work.
[Nexus 6  General] James Bartlett:
So Frustrating

So, I can get the framework running, and can get some modules working (I think there's still quite a few that aren't ready for Lollipop just yet) but any time I turn my screen off, my phone reboots. This will only happen while the framework is active, ie I have done a soft reboot. Side note, I have a permissive Franco kernel installed, yet I still have to soft reboot. I know this is in Alpha stage but of I can't turn my screen off, the whole framework is useless. Anyone else had this problem? Any workarounds?

Using Stock ROM
[Nexus 6  General] danarama:
I've not seen anyone with this issue and I am following the main xposed dev thread closely. Not seen anyone on any device report that issue.

s for soft reboot, if franco is applying permissive too late in boot process, yeah you'll need to soft reboot. Only 2 kernels I know set it early enough are the custom LK in post 1 and ElementalX 0.26
[Nexus 6  General] Roland Deschain:
Most of the Xposed modules listed as working in the spreadsheet in this thread don't seem to work in Xposed on the N6. There is one that seems to work no matter what that we can use for testing purposes, though: Text Xposed. This plugin adds an extra menu when highlighting text to allow additional sharing/usability features for what you've highlighted, and you can see that extra menu showing in Chrome in my screenshot (it's outlined in red on the upper right) when the module's working.

I've made a few screenshots that let you see what you should expect to see if the Xposed Framework is working for you, or not. Also, with most kernels, you have to soft reboot after doing a full reboot for it to work; presumably because init.d is too late to be initialized.

Personally, the big one I'm waiting for - presumably along with plenty of you - is for App Settings to work on our devices, but I can't get it working no matter what, but I do know Xposed itself is working at least in limited capacity for me. I'm on Chroma ROM with SE set to permissive.
[Nexus 6  General] danarama:
Everything is working in AppSettings that I have tested except dpi. However, when I changed my ROM briefly, the dpi worked too. I assume dpi didnt work because I have a dpi changer built into the build im using.
[Nexus 6  General] Roland Deschain:
LCD density is by far the most important aspect of App Settings for most people, I believe; and it's possible that having a native LCD density changer built into the ROM itself could be breaking this, but it doesn't seem likely. It worked well on KitKat on my Nexus 7 and Note III with a variety of ROMs that also had built-in LCD density changers. Who knows, though; I just hope it gets addressed soon one way or another. :)
[Nexus 6  General] danarama:
Well it works fine on official slimlp weekly. The unofficial build I'm using has a few features extra but one of those features is an LCD changer. Seems the most likely candidate to me.
[Nexus 6  General] Roland Deschain:
You may be 100% correct, IDK.
[Nexus 6  General] flar2:
I noticed a mistake in one of the lines. It should be:

chmod 755 /system/su.d/permissive.sh

Anyway, all you need to do is make a file called /system/su.d/permissive.sh and add "setenforce 0" or "echo 0 > /sys/fs/selinux/enforce" inside, make it executable, and it will work.
[Nexus 6  General] James Bartlett:
Soft booting is working ok, that's not quite the problem. Its a bit of a hassle, but I appreciate its an Alpha, the issue is that I can't turn my screen off (or to be more specific, if I do my N6 will reset). For now, I'm just not softbooting, and therefore not making use of any of the Xposed apps. The phone works fine in this state. Its irritating the hell outta me though. Can't work it out. :(
[Nexus 6  General] troyd28:
It works for me only problem is its super laggy like no other when I soft reboot then I normal reboot no lag
[Nexus 6  General] danarama:
Use latest elementalx kernel then.
[Nexus 6  General] stacio88:
I creates the file but how do I make it executable?
[Nexus 6  General] danarama:
chmod 755 has execute permissions for owner, group and other.
[Nexus 6  General] freebee269:
thanks a lot. this worked for me. i did this via adb on pc. then installed apk. then installed zip in recovery. no soft rebooting was needed. i dont have selinux mode changer installed at all and my selinux permissive sticks after every reboot. xposed up and working good. i'm using slimlp with franco kernel.
[Nexus 6  General] ohnuhuh:
For whatever reason I also had to reflash the Xposed zip in recovery for this to work. I originally got everything working with SELinux Mode Changer, then followed the steps to use the su.d script instead but couldn't get it working until I flashed the Xposed zip again. I don't know if it's something in the zip or just that it wiped cache or something and did the whole "Android is updating..." thing. Anyway, I've been able to reboot a couple times since then and Xposed is working great.
[Nexus 6  General] Zwulf:
Deleted. Found solution above.
[Nexus 6  General] marvi0:
No one has posted in here for a while. How's the new exposed working on latest franco kernel please?.
[Nexus 6  General] Amo_rphis:
I used method 3 on N6 stock,rooted,FK last version.Works,but show as xposed not installed,but it work.I have BB,APM+,Amplify...all work.

Trimis de pe al meu Nexus 6
[Nexus 6  General] doubleho:
have to soft reboot every time after a reboot
[Nexus 6  General] Amo_rphis:
Use the app to have selinux on permissive,and set in supersu the boot option

Trimis de pe al meu Nexus 6
[Nexus 6  General] shane1981:
Guys I'm using chroma and Franco kernel and I've used every possible way that has been said to get xposed to work and it would never work but I installed the new greenify beta version and bam everything started working dont know why or how but it is .something to try for the folks who can't seem to get it working.
[Nexus 6  General] shivindera:
Working!!!

For all those who have

Super SU

. :cool:

Flash the attached zip to make the kernel

permissive

no matter which kernel it is. :victory::victory::victory:

It uses the SuperSU's concept that after daemon is ready to go, all executables in the /system/su.d/ directory are executed.

So no need for soft reboots

.

OP ( [MENTION=4550123]bmg1001[/MENTION] ) please add this to the 1st post so that other people can also benefit from it.:angel:

Mentions:

Thanks [MENTION=4684315]flar2[/MENTION] for the method and [MENTION=2872010]rootSU[/MENTION] for the informative posts. I just packaged it into a flashable zip file which everybody can use.:highfive:

Edit 1: For advanced users who already have files in /system/su.d/ please remove the "delete" line from the updater-script so as to not lose any of your already pre-existing files.
[Nexus 6  General] Casper34:
Does this eliminate the need for a soft boot each time?

Sent from my Nexus 6
[Nexus 6  General] shivindera:
Yeah you dont need to soft reboot anymore.

---------- Post added at 02:02 AM ---------- Previous post was at 02:01 AM ----------

Guys use the zip I posted on page 30 (#295). I am on franco and it works fine for me. No need for soft reboot also. :)
[Nexus 6  General] Casper34:
Working on terminus with elemental!

Sent from my Nexus 6
[Nexus 6  General] shivindera:
Glad to know its working fine for other people also. :)
[Nexus 6  General] Casper34:
After 3 reboots still loaded without the need for a soft boot, great work guys!

Sent from my Nexus 6
[Nexus 6  General] bmg1001:
Was going to add the terminal method but forgot, so I'll just add this one to the OP. Thanks!

Edit: Added!
[Nexus 6  General] Jeimygirl:
I'm finding myself having to do this every time I restart my phone to get xposed modules to work again. Is this normal? Anyone else having that issue?

Method 1

1. Make sure SELinux is set to Permissive. You can set it to permissive using this root app, if your kernel isn't permissive by default. https://play.google.com/store/apps/d...mrbimc.selinux

2. When rebooting into your system after setting SELinux to permissive, enable the Xposed modules that you want.

3. From inside the Xposed app, perform a soft reboot.
[Nexus 6  General] selayan:
Flash a kernel like elemental x or lean kernel, or one of the team ecliptic elite shamu kernels.

Those have permissive selinux set on boot so no more rebooting within the Xposed app.
[Nexus 6  General] danarama:
Er yes.. If you're using the all to set permissive, it happens too.late in the boot process for xosed, so you'll have to soft boot after ever reboot.
[Nexus 6  General] wrongway213:
Any way I could get a link/direction to where Team Eliptic Elite Shamu kernels might be found? All I can find from Elite Kernels or Team Eliptic on XDA, G+ and through Google searches ends in September with KitKat stuff, would be curious to try another fully permissive kernel.
[Nexus 6  General] selayan:
Yea I'm not sure if buck put them in the same repository of uploads. I have a build from 2-25 or 2-27 I've been using to test stuff out. I will check with him first though.
[Nexus 6  General] Jeimygirl:
Makes perfect sense! Thanks!
[Nexus 6  General] shivindera:
Use the zip provided by me. You would not need to do soft reboots anymore. Check it out once. :)
[Nexus 6  General] Kal-El7:
Thanks for this. I've actually been using a Lean Kernel that is version 1.13 "permissive", a different variant than another one that's just 1.13 non-permissive. I got it straight from the original XDA thread in one of the comments. I know that there's been newer versions released, but I didn't see the word 'permissive' explicitly put in the zip's name like how I see it for 1.13 to help distinguish that kernel being "permissive"-friendly. My question is....since you suggested Lean Kernel, does that mean all Lean Kernels, like with version 1.14 etc, are automatically created with 'permissive' by default? And does this hold true for the other kernels recommended here (Elemental X, Team Ecliptic Shamu, etc)? And....which would you say is best in battery/performance balance?

Thanks!

---------- Post added at 09:48 AM ---------- Previous post was at 09:47 AM ----------

Oh snap. Word? This is legit and works? [emoji2]
[Nexus 6  General] selayan:
I'm not sure, it wouldn't hurt to have one that is already permissive to flash back to if the latest edition is not.
[Nexus 6  General] wrongway213:
leanKernel is not permissive by default - can be configured to be permissive in lkconfig under option 10. It is always defaulted to SELinux enforcing, but when you set permissive in lkconfig it persists forever and you no longer need to soft reboot for Xposed to work. Also, yes, that script zip is legit and works perfectly.
[Nexus 6  General] Kal-El7:
Aw cool, man. Thanks so much.

Also, the option 10 in lkconfig didn't seem to be the option, unless I'm reading something wrong (see attachment). In any case, question: Is using the script 100% as effective as using lkconfig to set permissive to enabled, thereby negating the need to use lkconfig for this purpose? No lags when using the script option, etc?

Thanks so much, again. Learning quite a bit here. Currently I'm on Lean Kernel 1.13 "permissive" with Xposed goodness.

Thanks, again.

---------- Post added at 10:35 AM ---------- Previous post was at 10:33 AM ----------

Sorry, forgot to upload the screenie.

---------- Post added at 10:36 AM ---------- Previous post was at 10:35 AM ----------

Screenie looks crap - is there a way to improve resolution of screenies when uploading to XDA via Tapatalk?
[Nexus 6  General] wrongway213:
leanKernel 1.13 is not updated to allow you to configure SELinux mode in lkconfig. 1.16 is the latest leanKernel, I would suggest updating instead of using the script, as the script is unnecessary on leanKernel. However, the script causes no issues - if you want to use a kernel that has no permissive boot option, yes, use the script. I would not recommend using the script on lean as it's redundant (and lean 1.16 is WAY better than 1.13 was to be honest)
[Nexus 6  General] Kal-El7:
Snap......thanks so much. Makes perfect sense!

Sooooo.....Lean Kernel 1.16 smokes anything else that's out there then, eh?
[Nexus 6  General] wrongway213:
I'm not gonna say that - it's got competition,, on this device there is plenty of great development. I personally use it, though, so I will say it is my personal favorite kernel thus far for the Shamu.
[Nexus 6  General] gaganit:
Which of the OP methods work with XPrivacy module?
[Nexus 6  General] shivindera:
Yeah it works. :good:
[Nexus 6  General] gaganit:
Is there a way to uninstall this?
[Nexus 6  General] s2d4:
Yeap.
[Nexus 6  General] gaganit:
Details please...
[Nexus 6  General] shivindera:
Just delete the su.d folder. What the zip does is create a file in this folder. Now when your phone starts and you have SuperSU... Any script file inside this folder gets executed before anything (after daemon server is started).

I hope you got it.
[Nexus 6  General] s2d4:
Best to just delete the file in question rather than the whole folder.
[Nexus 6  General] robertogl:
Edit
[Nexus 6  General] danarama:
Its a module. If xposed is working, then modules will work.