yashsingh1/xdaforums huggingface dataset:
[Moto G 2015 Original Android Development] luca_brasi:
Hey there,

I'm running lineageOS 14.1 with squid kernel (version r20) on my osprey.

Today I updated my TWRP from version 2.8.7r7 to latest 3.1.1r3 from here:

https://xdaforums.com/2015-moto-g/orig-development/twrp-twrp-moto-g-2015-t3170537

After factory-reset and Re-flashing lineageOS it was no longer possible to flash squid kernel via TWRP. The flashing-process was aborted with error 7. (Error installing zip file '*.* This package is for device: surnia, osprey, harpia, merlin, lux; this device is .

I tried three times (with and without restarts, open gapps), always the same problem, even after reflashing system.

With a downgrade to TWRP version 2.8.7r7 the problem was gone.

Don't know either it is a kernel or TWRP problem.

Anyone else faced that problem?
[Moto G 2015 Original Android Development] squid2:
Does it work on TWRP 3.1.1-r1? If it does, I probably need to update then flashing script for this kernel. I need to update the kernel one of these days anyway.
[Moto G 2015 Original Android Development] hovnonium:
Yes it does.
[Moto G 2015 Original Android Development] luca_brasi:
yeah, works fine with 3.1.1-r1.
[Moto G 2015 Original Android Development] IamAkshay:
can you add adreno idler on/ off switch for merlin.
[Moto G 2015 Original Android Development] hammmersmashface:
I too can no longer flash kernel after recent TWRP update
[Moto G 2015 Original Android Development] rahul9999:
Be patient guys.. dev is already working on an updated Kernel.. Also the issue highlighted many times.. please don't spam now.
[Moto G 2015 Original Android Development] farcgod:
Can i just install kernel for work good or i need to do some configs in kernel adiutor for all the upgrade ? Thanks !
[Moto G 2015 Original Android Development] spiritflare01:
I can't flash it on lineage 14.1 using twrp-osprey-3.1.1-r3.img - gives error about osprey version - so will wait for update.
[Moto G 2015 Original Android Development] stonny20:
Try flashing with the Official TWRP for osprey : https://dl.twrp.me/osprey/twrp-3.1.1-0-osprey.img
[Moto G 2015 Original Android Development] spiritflare01:
That is the official TWRP. Dev needs to update.
[Moto G 2015 Original Android Development] spiritflare01:
---------- Post added at 02:40 AM ---------- Previous post was at 02:34 AM ----------

Thanks to Squid. ?

I flashed this under Lineage 14.1. Is there a setting under Battery settings we should select to make best use of this kernel? Currently i have chosen "efficiency" profile and turned off automatic optimization. What is the best setting we should choose for this kernel ?
[Moto G 2015 Original Android Development] david.absenta:
Works in 8.0???

Enviado desde mi MotoG3 mediante Tapatalk
[Moto G 2015 Original Android Development] rahul9999:
Yes.. flash latest version 3.1.1_r3
[Moto G 2015 Original Android Development] justalemon:
After a big mess using TWRP via fastboot and sideload, the kernel is working on the XT1542 (LATAM Entel Chile) and Android 6.0.
[Moto G 2015 Original Android Development] squid2:
Squid Kernel r21

This is mainly a maintenance release with security updates. I also cherry picked commits needed for Oreo support, so it may work on Oreo ROMs, but I have not tested it on Oreo. I only tested on CM14.1. This should also support the stock Marshmallow ROM.
[Moto G 2015 Original Android Development] rahul9999:
Thank you so much for your contribution.. :)
[Moto G 2015 Original Android Development] hovnonium:
After flashing r21 it changes my time, offset maybe 3 and half hours. I use LoS 13. Reverting to r20 fixes this problem.

Edit: after flashing latest twrp and latest kernel again it got fixed...
[Moto G 2015 Original Android Development] Nikøs:
Is anyone flashed latest version in Android 8?? Does it have any problem or everything work smooth?
[Moto G 2015 Original Android Development] himfa71:
You are our (merlin's) saviour, thank you so much,
[Moto G 2015 Original Android Development] iamfarhanansari:
Is it working in oreo roms for merlin
[Moto G 2015 Original Android Development] AbhiAbhiBisht:
Just flashed the kernel on my Merlin. Do I have to do anything else now or just let it do its work? Also, why is it showing "sultan sprocket" in kernel version?
[Moto G 2015 Original Android Development] ALPHAWolf96:
Guess you've never flashed a kernel before. Anyway it's not necessary to do anything else but if you want to use the kernel at it's full potential, you can tweak it with any kernel manager apps ( kernel adiutor recommended). I suggest reading through some xda posts on kernel tweaking. Btw squid2 is just a username of sultan and sprocket is his machine's name.?
[Moto G 2015 Original Android Development] himfa71:
Sorry for late reply,

It is working in nougat, I didn't try in oreo, is there any stable oreo rom?
[Moto G 2015 Original Android Development] AbhiAbhiBisht:
Thanks for replying. I have used custom kernels before, lol. I meant if there are some recommended settings/tweaks that are tested for better performance and stability required to be done.
[Moto G 2015 Original Android Development] IronTechmonkey:
The scope of possibilities is broad enough that it is hard to make good recommendations from one usage case to another, especially without knowing the details (how the device is used in regards to processor demands and management). From preliminary research before installing the kernel (something anyone can do ;)), the "lionfish" CPU governor seemed interesting to me: https://androidmodguide.blogspot.mx/p/blog-page.html, see section: 96. Lionfish. I did not see much difference when using it but continue to use the this kernel because it prevents a reboot freeze that otherwise occurs in LOS 14.1. With an app such as Kernel Adiutor you can have access to many CPU tweaks, but be careful in there. You can find the aforementioned and other suggestions in previous posts in this thread.
[Moto G 2015 Original Android Development] AbhiAbhiBisht:
Thank you. That was very helpful.
[Moto G 2015 Original Android Development] Rafiue_SRA:
I m on squid twrp 3.1.1-r3 and I want to install latest squid twrp 3.2.0-r1. if I install from twrp itself then is there any issue? or I ve to install via fastboot mode?
[Moto G 2015 Original Android Development] himfa71:
I have installed from twrp and no problems so far
[Moto G 2015 Original Android Development] mhdafh:
How can i change hotplugs? Couldn't find such a tab in kernel auditor
[Moto G 2015 Original Android Development] Abhishek17599:
Will volte work on cm13 with this kernel (I am talking about merlin)?
[Moto G 2015 Original Android Development] rahul9999:
No
[Moto G 2015 Original Android Development] Abhishek17599:
Which kernel will work on cm13 or lineage 13 for volte on merlin??

Actually I thought of installing Kali Linux.... But I want volte too
[Moto G 2015 Original Android Development] himavanth.reddy925:
Volte is not a kernel feature.. You should flash volte patch for cm13
[Moto G 2015 Original Android Development] sauliiin:
Anyone using f2fs? Which partition? :)
[Moto G 2015 Original Android Development] thippu46:
Download Link URL is not working! Giving error "Couldn't Parse the URL" please check once
[Moto G 2015 Original Android Development] paradox_:
Hi! I'd like to ask if it is possible to add support for wireguard kernel module -> https://xdaforums.com/android/development/wireguard-rom-integration-t3711635

it would be a nice feature to have. there's also an app that works only on roms that have this module.
[Moto G 2015 Original Android Development] squid2:
Squid Kernel r22

This update brings a large serving of security updates. I finished it ten days ago on New Year's, but I only found time to release it today. Despite the branch name, I'm not formally supporting Oreo based ROMs at the moment. I've tested this on LineageOS 14.1, but it should also work on similar ROMs.
[Moto G 2015 Original Android Development] iamfarhanansari:
How to update kernel?

Can i flash r22 over r21?

Or i need to restore boot image then flash the update
[Moto G 2015 Original Android Development] Sher1234:
Flash it Over
[Moto G 2015 Original Android Development] sunnysky:
Use TWRP

Yes

No
[Moto G 2015 Original Android Development] squid2:
Squid Kernel r22b

This is a minor release with bug fixes related to the audio drivers. It should fix the ACDB loader (fixing low audio volume, speakerphone etc.). It also has some audio driver related security fixes. As usual, the download is on the downloads tab.
[Moto G 2015 Original Android Development] IronTechmonkey:
Some admittedly subjective tests of only the media stream using direct commands through tasker with AudioFX disabled (and no 3rd party media payers adding boost or eq) seem noticeably louder to me after installing the r22b.
[Moto G 2015 Original Android Development] Top_Fuel:
I did some simple tests and after installing r22b on my merlin(XT1556) the volume seems lower.

I will do more tests later to make sure.
[Moto G 2015 Original Android Development] Hedied4me:
Please take my comment with a grain of salt as I did not clean flash here and am using ARISE audio mod.

Using latest LOS 1/5/18 (osprey x1548) and updating r22 to r22b resulted in a higher call volume for me. LOS 1/5/18 seems to have introduced lower call volume for me as others reported, however r22b seems to have cleared up the issue for me.
[Moto G 2015 Original Android Development] IronTechmonkey:
Yep, that's worth another look. It seems more likely that the results would be either no improvement or a gain but then...could there be differences between Merlin and Osprey in this regard?
[Moto G 2015 Original Android Development] Top_Fuel:
I've gone back to the r22 version and the media volume is noticeably louder than r22b, the volume in a call is almost impossible to hear on the r22b, on the r22 is not perfect but is much louder.

My father has a osprey with everything stock, and comparing the two the media volume on my merlin is a little lower using r22, while with r22b is much lower, the volume in a call in his phone is much better even when I'm using the r22.

I don't know if my ROM has anything to do with this problem, I'm using ViperOS v3.0

Sorry is my English is bad, is not my first language.
[Moto G 2015 Original Android Development] IronTechmonkey:
Good point about the ROM, which by extension is one of the differences between Osprey and Merlin.Also, IMO there are few enough reports and enough variables to say at this point that it is unlikely that the kernel alone is causing the reduction in sound. FWIW: Technically I've not clean flashed because I've flashed one kernel on top of another but prior to that this was a particularly clean a test install of LOS (On Osprey).

---------- Post added at 02:44 AM ---------- Previous post was at 02:38 AM ----------

That does seem to reflect the expected timeline of sound related events between Osprey ROM and kernel. I'm using squid2's unofficial Osprey build from Jan 11 which is yet another variable but that should become the standard in the next build. Perhaps by next build more of us will be on the same combination of ROM kernel and more people will have reported, especially from Merlin.
[Moto G 2015 Original Android Development] Chiaki:
Best settings for both battery and performance?.

I am using LOS and with latest version r22b i think media volume is louder.
[Moto G 2015 Original Android Development] garak elim:
I'm using last ResurrectionRemix and my osprey had on kernel version r22b low in a call volume. I reverted back to version r22 and in a call volume is ok now.
[Moto G 2015 Original Android Development] squid2:
Is your RR build using the older proprietary binary versions? The r22b version is meant to be used with ROMs containing the updated proprietary binaries that I added to LineageOS a couple weeks ago.
[Moto G 2015 Original Android Development] Top_Fuel:
Is this applicable to merlin?

If so my problem with lower volume on r22b is probably because I'm not on LineageOS, I will probably go to LineageOS soon since it appears that ViperOS for merlin is not getting any more updates.
[Moto G 2015 Original Android Development] squid2:
Yes, this applies to merlin as well. The ROM needs to be in sync with the latest LineageOS proprietary binaries (which were taken from stock Nougat for lux/harpia).
[Moto G 2015 Original Android Development] Top_Fuel:
Ok, thank you, soon I will go to LineageOS and I will report back about the audio volume on merlin.
[Moto G 2015 Original Android Development] santo_007:
[MENTION=6485916]squid2[/MENTION]

i just flashed your kernel on stock rom but speaker volume of call is so low and i cant hear.

I know that there is an issue regarding incall low volume in lineage and your kernel fixes it(V22b).But this kernel does reverse to the stock rom.How can i fix it.

Doubt:

On stock rom i first installed your kernel, then magisk(which patches boot.img(replaced by your kernel).I know that replacing boot.img fixes this issue.But if i replaced it with stock boot.img magisk will be gone and wifi will not work(some modules.ko issue).So please tell me how to solve this
[Moto G 2015 Original Android Development] Kai Disobey:
Same here on Osprey with last AICP-Nougat Rom (Media volume as well).

Gesendet von meinem aicp_osprey mit Tapatalk
[Moto G 2015 Original Android Development] squid2:
If you are using an old (stock or not) ROM with the old (Marshmallow) ACDB loader, stay on r22 (not r22b). Alternatively, if you want to stick to a stock-like ROM, switch to a “Frankenstein” stock Nougat ROM “ported” from lux/harpia.
[Moto G 2015 Original Android Development] spectkiller:
you should add usb fast charge feature,,,, i think it would be great isn't? [MENTION=6485916]squid2[/MENTION] please reply to me
[Moto G 2015 Original Android Development] IronTechmonkey:
Some interesting info about that here: https://xdaforums.com/showpost.php?p=63290462&postcount=36, and in the following posts in that part of the thread.
[Moto G 2015 Original Android Development] adrianogoes:
Hey [MENTION=6485916]squid2[/MENTION] !

Thank you very much! :)

I flashed your r22b on my Osprey (XT1543) with LineageOS 14.1 20171229 yesterday morning and the phone is awesome!

Very stable and fast with a lot of juice late at night! :)
[Moto G 2015 Original Android Development] squid2:
I agree regarding adding a note to the first post, and was planning on adding such a notice.

Regarding "frankenstein" stock Nougat ROMS - this seems to be one such ROM: https://xdaforums.com/2015-moto-g/development/rom-stock-rom-6-0-1-optimized-t3609991

I'm not endorsing it, as I don't even have an osprey any more, and I don't follow its contents or development. However, it should work as long as it is using a suitable updated ACDB loader (which I assume the latest build of it is).
[Moto G 2015 Original Android Development] Top_Fuel:
As I said on the LineageOS for merlin thread, I installed the latest LineageOS and the in-call and media volumes are much better now. :D
[Moto G 2015 Original Android Development] spectkiller:
hi [MENTION=6485916]squid2[/MENTION] i am facing some issue regarding your kernel( r22b version) on my rooted lineage os build 20180119 is that system is taking about 600 -700 mb ram in running process which i think is very high and your kernel is taking ABOUT 100 mb of ram and one imformation i have to tell you that i change the read ahead value of internal storage to 512 kb from 128 kb and external sd card value to 1024 kb from 128 kb.... but i dont think it causes because of changing read ahead value as far i know ......... so please help me to understand it and fix it

thank you
[Moto G 2015 Original Android Development] IronTechmonkey:
I'm not having this issue but got curious about the various ways to determine the amount of RAM being used by kernel. FWIW by comparison, in LOS Osprey Jan 19 (with native LOS kernel) clean flashed onto Osprey XT1540; the command "grep Slab /proc/meminfo" reports about 45MB, but apparently few of these commands return a truly accurate value for amount of RAM used by kernel.

How did you determine kernel Ram usage?

What value do you get with squid2 kernel?

Also, although you may be right about the modified read ahead values not being a factor, have you tested with default values to verify that?

In any event, thanks for raising the topic. Now I'm exploring kernel properties on all droids and linux machines that I can. :)
[Moto G 2015 Original Android Development] Jota_8:
Hi! Is it possible to use the D2TW feature with this kernel? Or any plans to add it soon?

Thanks
[Moto G 2015 Original Android Development] Hedied4me:
Did you bother to search the thread? You are not the first to ask this here.
[Moto G 2015 Original Android Development] spectkiller:
first of all thanks for your attention and i think Kernel should be take less than 100 or 90 mb and the squid Kernel r22b in Los Osprey 19 Jan build is taking 128mb which greatly increase the system usage but it was not a big problem for me as i have 2gb ram model So atlast i have 700mb left but i want to understand the problem and Explore it ( and one thing to inform you that i was saying kernel should take less than 100 or 90 mb because before this kernel i was using ud kernel 7.0 by ahmad hadi and it take less than 100 mb or sometime 90 mb ) so please explain me if you are free enough and help me fix this

thank you and have a good day !??
[Moto G 2015 Original Android Development] IronTechmonkey:
To be clear, I'm not a developer, just another user of the kernel. You've stated again your opinion about what you size you expect the kernel to be but that was not my question. I repeat that many of the ways the people measure kernel size seem to be inaccurate so...

Would you please share how you are getting the values for the kernel (not your opinion but rather the actual method by which you get reported values) so that someone else could do the same thing and make a meaningful comparison.
[Moto G 2015 Original Android Development] spectkiller:
again thank you for your reply and yeah i got the value of kernel from the settings>Memory> memory use by app>android os> where kernel ram usage is showing
[Moto G 2015 Original Android Development] IronTechmonkey:
From what I've read elsewhere that is probably not an accurate representation of the kernel's memory usage. Let's try to compare the kernel you are using with the one I'm using by the method I mentioned above.

In a terminal (command prompt) run the command

grep Slab /proc/meminfo

It should report a value in kB

[EDIT] By your method the native LOS kernel reports as about 100MB, but be advised those memory stats you are looking at are 3 hour averages or more, they are not snapshots of what size the kernel is at a given moment in time. Even the more accurate value gotten by the command changes over time.
[Moto G 2015 Original Android Development] spectkiller:
sorry bro i can't do this for some day as my laptop is under repair and thanks for your information it really help me to understand the kernels a bit,,,,, so yeah can you please tell me the memory usage of the system in your osprey , please
[Moto G 2015 Original Android Development] IronTechmonkey:
I did in the previous post - about 100MB for "kernel" within "Android OS, just as you described. As to using a terminal to get the info, in this case it is fairly easy. You don't need a computer to run that command. That can be done on the device. If you use LOS; it has a terminal app in the ROM which can be enabled in Settings > Developer options > Local terminal. Alternatively a terminal app could be installed from Playstore https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en. In the terminal you would type the command that I described and see what value is reported. I'm not pressuring you to do this but if you do, please share the result.
[Moto G 2015 Original Android Development] spectkiller:
[MENTION=5119654]IronTechmonkey[/MENTION] I am extremely sorry that i am unable to find out kernel value and ofcourse i try to find but i can't b

so brother i have a request to you can u elaborate step by step if you have enough time for it

Btw i am not pressuring you but as you said it would be good if i share my results

so please help

thank you
[Moto G 2015 Original Android Development] jds190889:
kernel for android 8.1 pixel experience rom

is it possible you to update the rom for android 8.1 pixel experience rom ?

i am using moto g 2015 osprey
[Moto G 2015 Original Android Development] akhidiya:
Is this for Oreo?????
[Moto G 2015 Original Android Development] walter0157:
Yes for Oreo
[Moto G 2015 Original Android Development] akhidiya:
Plz give me the latest very link

---------- Post added at 05:09 PM ---------- Previous post was at 05:08 PM ----------

#version
[Moto G 2015 Original Android Development] akhidiya:
fukkkkk

I also stucked in the boot logo in moto g3
[Moto G 2015 Original Android Development] Top_Fuel:
Seems like at the moment it's not supported on Oreo.
[Moto G 2015 Original Android Development] ==vj==:
Working fine here on CM13 dual sim and root is also fine :cool:
[Moto G 2015 Original Android Development] spartan-117-mc:
awesome work, looking forward if you work something for the moto g turbo
[Moto G 2015 Original Android Development] minieod:
Cm13 version, I'm guessing, is the 11e_marshmallow?

Or is there a specific one that calls out to cm13
[Moto G 2015 Original Android Development] squid2:
Yes, the "squid_kernel_r11e-osprey-marshmallow.zip" is the CM13 compatible version.
[Moto G 2015 Original Android Development] pavanjadhaw:
Init.d support...?
[Moto G 2015 Original Android Development] ==vj==:
Marshmallow upgraded to 6.0.1 Can we expect a newer version of the kernel please :)

A few more CPU governor addition if possible as for user's choice. Smartmax, Badass and DanceDance Governors. They were fruitful on 1st gen.
[Moto G 2015 Original Android Development] squid2:
Squid Kernel r11f for CM13

I've posted a new CM13 compatible kernel build that will work with the recent CM13 builds. The file name is squid_kernel_r11f-osprey-marshmallow.zip

THIS BUILD IS ONLY FOR CM13 AND DERIVATIVES! This build is not for for the stock 5.1 ROM, or CM12.1, or the 6.0 soak test. I need Motorola's Marshmallow sources to support the 6.0 stock ROM. For Lollipop ROMs, continue using the previous r11e release.
[Moto G 2015 Original Android Development] MrTooPhone:
OTA Updates

If the stock bootloader remains, can OTA updates be applied with Squid Kernel installed?
[Moto G 2015 Original Android Development] Yousvel:
No
[Moto G 2015 Original Android Development] MrTooPhone:
So is there an easy kernel flasher (like the one frapeti made) or is TWRP needed? My thought is once rooted, flash kernel. Then when wanting an OTA update, flash stock kernel back, then unroot. Does this make sense?
[Moto G 2015 Original Android Development] Osid:
Why? Argument please...
[Moto G 2015 Original Android Development] Yousvel:
Because custom kernel+stock rom =customer rom.

Custom rom cannot get official ota to work.
[Moto G 2015 Original Android Development] theincognito:
WiFi broke after flashing it on RRM5.6.0-6.0.1 r3 (which is based on CM13.0). :(
[Moto G 2015 Original Android Development] squid2:
That means that your Resurrection Remix build is using older pre-commonisation sources. Try using the r11e-marshmallow build in the interim till the ROM is upfated.
[Moto G 2015 Original Android Development] feligoni:
You can use flashify to flash boot images, you will need to extract the squid zip and get the .img file. Also you'll need the stock .img.
[Moto G 2015 Original Android Development] Osid:
I've captured HTTPS request/response REST communication between device and Motorola server (hosted on Google AppEngine) during OTA check.

Request contains a JSON object with device info, serial and some extra informations about os.

Honestly there isn't any trace of custom kernel in request. Maybe os property is setted with "Linux:null:null" but I've found the same value in another build configurations.

So, I think that custom kernel doesn't affect OTA eligibility
[Moto G 2015 Original Android Development] theincognito:
Thanks! It worked! :D