selinux - Treble-Enabled Device Questions and Answers

how to change selinux permissive to enforcing GSİ roms?

this isnt a question related to GSIs... Just search for selinux in magisk repo

Related

[Kernel] [MM] [Root] G920P/G925P Aurora Kernel Autoroot + BusyBox + SuperSu 2.71

Download :
Flash via Odin
MOD EDIT: DOWNLOAD LINKS REMOVED
Flash Zip
MOD EDIT: DOWNLOAD LINKS REMOVED
Aroma installed , chosed devices G920P or G925P
* AUTO-ROOT SYSTEM-LESS SuperSU v2.56 (on flash odin) , SuperSU v2.71 on flash zip
* Based on official Samsung source: Samsung OSRC
* ramdisk base: G920PVPU2BPC6 on G920P andG925P
* KNOX WARRANTY VOID: 1
* KNOX Remove All
* SELinux PERMISSIVE (default) or ENFORCING
* DEEP SLEEP FIX
* Compiled with UBERTC GCC 5.3.1 20160401 + Graphite optimizations
* Linux 3.10.101
* init.d script support (drop in script & set permissions to 755 or 777 and reboot)
* adb insecure
* Mali GPU DVFS disabled for min/max frequencies
* Secure storage = false (should prevent WIFI settings & passwords wiping on reboots)
* Synapse app support for many kernel configurations
The ramdisk base that u say you used is the software version for the Sprint Note 5. The S6 version ends in PB6. Is this a typo?
Sent from my SM-N920P using XDA-Developers mobile app
So does this kernel work?
Sent from my SM-G925P using XDA-Developers mobile app
Bobthahog said:
The ramdisk base that u say you used is the software version for the Sprint Note 5. The S6 version ends in PB6. Is this a typo?
Sent from my SM-N920P using XDA-Developers mobile app
Click to expand...
Click to collapse
edited
Lol, its pb6 or pc6?
Can i use it for Dual Boot?
synapse doesn't seem to work with the last flashed kernal i cam e form sky high and it worked till i flashed this kernal????
any ideas
stock rooted galaxy s6 rom 6.01
LOL -- oops, wrong thread. Apologies [content deleted].
Thanks you.
synapse not working? it says device not supported sm-g925p
so far it seems really good actually with no tweaking because synapse isnt working, other than that ive gotten better battery life then when using dirtyMM kernel
Can you please upload kernel and any other relevant GPL licensed sourcecode? If it is 100% samsung official, please link to it.
lamlazy said:
Download :
Flash via Odin
MOD EDIT: DOWNLOAD LINKS REMOVED
Flash Zip
MOD EDIT: DOWNLOAD LINKS REMOVED
Aroma installed , chosed devices G920P or G925P
* AUTO-ROOT SYSTEM-LESS SuperSU v2.56 (on flash odin) , SuperSU v2.71 on flash zip
* Based on official Samsung source: Samsung OSRC
* ramdisk base: G920PVPU2BPC6 on G920P andG925P
* KNOX WARRANTY VOID: 1
* KNOX Remove All
* SELinux PERMISSIVE (default) or ENFORCING
* DEEP SLEEP FIX
* Compiled with UBERTC GCC 5.3.1 20160401 + Graphite optimizations
* Linux 3.10.101
* init.d script support (drop in script & set permissions to 755 or 777 and reboot)
* adb insecure
* Mali GPU DVFS disabled for min/max frequencies
* Secure storage = false (should prevent WIFI settings & passwords wiping on reboots)
* Synapse app support for many kernel configurations
Click to expand...
Click to collapse
Quick question: how do I change SELinux to enforcing? When I do the install, it's not a choice. Not sure how to do it otherwise...
hamstrman said:
Quick question: how do I change SELinux to enforcing? When I do the install, it's not a choice. Not sure how to do it otherwise...
Click to expand...
Click to collapse
Get a kernel manager app like Synapse and it will be under security settings.
Sent from my SM-G920P using XDA-Developers Legacy app
jcase said:
Can you please upload kernel and any other relevant GPL licensed sourcecode? If it is 100% samsung official, please link to it.
Click to expand...
Click to collapse
THREAD CLOSED as it doesn't meet the requirements for Development

Add SELinux Permissive support

Based on experience during pacman kk rev 3 stable, it turns out that the kernel used does not support selinux policy, because the status
Code:
su
getenforce
disabled
always shows that selinux is disabled. Is there any way to add selinux support into permissive in ramdisk without compiling the kernel?
I follow this method but always failure. SELinux always disable.

[NEW THREAD OPENED] arter97 kernel for OnePlus 5

New thread is opened for rebooted kernel with Pie support
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
arter97 kernel for OnePlus 5/5T running OxygenOS​
/* Details */
Latest CAF kernel fully merged
Various optimizations from Paranoid Android
Reduced touch latency
Permissive SELinux
Passes SafetyNet
Built with O2 speed optimizations
Built with latest GCC
Random driver backported from mainline Linux(12 times faster)
Westwood as default TCP network congestion control
Entropy hook on storage removed
f2fs support with GC fixes and optimized SQLite libraries
Default file-system mount option with noatime
CFQ I/O scheduler backported from mainline
Systemless installation
Wi-Fi configuration from Pixel 2 and Paranoid Android
/* Disclaimer */
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please
do some research if you have any concerns about features included in this kernel
before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
/* Warning */
Redistribution, modifying files used within this project's file or integrating with other projects are prohibited with no exceptions other than my projects.
Making mirrors, re-uploading to another servers are also prohibited with no exceptions.
/* Thanks to */
TheCrazyLex
xboxfanj
Tim Murray
Sultan
/* Downloads and links */
arter97.com
XDA:DevDB Information
arter97 kernel for OnePlus 5, Kernel for the OnePlus 5
Contributors
arter97
Source Code: https://github.com/arter97/android_kernel_oneplus_msm8998
Kernel Special Features:
Version Information
Status: Stable
Created 2018-01-02
Last Updated 2019-04-09
/* Notice */
Support for other ROMs are not guaranteed and is not planned at the moment
Disabling data encryption is highly recommended for better performance and less headache
Magisk is not tested yet
Only Android Oreo is supported
/* Changelog */
2.3-rc1
Merged Linux 4.4.153
Merged LA.UM.6.4.r1-10300-8x98.0
Merged LA.UM.6.2.r2-10500-sdm660.0
Merged OnePlus 5T OxygenOS 5.1.5 ramdisk (Older versions no longer supported)
Magisk updated to v17.1
Built with GCC 8.2
Merged f2fs from Linux 4.19
Massive performance gains for f2fs with optimal mount and SQLite configurations
Applied pinctrl/serial commits from Pixel for better Bluetooth handling
Disabled UFS clock scaling for better power consumption
2.2-rc2
Merged Linux 4.4.139
Merged LA.UM.6.4.r1-09000-8x98.0
Merged LA.UM.6.2.r2-09300-sdm660.0
Merged OnePlus 5T OxygenOS 5.1.3 ramdisk
Merged f2fs from Linux 4.18 (sorry, rc1 was 4.17)
Merged several patches from Clear Linux
2.2-rc1
Merged Linux 4.4.138
Merged LA.UM.6.2.r2-03900-sdm660.0
Merged OnePlus 5T OxygenOS 5.1.2 ramdisk
Magisk updated to v16.4
Merged some patches from Pixel 2 to improve performance and efficiency
Reverted unnecessary UFS patch to improve power efficiency
Now built with GCC 8.1
Merged f2fs from Linux 4.18
Added f2fs GC optimizations for better performance and lifespan
2.1-rc1
Support for OxygenOS 8.1 added
Support for OxygenOS 8.0 dropped
Merged Linux 4.4.121
Merged LA.UM.6.4.r1-06900-8x98.0
Tweaked some kernel configurations to make it lighter
kswapd affinity removed for faster memory reclaimation
Faster resume from suspend (Thanks to Sultan)
Magisk updated to v16.0
2.0.1
Fixed a kernel panic occuring during Wi-Fi hotspot
2.0.1-rc1
Merged LA.UM.6.4.r1-06500-8x98.0
Backported several unicast and multicast commits from mainline for better wpa_supplicant compatibility
Fixed delayed notifications due to faulty Wi-Fi configuration (by joshuous)
Disabled several debugging features for lower overhead (breaks Android Studio app profiler)
Overrided 300 MHz as the minimum CPU frequency
Faster recovery time for panel reset
2.0
Kernel modules re-enabled for fixing Wi-Fi issues
Fixed custom SQLite libraries not working on f2fs
2.0-rc6
Merged Linux 4.4.115
Disabled kernel modules for lighter kernel
Merged OnePlus 5T OxygenOS 5.0.3 ramdisk
Removed multiple debug and dump stuffs from the ramdisk
Wi-Fi logging reduced
2.0-rc5
Wi-Fi configuration reworked
Enabled more power savings to the display panel
Merged Linux 4.4.114
2.0-rc4
Merged binder with Google Pixel 2
Fixed random reboots due to faulty Wi-Fi drivers
2.0-rc3
Linaro LSK merge reworked
Optimized for big.LITTLE
Toolchain updated to Linaro 7.2 2018.01 with hg-binutils-2.29.51.0.1
2.0-rc2
Merged latest Linaro LSK kernel
Fixed an issue causing camera to save corrupt images
Reverted Meltdown and Spectre patches
Merged latest binder patches from Google
2.0-rc1
Merged LA.UM.6.4.r1-06100-8x98.0
Optimized SQLite libraries only enabled to f2fs users
(f2fs users will need to use another dialer app)
Merged OnePlus 5T OB2
Magisk updated to v15.3
Merged various patches from Pixel 2 to improve Bluetooth, audio and other general performance
Merged Linux 4.4.113
Fixed support for encryption users
Various Wi-Fi issues fixed(including hotspot crashes)
1.0
Fixed slow boot with ext4 users
Fixed support for disabled encryption
Switched to LZ4 ramdisk compression
Reworked touch booster (by TheCrazyLex)
2-step touch booster implemented (by TheCrazyLex)
Merged more Paranoid Android tunables (by TheCrazyLex)
Added f2fs optimized SQLite libraries
Merged LA.UM.6.4.r1-05700-8x98.0 Wi-Fi stack
1.0-rc1
Initial release
/* Magisk */
Magisk is not yet properly supported due to heavy modification to ramdisk.
Obviously, I'm not going to ask the Magisk developer to support my kernel.
I'll be looking into supporting both non-Magisk and Magisk user with the same boot.img.
Until then, Magisk users can use this : http://arter97.com/browse/op5/kernel/magisk
(Magisk-integrated boot.img)
Flashing Magisk ZIP file on top of my kernel will result in boot issues for now.
Reserved 4
WELCOME arter97! Love your work from Galaxy S3 times! Nice to see you here! ???
edit: waiting for that PA now ?
Version 1.0-rc1 has been quietly re-uploaded after confirming SafetyNet breakage and fixing it.
Please re-download if you experience CTS check failures.
Having devs like arter97 developing for OP5 is a great privilege and pride for OnePlus 5 owners.
Thanks for this new year gift @arter97!
i tried to flash on op5 decrypted on xxx 9.2 oreo and just kept rebooting. tried to boot with and without no verity
i know im not officially supported, but im reporting just to share
Won't boot (OB3)
I confirmed boot with official Oreo on the OnePlus 5 and Open Beta 1 on OnePlus 5T.
I'm gonna need some more feedback..
I also tried on xxx and had the same problems as red. Also tried with and without no_verity zip. Tried with IBE's and codeworkx TWRP. Had to dirty flash Rom again because elementalX would stick/boot after trying.
Doesn't boot here on my 5T when trying to root with Magisk 15.0. It's fine if it's not rooted.
Dariusdd said:
Doesn't boot here on my 5T when trying to root with Magisk 15.0. It's fine if it's not rooted.
Click to expand...
Click to collapse
Magisk is the issue. Try latest 15.2, it's supposed to fix issues on the op5 and 5t
Sent from my ONEPLUS A5000 using Tapatalk
fjsferreira said:
Magisk is the issue. Try latest 15.2, it's supposed to fix issues on the op5 and 5t
Click to expand...
Click to collapse
It isn't. Running 15.2...... No boot
Yup can confirm with root (Magisk and SuperSU) it doesn't boot on my 5t. With blu kernel it's booting with or without root. Just to let you know. Really nice to have a Dev like you here. Thanks .
fjsferreira said:
Magisk is the issue. Try latest 15.2, it's supposed to fix issues on the op5 and 5t
Sent from my ONEPLUS A5000 using Tapatalk
Click to expand...
Click to collapse
Ehe! It's even worse with 15.2, it doesn't even bother getting to the oneplus logo. It stays with a black screen and the notification light on white, probably qualcomm mode.
With 15 it was at least getting to the logo, and it got stuck there. It wasn't tested anyway, so it's not unexpected.
SuperSU 2.82 SR5 is also not working. That's too bad, as the phone was flying when using the kernel.
Magisk is not yet properly supported due to heavy modification to ramdisk.
Obviously, I'm not going to ask the Magisk developer to support my kernel.
I'll be looking into supporting both non-Magisk and Magisk user with the same boot.img.
Until then, Magisk users can use this : http://arter97.com/browse/op5/kernel/magisk
(Magisk-integrated boot.img)
Flashing Magisk ZIP file on top of my kernel will result in boot issues for now.
arter97 said:
Magisk is not yet properly supported due to heavy modification to ramdisk.
Obviously, I'm not going to ask the Magisk developer to support my kernel.
I'll be looking into supporting both non-Magisk and Magisk user with the same boot.img.
Until then, Magisk users can use this : http://arter97.com/browse/op5/kernel/magisk
(Magisk-integrated boot.img)
Flashing Magisk ZIP file on top of my kernel will result in boot issues for now.
Click to expand...
Click to collapse
Flashed magisk integrated boot.img and i can't pass the oneplus logo, it boots into twrp directly.
The version modified with magisk is working fine for me on my 5T.

Selinux permissive

Please someone make this kernel's selinux set to permissive
its from SM-N750 XME ROM
Thanks a million

Enable exFAT in ElementalX

I am using the ElementalX kernel from the following thread with Lineage OS 18. I wan't to use my exFAT drives with the tablet but don't seem to be able to enable it in the kernel. As far as I know ElementalX supports exFAT.
[ROM][flo|deb][UNOFFICIAL][LineageOS 20.0]
LineageOS 20.0 lineage-20.0-20230507-UNOFFICIAL-flo.zip lineage-20.0-20230507-UNOFFICIAL-deb.zip Known issues: - We are still Permissive (SELinux) - Encryption is not working .. Pls do NOT encrypt your /data partition! - Camera is not fully...
forum.xda-developers.com

Categories

Resources