Selinux Disabled [Cyanogenmod 13] - Android Q&A, Help & Troubleshooting

Hello,
I want to ask, how to enable selinux?. I'm using cm 13 which have disabled selinux from default,so i can't change it to permissive
I have try using : setenforce 0 from terminal,make permissive.sh,selinux mode changer,init.d script and still can't change it to permissive .When I'm using selinux mode changer, it showing message that "can't reach selinux or it's disabled"
If the problem is from kernel,please tell me where and how to enable it, *i know how to use AIK
Thanks for ur time reading my question, and if you know the solution, please let me know

Related

Viper4android fx and dolby atmos for ROOTED MM

1. Flash zip via twrp for dolby atmos
2. Install apk for Viper4android
For working Viper4android selinux just be set to permissive
Enjoy
@sauaditi
How can I set selinux permissive ?
Kenzi BNH said:
@sauaditi
How can I set selinux permissive ?
Click to expand...
Click to collapse
Download terminal emulator app from Play store
Open app and type following 3 commands
su
setenforce 0
getenforce
Now if it shows permissive
Then its done
Close app
Open Viper4android and Go to driver status if it shows NORMAL ur done
Enjoy music

[REQUEST] Custom Kernel For SM-G531F

Hello i was looking for custom kernel for Galaxy Grand Prime but i didn't find it
I need custom kernel due to security
SELINUX -> always enforcing can't change blocking MASS Storage and more
/SYS -> No Access.. Permission Denied
Root -> Limited Access... many apps don't read root many times (i think it makes selinux enforcing)
Can anyone make custom kernel for this phone?
I don't tripped Knox Flag i don't know how it happen i don't tripped it phone:
Rooted
Xposed
TWRP
Bonus Question : how can i disable SELINUX and access /sys (any apps or commands of disabling selinux not work)
#No Participation

Cache Catcher. Automated cache mantainer

Code:
*** Disclaimer
I'm not responsible for dead phone, dead sdcard, dead pixel, dead person,
dead trees or dead bees also thermonuclear war
If you facing some error because of my module, dont be mad,
provide a reliable logcat to help me to solve
Introduction
Cache Catcher is a a mini modul that brings you features you can activate to maintain your internal storage space,
trim caches and keep it mantained under normal condition. It can be installed on any android device starting from API 4
as long as Xposed Bridge is installed. It will save your internal storage space with no time-consuming methods
and works directly from its sources. Set up your own settings and let it works by its own.
Click to expand...
Click to collapse
Features
Dark/Night theme
Blacklist/Whitelist mode
Notification, will get notified when Cache Catcher saved space
Configurable sizes
Deletes empty cache (0kb)
Conditions to trigger clean up process
Full cache scan
Accurate cache lookup
Click to expand...
Click to collapse
Warning
DO NOT enable all features for first time usage. It may leads to an ANR for some app that wildly dump its cache.
Imagine when you start working on a company and have to do a lot job on first work day.
Set it low and make it strict after a couple day to keep your caches low and controled
Click to expand...
Click to collapse
Q&A
Q: I wanted to mantain (app name)'s cache only
A: Enable Whitelist mode, clear app list and chose only (app name) then reboot to apply
Q: I dont want to clear any cache of (app name), because it breaks some functions
A: Blacklist it and reboot
Q: (app name) keep crashing after this module activated
A: Have you read my warning message?
Q: Yes
A: Make sure you do as my warning message, if it still crashing, just blacklist it and send me some logcat lines
Click to expand...
Click to collapse
How to know that Cache Catcher is doing its jobs
Open Cache Catcher, if the title says Active (or similar in your language), this module is active
If you activate notification options and get notified about cache deletion, it works
Open Xposed log, if there is Cache Catcher initiation line, its main function is works
If there are json-like lines just after initiation line, your settings are loaded
Open Terminal, request for su, and type "logcat -s CC", if activity happens, it works
Open root File Explorer, navigate to /data/data/any.package.name/shared_prefs/, if it contains CC.xml file, it works
Click to expand...
Click to collapse
Common problem related to Xposed Installer
Xposed log is empty
I have no idea what is going on, but if you solved this problem, let me know
No json-like lines after Cache Catcher init line or just showing "{}"
Your settings are not loaded, it may be SELinux causing this problem, you can change its status from enforcing to permissive. Hope it solve
Click to expand...
Click to collapse
In case of error
Open any su granted terminal, any enter "logcat -s CC AndroidRuntime > /sdcard/CCError.logcat"
Generate the error, by doing things that leads error related to this module
Close the terminal
Open Xposed Installer, chose Log, hit the save icon
Send me descriptive events that leads to error and attach these 2 files
Click to expand...
Click to collapse
In case of serious lag just after reboot
Download dont-panic.zip and flash it through custom recovery
Click to expand...
Click to collapse
Download module
Changelog
v2.9.5
[Fixed] Null Pointer Exception error
v2.9.4
[Note] Currently, i have released stable and beta version on Facebook, so, this is not initial release
[New] Condition to trigger clean up
[New] Dark/Light theme
[New] Indonesian language
[New] Notification options
[New] accurate lookup option
Click to expand...
Click to collapse
XDA:DevDB Information
Cache Catcher, Xposed for all devices (see above for details)
Contributors
Dhi
Xposed Package Name: com.andrian.cachecatcher
Version Information
Status: Stable
Current Stable Version: 2.9.5
Stable Release Date: 2017-05-15
Created 2017-05-14
Last Updated 2017-05-15
Pertamax ?
Good luck bro...
Is this similar to going to Storage&USB and clearing cache ?
No, clearing cache from settings menu will erase everything
This module only delete the old ones, or two, or three based on your settings,
ie: you set 1mb for min gained space, it will delete old caches till 1 mb free space gained
Will this work for custom rom?
I got a lewa rom android ver. 4.4.4
warbadz said:
Will this work for custom rom?
I got a lewa rom android ver. 4.4.4
Click to expand...
Click to collapse
Programmatically yes, make sure Xposed Bridge is installed and working on your android
Doesn't work
Android 6.0.1
Osprey XT1543 Cyanogenmod.
Logs attached.
DiePirate said:
Android 6.0.1
Osprey XT1543 Cyanogenmod.
Logs attached.
Click to expand...
Click to collapse
Oops, NPE,
i will fix that soon
Module Updated
Changelog
[Fixed] Null Pointer Exception error
Dhi said:
Oops, NPE,
i will fix that soon
Click to expand...
Click to collapse
Hmmm xposed log look like something is working bad with the module update.
One more time, logs attached.
Edit: is this mod for install and forget or I have to configure it? and why some apps have not the CC.xml file? Screenshot attached.
Sorry for my english.
It works, but your settings is not loaded, SELinux cause this,
same as my mama's phone, i'm working on it
DiePirate said:
Is this mod for install and forget or I have to configure it?
Click to expand...
Click to collapse
Basic function is activated as you activate this module, but not as effective as you configure it later,
but in this case, your configuration wont be loaded, i will fix this
DiePirate said:
and why some apps have not the CC.xml file?
Click to expand...
Click to collapse
1. it does not call getCacheDir() method, in other words, it does not store cache, or not
2. it constructs its own File object directly to /cache dir without calling getCacheDir()
3. it uses native methods to store cache
Dhi said:
It works, but your settings is not loaded, SELinux cause this,
same as my mama's phone, i'm working on it
Basic function is activated as you activate this module, but not as effective as you configure it later,
but in this case, your configuration wont be loaded, i will fix this
1. it does not call getCacheDir() method, in other words, it does not store cache, or not
2. it constructs its own File object directly to /cache dir without calling getCacheDir()
3. it uses native methods to store cache
Click to expand...
Click to collapse
Ok sir im waiting for the selinux fix, thank you.
DiePirate said:
Ok sir im waiting for the selinux fix, thank you.
Click to expand...
Click to collapse
Try to disable it
Dhi said:
Try to disable it
Click to expand...
Click to collapse
How?
DiePirate said:
How?
Click to expand...
Click to collapse
SELinux mode changer, maybe?
I dont know exactly, SELinux is disabled by default in my phone, LOS 13
Dhi said:
SELinux mode changer, maybe?
I dont know exactly, SELinux is disabled by default in my phone, LOS 13
Click to expand...
Click to collapse
Maybe @aviraxp or @veez21 knows and help.
Please check, is now working? Permissive selinux enabled.
Los attached.
DiePirate said:
Maybe @aviraxp knows and help.
Please check, is now working? Permissive selinux enabled.
Los attached.
Click to expand...
Click to collapse
Line #7
05-15 12:52:48.190 I/Xposed ( 545): SELinux enabled: yes, enforcing: yes
I will try everything to make this work, every module developer sould notice this issue before, i will look for the answer
Dhi said:
Line #7
05-15 12:52:48.190 I/Xposed ( 545): SELinux enabled: yes, enforcing: yes
I will try everything to make this work, every module developer sould notice this issue before, i will look for the answer
Click to expand...
Click to collapse
I'll try to disable selinux just now!
EDIT: where are the sources?
NPE error
Here are the logs
For the moment, I uninstalled the module, I wait for stable release. Selinux permissive.

How to set SELinux to permissive easily on miui 10.2?

Please help me set / change SELinux to permissive on Stock MIUI 10.2 unlocked,rooted with magisk, in desperate need of this. Checked some on the internet but "Universal init.d" app has been removed from play store.
For god's sake, cant it be just simple that add "blah-blah" module in magisk and reboot and u r done!:fingers-crossed:
Flash this in twrp if you want permanent solution https://androidfilehost.com/?fid=3700668719832241024 or you can just set it using kernel manager like smartpack kernel manager or kernel adiutor (in misc section).
I don't like touch on kernel, so I created a file in /data/adb/post-fs-data.d with follow content (permissions: rwxr-xr-x or 755)
Code:
#!/system/bin/sh
setenforce 0
This way I can simply delete the permissiver script whenever I want.
I use CoolTool and to read some battery files, even having root privilegies, SELinux permissive is necessary.
Adriano-A3 said:
I don't like touch on kernel, so I created a file in /data/adb/post-fs-data.d with follow content (permissions: rwxr-xr-x or 755)
Code:
#!/system/bin/sh
setenforce 0
This way I can simply delete the permissiver script whenever I want.
I use CoolTool and to read some battery files, even having root privilegies, SELinux permissive is necessary.
Click to expand...
Click to collapse
So hey, I know this is a really old post and I realize that you might not reply but just trying to reach out anyway and confirm - just creating a script file like "permissiver.sh" in data/adb/post-fs-data.d with the right permissions will do the trick?
---------- Post added at 08:47 PM ---------- Previous post was at 08:08 PM ----------
stonedead said:
Flash this in twrp if you want permanent solution https://androidfilehost.com/?fid=3700668719832241024 or you can just set it using kernel manager like smartpack kernel manager or kernel adiutor (in misc section).
Click to expand...
Click to collapse
How would you uninstall if not needed?

Question Viper4Android

Hey, does anyone go through installation successfully? I have a problem with a driver installation - every time when I try to install, it ends with the same dialogue to install driver.
zainstaluj SElinux Mode Changer uruchom permissive i zainstaluj sterowniki mi 3 razy, gdy zostaƂy zainstalowane
install Selinux Mode Changer run permissive and install mi drivers in 3 times they installed

Categories

Resources