[MOD] Sweep2Sleep (Marshmallow) - One (M9) Original Android Development

Sweep2Sleep kernel module
This module allows you to sweep across the navigation bar at the bottom of the screen to put the phone to sleep.
This works with the stock kernel and requires SuperSU
The versions for 2.7 and 3.35 bases work with EX Kernel Manager. The settings are located at /sys/sweep2sleep/sweep2sleep
Download:
3.35 base (Marshmallow)
https://www.androidfilehost.com/?fid=24369303960689725
2.7 base
https://www.androidfilehost.com/?fid=24052804347765936
1.32 and 1.40 bases
https://www.androidfilehost.com/?fid=23991606952593922
Installation:
Flash in recovery
Options:
Sweep left, sweep right or sweep either left or right to put the phone to sleep.
Do it the easy way with EX Kernel Manager or edit /system/su.d/40s2s to change sweep settings
Manual usage:
insmod /system/lib/modules/s2s_mod.ko
Source:
https://github.com/flar2/m9-sweep2sleep
XDA:DevDB Information
Sweep2Sleep for HTC One m9, Kernel for the HTC One (M9)
Contributors
flar2
Source Code: https://github.com/flar2/m9-sweep2sleep
Kernel Special Features:
Version Information
Status: Testing
Created 2015-04-29
Last Updated 2016-01-20

Thanks @flar2 much appreciated mate?
Edit: confirmed as working with my kernel

Doesn't work on my att model tried fixing permissions to match other modules .. checked to make sure module was there and script was in init.d.. anything else o could try flar?

I haven't really used this, as I just built it this morning. Let me know about the usability. I may have to adjust the sweep distances and locations.

Johnny424 said:
Doesn't work on my att model tried fixing permissions to match other modules .. checked to make sure module was there and script was in init.d.. anything else o could try flar?
Click to expand...
Click to collapse
There are a couple things.
The module probably only loads with the kernel named 3.10.49-ga24f2d5. I didn't check to see if we need to match the kernel name or modversions. Either way, if there is an error on insmod, the solution is to hexedit the module, or recompile it against the specific source of the running kernel.
To test this, in terminal, type the following:
Code:
su
insmod /system/lib/modules/s2s_mod.ko
If there is an error, look at dmesg to see what the problem is.
The "stock" stock kernel does not have init.d support, so it will not load automatically. If you've verified above that the module loads, you can search around the forums for init.d solutions. Or if you have SuperSu, you can move the script from /etc/init.d/40s2s to /system/su.d/40s2s

Using your latest..will see if it's loading

Johnny424 said:
Using your latest..will see if it's loading
Click to expand...
Click to collapse
It probably doesn't load with my kernel. I installed the stock to test it since I figured most were using stock. I haven't had time to work on my kernel, but I have plans to add complete wake/sleep gesture support to it, hopefully this weekend.

Fair enough .. thanks

Thanks for this mod, and it works for MaximusHD 1.0.0 (3.10.49-g5c16a62)

412070391 said:
Thanks for this mod, and it works for MaximusHD 1.0.0 (3.10.49-g5c16a62)
Click to expand...
Click to collapse
Thanks for the confirmation. This tells me that if kernels are released where this doesn't work, the modversions CRC values will have to be hexedited to match the symbols in the kernel.

flar2 said:
Thanks for the confirmation. This tells me that if kernels are released where this doesn't work, the modversions CRC values will have to be hexedited to match the symbols in the kernel.
Click to expand...
Click to collapse
Confirmed working brilliantly on insert coin using LeeDroids kernel. Thank you immensely

Works great. Thx flar2!

flar2 said:
Sweep2Sleep kernel module
Click to expand...
Click to collapse
Cleverly written, excellently done!
Works just as nice indeed (compiled from your sources -- and a special thank for sharing them)!
Yet you had to strip the release version you supply with the zip, hadn't you?
It'd be 20 times smaller

flar2 said:
It probably doesn't load with my kernel. I installed the stock to test it since I figured most were using stock. I haven't had time to work on my kernel, but I have plans to add complete wake/sleep gesture support to it, hopefully this weekend.
Click to expand...
Click to collapse
Does this work with you 0.2 Kernel? Thanks in advance.

jollywhitefoot said:
Does this work with you 0.2 Kernel? Thanks in advance.
Click to expand...
Click to collapse
No, but 0.3 will have it built in

flar2 said:
No, but 0.3 will have it built in
Click to expand...
Click to collapse
Thanks

nice, this mod also works on 1.40.xxx.x based rom

delete

Check OP for a new module that works with the 2.7 base
The new module is compatible with EX Kernel Manager

New 2.7 base working great on VZW Android 5.1 - 2.6.605.10 base with stock kernel, no init.d support, but simply created the su.d folder and added the module in there and works as should, thank you kindly.

Related

[Kernel - .34 & .35-rc1] [21 MB RAM HACK] Termana's Kernel - 07/Jun [OC/UV/Audio]

This is the result of my long experimental kernel thread. It is a rebase of the cyanogenmod nexus one kernel which is currently .33.1 (or .33.2) to the current mainline .34. I have added pershoot's OC/UV values, 21 MB RAM Hack (from coolbho3000) and audio boost.
Thank you to all my testers, since I don't have my Nexus One yet without them this kernel wouldn't be available!
Although nothing will go wrong, I should tell you, just like everyone else, I take no responsibility for what happens when you flash this kernel.
If you experience jerkiness with this kernel, one tester found it best to do a reboot and clear their cache.
Latest Alpha Build - .35-rc1 Build 1 (07/Jun)
Warning this build may potentiality not boot and has not been tested, please only help test it if you absolutely know what you are doing, otherwise have patience and wait!
For now I have not added the enhancements to this kernel, they will be added if the kernel works.
Kernel: http://www.mediafire.com/?mngdzhnyv0g
bcm4329.ko (wifi module to adb push): http://www.mediafire.com/?ctltd24zmm2
Source: will be pushed to github on confirmation that the kernel works
LATEST BUILD - .34 Build 1 (17/May)
Kernel: http://www.mediafire.com/?aj1wx2anuyj
bcm4329.ko (wifi module to adb push): http://www.mediafire.com/?khjkzuercjz
update.zip for CyanogenMod ROMs: http://www.mediafire.com/?xrm1ymlmm5l
update.zip for Desire ROMs: http://www.mediafire.com/?mkmun2dynzr
thanks to rekrapg for both the 'update.zip's
Source: http://github.com/Termana/nexusone-kernel (use the appropriate branch)
Instructions (from command line):
1.) adb remount
2.) adb push bcm4329.ko /system/lib/modules
3.) adb reboot bootloader
4.) fastboot flash zimage zImage
5.) fastboot reboot
(Instructions copied from intersectRaven's kernel post)
.35-rc1 Build 1
No issues reported yet
.34 Build 1
Seems like video camera issue is definately fixed
Reportedly the unmount/mount issue is fixed
.34-rc7 Build 1
Unmount issues
Kernel: http://www.mediafire.com/?ny5txjz5qma
bcm4329.ko (wifi module to adb push): http://www.mediafire.com/?ydqdzzdmoiz
update.zip (thanks to rekrapg): http://www.mediafire.com/?nkgryjtj1mm
.34-rc6 Build 2
Removed 8MB RAM Hack
Added 21MB RAM Hack (by coolbho3000)
Video camera force close seems to have been fixed.
Kernel: http://www.mediafire.com/?jwmmdmoh3zy
bcm4329.ko (wifi module to adb push): http://www.mediafire.com/?ngz50gnrzjt
.34-rc6 Build 1
Video camera still may force close.
May have slight battery drain.
How sad, I did not make the tester list
jlevy73 said:
How sad, I did not make the tester list
Click to expand...
Click to collapse
I don't understand what you mean, I didn't name anyone as a tester - I said thanks TO ALL testers
Termana said:
I don't understand what you mean, I didn't name anyone as a tester - I said thanks TO ALL testers
Click to expand...
Click to collapse
Lol, sorry, probably should step away from the alcohol for a bit I misunderstood when you made mention about the OC/UV version
whats the difference between .33 and .34
bobdude5 said:
whats the difference between .33 and .34
Click to expand...
Click to collapse
http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.34-rc3
have a good read quite long
godsfilth said:
http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.34-rc3
have a good read quite long
Click to expand...
Click to collapse
Is there a version for humans?
+1 human version would be nice
liam.lah said:
Is there a version for humans?
Click to expand...
Click to collapse
Worked great!!
Thanks dud i flashed according to your instructions kernel is performing amazingly even wifi seems to work better thanks
Support wi-fi tehter ?
This kernel support wi-fi tehter ??
just flashed it and it's working; the other versions would always stay on boot loop
now that you have this working, any way to add some optimizations like the audio hack, undervolted to maybe 800mV or 850mV (intersectRaven got his AVS kernel stable at 800mV and persiansown at 850mV, while pershoot uses 925mV)
looking forward to you expanding on this now
thanks
jblazea50 said:
just flashed it and it's working; the other versions would always stay on boot loop
now that you have this working, any way to add some optimizations like the audio hack, undervolted to maybe 800mV or 850mV (intersectRaven got his AVS kernel stable at 800mV and persiansown at 850mV, while pershoot uses 925mV)
looking forward to you expanding on this now
thanks
Click to expand...
Click to collapse
Look in the experimental thread, he'll be adding UV/OC and other extras son
boot loop!
ralle.gade said:
boot loop!
Click to expand...
Click to collapse
Strange, did you get any error messages?
i found the problem sry
this plus avs, uv and optimizations is actually very nice!
ralle.gade said:
this plus avs, uv and optimizations is actually very nice!
Click to expand...
Click to collapse
wait, did you combine avs/uv/optimizations with .34rc3 kernel?
Are there any significant (*noticeable*) differences between the .34 branch and the .33 branch?
jblazea50 said:
wait, did you combine avs/uv/optimizations with .34rc3 kernel?
Click to expand...
Click to collapse
Audio Mod, 8mb freed up from camera and UV, no AVS as of yet.
intersectRaven said:
Are there any significant (*noticeable*) differences between the .34 branch and the .33 branch?
Click to expand...
Click to collapse
After using this for a few days, yes, it is smoother and faster than .33. It just feels snappier and more responsive.

[k3gxx][G900H][CWM Advanced Edition] PhilZ Touch

Main thread + features + install instructions + dev support
http://forum.xda-developers.com/showthread.php?t=2201860
PhilZ Touch is a CWM Advanced Edition that adds all the features you could ever miss in CWM
It is a well proven recovery for many phones
It also adds a full touch interface a completely configurable GUI
Please give your feedback, what works, and any bug you could encounter
Read the features, and check if you are missing something
To take a screen shot, just long press outside a menu (2 sec and slightly change pressure after the delay)
Also, do not forget to read about the powerful aroma file manager integration and double tap shortcut
Download links
Last version can be found here:
Galaxy S5 Exynos - G900H (k3gxx)
http://goo.im/devs/philz_touch/CWM_Advanced_Edition/k3gxx
Click to expand...
Click to collapse
Thanks @Chenglu for parts of his ramdisk and his dtb tools
XDA:DevDB Information
[k3gxx][CWM Advanced Edition] PhilZ Touch, Tool/Utility for the Samsung Galaxy S 5
Contributors
Phil3759
Version Information
Status: Stable
Created 2014-04-17
Last Updated 2014-10-16
Status: stable
Galaxy S5 3G - SM-G900H
Tested and not working.
Its stays on logo of Samsung..
Airboner said:
Galaxy S5 3G - SM-G900H
Tested and not working.
Its stays on logo of Samsung..
Click to expand...
Click to collapse
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
@Phil3759 for your info, @Chenglu CWM for G900H runs without issues. Maybe you should check it to release another test file of your recovery.
Cheers,
djigane said:
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
@Phil3759 for your info, @Chenglu CWM for G900H runs without issues. Maybe you should check it to release another test file of your recovery.
Cheers,
Click to expand...
Click to collapse
I know
I just prefer using another approach
Stock kernel is too big in your case
Still waiting for someone providing results from:
Code:
cat /proc/partitions
I will try to compile a light version based on stock kernel this time, and debug it once it boots
djigane said:
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
@Phil3759 for your info, @Chenglu CWM for G900H runs without issues. Maybe you should check it to release another test file of your recovery.
Cheers,
Click to expand...
Click to collapse
Ok dude i will try it tomorrow and report cauze i go for sleep...
Phil3759 said:
I know
I just prefer using another approach
Stock kernel is too big in your case
Still waiting for someone providing results from:
Code:
cat /proc/partitions
I will try to compile a light version based on stock kernel this time, and debug it once it boots
Click to expand...
Click to collapse
Here it is, @Phil3759
Update v2
- use stock kernel
- handle dt.img
Click to expand...
Click to collapse
Download: http://d-h.st/2mx
Seems like exynos also has now a dt.img!
djigane said:
Try this one, it worked for me:
g900h-cwm-recovery-6.0.4.7(0404).tar
Click to expand...
Click to collapse
i tested and i confirm that it works
Airboner said:
i tested and i confirm that it works
Click to expand...
Click to collapse
Many thanks
I can now continue debugging and using a kernel compiled from source
Never thought exynos also would use separated dt.img to handle dtc info
Phil3759 said:
Many thanks
I can now continue debugging and using a kernel compiled from source
Never thought exynos also would use separated dt.img to handle dtc info
Click to expand...
Click to collapse
sry dude i didnt test yours,i tested the other recovery who the guy posted :/
however i dont know if its yours
Airboner said:
sry dude i didnt test yours,i tested the other recovery who the guy posted :/
however i dont know if its yours
Click to expand...
Click to collapse
hopefully I did not press the :good: button
Will wait for someone to flash v2
Phil3759 said:
hopefully I did not press the :good: button
Will wait for someone to flash v2
Click to expand...
Click to collapse
i will test it in few hours and i report back
It works... I flashed the zip from chenglu cwm recovery. Thank you @Philz3759. Maybe you should also provide an Odin .tar file for those who can't flash it from a previous cwm recovery (not already installed)
djigane said:
It works... I flashed the zip from chenglu cwm recovery. Thank you @Philz3759. Maybe you should also provide an Odin .tar file for those who can't flash it from a previous cwm recovery (not already installed)
Click to expand...
Click to collapse
Great and thank you
Once final, I will provide zip and tar
I will release a v3, a bit experimental, but hope it works
v3 experimental
http://d-h.st/rBr
I hope someone can test this experimental build
I used a prebuilt dt.img combined with a compiled kernel from source
v2 was fine but I prefer having a cleaner solution by building kernel from sources. The issue is that I did not find how to build the dt.img file as dtb files are not built during make provided by Samsung
At worst, it won't boot to recovery and you have to use odin to flash another recovery or previous v2
Phil3759 said:
v3 experimental
http://d-h.st/rBr
I hope someone can test this experimental build
I used a prebuilt dt.img combined with a compiled kernel from source
v2 was fine but I prefer having a cleaner solution by building kernel from sources. The issue is that I did not find how to build the dt.img file as dtb files are not built during make provided by Samsung
At worst, it won't boot to recovery and you have to use odin to flash another recovery or previous v2
Click to expand...
Click to collapse
OK, flashed. Unfortunatelly, phone during reboots were going straight into download mode with red info saying: "cannot boot normal mode" or similar.
restored previous revovery and all seems fine.
sebarkh said:
OK, flashed. Unfortunatelly, phone during reboots were going straight into download mode with red info saying: "cannot boot normal mode" or similar.
restored previous revovery and all seems fine.
Click to expand...
Click to collapse
Thanks
I was expecting it as dtb must be compiled along kernel
However, Samsung sources are not compiling the needed dtb files needed by dtbtool
I am trying to learn how to compile dtb files from the dts scripts along the zImage
However, without a guinea pig device, it is time expensive
Meanwhile, I will provide you with a decent build using a cracked adbd binary to have adb shell with root privileges
I notify @Chenglu as he did a huge work on the dtbtool part
Found this reading:
http://www.armadeus.com/wiki/index.php?title=Kernel-with-device-tree
Will work from there and try a v4 soon
I could generate the dtb files
However, there is only dtbTool for Qcom
Dropping this until we have more decent sources from a developer more used to kernels or Samsung releases info for it if not yet

[Kernel][4.4.2][P605] Permissive Stock Kernel (OB1)

So guys ive experimented a bit and found out how to compile a kernel from source. Some guys here are waiting for permissive kernel to install linux deploys etc. Here it is. Not perfect yet, but seems to work. Has nothing special features. Uses my ramdisk from my xKat Rom with init.d support. So please dont ask for more features!! Its mostly pure stock. When i try to build a custom kernel, i will make a new thread for it.
Download
Stock_KK_Permissive_Kernel_NG1-p605
Stock_KK_Permissive_Kernel_NJ1-p605
Stock_KK_Permissive_Kernel_OB1-p605
How to install
Download the file and place the Zip on your intern or extern memory.
boot into Recovery
go on install into TWRP
look for where you placed the Zip
click on the zip an slide to the right
after that go to reboot
How to set permissive?
Permissive is not activ on boot. So use the App "Terminal Emulator"
open it
type su
type setenforce 0
to check it type
getenforce
and you will see its permissive now. But only for this session. If you rebot your device it will enforcing again.
Better choice is the App "SElinux Mode Changer".
Install it from Play Store
and set on permissive
It works with any boot now.:good:
Troubleshooting
if you have trouble with WLAN, delete your connection onetime
reconnect to your accesspoint and WLAN will work again.
Picture
View attachment 2886592​
Please hit "thanks" and rate this thread if you like my work or buy me a beer
​
Good, thanks a lot. Did you face problem like me - when compiled zImage, updated boot.img using abootimg -u -k ../../arch/arm/boot/zImage ...
I was flashed it and get into download mode. Tablet sayed - cannot boot os or something similar. Sorry for bad english.
Great job. Works fine. Thx
@Tautvaldas
Didnt tried it yet. Ive made it on windows cause my ramdisk of the NG1 kernel was there.
i made mine too, i did all the stuff like uv and zzmove gov added in,, but got problem during flash, sad
will test your thanks
Can someone build kernel with framebuffer console support - http://blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:fbcon
@hanspampel
A noob question - but it's better to be sure before start doing something
Moreover - you are the only who made a custom kernel for this device :highfive:
So: is it true I should only replace boot.img with original one (from original tar.md5 package) and change "misc" file with "ro.securestorage.support=true" to obtain zip recovery for flashing original kernel back?
Hi
Yepp it should work this way.
So added to this kernel the latest NJ1 ramdisk. Download in OP.
hanspampel said:
So added to this kernel the latest NJ1 ramdisk. Download in OP.
Click to expand...
Click to collapse
Isn't NK1 the latest one? Or no difference as for kernel part?
Yepp your right. NK1 is the latest, but my rom uses the dbt where is NJ1 the latest. But the NG1 works on NJ1 FW too. So i think there is no real modification on samsung side. Beside there is no another update from sources for p605 available. So that means, is there a modification from samsungs side, then only in ramdisk. This is why i changed it to NJ1 one. Maybe there is one who knows.
hanspampel said:
Yepp your right. NK1 is the latest, but my rom uses the dbt where is NJ1 the latest. But the NG1 works on NJ1 FW too. So i think there is no real modification on samsung side. Beside there is no another update from sources for p605 available. So that means, is there a modification from samsungs side, then only in ramdisk. This is why i changed it to NJ1 one. Maybe there is one who knows.
Click to expand...
Click to collapse
OK, and what about latest P605XXUDOB1?
Hi, sorry for late reply. So there is no newer update of kernel sources available. Only changing of ramdisk of newer fws is possible. But nobody knows if there are changes between the fws.
So added to this kernel the latest OB1 ramdisk. Download in OP.
hanspampel said:
So added to this kernel the latest OB1 ramdisk. Download in OP.
Click to expand...
Click to collapse
Thank you very much for not forgetting this project!
Just installed it - works well!
Hi hanspampel....can you help me,to make usb otg and charge make possible on the p605. I have the lavalink adapter tl-002,but wont work. Must be a kernel thing......would be phantastic.....
Gesendet von meinem SM-N9005 mit Tapatalk
hanspampel,
are you going to continue your work for 5.1.1?
Official sources for the kernel are already published here.
Yes i know. But atm i have not a building system runnig. So maybe if i found some time to setup all the stuff, we can get a new kernel. maybe. Not now, not tomorrow.

[KERNEL][MI-STOCK][GPL] Need testers

Hi,
I would like to request some testers who are currently running stock MIUI to test the stock kernel. Feel free to comment below.
Instructions:
- You should be on CWM
- Download zip
- Flash kernel
- reboot
- cross your fingers
What to check:
- WLAN -> see if it works
Source:
https://github.com/emceethemouth/kernel_cancro/tree/mi-stock
WLAN:
git://codeaurora.org/platform/vendor/qcom-opensource/wlan/prima/
blah blah blah
Wifi not working after flashing the kernel.
Armin_van_buuren said:
Wifi not working after flashing the kernel.
Click to expand...
Click to collapse
Hold on I'm uploading a new one.
Edit:
Attachment updated
Wifi doesn't work, everything else does.
alphoz said:
Wifi doesn't work, everything else does.
Click to expand...
Click to collapse
Ok thanks, seems MIUI still has no proper fix for it. Anyways will keep this thread posted for any updates. Thanks!
Gnome said:
Ok thanks, seems MIUI still has no proper fix for it. Anyways will keep this thread posted for any updates. Thanks!
Click to expand...
Click to collapse
Thanks to you, and all your hard work. I would also like to mention that the miband unlocking worked a lot better with your kernel than the MIUI stock one. Thanks again.
Wow. Thanks GNOME... Good to kernel for miui
Sent from my MI 3W using Tapatalk
Audahudi also build stock miui kernel. This also has same bugs, no WiFi, cit etc menu take while to open.
One bug I have doubt of is, whether all 4 cores work simultaneously. In my testing I saw most time 2 work, sometimes 3. Benchmarks also give scores like that. Also CPU performance control pro, which can set individual frequency of all cores could make 2 cores work together.
Any app you know which can monitor every core usage over period of time?
The 2nd bug is what I'm curious off, as I don't have WiFi lol.
Plus these miui kernel can be used in some custom Chinese KitKat ROMs. Iuni is 1 example, fiui I havent tested.
Gnome said:
Ok thanks, seems MIUI still has no proper fix for it. Anyways will keep this thread posted for any updates. Thanks!
Click to expand...
Click to collapse
Thanks for your hard work. But did you read this? https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-To-Use
I tried to compile kernel according to this instructions. Compilation through without problems. But kernel freeze while booting. I am not kernel developer, so don't have experience, how to debug it. If you find time, please can you try it?
Thanks
Pepe.II said:
Thanks for your hard work. But did you read this? https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-To-Use
I tried to compile kernel according to this instructions. Compilation through without problems. But kernel freeze while booting. I am not kernel developer, so don't have experience, how to debug it. If you find time, please can you try it?
Thanks
Click to expand...
Click to collapse
That happened to me when I did all that.
I found no solution, so I left it.
@Pepe.II you should see the issues section, I'm always there.
https://github.com/MiCode/Xiaomi_Kernel_OpenSource/issues/16
@Gnome
on what miui we should try stable or developer ?
Stable just to be safe.
Edit: @alexret, can you try the instructions on that misleading turorial but use my kernel source? Branch is mi-stable. I have a feeling it'll work
@Gnome anything with the bug I have doubt of?
@Gnome I tried to flash your kernel STX-MI-PRIMA-TEST-2015-06-24 from first post attachment.
Its only kernel, no modules included. This has a effect, that no modules are loaded while booting. When i try load module manually, it crashes with this message:
[email protected]:/ # insmod /system/lib/modules/wlan.ko
insmod: init_module '/system/lib/modules/wlan.ko' failed (Exec format error)
Please, can you compile kernel with modules? Thanks
@Me_Ashish_ its MIUIs kernel source, its incomplete it needs a lot of patches. And yes this kernel is just stock MIUI I added nothing to it just the opensource wlan from qualcomm w/c they claim works.
@Pepe.II thats the idea, the kernel should have it by default already, no need for the modules to be included in the package. The Modules are being built with the zImage-dtb itself, adding those modules to rhe zip package is very wrong. Adding it to the kernel package for CM Bases ROMs are just a work around, and I tell you know it wont work on stock MIUI ROM, unless you build MIUI from source and use my kernel source to be built with it.
Gnome said:
@Me_Ashish_ its MIUIs kernel source, its incomplete it needs a lot of patches. And yes this kernel is just stock MIUI I added nothing to it just the opensource wlan from qualcomm w/c they claim works.
@Pepe.II thats the idea, the kernel should have it by default already, no need for the modules to be included in the package. The Modules are being built with the zImage-dtb itself, adding those modules to rhe zip package is very wrong. Adding it to the kernel package for CM Bases ROMs are just a work around, and I tell you know it wont work on stock MIUI ROM, unless you build MIUI from source and use my kernel source to be built with it.
Click to expand...
Click to collapse
As far as I understand it, you did not compile drivers as modules but compile them as part of the kernel?. Ok. But why, when I look in to kmesg log (/proc/kmesg), I find not a single mention about the WLAN. That's weird. Are you sure, that WLAN part is compiled correctly?
@Pepe.II if Im building kernels wrong, by all means please guide me on how to build kernels correctly.
Well if I'm getting this kind of critisczm might as well stop this. Anyways thanks for all that tested, I'm dropping this.
Gnome said:
@Pepe.II if Im building kernels wrong, by all means please guide me on how to build kernels correctly.
Well if I'm getting this kind of critisczm might as well stop this. Anyways thanks for all that tested, I'm dropping this.
Click to expand...
Click to collapse
Sorry, I only asking, because I do not understand how you work with drivers. Prima WLAN you set as a module but I do not see any module in a flashable zip. You assume that your kernel will use modules from stock MIUI kernel?
I do not criticize, just asking. if this sounds like criticism, so it is due to my poor English and i am sorry.

[WIP] [Kernel] [magisk modules on stock rom]

complied from https://github.com/therootlord/android_kernel_motorola_msm8953
not my code, just sharing because i keep seeing people complain about magisk mods
Features:
-F2FS bug fixed (can flash magisk modules on stock)
-not sure what else
Flash in twrp
TODO:
-kexec-hardboot
-disable force-decrypt
Stock NPS26.116-45 kernel zip: Link
This was my first kernel compilation, let me know if something isn't working
Extreme-Plus-Kernel-nrdgd-1.zip compiled on nov-18-2017 Link: Google Drive
UPDATE, just found out wifi doesnt work, sorry, been traveling and didnt think to test. everything else seems to work tho.
heres an older version of the kernel not compiled by me until i figure this out
UPDATE 2 - wifi fixed
Extreme-Plus-Kernel-nrdgd-2.zip compiled on nov-19-2017 Link: Google Drive
It boots with aex 7.x - to early to say more
Phazmos said:
It boots with aex 7.x - to early to say more
Click to expand...
Click to collapse
wifi doesnt work for me, let me know if its working on yours and which model you have if you can
until then check OP for older version of the same kernel
wifi fixed
Ae3NerdGod said:
wifi doesnt work for me, let me know if its working on yours and which model you have if you can
until then check OP for older version of the same kernel
wifi fixed
Click to expand...
Click to collapse
Didn't notice it was broken - us version here.
It booted, but was very slow and laggy, even did a system cache wipe....Then restoring the default boot.img had wifi not working....Just FYI for those who want to try...Do a backup
Is the only benefit to have magisk modules on stock rom? I have XT1806 rooted TWRP r9 Gladius Magisk 14.3 flashed this kernel but kept booting straight to recovery...had to do a full restore. I'm looking for custom kernels that provide speed and power benefits. Thanks
Would you mind sharing the build sequence/commands?
THERAJ12 said:
Is the only benefit to have magisk modules on stock rom? I have XT1806 rooted TWRP r9 Gladius Magisk 14.3 flashed this kernel but kept booting straight to recovery...had to do a full restore. I'm looking for custom kernels that provide speed and power benefits. Thanks
Click to expand...
Click to collapse
Just a note on kernels
I've tested many many kernels on many devices. When they are configured the same, performance/battery is about the same. Any difference was slight enough to be considered noise in the test methods. I always suggest to learn about kernel parameters then tweak it to the way you want. Any kernel will give more performance, or battery life, or anything between - all depends on how you configure it.
Ps - same device, same twrp, supersu instead of magisc, no problems. Except seems not compatible with ex kernel manager - it doesn't apply settings. I believe it doesn't set proper permissions to be able to write. But hey, it's young and a stockish kernel, hope to see more.
Phazmos said:
Just a note on kernels
I've tested many many kernels on many devices. When they are configured the same, performance/battery is about the same. Any difference was slight enough to be considered noise in the test methods. I always suggest to learn about kernel parameters then tweak it to the way you want. Any kernel will give more performance, or battery life, or anything between - all depends on how you configure it.
Ps - same device, same twrp, supersu instead of magisc, no problems. Except seems not compatible with ex kernel manager - it doesn't apply settings. I believe it doesn't set proper permissions to be able to write. But hey, it's young and a stockish kernel, hope to see more.
Click to expand...
Click to collapse
EXKM seems to work fine on AEX rom using the butterfly governor good battery life and smooth.
revengineer said:
Would you mind sharing the build sequence/commands?
Click to expand...
Click to collapse
i had to use his toolchain, and fix a few includes for it to work. im going to try different ones to try and figure out the lag, maybe thats not whats causing it but im new at this . been reading logs all day
smokinjoe2122 said:
It booted, but was very slow and laggy, even did a system cache wipe....Then restoring the default boot.img had wifi not working....Just FYI for those who want to try...Do a backup
Click to expand...
Click to collapse
yeah, sorry. new at this. dont know if @geneticengineer wants me passing his old kernels he hasnt posted around either. if you can find his afh, he has a really old one on there thats way faster. im still learning, im working on pulling the stock modules and kernel to make a back to stock zip rn actually will post soon if you keep using it, it speeds up a tiny bit lol
THERAJ12 said:
Is the only benefit to have magisk modules on stock rom? I have XT1806 rooted TWRP r9 Gladius Magisk 14.3 flashed this kernel but kept booting straight to recovery...had to do a full restore. I'm looking for custom kernels that provide speed and power benefits. Thanks
Click to expand...
Click to collapse
planning kexec hardboot and disable force decrypt when i get the hang of this.
Phazmos said:
Just a note on kernels
Ps - same device, same twrp, supersu instead of magisc, no problems. Except seems not compatible with ex kernel manager - it doesn't apply settings. I believe it doesn't set proper permissions to be able to write. But hey, it's young and a stockish kernel, hope to see more.
Click to expand...
Click to collapse
actually i think i missed something in defconfig that enables the secondary processor, im also going to switch toolchains, expect a new kernel in a few days
Here's a link to GeneticEngineer's AFH-hosted original kernel from the TWRP thread. I don't think he'll mind it being reposted in this thread. This should tide people over until you can iron out the bugs in your build.
https://www.androidfilehost.com/?fid=745425885120765462
Thanks for picking up the baton and running with it, incidentally. I did ask GeneticEngineer to create a thread for his kernel but perhaps he missed the message.
THERAJ12 said:
Is the only benefit to have magisk modules on stock rom? I have XT1806 rooted TWRP r9 Gladius Magisk 14.3 flashed this kernel but kept booting straight to recovery...had to do a full restore. I'm looking for custom kernels that provide speed and power benefits. Thanks
Click to expand...
Click to collapse
i actually get those weird reboot to recovery bugs all the time on this device and 2 things fix it, booting to bootloader and picking "start" or a full restore
I tried version 2. I still couldn't get it to pass Magisk SafetyNet. I also noticed that this kernel breaks fingerprint gestures.
bishop0114 said:
I tried version 2. I still couldn't get it to pass Magisk SafetyNet. I also noticed that this kernel breaks fingerprint gestures.
Click to expand...
Click to collapse
GeneticEngineer's original both passes SafetyNet and leaves fingerprint gestures functional on my otherwise stock single Sim EU version:
https://www.androidfilehost.com/?fid=745425885120765462
Loccy said:
GeneticEngineer's original both passes SafetyNet and leaves fingerprint gestures functional on my otherwise stock single Sim EU version:
https://www.androidfilehost.com/?fid=745425885120765462
Click to expand...
Click to collapse
Thanks. I tried it and still wouldn't pass SafetyNet. The fingerprint gestures worked though. I am running it on a secondary ROM. Maybe that is causing the issue?
Loccy said:
GeneticEngineer's original both passes SafetyNet and leaves fingerprint gestures functional on my otherwise stock single Sim EU version:
https://www.androidfilehost.com/?fid=745425885120765462
Click to expand...
Click to collapse
I've built a fully working stock kernel which has the needed commits for Magisk modules to work correctly and passes SafetyNet [emoji6]. Need to do some more updating (upstream) but I plan on posting it soon, probably new thread (Resurrected Kernel).
bishop0114 said:
Thanks. I tried it and still wouldn't pass SafetyNet. The fingerprint gestures worked though. I am running it on a secondary ROM. Maybe that is causing the issue?
Click to expand...
Click to collapse
A stock based kernel isn't gonna play well with custom ROMs, unless your secondary ROM is a stock ROM? I plan on creating one for cm-14.1+ based ROMs too.
Jleeblanch said:
I've built a fully working stock kernel which has the needed commits for Magisk modules to work correctly and passes SafetyNet [emoji6]. Need to do some more updating (upstream) but I plan on posting it soon, probably new thread (Resurrected Kernel). A stock based kernel isn't gonna play well with custom ROMs, unless your secondary ROM is a stock ROM? I plan on creating one for cm-14.1+ based ROMs too.
Click to expand...
Click to collapse
If you need someone to beta test it, let me know. It is the only reason I am not running stock.

Categories

Resources