yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] obvious:
So, should safetynet pass if clean installing v4 over freedom 7.5 then flashing magisk + fix?

Getting ctsprofile and basicintegrity failures here. I did modify gps.conf but then reverted so I guess that shouldn't be an issue? Got to admit I'm not up to speed on this systemless thing either. I've always used SU but could do with running banking apps etc
[G4 Android Development] ozantankus@hotmail.com:
Hi dear..i install sauron sound modification.And i got this...this is working ? Or not?..i'm try on, Off settings but there is no changes..only volume working..
[G4 Android Development] kessaras:
re-download and try again v4 and tell me
[G4 Android Development] maydayind:
[QUOTEo=obvious;73694624]So, should safetynet pass if clean installing v4 over freedom 7.5 then flashing magisk + fix?

Getting ctsprofile and basicintegrity failures here. I did modify gps.conf but then reverted so I guess that shouldn't be an issue? Got to admit I'm not up to speed on this systemless thing either. I've always used SU but could do with running banking apps etc[/QUOTE]

Make sure to enable su hide and restart the service in settings

---------- Post added at 06:54 AM ---------- Previous post was at 06:21 AM ----------

V4 still brakes SD....
[G4 Android Development] kessaras:
this time sd configuration is the same with v2 that was working.......

i don't debug this now anymore. i'll see to this after i buy a new sd
[G4 Android Development] Astrako:
Of course this never will work since G4 lacks 32 bit DAC.
[G4 Android Development] stefan.kurz:
Sry, but it doesn't work. Always the Message that sd card is damaged.
[G4 Android Development] kessaras:
i found out why..................

los branches merged in.

https://github.com/Astrako/Titan-Kernel-H815/commit/782656e1b140012f28c4d8daf5c9f121fd164eda

i will fix it during the day
[G4 Android Development] gentr:
In v3 deep sleep not working more than 50 % and battery drain more faster than v1 and v2
[G4 Android Development] kessaras:
Reverted ExFat back

Many thanks to [MENTION=5545101]steadfasterX[/MENTION] ,

who helped me revert back.

Building now v4 again.
[G4 Android Development] kessaras:
sleep is working
[G4 Android Development] gentr:
Yes but in normal sleep is going 80% and more.
[G4 Android Development] kessaras:
someone test exfat again. should work if revert was successful

https://github.com/Astrako/Titan-Kernel-H815/blob/Nougat/drivers/base/power/wakeup.c

899 - 923 lines

if (ws->active) {
if (set)
ws->start_prevent_time = now;
else
update_prevent_sleep_time(ws, now);
}

wakeup.c file is kernel wakeup events + wakelock blocker implemented.

So , not kernel related.
[G4 Android Development] stefan.kurz:
Installed it right now. Sd card works fine. I'll test it.
[G4 Android Development] kessaras:
Great, thank you both (@agueijo) for reporting and testing. I didn't notice the Los branches were merged.

An accident while doing a reset here.

And thank you [MENTION=5545101]steadfasterX[/MENTION] for helping me fix it in one click
[G4 Android Development] agueijo:
Yes, with latest v4 sd card works well!

Thank you very much!
[G4 Android Development] kessaras:
Huh? Why flash that there? Titan is stock kernel in my unofficial RR ?

It should. And I will check it. But you don't need it in my RR , Titan is already there and it will get the updates with the next build. If it was something "to kill for" important , I would update the rom immidiately ;)
[G4 Android Development] saksoo:
Ah ok, I though since is los based should work. Will try it now thanks.
[G4 Android Development] bodonance:
H-ROM V30 PORT V2.1 no boot after 30 min. Overheat and nothing ... v1.7 to ... I try LOS version. It is correct for H Rom?
[G4 Android Development] Minto107:
HRom is not LOS based... do some research before flashing plz

Sent from Galaxy Tab A10 with 7300 battery ;)))
[G4 Android Development] saksoo:
ok sounds like great news to keep updating it :) I tried the LOS1.8 because I didn't find a mention that uses titan stock kernel. If i have time will try the normal 1.8. cheers.

Edit: tried normal 1.8 and does not boot either in RR. However, I didn't give it too much time to see it.
[G4 Android Development] bodonance:
https://xdaforums.com/g4/development/rom-h-rom-v30-port-t3672567

"Stock kernel in permissive. Removed rtcd. Recommended Titan Kernel if you don't mind FMRadio"

Titan Kernel is recommended but i dont know wich version i need.

Help.

Tanks
[G4 Android Development] Minto107:
There are only 3 versions of this kernel and all are self-explanatory. There is LOS version, and as LOS stands for LineageOS(aka older Cyanogenmod), no big cores(self-explainatory) and normal. Normal is for stock based ROMs, V30 port is based on stock v29 firmware version so this suits your needs
[G4 Android Development] jurastefo:
Maybe stupid question for Stock rom v29a is titan kernel in this folder https://androidfilehost.com/?w=files&flid=213113

Thats right?. And another question is for me titan kernel better options than kernel in v29a version?
[G4 Android Development] chris-89:
In this folder is the variant with No Big Cores.

In this folder https://androidfilehost.com/?w=files&flid=213170

is the variant with big cores.

Try it and make your experience.

I will try it in the next days too.

But make a backup of boot partition in TWRP. And when you have root and you flash boot partition or flash your boot backup, you must reflash root again. That's what kessaras said :good:
[G4 Android Development] tmihai20:
[MENTION=6919749]jurastefo[/MENTION]: you definitely need to flash root again if you are using systemless root. I am using Magisk and I always reflash the Magisk zip in recovery after each new kernel version and flash.
[G4 Android Development] straightup:
What governors do you recommend to be used by the CPU and GPU and do you recommend to disable the BIG cores from the Kernel Adiutor?
[G4 Android Development] raptorddd:
i gave you link to all this questions me myself didnt know but i read description and learned. but ill tell you

in my experience using different gov will make frequencies go to highest other will be more tame.

performance

elementaalx

intelliactive

blue active

ondemand

less performance

interactive

conservative

GPU

performance adreno tz

simpleondemand for tame setting.
[G4 Android Development] zx2c4:
For folks who are patching WireGuard into their kernel, but not building a WireGuard-ready ROM -- which I think applies to this thread here -- you may now download the recovery-flashable WireGuard tools, which have been built from the standalone makefile, and should work with all Android archs. These are required for using the kernel module with the GUI app.
[G4 Android Development] steadfasterX:
Awesome thx dude :)
[G4 Android Development] kessaras:
I had already added them in the ramdisk for the next build.

There is always a way for everything ;)

Will add your link in the OP until my next builds
[G4 Android Development] troullis2004:
Hello. I'm trying to find a configuration file for any VPN server to use in the wireguard gui app but I can't find any. Could you please point me to one? I don't know how to set up the app.
[G4 Android Development] zx2c4:
Some recent WireGuard changes I thought I should tell you about here.

If you've been previously building WireGuard as part of this kernel by actually committing the WireGuard source code, please stop doing this and instead move over to the new method, which was created in response to a few requests on the forums. It's also an important thing to do, because it ensures that things actually stay up to date. The below instructions follow from "Standalone Kernel Built-in Module" in the documentation.

First remove what you did before:

$ rm -rf path/to/kernel/net/wireguard # or just revert your previous commit

Now run the persistent patcher script and commit its results:

$ cd /tmp && git clone https://git.zx2c4.com/android_kernel_wireguard/
$ cd android_kernel_wireguard/standalone-kernel
$ ./patch-kernel.sh path/to/kernel
$ cd /tmp && rm -rf android_kernel_wireguard
$ cd path/to/kernel && git add . && git commit -m "net/wireguard: add to tree via updater mechanism"

That should be all that's required. This method is quite new, so it's possible there will be some friction, but let me know how it goes, and I'll address bugs quickly if there are any.

Also, the main WireGuard thread now has a link to a flashable zip for the tools.
[G4 Android Development] zx2c4:
There are a lot of people in #wireguard who are happy to help you with this kind of thing.
[G4 Android Development] kessaras:
thank you , testing it now.

EDIT:

building fine this way too :good:

EDIT2:

editing again to explain how i did it before.

i added repos to local manifest and i repo synced.

Afterwards i grabed the wireguard folder and copied it just like it is in my other pc.

At my other pc where i only build kernel , i have made scripts to automate everything.

With one click i git pull everything i need, make clean, make defconfig, make, grab the output and replace it in the correct ramdisk (depending which kernel i build),

recompile, mv it to an output folder of my choice , where finally i grab everything and share it. 1 click and everything is done.

So whatever method i use its fine by me ;)

[MENTION=6714849]INFERNO997[/MENTION]

PMs here in XDA don't let us send images.

Before:

After:

Starts with 601 and ends with 775.

Yes LG has done a terrible work. That's what I said many times mate. I can't reproduce your temperature issues here. Really.

It's maybe a hardware issue.

Edit: a transistor or a capacitor in a bad shape.

I can also connect it to charger and get same temp ?

That would also solve the freezer question! Instead of 25 I will have 27c
[G4 Android Development] INFERNO997:
[MENTION=5461026]kessaras[/MENTION] damn you put this phone in the freezer ? xD these temps are way low :D I have double high temps comparing your phone and mine .. LG did really bad job with these motherboards, what s/n is your phone ? Mine was 509 and they replaced my motherboard twice and now is 606. I hooked up my phone in service center on one of the testers that is recomended for LG and it passed all tests, so maybe they just did a really bad job with these motherboards and we can't do nothing about it. Thank you for sharing you temps. I have voltage and stability tests for your kernel, sending you a private message about kernel.
[G4 Android Development] adamz667:
[MENTION=5461026]kessaras[/MENTION]

How is it possible to got that low temperatures? Is this some thermal mod or sth? I can only get 33*C while idle. I also have 601 mb.
[G4 Android Development] kessaras:
How should I know ?

?

I'm in the coding side not hardware.

Edit:

Maybe , in YouTube you can find a video where it shows how to apply new thermal paste and maybe that will help with temperatures a bit
[G4 Android Development] tulen_kobi:
I can bake eggs on my phone so it is really phone dependant :)
[G4 Android Development] ufocus:
Yep here too. Hot as hell, while using XDA app 50*C.

While watching my series at 720p or 480p in popcorntime on WiFi 5GHz, 60% brightness gets the temps to 90*C

I got all this with Titan stock v1.7

MB serial starts with 704 and recently I kissed my ability to read microSD cards GOODBYE. And all this after I bought the phone with SN 602. "Just great experience", thank you f*****g LG!

At least we have great dedicated devs like [MENTION=5461026]kessaras[/MENTION] [MENTION=5545101]steadfasterX[/MENTION] to ease our lives!
[G4 Android Development] kessaras:
Soon we will have Oreo too ... For those that will survive to flash it lol. This phone is dying all around the world. Worst hardware ever.

Mine is fine :p must be one out of the 10.000 best g4 around the world. Lucky me.

I hope there are still people here until we have Oreo ready.
[G4 Android Development] marn3us:
I definitely will be (if my G4 keeps on being perfect)! Just let me know in case you will need testers because I like your ROMs and I love AOSCP ;)

I think good G4s are great phones, but unfortunately 90% of them have crappy hardware problems, especially outside EU...
[G4 Android Development] inteLzzz:
Mine keeps soft-bricking itself every week or so, weirdest stuff ever. Oh well at least it teached me to keep backups :D At least the temps are decent on mine. Can't wait to test Oreo when its available
[G4 Android Development] raptorddd:
i was about to ask you or stead about it. my warranty is iver maybe open up phone and do the thermal paste or even get a heatsink or pad not sure what works best.
[G4 Android Development] zx2c4:
Not sure I understand the meaning of the words. If you previously were doing it via the official android_kernel_wireguard local manifest, this still remains the preferred way:

<remote name="zx2c4" fetch="https://git.zx2c4.com/" />
<project remote="zx2c4" name="android_kernel_wireguard" path="kernel/wireguard" revision="master" sync-s="true" />

However, I had assumed you were doing something differently, since this thread is about a kernel, not a ROM.

So, in order of preference:

1. local manifest

2. standalone-kernel/patch-kernel.sh

3. whatever horrible mechanism that is different from these other two, such as copying source into your tree manually.

Does that make sense?
[G4 Android Development] lapist:
Is there any need to have such thing in the kernel? I guess most people won't use it..

What do you use wireguard for? Securing traffic when connected to open wifi, getting IP from different country and access content limited to it, connecting to PC at home or what? Which VPN servers you then use to connect to?

BTW, what is the change of GPU governor from simple ondemand to adreno good for? Won't it take more power now?
[G4 Android Development] zx2c4:
Yes, there is most certainly a need. Fortunately, if you're not using WireGuard, it doesn't really take up any real resources, so it's not an issue to have around.

People use secure network tunnels for all sorts of reasons and in all sorts of situations. Some folks like to have them on all the time. Some folks sometimes. Sometimes people want to tunnel the whole internet. Other times, people want to have private access to restricted networks (such as their home or server room). Sometimes people use it for security. Other times people use it for geo IP circumvention. Sometimes people run their own VPN servers. Other times people use commercial VPN servers. People have all sorts of uses, and I'm constantly amazed at the creative uses people are still coming up with that I didn't even foresee when creating it. You may very well read that, think about it for a few seconds, and decide, "meh, I don't care about this." Other people might read it and get excited and have ideas. The moral of the story is: different strokes for different folks, and if you're into secure network tunnels, WireGuard is the bee's knees.
[G4 Android Development] kessaras:
i use both ways now ;)

this thread is about kernel but this kernel is also the stock kernel for this phone.

LG never gave us Nougat source code and we dont have official support LG or Los. We grabed this from f500k korean variant and i evolved it to what it is now.

So yes i added the repos. Also added the standalone way.

Both ways together work nicely and we have Wireguard in roms and in kernel only builds for stock roms. So ALL roms have it.

Dont be against security , also we help a new project to evolve to something better.

ondemand can idle to 180mhz. Adreno was idling at 300mhz
[G4 Android Development] troullis2004:
I used to have exactly the same problem when I bought it. So the very second week I unlocked the BL and the magic started. Flashed custom roms ever since, no problems. And the phone somehow keeps cool, no bricks, soft reboots, kernel crashes or whatever. Really strange. Maybe some banging and falls did good instead of harm!!! ☺️
[G4 Android Development] Minto107:
So I'm not the only one who can't use SD Cards[emoji23][emoji23][emoji23] how many other issues does this phone have?
[G4 Android Development] lapist:
A lot it seems, but bootloop is on the top I guess :) Luckily mine still works with SD card fine, but I am loosing microUSB connector (PC doesn't see the phone when connected, quickcharge stopped working, luckily normal charging still works for now...)

Yes, I see there are a lot of uses and some of them look interesting. Are there any good free VPN servers with WireGuard?

Yes, I noticed that too...but that means that ondemand saves a bit more of battery, right? Or is there any noticeable performance drop in normal use (excluding 3D games), for which you switched back to Adreno?
[G4 Android Development] Jirrick:
Are you sure that is on phone side and not caused by cable(s)? I was getting loose connection myself, but after pulling bunch of lint from connector with toothpick and using brand new cable the connection is rock solid again...
[G4 Android Development] lapist:
Yes, I have about 5 cables, tried several of them and all have the same result...one cable even stopped working after using it to charge the phone. No lint is visible in the connector (I will try to dig in with a tootpick a bit, but I don't give it much hope). Somebody here wrote that he had the some problem and he had to get the microUSB connector replaced...
[G4 Android Development] zx2c4:
Yes, but as the creator of WireGuard, I don't like to advertise for one provider over another, so I'll let others fill in the details for you.
[G4 Android Development] kessaras:
One question.

Is there a reason to keep building for los and aosp here ?

Since LOS and AOSCP are the only up to date roms and already have Titan as default kernel.

I believe i should only keep building for stock based + a patch to disable big cores for those with motherboard issues.
[G4 Android Development] marn3us:
I guess the only good reason could be finding bug before ROM release.

But if it saves you developement and building time I agree with your idea ;)
[G4 Android Development] raptorddd:
no need to if they want kernel they should use your rom
[G4 Android Development] ~SUDHIR~:
After flashing this kernel

Im facing this prob

Phone automatic powering off :(

ROM official stock 7.0 V29A
[G4 Android Development] lapist:
Is there any way how to control Quick Charge in the kernel, like disable it, force it on, or use app like Fast Charge (kernel patch for that here )?

For example, Samsung has option at least to enable/disable Quick Charge in menu under battery options, but I didn't find anything like that on LG...
[G4 Android Development] tmihai20:
An app will not enable Fast Charge on the kernel. Moreover, why are you asking about interface stuff in the kernel topic? This kernel has Quick Charge, why link to a kernel patch that will most likely not apply on LG's kernel?. Mess with it and you may end up with a brick. I would not mess with the current that is charging the kernel in any way, even to disable Fast Charge.
[G4 Android Development] mxamd:
Hello, I want to thank you for all the effort you have made to keep our device updated and to ask you a question.

I have installed the mokee ROM on my H811, install the version Titan_kernel_H811_N_LOS_Based_v1.8 and Titan_kernel_H811_N-No_Big_Cores_LOS_Based_v1.8, in both cases I had bootloop, so I decided to install the ROM A.O.S.C.P: CypherOS [UNOFFICIAL] [TITAN] for H811 and it worked perfect.

My doubt is that if something else is needed to see if the kernel can work in Mokee ROM.

Thank you.
[G4 Android Development] kessaras:
Titan is coming from v30 sources. only my rom, tulen kobi LOS and genesixxbf3 LOS use 29a or newer blobs.
[G4 Android Development] lapist:
So it happened again today - the phone just died on low battery at around 12% battery level and when I connected it to charger and started the phone again, it went looping into white "Android is starting" screen. Clearing cache/dalvik didn't help, repair of /data partition from TWRP didn't do anything too, but restoring /data partition from last week's backup fixed it. As other people wrote it happened to them again, I am not isolated incident. What can be causing that? What could happen to /data partition that phone refuses to boot properly? Partition didn't look damaged (TWRP's file manager was browsing it fine and I didn't see any anomalies).

I am using stock v29a with this kernel.
[G4 Android Development] ufocus:
Happens to me from time to time. Symptoms are exactly the same. Restoring data partition fixed it.
[G4 Android Development] §SOLO§:
i have freedom rom and rooted using aroma but now that i changed to titan kernel it removed root ... is it normal ?
[G4 Android Development] lapist:
Yes, it is quite annoying to loose data and either wipe or get back to an old backup. We should find out what is causing that or how to fix that without wiping/restoring entire data partition. Perhaps just some file gets corrupted which could be deleted/restored only instead of loosing data.

Yes that is normal, you need to flash SuperSU again (or what you are using) after flashing the kernel from TWRP.
[G4 Android Development] Kevin.Silbstedt:
Just happened to me again, unfortunately for me, my battery died just before I wanted to do a backup, so I got no backup... damn.

I don't know if this problem is even related to this kernel, with a buggy devices like this, you can never be sure if it is software related. All I can say, is that I was using Lineage OS (unofficial builds by genesixxbf3) and it happend to me one time with 1.7 and one time with 1.8 of this kernel, not with older kernel versions, but I probably just got lucky.

According to the OP this kernel slightly lowers some voltages, could this maybe lead to a data corruption or make it more likely? Anyone had this happen to them on another kernel?
[G4 Android Development] pepo930:
This kernel is magic. Stock V29A was slow af, much slower than stock V20 and this thing turns the tables around.
[G4 Android Development] lapist:
Good to know that the problem is not limited to stock v29a ROM that I am using, but it also affects LineageOS. Hard to say if it happens also with stock kernel, we would need to ask in a different thread probably :) But definitely it is the most annoying thing happening on Android 7 with this phone... We will see if Kessaras has something to say about that.
[G4 Android Development] Minto107:
It's also due to damaged batteries. If you want to try it. Go full stock(stock v29 with stock kernel) and if you can reach 2% battery it means it's ROM/kernel combo if not it means your battery is damaged and there's only one thing to do to prevent this issue from happening. Buying new battery
[G4 Android Development] lapist:
New battery may help with early shutdown of the phone, but doesn't protect us from damage to data partition. Actually first time this problem happened to me, I had shut down the phone manually to insert a new SIM card, after that it didn't start anymore until I wiped /data.... I still had a lot of battery left.
[G4 Android Development] lapist:
Version 1.8 is significantly faster/smoother than previous one (at cost of battery life), however I noticed that it is mainly because of most of the things (like scrolling) are loading big cores now (and little cores are almost unused), while it was loading little cores in previous versions (where big cores were mostly unused). Is that intended behaviour?
[G4 Android Development] kessaras:
Cores are only used when they have to execute a task. By adding a input boost at big cores I only have them ready to run when they need to run.

For example , your PC cpu is running at 3ghz. If the load is zero will it spent any watt , or will it get hot ?

No.

So what you see is the cpu hz but if the load is zero then it doesn't spend any battery.

If there is a load , the big cores will execute it and respond faster because they are already higher than their lowest sleep value.