yashsingh1/xdaforums huggingface dataset:
[LG G2 Mini] mobiusm:
DISCLAIMER:

I am not responsible to anything going wrong with your device.

You are responsible to what you are doing with your phone, not me.

If you blame me, I will laugh in your face and I'll go grab a beer.

SELinux is set to Enforcing by default on CM 13. Using an app to change the policy one is able to change it to Permissive, but on reboot, it is changed back to Enforcing. Permissive SELinux policy is need if one wants to install ViPER4Android for example.​

With a few simple steps, we are able to change it so on boot the policy will be set to Permissive:

Step 1:

SuperSU needs to be installed in order for this to work. This means replacing the stock root that comes with CM 13.

1. Download and the latest systemless SuperSU from HERE.

2. Flash the ZIP file from your recovery and reboot to system. Booting might take a while.

3. Remember to disable the built in root in developers options.

Step 2:

Use a terminal emulator or ADB to type these commands:

NOTE: each line needs to be entered separately by pressing enter after each line.

Step 3:

REBOOT

Now that you have completed the above steps, the SELinux policy should be set to Permissive and stay like that after any reboots.​

Thank you [MENTION=631273]Chainfire[/MENTION] for the amazing SuperSU app.
[LG G2 Mini] AntonPanos:
I modified the IRRC file a bit and i made this flashable zip that changes SELinux to permissive... You can try it, or someone with more skills or Nikita itself can check this if it's something wrong with that!

On my phone worked perfect though.. :) :good:
[LG G2 Mini] Enigma.:
I installed ViPER4Android with SELinux set on Enforcing...
[LG G2 Mini] mobiusm:
Installing is easy, but does it work for you? And are you sure you are on an Enforcing system?
[LG G2 Mini] Enigma.:
Absolutely, and I'm sure I'm on an Enforcing. I just want to ask if there is any particular reason I should set selinux on permissive, maybe some app like viper or something...?
[LG G2 Mini] mobiusm:
You told me you already installed viper :confused:
[LG G2 Mini] Enigma.:
I did, but I'm just interested in what else I can do with permissive mode... But nvm, thanks for help anyway :)
[LG G2 Mini] Paentherax:
Whenever I type this into my terminal after I type the last line (I did it correctly) its pop up with a bunch of text telling me how to use chmod755 and that I can't change something I don't own and I have to change the permissions of something? What do I do? I'm on LG G2 ls980 on CM13 and I can't flash superSU because apparently I have SU setting in my developer mode options so I can only use that or if I flash a supersu latest version my device soft bricks and I have to restore from a backup or completely restore the phone using windows software? Thanks please help
[LG G2 Mini] mobiusm:
Well as I'm sure you've read, you need to flash SuperSU to use this method.. but a quick search on Google should yield other methods of changing SELinux to Permissive...
[LG G2 Mini] zishukkc:
i have a CM13 based custom Rom but my Selinux is disabled by default ... please tell me how i can enable it ???
[LG G2 Mini] Vagelis1608:
Is it "Permissive" or "Disabled"?

There is a huge difference.
[LG G2 Mini] zishukkc:
as i said... it is "Disabled" ... how can i enbale it?
[LG G2 Mini] Vagelis1608:
Grab the CM13 kernel sources, enable SELinux, build the kernel and flash it.

Or you could ask at the CM13 thread.
[LG G2 Mini] chrcol:
I think you should warn people this is a kernel, I just installed this thinking it was only a script to disable selinux not to overwrite my kernel.
[LG G2 Mini] Vagelis1608:
It doesn't overwrite the whole kernel, only cmdline ;)
[LG G2 Mini] Perpatoura:
how can you undo this? On my LG G5 viper isn't working.
[LG G2 Mini] Vagelis1608:
Weird. It's Enforcing SELinux that breaks Viper4Android, not Permissive.

Are you sure that SELinux broke it?
[LG G2 Mini] Perpatoura:
Viper wasn't working before, so SELinux didn't broke anything. But it won't work neither, that's why I'm asking how to undo this, no reason to have permissive then.
[LG G2 Mini] mobiusm:
Hi there.

Delete the /system/su.d/permissive.sh file and then go to /sys/fs/selinux/enforce , open the file and replace the 0 with a 1 .
[LG G2 Mini] joseph.hsu:
Thank you AntonPanos~

i'm flash your permissive zip!it's working on viper 2.4.0.1

my phone is Note Edge 5.1.1 on Stock Rom!
[LG G2 Mini] Ab.Shaheen:
are you rooted?
[LG G2 Mini] OsniNO:
Working in Moto G 2014 CM 13

Thanks!
[LG G2 Mini] shallmann:
Thank you!! Works perfectly on CM11 on SM-N900V.
[LG G2 Mini] OsniNO:
Working in Moto G 2014 CM 14 too!
[LG G2 Mini] id74em8:
Users with IR Blasters on their phones, can't use the blaster when SELinux is set on Enforcing.

I installed ViperAudio with Enforcing SELinux as well, and yes it works.
[LG G2 Mini] Vagelis1608:
On non-stock ROMs.

IRRC works with Enforcing SELinux on stock.
[LG G2 Mini] PaideLis:
Could you please tell me how to reverse this?

I need to set and keep my Selinux to enforcing because I'm using a LG V400 with cm 14.1 by [MENTION=6912676]Adam Myczkowski[/MENTION] and it came with Selinux permissive.

Thanks.
[LG G2 Mini] amdev0101:
Don't do that, v400 isn't fully enforced yet so keep it permissive, camera doesnt work at all with se enforcing
[LG G2 Mini] PaideLis:
Wow I didn't know that, thanks for advice.

Btw I know that I can't do that but you have plans to make a new build? Just to update because 11/06 is a bit old.

Thanks again for the rom it's working like a charm for daily use. :good:
[LG G2 Mini] amdev0101:
Yes I do have plans but my server is a bit co*ky and I can't build since like 3 weeks now
[LG G2 Mini] PaideLis:
Lol

Anyway your link for Android File Host is on my favorites. ;)
[LG G2 Mini] zCHEDDACEDDA:
just flashed on RR13. So far so good. ❤
[LG G2 Mini] RiTCHiE007:
Thank you this worked like a charm so now i can run the cm s pen app without any problem :)
[LG G2 Mini] Kellwa:
The script is working for me

My device is HTC Desire 820

Android 6.0.1 stock firmware

Rooted with systemless SuperSU 2.79

Installed Magisk v9 and systemless Xposed

I used the script for Unicon Icon Themer and its working perfectly

I used the path /su/su.d/

Instead of /system/su.d/

(I think this keep it systemless) and its working ?
[LG G2 Mini] Thor™:
Thanks a lot bro! This script is working on my honor 5x marshmallows. ?
[LG G2 Mini] ManikandanGuru:
I tried everything not working.

Does it work with Nougat 7.1.1?

OnePlus 3T Resurrection Remix
[LG G2 Mini] mobiusm:
On Resurrection Remix you have an option to toggle selinux.

Settings>Configurations>miscellaneous>selinux mode
[LG G2 Mini] Ohmster:
If someone already posted this, excuse me. There is an app you can get on Fdroid called SELinuxModeChanger that will allow you to set Permissive and toggle back again by tapping Enforcing. Nice app, works very well. :good:
[LG G2 Mini] Ibuprophen:
The SELinuxModeChanger hasn't been updated or supported for a few years now.

There's an app that is a Reboot of the SELinuxModeChanger called the SELinuxToggler.

The link to it is located here:

[APP][TOOL][4.2+]SELinuxToggler

Just a recommendation...

Sent on my Communicator [SCH-I535] from the Bridge of the U.S.S. Enterprise...
[LG G2 Mini] Ohmster:
Excellent! Thank you Pee Wee. ..."Pee Wee", LOL! :laugh:
[LG G2 Mini] c-prodigo:
thanks
[LG G2 Mini] sbd49701:
Though I have SuperSu installed, when I input the specified command it says "mkdir /system/su.d : not found" . I have no idea what to do now!!!
[LG G2 Mini] mikatolak45:
Hello! I installed RR-P-v7.0.1-20190313-X00TD-Official.zip on my Asus ZenFone Max Pro (M1) ZB602KL.

But the status of SElinux is prohibited.

How to enable Enforcing?

I did not find the settings Settings>Configurations>miscellaneous>selinux mode.

I have to install SELinux Toggler Project or The SELinux Switch?
[JAMin, XDA Neo, S200 ROM Development] Sideburnt:
Hi there,

the first screen I see when I boot my PPC up is a nice picture of a mental looking Joker, with all my OS versions and other numbers at the top.

I picked this little gem up when I installed a Joker, first stage update when ROM upgrading, it was fun for a while but now the joke is wearing a bit thin.

Does anyone know how to change this first bootup image? as I've created my own which I'd like to use much more, a search around my PPC and these forums didn't turn up much, so any help would be peachy.

Thanks all
[JAMin, XDA Neo, S200 ROM Development] lastnikita:
check that, but you'll need to use a prophet flash utility at last.
[JAMin, XDA Neo, S200 ROM Development] Sideburnt:
sweet mamma jamma, thats a long list of instructions to ditch the clown. I think it'll be a weekend job that'un
[JAMin, XDA Neo, S200 ROM Development] kenxu:
there are pre-made ones floating around. u can always get those.
[JAMin, XDA Neo, S200 ROM Development] Sideburnt:
thanks for the heads up, I'll see if I can drop my own graphics into another distribution.
[JAMin, XDA Neo, S200 ROM Development] Stuclint:
Other solution...

... would be to use the HTC black bootscreen that Jesterz is kind enough to provide for people just like you! (and me):o Just take a look at post #3 here:

http://xdaforums.com/showthread.php?t=284578
[JAMin, XDA Neo, S200 ROM Development] rondol1:
That brings my to this point.

I normally flash my Prophet with my Vista laptop. There is only an official RUU that does the job, all slim and tweaked STEP1's fail. It's no problem, but this working RUU installs not so nice splash screens, and I do have nice ones in stock! But the RUU's they use are failing to. So, with my "I only have a laptop with Vista" situation, I'm stuck with not so nice splashscreens.

Does anyone knows a simple, nifty utility that can open nk.nbf files, so I can exchange the splash.nb and that wrap it up again?

I tried this with Hypercore Kitchen, but that suite doesn't work with Vista either, all the files location are different and therefore the batch files don't work as expected.

Anyway, a long story for such a minor issue. It is just a matter of restarting with my eyes closed, or even better, no restarts at all!
[JAMin, XDA Neo, S200 ROM Development] lastnikita:
For the vista thing, the better (and simpliest) is to do it from another xp-based computer, since you won't do it every morning.

For creation purpose, check that. ;)
[JAMin, XDA Neo, S200 ROM Development] rondol1:
Thanks! I sort of found such a tool already, but this one brings me to more resources.

About the Vista thing: you're absolutly right, but I'm just curious if I could get this issue solved, like an experiment. The only thing is I don't find the tools to do so!

I'm trying to get XP on a second bootpartition, so I can dual boot to the OS of my liking. This way at least the practical stuff can be done, and I expect Hypercore to work properly. Think that brings me a bit closer...
[Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti] kos25k:
Hallo dudes!I can not manage my tablet to detect my Tronsmart T1000.Any solution?Can anyone please tell me with which adapters is compatible our Z3c tablet?

Στάλθηκε από το C6903 μου χρησιμοποιώντας Tapatalk
[Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti] kos25k:
Ok i solved my problem.i flashed KK debloating script and it removed s.m function!but this script makes automatic backup of the removed stuff in system.so i restored s.m again.Thenbecause i was rooted it was not connecting..Then i made a process that i read from another thread and s.m is working again!!! :)

Στάλθηκε από το C6903 μου χρησιμοποιώντας Tapatalk
[Samsung Galaxy S7 Edge Questions and Answers] Delboyd12:
Can anyone with their S7/Edge confirm whether or not the fingerprint scanner on the device works with apps that support the Marshmallow fingerprint API natively?

For example, LastPass login etc?

It's a feature I love on my Nexus 6P and don't want to lose when my phone arrives on Tuesday.

With fingerprint security rumoured to start featuring heavily in the Google ecosystem through the MM API, I think it'd be a shame if this wasn't present. Can someone put my mind at rest?
[Samsung Galaxy S7 Edge Questions and Answers] Cyberguycpt:
Can't say definitely for sure but, I do know that an app called 1password lets you use your fingerprint to unlock the app. And this is supposedly possible because of Android 6.0 marshmallow. And coming from IOS I definitely need this to happen sooner than later. One of the only features I'm missing. Well that and the ability to see my Bluetooth battery percentages.
[Samsung Galaxy S7 Edge Questions and Answers] ahrion:
It worked with my Capital One, which uses the native MM API. It also works with the app Finger Security. It's super fast.

I got my S7 Edge two days ago.
[Samsung Galaxy S7 Edge Questions and Answers] short/y:
I can confirm the fingerprint scanner on the S7E works with Lastpass.
[Samsung Galaxy S7 Edge Questions and Answers] zathus:
I noticed that there is now an option do you use your fingerprint in the Google Play Store too.
[Samsung Galaxy S7 Edge Questions and Answers] Delboyd12:
Ah superb, exactly what I was hoping for! Cheers guys over the moon with that.
[Samsung Galaxy S7 Edge Questions and Answers] bastienvans:
I am no longer able to use fingerprint on PayPal. My note 5 was able to just fine. Anyone else?
[Samsung Galaxy S7 Edge Questions and Answers] Delboyd12:
I distinctly remember my S5 using a third party piece of software for this. Think it was called 'Fido' or something. Hopefully PayPal will implement MM API soon.
[Nexus 6 Themes and Apps] homer667:
This is the new fork of cyanogenmod 13/Snapdragon Camera.

I pulled it from the Nexus 7 2013 build an made a flashable zip for the Nexus 6.

It has to run as a system app and is still under heavy development but it is pretty fast while starting and focusing.

So give it a try.

No magic, just a simple script, all credits go to the original developers from CM!

#!/sbin/sh
ZIP=$3

ui_print "mounting system ..."
mount /system
mount -o rw,remount /system
mount -o rw,remount /system /system

cd /tmp
unzip -o "$ZIP"

rm -rf /system/app/Snap/
mkdir /system/app/Snap/
cp Snap.apk /system/app/Snap/Snap.apk
chown 0.0 /system/app/Snap/ /system/app/Snap/Snap.apk
chmod 755 /system/app/Snap/
chmod 644 /system/app/Snap/Snap.apk
chcon u:object_r:system_file:s0 /system/app/Snap/Snap.apk

ui_print "... done"
umount /system
sync
exit 0
[Nexus 6 Themes and Apps] Meowdib:
Do I need CyanogenMod to run this?
[Nexus 6 Themes and Apps] madsurgeon:
@OP: Did you try this before posting? It doesnt work on my Aosp rom. I tried out Snap on Neobuddy's unofficial CM build a few days back. Many iterations of Snap(as a .zip or .apk) for AOSP roms have surfaced and so far none of them work as intended. Not surprised that this did not either. If you're gonna post a flashable .zip at least make sure it works, not worried that anything will happen to my phone. if nothing else, it's annoying trying a harmless removal of a system app without leaving residual clutter. Cheers!
[Nexus 6 Themes and Apps] klabit87:
has this worked for anybody on aosp?
[Nexus 6 Themes and Apps] GabrielSousa:
thanks, i like this cam
[Nexus 6 Themes and Apps] amareshkt:
5k
[Nexus 6 Themes and Apps] mas_beck:
where can i write the script tersebeut ..

please explain, and more details to avoid errors and impact on the bootloop,

sorry i'm a beginner

thx mastah
[One (M7) Q&A, Help & Troubleshooting] devsk:
A finding and a question:

1. ksmd is consuming CPU cycles. If I disable ksmd, the loadavg drops dramatically.

echo 0 > /sys/kernel/mm/ksm/run

It helps reduce battery usage.

2. I am seeing Gmail is consuming a whole lot of CPU cycles and its triggering a media scan. Is anyone else seeing this?

User 7%, System 36%, IOW 0%, IRQ 0%
User 5 + Nice 11 + Sys 76 + Idle 119 + IOW 0 + IRQ 0 + SIRQ 0 = 211

PID PR CPU% S #THR VSS RSS PCY UID Name
887 1 31% S 4 8564K 2952K fg media_rw /system/bin/sdcard
30426 0 21% S 71 1251556K 132212K bg u0_a123 com.google.android.gm
6735 0 4% R 1 2968K 1180K fg root top

Obviously, killing the process does not help because its system service and will pop right back up.
[One (M7) Q&A, Help & Troubleshooting] firejuggler86:
Cool.. that's good to know. Thanks for the info! :) Would you say disabling that kernel process reduces battery usage a great deal?

One thing that I have noticed with CM 13/marshmallow builds in general, is that sometimes my device just *will not* connect to the mobile network; sometimes I will get lucky and it will connect just fine, but other times it cannot make a connection to save its soul. When it cannot connect, it persistently tries to connect, over and over again-- even if I'm on Wi-Fi-- and the battery is drained at a very rapid rate. However, when it does connect to the LTE network with no issues, battery drainage becomes a non-issue.

(I'm on Verizon, btw)
[One (M7) Q&A, Help & Troubleshooting] Sinistersky:
I turned the KSM off in the Kernel Auditor and the loadav dropped significantly. It should be removed because it serves no purpose really and changing it every boot is a pain :D As for the gmail service, I just limited it's wakelocks because it was too damn frequent. But what I am wondering is, how is your loadavg 0.8? mine is 2.28 1.93 2.12 4/1437 4960 ... I think I have a major problem somwhere :( The lowest it has ever been is 1.60 :(
[One (M7) Q&A, Help & Troubleshooting] devsk:
The loadavg depends on the apps you run. I have noticed that it spikes whenever gmail is doing the email sync or I am running videos from whatsapp etc.

So, don't worry about a larger value if you have been using the phone. The loadavg for idle phone should be close to 0, but it rarely is, because our phones are always doing something in background. The lowest I have seen it drop is 0.08, and then gmail brings it up whenever it does a sync. I have several accounts linked in gmail (yahoo, hotmail, google, work), so its understandable.

One thing you can do to monitor is to see which processes are eating up the CPU with:

ps | sort -n -k5 | tail -n 5
top -m 3 -s cpu -n 2 -d 2 | grep -v "^$" | tail -n 6

It will show 5 top memory consumers and 3 top CPU consumers. Put it in a shell script and run it periodically to collect some stats.

I have noticed dhd_dpc taking up CPU cycles. But I need the wifi...:) So, unless and until someone comes along and optimizes the kernel driver for wifi on M7, that's what we got! I don't think anybody would touch the driver code for m7. So, some things will never get fixed for m7.

On the other hand, the cycles eaten by system_ui and system_server are inexcusable! They can be fixed by CM/Google in non-device specific code. May be that will happen as CM13/Marshmallow matures.
[One (M7) Q&A, Help & Troubleshooting] Sinistersky:
Thanks for the info. I'll try to collect some stats on my device to see what is putting a strain on the battery so much. As for the system, it has always been that way ever since lollipop came. Nobody bothers to fix it, and I am beginning to think that maybe they didn't notice the numbers :( or the switch from 5.0 to 6.0 happened so fast they just went "meh, we'll leave it and maybe fix it later if we remember". I never understood why most of the ROM and kernel makers try to add more new stuff without even fixing and optimizing the things that are the core of the new optimizations and add-ons. It just makes no sense to try to push something new on a broken foundation to begin with. The M7 is a great phone even now, and I had it for 3 years now. Naturally, the battery is very old now and the moment i start using the screen it drops 20% in an hour or so, making me have at most 3 hours of screen time. But with background usage restriction I get by on a daily basis just barely. Fixing the system cycles would be heavenly for me, but alas, maybe it will never happen, sadly :(
[X Style (Pure) Q&A, Help & Troubleshooting] misfit0313:
Are there any fellow Sprint users on the MXPE? If you are, are you running an AOSP ROM? Have you ever gotten data and voice roaming working on AOSP? If so, how'd you do it?
[X Style (Pure) Q&A, Help & Troubleshooting] gpz1100:
Yes, I've had data working on the orion rom (which I believe is cm13 based). Check your apn's, the one containing n5......something.or.other is the appropriate one IIRC.

Mobile networks should be cdma/lte.
[X Style (Pure) Q&A, Help & Troubleshooting] misfit0313:
Network data and voice is just fine for me. It's all roaming that's messed up. Will check apn's next time I flash.
[X Style (Pure) Q&A, Help & Troubleshooting] misfit0313:
I must be blind, but where do we find the APN settings on the phone?
[X Style (Pure) Q&A, Help & Troubleshooting] gpz1100:
^^It's a byproduct of "stock" software. APN's access is readily available in aosp/non stock roms.

The function is still there in the stock rom, but requires an extra step or two to get at it.

If you use a third party launcher such as nova, you can add it under activities. Long press a blank area on the home screen, select widgets, then swipe to the left on the top most row, select activities. Scroll down and open the settings entry then look for APN.

Or, use this - https://play.google.com/store/apps/details?id=de.szalkowski.activitylauncher&hl=en
[X Style (Pure) Q&A, Help & Troubleshooting] Kamkor82:
I'm on Sprint with STOCK/LOCKED/UNROOTED and this phone flat out refuses to roam all over the US. Specifically what APNs should be in the STOCK list (I used Nova to access APNs) and they look to be there.
[X Style (Pure) Q&A, Help & Troubleshooting] gpz1100:
^^I don't think the apn has anything to do with roaming. Have you checked your roaming options under the main android settings?

Are you on a plan that provides roaming? Roaming properly enabled on your account? Updated the prl?
[X Style (Pure) Q&A, Help & Troubleshooting] misfit0313:
I drive semi truck, my usual run is Wisconsin to Washington state and back. My phone, for the most part, will switch into roaming using TruPure. Two runs ago my phone wouldn't roam at all. I tried toggling data, updating PRL and the device config, eventually doing a clean flash, and still had no roaming. Eventually I ran the stock restore tool, flashed the modem separately, and did *#*#72786#*#* in the dialer. I'm back to roaming on a stock based ROM again. I haven't tried an AOSP rom since posting my question a few days ago.
[X Style (Pure) Q&A, Help & Troubleshooting] misfit0313:
Edit: I also used *#*#rtn#*#*
[X Style (Pure) Q&A, Help & Troubleshooting] gpz1100:
^^Did you post about this in the rom thread? I'd guess one of the removed services is somehow affecting roaming.
[X Style (Pure) Q&A, Help & Troubleshooting] misfit0313:
I wanted to do a bit more trouble shooting first. Before my next to Washington, my plan was to flash AOSP and see if roaming was working again. I forgot to note, after confirming roaming was working on the stock ROM again, TruPure was flashed and was roaming properly too. My thoughts were that somehow Sprint provisioning got screwed up or a flash somehow messed up the modem.
[X Style (Pure) Q&A, Help & Troubleshooting] gpz1100:
When you flashed truepure again, what type of reset did you do (if any)?

Sprint's provisioning system is poop. Their system is a 2 part authentication. Your voice/text is tied to the device meid (not imei), data is tied to the sim card. This seems quite [MENTION=252012]ssb[/MENTION]ackward to me, considering verizon, tmo, att all associated your number with the sim card. While the device still transmits its imei during registration, no user intervention is needed when switching device. With sprint you need to log into the account and update the device too.

It seems each time you do a clean flash (wipe userdata), the software attempt to perform the 'handsfree' activation (or its equivalent on the moto x). If you perform a factory reset from within android, a number of carrier parameters get erased. If you a factory reset from twrp, they get retained.

I'm also on sprint but through ringplus, so no roaming included.