KERNEL][7.0][SM-G570F (J5 PRIME)] MutantKernel v2 by AlexVolzsk - Samsung Galaxy J5 Questions & Answers

MutantKernel v2​
LZ4 Compression
Disabled KNOX & TIMA
One click SELinux status change through OKM
TCP Algorithms
Working S-Health
Disabled CRCs (30% performance boost)
Enable NTFS support
Disabled Forced File Encryption
Disabled Secure Storage
Disabled DM_VERITY
Fake knox 0x0
Enable F2FS support
ADB FIXED & Logcat Working at boot
Status: Stable
Current Stable Version: v2
Kernel version: 3.18.14
Google disk | MEGA

Does this work on y variant?

Related

[Kernel][01/03/2013] CoCore 4.1

This custom kernel is base on diego-ch's TWRP kernel.
I call it CoCore.
( Responsibility )
I'M IN NO WAY RESPONSIBLE OF ANY DAMAGE CAUSED BY USING THIS CUSTOM KERNEL.
( Compatibility )
This kernel works well on i9070.
I am sorry that it causes high cpu load on i9070P!
( What is needed )
* An I9070 (Andorid 2.3.6)
* Some Android experience
* Know some knowledge of how to use Android Terminal
* More patience
( Features )
TWRP Recovery 2.2.1
28 CPU Governers
8 I/O Schedulers
IO Unlocked (increased a bit speed)
Init.d Script
Custom Bootanimation
Deeper Sleep Mode
zRAM, SWAP Supported
NTFS(Read Only)
CIFS
ARM ThumbEE
ARM VFP with neon
Optimized RWSEM Algorithm
Mali GPU Tweakes/Controls
LZO Kernel Compression ( for faster boot )
Removed Useless Drivers ( for faster boot )
SLUB Memory Allocator
Automatic readahead cache size
Audio Boost*
Linaro GCC Toolchain
And many miscellaneous tweaks, it's hard to make a list for them.
Maybe i also forgot them.
A ton of new features in my updates,please Check the updated version.( See below )
( Detailed explanation )
CPU Governers Supported:
Code:
Performance, OnDemand(default), Lionheart, Powersave, Userspace,
Conservation, OndemandX, SmartassV2, Interactive, Scary, Sakuractive,
PegasusQ, Intellidemand, Lazy, Wheatley, HotPlug,
SmartAss, LagFree, BrazilianWax, InteractiveX, MinMax, SavagedZen,
Aggressive, AggressiveX, Gallimaufry, GallimaufryX, AbyssPlug, Skywalker
* To get stable scores, please use Performance to run benchmarks.
* For daily using, i recommend PegasusQ.
* Please test the governors by yourself.
* And the PegasusQ will hotplug the second cpu when screen turns off,that might cause music skip when system load is heavy.
* If unsure,please use ondemand(default)
IO Schedulers Supported:
Code:
NOOP, Deadline, CFQ, BFQ(default), SIO, VR, anticipatory, ZEN
* To get more information about governers/io schedulers, here:
http://forum.xda-developers.com/showthread.php?t=1369817
* For daily using, i recommend SIO/BFQ/ZEN
* Please choose a best io scheduler by yourself.
Init.d Script:
* Please make sure there is a latest busybox in your system.I found that init.d didn't work properly on some devices which have old version busybox.
* The init.d folder (/system/etc/init.d) must have 0755 permissions.
* If the scripts dont have execution permissions,it wont be execute automatically.
Custom Bootanimation:
* Please put the bootanimation.zip in /system/media with right permissions(0644).
* If there isn't any custom bootanimation, kernel will load Samsung official bootanimation.
DeepSleep Mode:
* Default mode is State4, i changed it to State5. Increased standby life time.
* If you use a hotplug governor,it might be unstable when you use the deepest sleep mode.
* Some users reported that ondemand works well with deepest sleep mode.
* If you mind the standby time of the phone,please give it a try.
* You can get information about CPU sleep states:
Code:
cat /d/cpuidle/stats
* To change the allowed deepest sleep mode: (e.g. Allow State6)
Code:
#echo 6 > /d/cpuidle/deepest_state
zRAM & SWAP:
* zRAM must be enabled by script/command.
Code:
mkswap /dev/block/zram0
swapon /dev/block/zram0
* SWAP must use with a SWAP partition in sdcard.
Code:
mkswap /dev/block/mmcblk1p2
swapon /dev/block/mmcblk1p2
* Because we have a large memory, the zRAM/SWAP is low activity.
* Some users said that zRAM/SWAP wont help the performance of games,they might drop more battery.
NTFS:
* Need a binary called "ntfs-3g" to read/write ntfs sdcard. Built-in NTFS feature only can read.
* Stock Android 2.3 cannot mount NTFS sdcard automatically.
Mali GPU:
* Allowed larger memory.
* Allowed larger OS memory for buffer. ( 6m -> 10m )
* L2 cache max reads tweakable
* Enabled some features in Makefile.
* Disable a big debugging checking
Audio Tweaks:
* Enabled directly rendering
* Enabled 32k_clk ( a feature of AB8500 )
* Volume Boost! ( v3.6-3.8rc,optional in v4.0 )
* Dynamic Range Enhanced! ( v3.6-3.8rc,optional in v4.0 )
( Installation )
Method 1
1. Flash the kernel which has TWRP via Odin. You can flash diego-ch's TWRP kernel, or flash "GT-I9070-Kernel-CoCore.tar.md5" in attachments.
Here diego-ch's TWRP kernel: http://forum.xda-developers.com/showthread.php?t=1873119
( flash custom kernel will increase binary counter!! )
2. Run Odin, Put the md5 files in PDA, Pit files doesn't need.
3. Only check "Auto Reboot" and "F.Reset Time"
4. Click Start to flash, wait for phone reboot.
5. Boot into TWRP, Tap Install, Select i9070_kernel_CoCore_TWRP.zip, Flash it.
And, if you have TWRP kernel already, flash the zip via TWRP directly.
Method 2 (Experienced users only)
This method will not increased binary counter, but ROOT permission is needed.
1. Get kernel.bin.md5 from i9070_kernel_CoCore_TWRP.zip
2. Put kernel.bin.md5 in sdcard
3. Run your favourite terminal app, type these codes
Code:
$su
#dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15
4. Reboot
If you typed a wrong patition number, perhaps it will brick your phone!!!
Think twice before you hit Enter.
( Updates )
01/03/2013 Update: CoCore v4.1
Hmm,This is BETA version.
Block: Added ZEN io scheduler (Bases on noop,deadline and sio)
CPUFreq: Added Skywalker governor (FreqTable tweaked)
Mali: Increased the default l2 max reads 28kb -> 48kb
Mali: Disabled a big debugging tracking
RCU: jRCU -> TreeRCU (For better CPU/RAM throughput!)
NWFPE: Enabled ex-nwfpe
Please remove the mali l2 init.d script tweaks,guys
CoCore-mini 1.4 is at #842 post.
12/23/2012 Update: CoCore v4.0
Mali: Driver updated, re-tweak the parameters
ASoC/ab8500: Driver updated
NET/conf: Enable HSTCP(high-speed tcp),Westwood+,Veno,Hybla,YeAh configs. Cubic(stock) conf is default.
Block: Set BFQ as default io scheduler
Block: Automatic readahead cache size limit (depend on the size of your sdcard)
Block: Re-tweak SIO/VR/Deadline for flash nand devices
MM: SLQB -> SLUB
SCHED: Remove fair_sleepers, revert the parameters back to stock
MISC: Remove a ton of juck!!!, Highest complie optimization level, boot faster(compare to old versions,8800ms~9100ms now)
PS.
The cifs.ko and smbfs.ko have been put out ramdisk.They will be installed to /system/lib/modules (for faster boot)
And i forgot the changes,see my source on my github.There is a changelog.
To change the net configs:
Create a new init.d script:
Change the 'highspeed' to other confs.
Use `sysctl -a | grep cubic` to know what conf you can change to.
`ping` is the simple way to test whether the conf you use fix you or not.
For me,i am using highspeed now. If unsure,keep default(Cubic)
Code:
#!/system/bin/sh
sysctl -w net.ipv4.tcp_congestion_control=highspeed;
I have set the mali l2 cache back to 28kb by default.
To set it to 48kb(max).Use an init.d script.
Code:
#!/system/bin/sh
echo 0x00000030 > /sys/module/mali/parameters/mali_l2_max_reads;
The game fps should be improved a bit,
The values you `echo` must be HEX
BUT,if it doesnt or feels lagged,remove this script.
For me,48kb works well.
The volume++ version is volume boosted. (Someone requires this)
The lagged sound will be increased,too!
12/09/2012 Update: CoCore v3.9Beta8
This is BETA VERSION!!
CpuFreq: Added AbyssPlug (Base on OnDemand+Hotplug)
Mali: Increased the priority of OSMEM (5 -> 1) (See the dmesg)
Mali: Unlocked mali_l2_max _reads in sysfs (You can tweak this parameter now) (Dont set over 48)
(If you find a good value,please share with us!)
Mali: Misc tweaks
Kernel/hz: Fix the defconfig issue (Thanks! @hafidzduddin)
Net/SCH: Reverted back to stock (To experiment the latency of enabling mobile data)
Makefile: More optimization flags
PS.
The Mali parameters are in /sys/module/mali/parameters/
Use scripts/terminal to set them.
12/07/2012 Update: CoCore v3.9Beta3
This is BETA VERSION!
J4FS: J4FS driver works! Bugfree now!
CpuIdle: Revert the ApDeepSleep to stock,and added ApSleep++ custom state
(ApSleep++ and ApDeepSleep only works with non-hotplug governors,e.g: ondemand)
(New sleep state is disabled by default.You can enable them by yourself,if you prefer longer battery.)
CpuFreq: Added Aggressive, AggressiveX, Gallimaufry and GallimaufryX (These are optimazed version of Conservation/OnDemand)
CpuFreq: Fix a hotplug bug of PegasusQ
FS/SYNC: Removed Dynamic Fsync Control,added Ezekeel FSync Control
ASoc/ux500: Raise the pcm buffer size to MAX
NET/Scheduler: Re-tweaked, to experiment the latency of mobile data
Unknown: Fix the touchscreen sudden lost response (According to my using these days,it has been happended again!)
PS.
The FSYNC is enabled by default.Disabling FSYNC can improve IO performance.
In AnTuTu IO Test: Enabled: 350-400 Disable: 540-560
But disabling FSYNC can cause losing data!! It is at your own risk!!
Check the TIPS part to get how to disable it.
12/02/2012 Update: CoCore v3.9Beta1
This is BETA version, at #344 post.
12/02/2012 Update: CoCore v3.8.6rc
ASoC/ab8500: Use another gain mode in order to fix the terrible audio issue.
Sched: Reduce the latency of CFS Scheduler
PS.
The dyn_fsync will casue screen lag when you turn off the screen and there is a heavy io load.
If there isnt any heavy io load,it goes normally.
If you hate this,see the Tips part (#2 post) to get HOW TO disable dyn_fsync.
12/01/2012 Update: CoCore v3.8rc
CpuFreq: Tweaked the freq table of PegasusQ
Blcok: Updated BFQv1 -> BFQr2-1,Fixed the latency of BFQ issue. (BFQv5 is incompatible with Linux 2.6.35)
Sched: Tuned the patamerters of CFS scheduler (Use ThunderBolt's)
Sched_features: Enable Fair_Sleepers,Disable HRTICK
Mali: L2 cache max reads -> 48kb,Fix the mem leak issue.
NET: Set WestWood+ as default CONFIG
fs/sync: Added Dynamic FSync Control
(Improve IO performance greatly.When the screen is on,fsync is off.When the screen is off,fsync is on.)
ASoc/ab8500: Fixed the FMRadio volume balance issue. (Thanks @shut_down)
MISC: Removed a TON of JUNK!!!,And added a workaround to flash kernel quickly.
PS.
The benchmark screenshot is in the #304 post.
How to disable DYN_FSYNC? Check the TIPS part. (#2 post)
What is the flash kernel workaround?
In TWRP,use the Terminal fucntion,SELECT the folderr which has a kernel named "kernel.bin.md5",Start the Terminal,
And just type "fkernel"(No quotes),it will flash the kernel.bin.md5 automatically.
And i found that V(R) is a good io scheduler too.
The BFS CPU Scheduler is incompatible with our kernel.I am about to introduce this in the JellyBean kernel.
11/25/2012 Update: CoCore v3.7
RamDisk/TWRP: Added a temporary workaround to mount emmc(internal memory)
Block: SIO io scheduler updated. (2012 version) (Thanks @hafidzduddin)
CpuFreq: Fixed the name issues of governors (SetCPU cannot tune the parameters of governors, now fixed)
CpuFreq: Added LagFree, BrazilianWax, InteractiveX, MinMax and SavagedZen governors
(New governors havent been tested fully!If unsure, PegasusQ is recommended.)
I have tweaked the freq tables of most governors.
Mali: L2 cache max reads: 48kb -> 44kb , FPS increases (1-8fps) in simple scenes.
(Reserved 4kb for buffering, perhaps it will fix the sudden lag in games)
Sched: Fix SAMSUNG source code errors
Sched: Added AutoGroup Scheduler v4
Net/Sched: Re-changed the scheduler of net
android/logger: Reduced the logger size
ASoc/ab8500: Headset Volume adjusted, Dynamic Range enhanced! (i recommend using PowerAMP/RockBox)
PM(PowerManagement): Added a new feature, Operating Performance Point (OPP) Layer library
MISC: Disabled something useless(for faster boot),
Added GenLock API, MM&DMA hacked,
Added a new feature DM_CACHE,
more GCC optimizations in MakeFile
PS.
Dont use high volume to listen to music over 1 hour, it it not good for your ears.
Just reduce some volume.And i havent gained the speaker volume, dont worry.
The TWRP has some grapics issues when entering the emmc folder(it happends soemtimes, not always),
if it happended just tap back button and enter again.
(Some guys required this becaues them havent an external sdcard! )
And about the SetCPU issues. If you cannot tweak the parameters of some governors,
go to /sys/devices/system/cpu/cpufreq/(governor_name)/, you can tweak them here.
Make a script to tweak them quickly.
I think there is no point in updating to 2.6.35.14, because it updates a lot of useless drivers.
11/18/2012 Update: CoCore v3.6
Block: Added anticipatory io scheduler
CpuFreq: Added HotPlug and SmartAss governors
CpuFreq: Tweaked SmartAss and SmartAssV2 freqtable in order to match our device
Kernel: Adjusted many parameters
Lernel: Built with optimized compiler options
Sched: Added Fair_Sleepers feature,
disabled Gentle_Fair_Sleepers feature,
enabled HRTICK feature
MM: Increased Min readahead 16k -> 32k
JHash: Added JHash v3 speed tweak
Mali: Use another timestamp mode
ab8500/asoc: Headset volume gain boosted! (Sounds perfectly.My ears will be satisfied with i9070+Edifier H850. )
11/11/2012 Update: CoCore v3.5
Kernel: Revert LZO compression ( LZO is the fastest, but it makes kernel largest )
Kernel: Removed some bad tweaks
Kernel: Compile with Linaro GCC 4.4.5 ( The final version of Linaro GCC 4.4 series )
Ramdisk: For power saving, cifs.ko and smbfs.ko will not be loaded by default
Block: SIO, V(R) and Deadline io scheduler tweaked ( Better IO throughput )
FS: EXT2, EXT3 and EXT4 speed up
JHash: Updated to JHash v3
Sched: Enabled HRTICK
RCU: Added and use JRCU
TCP: Change TCP_Config to VENO ( Faster on wireless network ), and enabled HSTCP ( High-speed TCP )
NET: Net schedulers tweaked, in order to work with VENO config
NET: Introduce u64_stats_sync infrastructure
MM: Added vzalloc() and vzalloc_node() helpers
MM: Added and use SLQB memory allocator
MM: Added fudgeswap
SYNC: Added synchronization framework
BCM4330(WLAN): Enabled PM_FAST mode in standby
CGroup: Enabled FREEZER feature
PS. And many misc tweaks.
And i added some modules in /lib.
I tweaked mali parameters again (MEM -> 48MB OSMEM -> 8MB).
Because i find that when the memory is too big, it feels lag.
According to my test, in simple scence, fps increases (1-2fps); in complex scence, fps reduces (1-2fps).
But UI is faster in low frequencies! ( i often use signle core at 800Mhz )
10/28/2012 Update: CoCore v3.1
Mali: Fixed the fps issue.
RCU: Use Tiny-PREEMPT RCU (To reduce memory footprint, and feel more smooth)
Kernel: Removed some bad tweaks.
10/28/2012 Update: CoCore v3.0
Bug Fixed: Rolled back to old ramdisk (TWRP 2.2.1) in order to fix wifi hotspot issue.
MM: Increased sdcard max read ahead to 2048kb. (It's nice to work with my class-4 sdcard)
FS: Added AUFS,AutoFS4 support.
FS: Improved a bit perfromance of ext4.
RCU: Added Tiny-PREEMPT RCU.
RCU: Boosted. (Prefered real-time response)
CFS: Boosted.
Log: Reduced the log buffer size.
TCP: Enabled some features, optimized.
Net: Removed some schedulers.
Kernel: Removed some bad tweaks.
CGroup: Boosted.
CGroup: Added timer slack subsystem feature.
CpuIdle: ApDeepSleep(State6) worked! (Experimental,enable by yourself. Default is State5.)
LIB/CRC32: Added optimized CRC32 algorithm.
And lots of misc tweaks.
10/23/2012 Experimental Update
CpuIdle: State6( ApDeepSleep ) works!! Added "ARM_OFF" to State5!!
10/21/2012 Small Update
Update: TWRP 2.3.1.1 ( Thanks! @diego-ch )
Mali: Increase OS memory for buffer ( 8M -> 16M )
init.d: Make it as service
LIB: Add memcopy macoros and functions
ARM: Add optimized AES and SHA1 routines
ARM: Add optimized SHA1 implementations ( boot faster )
ARM: Enable ICache feature
ARM: Enable BPredict feature
ARM: VFP hard+neon float flag
ARM: JIT network Compiler ( experimental )
CPUIDLE: Add a custom sleep state ( state6,experimental )
Kernel: Use LZMA compresstion ( boot faster )
Kernel: Add XZ compresstion support
CFS: Tweaked
Revert: Gentle_Fair_Sleepers ( for smooth UI )
Compatible with JetMOD now
( Old versions downloads )
*** These have j4fs bug! ***
CoCore v3.1 http://d-h.st/1Q5
CoCore v3.5 http://d-h.st/qKY
CoCore v3.6 http://d-h.st/wvi
CoCore v3.7 http://d-h.st/48k
CoCore v3.8rc http://d-h.st/Eui
CoCore v3.8.6rc http://d-h.st/XEf
( Thanks )
Thanks to everyone who helped me.
Special Thanks:
@diego-ch
@varun.chitre15
@hafidzduddin
@shut_down
@hackbob
@Adi_Pat
@JackStow
The source code is available on my github now.
If there are any issues, please report.
And if you like my work, Press THANKS Button Please. It encourages me.
( Tips )
1. For performance, please remove libGLES_android.so in /system/lib/egl to disable weak CPU rendering.
2. Flash your kernel quickly via Ternimal.
Creat a new file (named `ddkernel`) with RootExplorer.
Write these codes:
Code:
#!/system/bin/sh
source=`busybox realpath kernel.bin.md5`;
echo "DD: Flashing $source";
busybox dd if=kernel.bin.md5 of=/dev/block/mmcblk0p15;
Save , and set right permissions (0777), put it in /system/xbin
Now, you can `cd` to the folder where stores `kernel.bin.md5`, and use `ddkernel` command to flash kernel.
3. Mount your NTFS sdcard
Firstly, you need a binary called "ntfs-3g". Put this binary in /system/xbin
Open your terminal app.
Code:
mkdir sdcard-ntfs
ntfs-3g /dev/block/mmcblk1p1 /sdcard-ntfs
4. My sysctl.conf
Code:
vm.dirty_expire_centisecs=3000
vm.dirty_writeback_centisecs=500
vm.dirty_background_ratio=40
vm.dirty_ratio=80
vm.vfs_cache_pressure=1
vm.highmem_is_dirtyable=1
To use this file,you must have installed busybox,and put this file in /system/etc
Go to /system/etc/init.d/,create a new file(Any name you like),write this(Remember to set right permissions(rwxrwxrwx) of new file):
Code:
#!/system/bin/sh
busybox sysctl -p;
Now your sysctl.conf will be loaded automatically in every boot.
5. How to disable Dynamic FSync Control? (CoCore v3.8-v3.8.6 ONLY)
In your /system/etc/init.d/,create a new file
Code:
#!/system/bin/sh
echo 0 > /sys/kernel/dyn_fsync/Dyn_fsync_active;
Now,this function will be disabled in every boot.
6. How to Control the FSYNC? (CoCore v3.9+)
In your /system/etc/init.d/,create a new file(any name you like)
Code:
#!/system/bin/sh
# Disable FSYNC
echo 0 > /sys/class/misc/fsynccontrol/fsync_enabled;
# Enable FSYNC
#echo 1 > /sys/class/misc/fsynccontrol/fsync_enabled;
Or you can control the FSYNC via terminal realtime.
Good work!
Just I have a request
Can you try this on JetMOD and tell me if Power menu options of Reboot, and Reboot recovery works?
I am planning to ship this kernel in next update of JetMOD
varun.chitre15 said:
Good work!
Just I have a request
Can you try this on JetMOD and tell me if Power menu options of Reboot, and Reboot recovery works?
I am planning to ship this kernel in next update of JetMOD
Click to expand...
Click to collapse
ok, i will try today.
Sent from my GT-I9070 using xda premium
Looks nice. Got the I9070 today. Will test it out soon.
Btw, which users are working on CM ? I would like to contribute. I have already forked hackbob's source. Will look into it sometime later.
Edit : Removed. Double post.
Shaaan said:
Looks nice. Got the I9070 today. Will test it out soon.
Btw, which users are working on CM ? I would like to contribute. I have already forked hackbob's source. Will look into it sometime later.
Click to expand...
Click to collapse
If i got it right, @diego-ch @hackbob @Adi_Pat are working on CM.
cocafe said:
If i got it right, @diego-ch @hackbob @Adi_Pat are working on CM.
Click to expand...
Click to collapse
Thanks.
Is there any known method to reset the binary counter ? Does triangle away work ?
Shaaan said:
Thanks.
Is there any known method to reset the binary counter ? Does triangle away work ?
Click to expand...
Click to collapse
No, there isn't. Triangle Away only works on ICS/JB
When get JB source code, we can have a try.
Sent from my GT-I9070 using xda premium
tnx allot dude, i`m sad that i am at the office and can`t test your kernel :|
I have made CWM. Should i include it in the boot image and flash ?
I dont see any zip which includes the .img format..
after flashing it by TWRP, it stuck on boot logo :S
i was using jetmob rom before, and need to restore the backup.. i'v tries twice, and same boot logo stuck..
JackStow said:
after flashing it by TWRP, it stuck on boot logo :S
i was using jetmob rom before, and need to restore the backup.. i'v tries twice, and same boot logo stuck..
Click to expand...
Click to collapse
Yes this is incompatible for JetMOD.
Wait for next update of JetMOD
Shaaan said:
I have made CWM. Should i include it in the boot image and flash ?
I dont see any zip which includes the .img format..
Click to expand...
Click to collapse
Great, You have made CWM for i9070?
i9070 kernel format is zImage, not boot.img.
You can fork the kernel repo of diego, replace the recovery files, and complie kernel.
Put it in dev thread.
We will test it.
Sent from my GT-I9070 using xda premium
JackStow said:
after flashing it by TWRP, it stuck on boot logo :S
i was using jetmob rom before, and need to restore the backup.. i'v tries twice, and same boot logo stuck..
Click to expand...
Click to collapse
Try to delete/rename the init.d folder in /system/etc.
Some scripts of JetMOD stuck booting.
Please report me if it works.
Sent from my GT-I9070 using xda premium
i have flashed your kernel and i am happy to see that drop of fps is gone, the rest is working splendit as well, tnx again
installing these kernel?
hi cocafe.
your custom bootanimation work?
in my kernel custom bootanimation loops never stop.
i use diego-ch ramdisk
im a user of galaxy ace 2
What is that CPU/b2r2 rendering?
Is that audio tweak included without flashing " optional scripts? If I do not want to enable "Deepest Sleep" and "Mount" from optional scripts zip, is it enough to delete them from the zip?
hafidzduddin said:
hi cocafe.
your custom bootanimation work?
in my kernel custom bootanimation loops never stop.
i use diego-ch ramdisk
im a user of galaxy ace 2
Click to expand...
Click to collapse
Yes, several weeks ago, i fixed that loop bug.
You can check the ramdisk of my kernel. There is a small workaround in post_boot.sh.
Here the method:
in init.ux500.post_boot.sh, write these code
# fix custom bootanimation loop
sleep 4;
bootani=`ps | grep bootanimation | cut -b 10-16`;
kill $bootani;
Sent from my GT-I9070 using xda premium

[Q] Disable SELinux I9505, no sound ?

Is it possible to disable selinux on the GS4? I succeed to switch to enforce mode ('enforcing = true' in init.rc, and flash), it works well. But when I want to completely disable SELinux (via kernel configuration) Sound (and other stuff) don't work.
Is it a protection made by Samsung to keep SELinux (in enforcing or permissif mode) ?
I try with GT-I9505_JB_Opensource_Update1.zip, and GT-I9505_JB_Opensource_Update2.zip.
Thanks,
Does someone has some informations ?
Thanks you !

[KERNEL] Galaxy Tab S 8.4 SM-T700 (klimtwifi) Permissive kernel - T700XXU1ANF7

[size=+2]Samsung Galaxy Tab S 8.4 (klimtwifi) - Stock kernel SELinux permissive mode[/size]
[size=+1]Introduction[/size]
This kernel is built from stock Samsung source T700XXU1ANF7.This kernel will work on a stock, rooted Tab S 8.4. In addition, I run EMSPilot's NF9 ROM, so this kernel also works perfectly fine on his ROM. Thanks EMSPilot for the great ROM.
[size=+1]Features[/size]
The kernel is completely stock except for the activation of kernel configuation options allowing SELinux to be disabled and the mode to be changed from enforcing to permissive at runtime. It also supports the boot parameter androidboot.selinux=permissive and enables adb insecure in the default.prop in the ramdisk.
[size=+1]Installation instructions[/size]
To install this, use Odin 3.09 to flash the SM-T700-permissive.tar.md5 image using the AP button. DO NOT USE THIS KERNEL ON ANY DEVICE OTHER THAN A SM-T700 KLIMTWIFI. You are responsible for your own device and I make no warranty for this kernel. Flash at your own risk.
[size=+1]Changelog[/size]
Code:
Current changelog: 10-22-2014
[new] Add permissive mode configuration to stock kernel sources
[size=+1]Downloads[/size]
Download link: SM-T700-permissive.tar.md5
Github link: https://github.com/dl12345/SM-T700
[size=+1]FAQ[/size]
Q. Will this trip the Knox flag
A. Yes. Any kernel not signed by Samsung will trip Knox
Q. What Exactly are the changes between this kernel and a stock kernel
A. See below
KERNEL CONFIGURATION CHANGES:
Code:
[[email protected] SM-T700_KK_Opensource]$ diff -Naur klimtwifi_00_defconfig.orig klimtwifi_00_defconfig
--- klimtwifi_00_defconfig.orig 2014-10-18 00:19:42.588511921 +0100
+++ klimtwifi_00_defconfig 2014-10-18 00:19:06.526512090 +0100
@@ -569,6 +569,13 @@
CONFIG_LSM_MMAP_MIN_ADDR=4096
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_SELINUX=y
+CONFIG_SECURITY_SELINUX_BOOTPARAM=y
+CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
+CONFIG_SECURITY_SELINUX_DISABLE=y
+CONFIG_SECURITY_SELINUX_DEVELOP=y
+CONFIG_SECURITY_SELINUX_AVC_STATS=y
+CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
+
# SE Android Network Access Controls
CONFIG_NETWORK_SECMARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
SELinux is forced into permissive mode at boot time through an addition to the init.rc script
INIT.RC CHANGES
Code:
[[email protected] bootimage]$ diff -Naur ramdisk.orig/init.rc ramdisk.new/init.rc
--- ramdisk.orig/init.rc 2014-10-16 23:27:10.680401045 +0100
+++ ramdisk.new/init.rc 2014-10-18 01:01:45.049925094 +0100
@@ -631,6 +631,13 @@
## Daemon processes to be run by init.
##
+
+# Force SELinux into permissive mode
+service sepermit /system/bin/setenforce 0
+ class main
+ user root
+ oneshot
+
service sysmon /system/bin/sysmon
class core
user root
adb insecure is enabled in default.prop
DEFAULT.PROP CHANGES
Code:
[[email protected] bootimage]$ diff -Naur ramdisk.orig/default.prop ramdisk.new/default.prop
--- ramdisk.orig/default.prop 2014-10-16 23:27:10.669399628 +0100
+++ ramdisk.new/default.prop 2014-10-13 03:29:24.756527060 +0100
@@ -2,9 +2,9 @@
# ADDITIONAL_DEFAULT_PROPERTIES
#
persist.security.ams.enforcing=1
-ro.secure=1
-ro.allow.mock.location=0
-ro.debuggable=0
-ro.adb.secure=1
+ro.secure=0
+ro.allow.mock.location=1
+ro.debuggable=1
+ro.adb.secure=0
persist.sys.usb.config=mtp
ro.smps.gain.spk=3.0
[size=+1]Thanks To/Credits[/size]
EMSPilot for his NF9 ROM
XDA:DevDB Information
SM-T700 SEPERM, Kernel for the Samsung Galaxy Tab S
Contributors
dl12345
Kernel Special Features: SELinux runtime mode change enabled
Version Information
Status: Beta
Beta Release Date: 2014-10-22
Created 2014-10-22
Last Updated 2014-11-08
Thank u for this! I'm Gunna give it a try here tonight!
Thanks d12345 and to emspilot!
Thanks for sharing your method. Much appreciated.
I currently use a dirty RAMDISK method with my Tab S kernels and a hardcode source method with my Note Edge kernel. I look forward to trying this way next kernel i compile for test.
The dirty way actually removes the SELinux from about device in settings, where the hard-coded way just changes it to "permissive" but is permanent.
Does your way change the devices settings and visible, or is it removed all together (check status with getprop) ?
Thanks man this kernal gave me access to use my wireless xbox controller awesome man!
Ccieslin said:
Thanks man this kernal gave me access to use my wireless xbox controller awesome man!
Click to expand...
Click to collapse
Do u have a thread u found or any info on getting that to work?
freddy0872 said:
Do u have a thread u found or any info on getting that to work?
Click to expand...
Click to collapse
Hi yes I posted in this thread http://forum.xda-developers.com/galaxy-tab-s/help/gamepad-game-controller-t2820410
Worked great!
Hi, this kernel can be used with a 6.0.1 marshmallow rom?
"seandroid not enforced" and bootloop in recovery
sm-t700 wifi, non-system rooted (rooted but not a system root)
how the title, I installed the selinux permissive with odin (ap)
restarted to enter twrp and saw "seandroid not enforced" red, wrote up/left display,
wiped dalvik in twrp and restart to system, and always twrp,
tried to restart to system again, and twrp a new time..
I am recovering now (i saved boot too, in backup), hope to solve..
-------------------------
refresh, solved with full backup.
knox was completely off.. probably this permissive linux is not good for
marshmallow 6.01 or for this tablet particular firmware..
---------- Post added at 06:54 PM ---------- Previous post was at 06:50 PM ----------
gnmmarechal said:
Worked great!
Click to expand...
Click to collapse
have lollipop?

[KERNEL][O/P/Q] xCG Kernel [Jun 27, 2020]

Code:
/*
* Your warranty is no longer valid.
*
* I am not responsible for bricked devices, dead SD cards, broken touchscreens,
* 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.
*
*/
This is a custom kernel for Redmi 5 designed for simplicity and stability along with few under-the-hood improvements.
Main features:
Miscellaneous backports (of pstore, mm, etc.).
Merged linux-stable (upstream to Linux 3.18.140).
Merged f2fs-stable (upstreamed F2FS).
Merged latest compatible prima drivers (upstreamed Wi-Fi drivers).
Clean, optimized, and minimal imports of code for rosy (based on riva-o-oss branch).
Optimized prima drivers (reduced debugging and unnecessary wakelocks).
Optimized touchscreen drivers (fixed freezing and reduced debugging).
Reduced unnecessary debug and removed useless hard-coded debug.
Compiled with GCC 9.2.1 & "O3" and all code warnings fixed.
Compiler tuned for Cortex-A53 (CPU optimization).
Miscellaneous GPU optimizations.
Memory optimizations.
Full F2FS support.
CRC toggle.
Sound control.
Vibration intensity control.
DriveDroid CD-ROM emulation support.
TTL fixation support.
Wireguard support.
Support for all FAT-based filesystems.
NTFS RW support.
KCAL support.
Miscellaneous config improvements that are not listed here.
Information:
CAF tag kernel: LA.UM.8.6.r1-04600-89xx.0
CAF tag prima: LA.UM.8.6.r1-04600-89xx.0
CPU governors: [interactive], conservative, userspace, powersave, performance.
I/O schedulers: [cfq], noop, deadline.
TCP algorithms: [westwood], cubic, reno.
Compression algorithms: [lz4], lzo.
INITRD compression: [gzip].
Installation instructions:
With a recovery like TWRP:
Download the zip.
Flash it using the recovery's flash function.
You're done, enjoy!
With FKM (Franco Kernel Manager) app:
Open FKM > Flasher > click on "Import a kernel download configuration".
In the dialogue that appeared enter xCG's JSON link that you can find below (copy-paste it).
You're done, enjoy convenient access to everything latest!
Recommended ROMs to use with xCG:
LineageOS 17.1 (baunilla)
LineageOS 16.0 (baunilla)
Downloads:
Latest zip: v4.3.2 (https://github.com/mscalindt/xcg-rosy/releases/download/v4.3.2/xCG-4.3.2-ROSY-Q-20200627.zip)
Changelog: Here (https://forum.xda-developers.com/showpost.php?p=80798487&postcount=2)
TG group: Here (https://t.me/xcgkernel)
List of all releases: Here (https://github.com/mscalindt/xcg-rosy/releases)
FKM JSON link: https://raw.githubusercontent.com/mscalindt/xcg-rosy/fkm-updater/xcg.json
Credits:
osm0sis (for AnyKernel3).
LinuxPanda (for his work on rosy).
baunilla (for his work on rosy).
franciscofranco (for FKM).
And many other people indirectly involved!
XDA:DevDB Information
xCG, Kernel for the Xiaomi Redmi 5
Contributors
mscalindt
Source Code: https://github.com/mscalindt/xcg-rosy
Kernel Special Features: Fixed touchscreen randomly freezing or misbehaving.
Version Information
Status: Stable
Current Stable Version: 4.3.2
Stable Release Date: 2020-06-27
Created 2019-11-05
Last Updated 2020-09-19
Changelog:
v4.3.2 (Jun 27, 2020):
- Reserve less memory for splash_region (was unintentionally increased in v4.3.1).
v4.3.1 (Jun 24, 2020):
- CAF tag LA.UM.8.6.r1-04600-89xx.0 for kernel (no changes affecting rosy).
- CAF tag LA.UM.8.6.r1-04600-89xx.0 for prima.
- Wireguard version 1.0.20200623
- Fixed boot issue on 2 GB rosy variant.
Old changelogs:
v4.3.0 (Jun 23, 2020):
- Wireguard version 1.0.20200611
- Imported missing USB (power-related) code from riva-o-oss.
- Re-upstream from 3.18.124 (LA.UM.8.6.r1-04400-89xx.0) to 3.18.140 (to fix some mismerges).
- Custom upstream (basically backports) of small parts of the FS subsystem.
- Support for all FAT-based filesystems.
- RW support for NTFS.
- KCAL support.
- Miscellaneous fixes.
v4.2.0 (Jun 2, 2020):
- Wireguard version 1.0.20200520
- Imported missing power-related code from riva-o-oss.
- Upstreamed and optimized ashmem.
- Disabled ESD check on ebbg panel (already disabled on touchscreen & other panels).
- Disabled power to panel during idle screen.
- Improved kernel's general reliability.
- Reduced debugging in kernel & prima.
- Reduced cases of frame dropping.
- DDR boost when a new frame is ready to be rendered (optimized DDR usage).
- Support for magic sysrq.
- Various memory-related improvements & mm fixes.
- Many small miscellaneous improvements and fixes.
v4.1.1 (May 10, 2020):
- Wireguard version 1.0.20200506
- Deep sleep fix.
v4.1.0 (May 3, 2020):
- CAF tag LA.UM.8.6.r1-04300-89xx.0 for prima.
- Wireguard version 1.0.20200429
- Ported msm8x16-wcd codec to extcon class.
- Disabled memory controller.
- Improved overall smoothness.
v4.0.0 (April 20, 2020):
- CAF tag LA.UM.8.6.r1-04200-89xx.0 for kernel & prima.
- Wireguard version 1.0.20200413
- New bare-metal GCC 9.2.1 toolchain targeted for Cortex-A.
- Recreated DTS with "100% overlayed content" and some improvements.
- Enabled memory controller for cgroups & page cache.
- Miscellaneous DTS commits from 4.9 CAF.
v3.7.0 (March 30, 2020):
- Wireguard version 0.0.20200318
- Reimported Xiaomi's sound changes to potentially fix any odd sound problems.
- Fixed Xiaomi's broken (on source level) Goodix netlink driver.
- Fixed duplicate flashlight driver probing.
- Disabled CAF's "power aware driver".
- Unlocked CPU min/max freq.
- Now using "O3" level of GCC optimization.
- Miscellaneous fixes.
v3.6.0 (March 11, 2020):
- Optimized memory consumption.
- Miscellaneous small config changes.
v3.5.0 (March 6, 2020):
- CAF tag LA.UM.8.6.r1-04000-89xx.0
- Removed more hard-coded debugging in rosy's touchscreen drivers.
- Removed PPR (per process reclaim), another broken meme from Qualcomm.
- Removed even more debugging in the kernel.
- Disabled KSM (kernel samepage merging).
- Switched back to the usual type of workqueues (bound).
- Miscellaneous fixes and improvements.
v3.4.1 (February 28, 2020):
- Fixed SD card issue.
v3.4.0 (February 27, 2020):
- Wireguard version 0.0.20200215
- Enabled CPUSETS.
- Enabled boosting for CFS tasks.
- Enabled power-efficient workqueue mode.
- Disabled many configs unrelated to rosy.
- Disabled some debug & profiling configs.
- Removed useless dtbs that get appended to the dtb kernel img.
- Removed "adaptive LMK" feature, it is awfully misconfiguring OOM parameters.
- Increased dmesg log size to 256 KB.
- Support for CPU boosting on migration of important threads (known as CPU boost).
- Miscellaneous small config optimizations.
v3.3.1 (February 13, 2020):
- Reduced debugging in prima.
- Disabled ZSWAP.
- Disabled ZCACHE.
v3.3.0 (February 3, 2020):
- Upstreamed prima drivers.
- Miscellaneous DTS changes.
- Miscellaneous touchscreen changes.
- Disabled host ARP offloading in prima.
- Enabled KSM (kernel samepage merging).
- Enabled "front swap".
- Enabled "ZSWAP".
v3.2.0 (January 30, 2020):
- Merged CAF tag LA.UM.8.6.r1-03400-89xx.0
v3.1.3 (January 29, 2020):
- Fixed low sound.
v3.1.2 (January 27, 2020):
- Removed slmk and reverted back to default lmk.
- Wireguard support.
v3.1.1 (January 26, 2020):
- Fixed Magisk not opening/working.
v3.1.0 (January 25, 2020):
- Compiled with GCC 9.2.0 and all code warnings fixed!
- The upstream to 3.18.140 is now based only on linux-stable.
- Now using "Simple LMK" instead of the defalt LMK.
- Vibration intensity control.
- Disabled SELinux audit again.
v3.0.1 (January 19, 2020):
- Fixed animation lag.
v3.0.0 (January 19, 2020):
- Merged android-3.18 (Google's upstreamed 3.18 kernel branch).
- Enabled SELinux audit again.
- Misc small fixes and improvements.
- Rosy's code is now fully based on rosy's latest kernel (riva-o-oss).
- The kernel is now compatible with all ROMs/trees (fixed camera & flashlight).
- Flashing Magisk to keep root after kernel zip flash is not required anymore!
v2.7.1 (January 4, 2020):
- Disabled SELinux audit.
v2.7.0 (January 1, 2020):
- Merged android-3.18 (upstream).
- Miscellaneous improvements.
v2.6.0 (December 23, 2019):
- Merged android-3.18 (upstream).
- Further fixed hotspot issues (fixed no internet).
- Fixed some memory leaks.
- Reduced debugging.
- Optimized several subsystems of the kernel.
- Explicitly defined LZ4 as the default algorithm for ZRAM.
v2.5.0 (December 14, 2019):
- Merged android-3.18 (upstream).
- Fixed hotspot issues.
- CAF tag LA.UM.8.6.r1-02900-89xx.0
v2.4.1 (December 6, 2019):
- Fixed camera issues for specific rosy devices.
- Merged android-3.18 (upstream).
v2.4 (December 2, 2019):
- Some internal changes.
- Merged android-3.18 (upstream).
v2.3.1 (November 21, 2019):
- Added support for TTL fixation.
v2.3 (November 19, 2019):
- CAF tag LA.UM.8.6.r1-02600-89xx.0
- Merged android-3.18 (upstream).
- Updated prima (Wi-Fi) drivers.
- Updated base (small performance and battery improvements to rosy's code).
v2.2 (November 4, 2019):
- Further updated code for rosy.
- Changed default GPU value to 216 MHz.
- Upstreamed to Linux 3.18.140, upstreamed F2FS, etc.
v2.1 (October 26, 2019):
- Removed OnDemand governor.
- Upstreamed CAF tag to LA.UM.8.6.r1-02300-89xx.0
- Updated code for rosy.
v2.0 (October 20, 2019):
- Updated code for rosy.
- Upstreamed CAF tag to LA.UM.8.6.r1-01900-89xx.0
- Dropped NTFS read-write support.
v1.2 (September 15, 2019):
- Added DriveDroid CD-ROM emulation support.
v1.1 (September 14, 2019):
- Upstreamed F2FS.
- Added sound control.
v1.0 (September 11, 2019):
- Initial release.
Nice work bruhh.. keep it update ?
Cool! I'm gonna test it in LOS 17 baunilla
Install only on compatible device/tree for rosy.. I see LOS mentioned but is it compatible with PixelExperience too?
Arsenious said:
Install only on compatible device/tree for rosy.. I see LOS mentioned but is it compatible with PixelExperience too?
Click to expand...
Click to collapse
No.
Bro, did you have telegram channel/group for this kernel ??
Danisp said:
Bro, did you have telegram channel/group for this kernel ??
Click to expand...
Click to collapse
Yes, join the TG group if you want - https://t.me/xcgkernel
How to root redmi5 global? Miui 11 updated thanks
jeeeu94 said:
How to root redmi5 global? Miui 11 updated thanks
Click to expand...
Click to collapse
With magisk, loke in miui10
Download MiUnlock, unlock bootloader and download XioMiTool v2 from internet and follow the instructions and the program will do everything
If you want to do it yourself you just unlock bootloader with mi blocker and download 1.Minimal ADB and Fastboot
2. Twrp.img for ROSY. (Redmi 5) be sure you download the redmi 5 img
Plugin your phone in pc and go in your pc to C:/program files (x86)/minimal ADB and Fastboot and move (or copy) the twrp img in that folder and open command (press windows key and type CMD) in the black screen (if you have never stay in cmd don't scare, is the old way to use the computers, and the actual way in linux )
Type cd C:/program files (x86)/minimal ADB and Fastboot and then pick your phone.
Hold the volume down and power button at same time for 4-6 seconds.
You will see something like FASTBOOT, and a rabbit with an android.
Plug in the phone in pc and in the PC type
Fastboot flash recovery twrp-rosy-3.3.0-0.img (or how is your twrp.img called) and wait 30 seconds
The terminal will tell u something and when it put '' finished " close your terminal and in your phone hold volume up button and power button at same time.
The phone will restart and show you something about TWRP, you are finishing
Reboot System (there is a button for that in twrp) and in android install Magisk manager.apk from internet.
You will see 2 install buttons, press the first and press install
It will download a 5.8 Mb zip press in the notification and open with "copy to..." and copy to SD.
Reboot in twrp (hold up and power again) and tap in install zip, select magisk zip and magisk su binary will be instaled in your phone.
When finished reboot system and open magisk manager and you will see that magisk is installed. Now u have root
If you want to use supersu do the same but instead of flash magisk zip, flash supe su zip. I recommend magisk. As you can see eZ
Happy mod dude!!
New build (v2.3)!
New build (v2.3.1)!
is compatible with rom evolution x 3.3? Android 10.
Jochman10 said:
is compatible with rom evolution x 3.3? Android 10.
Click to expand...
Click to collapse
With the ROM - yes.
With the trees used to build it for rosy - no.
Compatible with havoc 3.0 ?
#Aditya negi said:
Compatible with havoc 3.0 ?
Click to expand...
Click to collapse
No.
compatible with derpfest?
New build is up (2.5.0)!
New build is up (2.6.0)!
After I install the latest kernel, my touch light and camera is not working

Fine OS Custom Rom Version-7 For J7 Nxt-Core-Neo By Abdullah AL-Noman

------- Fine OS Custom Rom Version-7 For J7-Nxt-Core-Neo . Exynos 7870
............Feature...........
# Based On J701F Pie 9
# One Ui 1.1
# Binary 8 Firmware .
# Latest Security Patch
# 1 November 2019 Security Patch
# De-Knoxed
# Debloat
# All Latest App Included
# Recycle Bin Supported File Manager App
Special Feature
# Supported One Ui 2.0 Apps Included
# Show Data Speed Enable Menu On Status Bar
# Vpn Suported
# Busy Box Included
# Magisk 20.3 Included
# Twrp 3.2.1 Included
# Oem Lock Disabled
# Mock locations - Hide mock locations status, allowing apps like Pokemon GO to treat them as genuine location updates.
# Secure flag - Allow screenshots/screensharing in secure apps.
# Signature verification - Disable signature verification allowing modification/execution of signed system apps.
# Signature spoofing - Enable signature spoofing app permission.
# Added Screen Capture And Screen Record On Status Bar
# Call Record Allowed By Call App
# LTE Only Option
# Show LTE on 4G Network
# Enable Use Mobile Data Option During Call On Settings
# Enable Google Face Lock Option On Smart Lock
Kernel Information
Kernel Name - Oxygen Kernel Version- 4.0.138
Kernel Creator- Siddhant Naik
# Selinux Status - Permissive
# Binary Lock Disabled
# No Problem For Mount Data Partition And Internal Storage
................... What's New ...............
# Fix wifi
# Add New Charging Logo
# Add J7 Nxt White Boot Logo
XDA:DevDB Information
Fine OS Custom Rom Version-7 For J7 Nxt-Core-Neo By Abdullah AL-Noman, ROM for all devices (see above for details)
Contributors
Abdullah AL-Noman
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
ROM Firmware Required: Latest Bootloader
Based On: Samsung One Ui
Version Information
Status: Stable
Current Stable Version: Version-7
Stable Release Date: 2020-03-03
Beta Release Date: 2020-03-03
Created 2020-03-02
Last Updated 2020-08-26

Categories

Resources