Please help for changed SElinux to permissive - Samsung Galaxy Alpha

Hi, I'm a beginner and I would like to know how to get SElinux in permissive on my SM-850F. I tried many things without success. Thank you for your help.

ludogaut14 said:
Hi, I'm a beginner and I would like to know how to get SElinux in permissive on my SM-850F. I tried many things without success. Thank you for your help.
Click to expand...
Click to collapse
It shall be done via kernel re-compilation from sources, ramdisk tweak and build.prop entry. This is the only way till now. As I can tell, there's also a feature in "wanam exposed" - security but I don't think it will work (still in beta). So, watch for a "custom touchwiz kernel" in Android Development section....
EDIT: or flash Eudemony ROM
"Init.d Software Support
Insecure Stock Kernel with Init.d Support"

freaksamael said:
It shall be done via kernel re-compilation from sources, ramdisk tweak and build.prop entry. This is the only way till now. As I can tell, there's also a feature in "wanam exposed" - security but I don't think it will work (still in beta). So, watch for a "custom touchwiz kernel" in Android Development section....
EDIT: or flash Eudemony ROM
"Init.d Software Support
Insecure Stock Kernel with Init.d Support"
Click to expand...
Click to collapse
Thanks you for your help.
I have already try the eudomony rom but not find a script that works.

ludogaut14 said:
Thanks you for your help.
I have already try the eudomony rom but not find a script that works.
Click to expand...
Click to collapse
try this content as init.d script; I have-it on a rooted tablet (not alpha) and it works. name of the script - 01disable_selinux.
Before trying, please be sure (mandatory) that:
- the paths for the files are correct (/sys/fs/selinux/enforce) - (I have-it on my unrooted Alpha)
- busybox is installed in /system/xbin
- 01disable_selinux file must be created in Notepad++ ( UNIX Mode)
- proper init.d permissions are applied
- you use a "SELinux disable" Kernel
#!/system/bin/sh
/system/xbin/busybox chmod 777 /sys/fs/selinux/enforce
/system/xbin/echo "0" > /sys/fs/selinux/enforce
Attached you'll find my init.d script (pls remove .txt extension); if you agree with the content :laugh: just put it in your init.d folder and set proper permission for it (777). Reboot & report back.

freaksamael said:
try this content as init.d script; I have-it on a rooted tablet (not alpha) and it works. name of the script - 01disable_selinux.
Before trying, please be sure (mandatory) that:
- the paths for the files are correct (/sys/fs/selinux/enforce) - (I have-it on my unrooted Alpha)
- busybox is installed in /system/xbin
- 01disable_selinux file must be created in Notepad++ ( UNIX Mode)
- proper init.d permissions are applied
- you use a "SELinux disable" Kernel
#!/system/bin/sh
/system/xbin/busybox chmod 777 /sys/fs/selinux/enforce
/system/xbin/echo "0" > /sys/fs/selinux/enforce
Attached you'll find my init.d script (pls remove .txt extension); if you agree with the content :laugh: just put it in your init.d folder and set proper permission for it (777). Reboot & report back.
Click to expand...
Click to collapse
Hi, I did your advice but do not work. 00test init.d ok, 01disable_selinux not work, "getenforce" always "enforcing". I wait a good person makes a kernel with SELinux permissive and KNOX desactived. Thank you very much for your advice and excuse me for my english.

Related

[Q] init.d scripts?

How can you tell if init.d scripts are working or not?
anthony062991 said:
How can you tell if init.d scripts are working or not?
Click to expand...
Click to collapse
Open up your init.d script and add this to the end of it
Code:
echo "Init.d is working" > /sdcard/initd.txt
Reboot your phone and use a file manager to see if initd.txt is on your sdcard
smokin1337 said:
Open up your init.d script and add this to the end of it
Code:
echo "Init.d is working" > /sdcard/initd.txt
Reboot your phone and use a file manager to see if initd.txt is on your sdcard
Click to expand...
Click to collapse
init.txt
init.d is working
Thank You! Much appreciated!

[ROM] [SGP 4.0] Icy Fusion ~The best ICS experience..on Gingerbread~ v2.3 (6/26/12)

Icy Fusion ROM
Final: v2.3
~~The best ICS experience..on Gingerbread!~~ Fast and smooth! Crazy battery life!​
klin1344 said:
Hi everyone,
I am sorry to say that I will be retiring this ROM. I will be receiving my HTC One S next week, and most of my development efforts will be focused over in those forums. I won't abandon the 4.0 completely, but this will be my last ROM for it, with no more future updates. I also feel that this ROM is pretty complete and definitely usable for a stable daily driver.
I want to thank the community who supported my development, and my ROMs have been a good learning experience for me. But too bad the galaxy players were never very popular with developers...
Anyways, hope you enjoyed my work here. Links will always be available.
Click to expand...
Click to collapse
As you probably all know, I have ditched Klassic and letting hanthesolo continue it. I was going to make a SGS2-styled ROM, but instead I chose a total ICS-styled ROM instead due to the popularity of Android 4.0. I will be maintaining this ROM in two builds--one based on G1UEKI8 (USA) and another based on XXKPQ (INTL). Using an INTL ROM on a US player, and a US ROM on an INTL player caused too many issues (bluetooth, home button, toggles, etc), so I have decided to do it this way for better integration and the best possible experience. As of now it is not very different from Klassic (or Stratus), but as I make new releases it will have more and more features. Also it will be flashable with CWM. Enjoy
Features:
v1 (6/18/12)
- complete ICS theme (even better themed than Klassic, just look at the screenshots)
- swapped internal USB storage and external SD card (see 3rd post on how to revert)
- Holo Launcher installed
- ICS transitions + Roboto Fonts
- ICS clock widget
- deodexed
- zipaligned
- smooth scrolling mod (a.k.a. disabled scrolling cache in framework)
- smooth spinners mod
- CRT screen off animation
- 14 statusbar toggles
- "Device ID" hack ~now apps like XDA, Whatsapp, Tap Tap Revenge, and any app that needs a unique device id will run and not force close~ (XXKPQ uses Meticulus' hack, G1UEKI8 uses a slightly different method, but still same result)
- advanced powermenu with reboot, recovery, and download
- Supercharged with V6 Supercharger
- my own init.d scripts (you can look at the notes in the "55tweaks" file to see what I put in there)
- improved battery life
- I/O performance enhancements
- better performance
- TerraSilent as the default CPU governor
- plus more
- fixed performance and freezing issues from Klassic R5 (note: this ROM is completely made from scratch from stock, not based on Klassic or another ROM)
- fixed bluetooth issues from Klassic R5
- loads of build.prop tweaks
- debloated (I will attach the apps that I removed if you still want them)
- latest SU Binary 3.0.3.2
- BusyBox 1.20.1
- RFS filesystem ---> /system doesn't need to be on EXT4 because you are not constantly writing data on it
Click to expand...
Click to collapse
v1.1 (6/19/12)
- more init.d scripts for unbeatable battery life and performance
- loopy smoothness script
- sysctl tweaks for speed
- added SuperSU
- fixed the busybox symlink problems in v1
- released the INTL build
- busybox 1.19.3
- updated theme (look at screenshots)
Click to expand...
Click to collapse
v2.0 (6/21/12)
- disabled zCache by default --> to enable, go in 55tweaks and delete the '#' in front of "insmod /lib/modules/zcache.ko"
- implemented swipe to remove notifications
- added CRT screen ON animation
- improved touch responsiveness
- disabled start up sounds
- set an ICS wallpaper as default
- added 5 new ICS wallpapers in Wallpaper Gallery
- Galaxy Nexus bootanimation
- improved the implementation of the device id hack
Click to expand...
Click to collapse
v2.1 (6/23/12)
- FIXED BLUETOOTH!! and still Supercharged
- more battery life tweaks
- more performance and responsiveness tweaks
- fixed powermenu "Reboot Download"
- added TouchWiz 4.0 modified by me
- GT-I9000 Settings.apk (more options)
- completely re-designed Settings.apk
- ICS themed + added HoloLauncher Settings (see screenshots)
- "IcyFusion ROM" selection in Settings is a shortcut to device status
- succesfully smali'ed out (removed) "Call Settings" from the Settings.apk
- updated Holo Launcher to v1.0.5
- updated SuperSU to v0.92
- now /system is on EXT4
- ODIN package until CWM /data issues are sorted out
Click to expand...
Click to collapse
v2.2 (6/24/12)
- used stock Settings.apk, but still designed the same as v2.1
- fixed the setup wizard loop
- cleaned up init.d scripts
- added a lot more init.d speed tweaks
- added DSP Manager apk + libs
- added Zeam Launcher
Click to expand...
Click to collapse
v2.3 (6/26/12)
- optimized EXT4 mounts in init.d scripts (fast i/o performance; I got 2300 in Quadrant with only stock 1Ghz)
- added transparent background theme --> see post 3 on how to change the background picture
- optimized auto brightness levels for battery life
- stock sd card and internal storage mounts
- improved ICS theme
- Youtube HD apk
- fixed DSP Manager, and now every feature works
Click to expand...
Click to collapse
Downloads
*Simply flash in CWM*
*v2.1 & up flash with ODIN*
wipe data if you are have issues
USA/INTL:
v1: http://d-h.st/wWE
v1.1: http://d-h.st/jyP
v2.0: http://d-h.st/jGF
v2.1: http://d-h.st/W0I
v2.2: http://d-h.st/WYB
v2.3: http://d-h.st/mPa
INTL
v1: none; look for v1.1
v1.1: http://d-h.st/ILv
v2.0: none
INTL users please try the US version and post here if there are issues
Sorry, I will have to drop support for INTL players because it is too difficult to keep flashing, modding, and testing both builds of the ROM. I understand that 2.3.5 caused a reboot issue on INTL players when the headphones are plugged in. If somebody could please post a logcat, and I will try and see what I can do to fix the issue. Thanks.
Special thanks to:
Dark_Balor for improving the kernel for our device
zeppelinrox for his V6 SuperCharger
Meticulus for his Device ID hack for 2.3.6
Vertumus for some parts of his ICS Domination Theme
dsixda for his kitchen
And many others I probably forgot to mention
ScreenShots
​
Extras and add-ons
Extras and Add-ons​
Here I will attach some miscellaneous add-ons for my ROM.
How to manually wipe and format data into EXT4
1. Boot into CWM recovery. Make sure you are using the latest TerraSilent kernel.
2. Type 'adb shell' in command prompt or Terminal.
3. Type the following code:
Code:
umount /data
umount /dbdata
umount /cache
Then:
Code:
mke2fs -f ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/mmcblk0p2
mke2fs -f ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/stl10
mke2fs -f ext4 -b 4096 -O ^huge_file,^dir_nlink,^ext_attr,^resize_inode,^extra_isize -m 0 /dev/block/stl11
4. Reboot. Or you can follow below on how to disable EXT4 journaling (don't reboot), which GREATLY improves i/o performance. Note that every time you boot into recovery, /data get wiped into RFS again due to a CWM bug. I suggest that you do not boot into recovery again after rebooting unless you really need to.
To disable EXT4 journaling
1. Make sure you have flashed my ROM, as it includes some tools for this procedure.
2. Unmount the partitions if they aren't already:
Code:
umount /data
umount /cache
umount /dbdata
4. Follow:
Code:
tune2fs -O ^has_journal /dev/block/mmcblk0p2
tune2fs -O ^has_journal /dev/block/stl10
tune2fs -O ^has_journal /dev/block/stl11
5. You're done! Now you can reboot, and see the massive jump in Quadrant, especially if you're using ROM v2.3 and up.
How to change the background wallpaper theme
For v2.3, I've enabled the use of a custom wallpaper theme, which will show up in many apps. If you don't like the picture I used, you can replace it yourself with these very simple instructions.
1. Copy the /system/framework/framework-res.apk from your player.
2. Using an archiver, like winzip or 7zip, open the apk.
3. Find any 480x800 png image that you like, and name it screen_background_dark_transparent.png
4. Drag it into the res/drawable-hdpi/ folder of the apk. It will replace the original one in there.
5. Copy framework-res.apk back, and make sure to set permissions rw-r--r--. Reboot.
Extras
- Stock vold.fstab (for stock usb storage and sd card mounts): http://d-h.st/FKL
This is how to install
Code:
cd [B]*directory of the file*[/B]
adb remount
adb push vold.fstab /system/etc
Or simply just copy/paste with root explorer and reboot.
reserved again
It looks nice. I have 1 suggestion. It is possible to put the SGSII lockscreen into it? It would be perfect! (for me though I don't know for the others)
zaclimon said:
It looks nice. I have 1 suggestion. Is it possible to put the SGSII lockscreen into it. It would be perfect! (for me though I don't know for the others)
Click to expand...
Click to collapse
I could try, and maybe upload a framework-res specifically for people who want an SGS2 lockscreen.
I am trying to get INTL support for this ROM, but unfortunately I noticed that with XXKPQ if I use dsixda's kitchen I get this error when trying to use busybox:
Any busybox applet will result in the same...
It doesn't happen on 2.3.5 G1UEKI8 though.. I have tried unrooting and rerooting, using the install busybox option with kitchen, reinstalling busybox, but nothing seems to work.
So..for now I will only be supporting US devices until someone can either help me get rid of this error or at least help me find another INTL ROM that I can base my work off of.
Nice! It seems we are branching off, you to theming and features, I to raw performance . Just from one dev to another, did you fix bluetooth by unullifying? Also, how did you get framework-res to successfuly recompile without FC's? I tried doing it, and it basically blew up my Gplayer. Maybe using a apk decompiler is not the way to go...Argh, I hate windows, I never have these issues in Ubuntu...
Finally, where did you find his deviceid hack? when I got to his thread he had nuked all of his work...sad that someone would try and rip off his hundreds of hours of work.
hanthesolo said:
Nice! It seems we are branching off, you to theming and features, I to raw performance . Just from one dev to another, did you fix bluetooth by unullifying? Also, how did you get framework-res to successfuly recompile without FC's? I tried doing it, and it basically blew up my Gplayer. Maybe using a apk decompiler is not the way to go...Argh, I hate windows, I never have these issues in Ubuntu...
Finally, where did you find his deviceid hack? when I got to his thread he had nuked all of his work...sad that someone would try and rip off his hundreds of hours of work.
Click to expand...
Click to collapse
I use apkmanager to modify my apks if I'm on windows, but if I just happen to be using Linux and I'm too lazy to reboot I use apktool (which requires more work though). For the device id hack, it was a method in framework.jar. Copying and pasting that method from Meticulus's worked for 2.3.6, but would cause a bootloop on 2.3.5 US. So I looked at the logcat and used a modified version of this: http://forum.xda-developers.com/showthread.php?t=955847 for my deviceid hack.
I hate editing smali though...it's so difficult to understand.
klin1344 said:
I use apkmanager to modify my apks if I'm on windows, but if I just happen to be using Linux and I'm too lazy to reboot I use apktool (which requires more work though). For the device id hack, it was a method in framework.jar. Copying and pasting that method from Meticulus's worked for 2.3.6, but would cause a bootloop on 2.3.5 US. So I looked at the logcat and used a modified version of this: http://forum.xda-developers.com/showthread.php?t=955847 for my deviceid hack.
I hate editing smali though...it's so difficult to understand.
Click to expand...
Click to collapse
Thanks! I used apk manager, but it still did not work without fc....maybe i will try a different tool (for some reason it will not recognize adb or aapt in ubuntu even though I can run the commands from the terminal.
It seems we have competing roms now...may the best dev win.
Sent from my Galaxy Player Running my Stratusrom.
hanthesolo said:
Thanks! I used apk manager, but it still did not work without fc....maybe i will try a different tool (for some reason it will not recognize adb or aapt in ubuntu even though I can run the commands from the terminal.
It seems we have competing roms now...may the best dev win.
Sent from my Galaxy Player Running my Stratusrom.
Click to expand...
Click to collapse
Ummm...don't forget that your work is still based off of my work
Editing smali and the framework for new features (powermenu, toggles, etc) is the real ROM work...hehe
Besides, I'm not here to compete; I just want to share my work.
Point taken, I just wanted some friendly competition, it helps to make work go faster.
But, I would like to see you spend 3 hours fixing init.d scripts, and tweaking sysctl for best ram usage.
My point is, we are both skilled in completely different areas. I am better at some things, and You blow past me in others. It just comes down to the users preference.
klin1344 said:
I am trying to get INTL support for this ROM, but unfortunately I noticed that with XXKPQ if I use dsixda's kitchen I get this error when trying to use busybox:
Any busybox applet will result in the same...
It doesn't happen on 2.3.5 G1UEKI8 though.. I have tried unrooting and rerooting, using the install busybox option with kitchen, reinstalling busybox, but nothing seems to work.
So..for now I will only be supporting US devices until someone can either help me get rid of this error or at least help me find another INTL ROM that I can base my work off of.
Click to expand...
Click to collapse
Ugh..I just found out that it is the same with G1UEKI8 as well.
I flashed my factoryfs.rfs version and busybox worked, so I will upload the factoryfs in an Odin package tomorrow. From now on the roms will have to be flashed through Odin until I can find a fix.
Sent using Tapatalk
klin1344 said:
I am trying to get INTL support for this ROM, but unfortunately I noticed that with XXKPQ if I use dsixda's kitchen I get this error when trying to use busybox:
Any busybox applet will result in the same...
It doesn't happen on 2.3.5 G1UEKI8 though.. I have tried unrooting and rerooting, using the install busybox option with kitchen, reinstalling busybox, but nothing seems to work.
Click to expand...
Click to collapse
I have that same issue on my device (different rom). Busybox works fine; the issue is that somehow the symlinks got corrupted (hence the not found and weird characters). I fixed it (post-install) by deleting the broken files and recreating the symlinks in /system/xbin. You might want to check your updater-script or the 'install-busybox.sh' file the kitchen creates.
Sent from my 5.0 USA GenGin + ICS theme
Flash Tool for this ROM
Which flashing utility/method do you recommend for this ROM?
Thanks!
Mevordel said:
I have that same issue on my device (different rom). Busybox works fine; the issue is that somehow the symlinks got corrupted (hence the not found and weird characters). I fixed it (post-install) by deleting the broken files and recreating the symlinks in /system/xbin. You might want to check your updater-script or the 'install-busybox.sh' file the kitchen creates.
Sent from my 5.0 USA GenGin + ICS theme
Click to expand...
Click to collapse
Thank you. So all I have to do is just recreate the symlinks in /system/xbin? I didn't think it would be that easy
Sent using Tapatalk
If we did all that ext4 foo foo should we go back to stock before flashing?
rozelle25 said:
If we did all that ext4 foo foo should we go back to stock before flashing?
Click to expand...
Click to collapse
No need to. It will still work fine with ext4 partitions.
Sent using Tapatalk
What you need to do is make a list of all of the files in /system/xbin that are there after flashing but aren't in your working folder's system/xbin. Those are the (broken) symlinks created by the installbusybox.sh script at the root of your zip. You need to put a symlink command in your updater-script for each of those (referring to the lines already there), and then you can delete the installbusybox.sh script and the updater-script lines referring to it.
Sent from my 5.0 USA GenGin + ICS theme
Everytime I try to turn on Wifi it says error and bluetooth still doesnt work... besides that everything seems to be working fine is there a reason why my wifi wont start?

[SHARE][MOD][TWEAKS][SCRIPTS] XTweaks V1.0

Note : I'm just sharing the work of the XDA Member DorianX.This mod was tested on stock deodexed and it was working fine.I'm not sure that it'll work on CM7 or not.Please test and report here​.
:: Introduction ::..​
XTweaks is a script pack something like others availables on XDA BUT with some of the logic from
SuperCharger V6 by zeppelinrox
(automatically set some values based on your total available RAM).
I've been using this scripts in my custom roms and it worked fine, so I decided to release it to public.
Click to expand...
Click to collapse
:: In the pack ::..​
/data/tmp/* (This is a temporary folder that contain libncurses.so and sqlite3, from android 2.3.x to 4.4.x,
these files are required to run some scripts correctly).
/system/bin:
uninstall (This is an uninstaller, in case that you don't like the mod just go to terminal emulator and type:
su [enter], uninstall [enter] then XTweaks will get uninstalled and your phone will reboot by itself).
uninstallboot (This is an uninstaller for bootanimation only just go to terminal emulator and type:
su [enter], uninstallboot [enter]).
/system/etc/init.d:
00Buildprop (This script will add some values to build.prop on first boot then will be deleted by itself).
00SQlite (This add libncurses.so to /system/lib, sqlite3 to /system/xbin, then will be deleted by itself).
01Ksm (This enable "Kernel SamePage Merging" (KSM))
02Ram_Anim (Better memory management).
03Gov_Sched_Tweaks (This contain some Governor & I/O Scheduler tweaks).
04System_Tweaks (Another memory tweaks and kernel tweaks for better battery life).
05SDCard_Tweaks (This script change the read_ahead_kb value to 2048, faster speeds on SD card).
06NetSpeed_Security (You will get faster conections on WiFi/Mobile Network).
07Cleaner (This clear some unnecessary data and disables logcat) (if you need to get a logcat delete this script).
08Fix_Emissions (This script made it by zeppelinrox fix permissions to your apps and folders every boot preventing force closes).
09Detailing (This script optimize the database for your apps every boot also made it by zeppelinrox).
10Flush-O-Matic (This script clear the cached apps every hour so will get more true free RAM also made it by zeppelinrox).
/system/media:
bootanimation.zip (Customized bootanimation based on Nexus 7's 4.4).
/system/xbin:
busybox (Is the latest busybox by Stericson (1.21.1) needed to run all the scripts, root, etc.).
/tools:
backup.sh (This is a temporary script that makes a backup of your ini.d folder and your current bootanimation (if your ROM have a regular /system/media/bootanimation.zip)).
busybox (This is a temporary busybox to get run the installer).
Click to expand...
Click to collapse
..:: Requirements ::..​
- Rooted phone.
- Android 2.3+.
- Kernel/ROM with init.d support.
- 10mb free in system.
- Custom recovery.
Click to expand...
Click to collapse
..:: Installation ::..​
- Download the latest version of this mod.
- Copy it on your sd card.
- Go to recovery mode.
- Flash it.
- Reboot.
- Enjoy!​
..:: F.A.Q. ::..​
Q. How can I uninstall this mod?
A.Go to terminal and type this :
su
uninstall
Q. How can I uninstall the integrated bootanimation?
A.Go to terminal and type this :
su
uninstallboot
Q. Is this mod compatible with other mods?
A. Maybe with Crossbreeder but you need to test it, first install this mod then install the one you want to try.
Click to expand...
Click to collapse
..:: Downloads ::.. : http://www.mediafire.com/download/a3i6wxh3rnhgng6/XTweaks-1.0.1.zip​
Original Thread : http://forum.xda-developers.com/showthread.php?t=2574443​
Credits :
DorianX
Click to expand...
Click to collapse
No one pressed the Thanks button!!

[kernel][stock][D85520P][init.d][bumped][SELinux permissive] -- SEXY

I wanted to share with you these two simples kernels based on the D85520P, I changed it just to implement the init.d support, for using it with stock rom. Of course, I also have Bumped them.
There are differents ways to proceed, and two points of possible inputs to activate init.d. This can indeed be done directly in the kernel, in ramdisk, or in the system.
For my part, to do this, I modified in two differents ways, the kernel D85520P (ramdisk), that I provide for those who are interested.
The first one uses run-parts, applet typically provided with busybox, and it therefore requires busybox installed on your system. Prioritize it, if you use a busybox that manages run-parts.
The second does not require any third party and will work without special prerequisites.
Both created, at the boot, if it does not exist, the init.d directory with the correct permissions (system/etc/init.d chmod 755).
Theses very simples kernel modificiations, are part of a project on which we work at our own pace, and for the fun, me and @jac10000 .
This unpretentious project will try to make a series of more or less customized , optimized, stock-based rom.
We called this series, our Stock EXperience (for) You (SEXY) ROM
That is why these two simples modified kernels have this name too
These kernels are only for using with pure stock rom:
They are in img format, and can be flashed with TWRP after selecting this format
Kernel D85520P bumped and with ramdisk implementing init.d using run-parts (busybox with run-parts is required):
https://www.androidfilehost.com/?fid=23991606952611236
or
Kernel D85520P bumped and with ramdisk implementing init.d without prerequisites:
https://www.androidfilehost.com/?fid=23991606952611243
in addition, our first version of the SEXY 20P rom can be found here (It doesn't contain init.d implementation nor other customisation, it's just the pure stock prerooted 20P with busybox):
Stock EXperience (for) You -- SEXY rom V1
and original 20P kernel just bumped, without any change:
https://www.androidfilehost.com/?fid=23991606952604603
UPDATE 05/30/15:
To satisfy a solicitation made to me (http://forum.xda-developers.com/showpost.php?p=61059947&postcount=4), I made two other versions which include setting permissive SELinux.
Two versions:
One including init.d with run-parts (requires busybox)
The other with no particular prerequisites.
Setting permissive SELinux is made in the ramdisk before init.d.
init-d with run-parts (for busybox users) and set permissive SELlinux:
https://www.androidfilehost.com/?fid=23991606952612236
md5: 2b068d36a0191df5af63eb90461f4297
init.d without particular prerequites and set permissive SELlinux:
https://www.androidfilehost.com/?fid=23991606952612230
md5: 091621d8fc0d1c494f3fd71321c20693
Thank's and credits:
@Chainfire for supersu
@Cloudyfa for his script sh supersu and busybox install and permission to use it.
@thecubed, @autoprime and codefire team pour bump!
@Skin1980 for his live bump @thecubed for his [Tool][python] LG Compressed KDZ Extractor
@cybojenix for his (system merger)
@bullghost for his windows GUI version KDZ and TOT Extractor
@osm0sis for his Android Image Kitchen - Unpack/Repack Kernel Ramdisk [Win/Android/Linux]
Nice work my friend :good:
Nice! Good luck with development. Gonna try the rom when it's ready.
Plz feedback for life battery..tnx
jojobans said:
Plz feedback for life battery..tnx
Click to expand...
Click to collapse
m8, kernel is just released.
No one can give feedback with few hours of use.
you have to fully charge 1 or 2 times for conclusion
jojobans said:
Plz feedback for life battery..tnx
Click to expand...
Click to collapse
Also if you read his posts he said its a stock kernel with init.d support how battery could be different than stock kernel?
About SELinux permissive request:
http://forum.xda-developers.com/showpost.php?p=61058876&postcount=3
OP UPDATED:
To satisfy a solicitation made to me (http://forum.xda-developers.com/showpost.php?p=61059947&postcount=4), I made two other versions which include setting permissive SELinux.
Two versions:
One including init.d with run-parts (requires busybox)
The other with no particular prerequisites.
Setting permissive SELinux is made in the ramdisk before init.d.
init-d with run-parts (for busybox users) and set permissive SELlinux:
https://www.androidfilehost.com/?fid=23991606952612236
md5: 2b068d36a0191df5af63eb90461f4297
init.d without particular prerequites and set permissive SELlinux:
https://www.androidfilehost.com/?fid=23991606952612230
md5: 091621d8fc0d1c494f3fd71321c20693
Thank you... i searched for a Stock Kernel with only init.d support ... keep it up...
Stock kernel with permissive and init.d without any other tweaks..
Thank you, maybe this is what I need
How to install it? Need to flash via ADB?
dantezinn said:
How to install it? Need to flash via ADB?
Click to expand...
Click to collapse
What about reading the op?

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?

Categories

Resources