yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] ayysir:
Yeah mpdecision goes below 960 on screen off due to mpdecision config.
[G2 Original Android Development] rodcpierce:
Does anyone have a link to 3.0?
[G2 Original Android Development] bigshotrob22:
Newest version works on unofficial Carbon 4.4.2 as well
[G2 Original Android Development] ayysir:
atm working on anykernel zip for g2 :x me and [MENTION=4852479]houstonn[/MENTION] did something ground breaking for g2 last few days
[G2 Original Android Development] ars0n:
if i had panties i would throw them at you.
[G2 Original Android Development] NervGaz:
Just out of interest. How are you managing to get the original ramdisk address and extracting the ramdisk? That's the part that foiled me, I was considering writing a custom unpackbootimg that incorporated parts of loki_flash into it to check if the dumped boot.img was lokied and pulling the address and offset from the loki patch bit but my dev machine is down so it didn't happen...
[G2 Original Android Development] matheus_sc:
Any spoiler?
[G2 Original Android Development] -Jesco-:
He's solving status 7 error while flashing, patience :P
[G2 Original Android Development] ALiENr0x:
Hi, OC for GPU will be available in future ?
[G2 Original Android Development] Deni_NS:
Here's the thing. Our GPU in G2 or any S800 with adreno 330 is beast. With clock 450mhz it beats everything and is smooth. Why, oh why would you want to OC GPU or even CPU? Because of smoothness? NO NEED. It's smooth as hot knife slicing butter.

Even now you can't play so much example Asphalt 8 or any intense game, because GPU eats battery. Why would you want to have less time to play your favourite game?

The problem here is throttling to have buttery smooth gaming.
[G2 Original Android Development] EniGmA1987:
A GPU overclock on other devices, even with beastly GPUs themselves, has been shown to be able to get even smoother gameplay and general use with UI animations and such and also help with the ability to use lower CPU speed and maintain proper smoothness in games. This can help lower heat, which reduces throttling, and will also increase battery life while gaming because the CPU is eating more battery than the GPU. If we can lower the CPU speed an extra 500-600MHz, and increase the GPU by 100-150MHz it will probably result in this battery life increase. Or it can be used to max out the CPU and GPU and go for big benchmark scores which can be fun to try and get from time to time.

Anyway, Id much rather have a 1.2GHz quad core CPU and a 600-700MHz GPU on my device. testing has shown this to be a far more optimal configuration than way more CPU power.
[G2 Original Android Development] Deni_NS:
You know that adreno 330 is eating battery like hell? It's not the CPU that eats battery, it's the GPU... There were testing and I think Erica and Supercurio tested that, not sure.
[G2 Original Android Development] ALiENr0x:
... i just asked cause i saw kernel for note 3 that allows CPU OC up to 3ghz and GPU up to 700mhz..
[G2 Original Android Development] phatmanxxl:
Because you can.

Why would I want to put a turbo on my Honda Civic? It goes to 0 to 60 just fine......because I can.
[G2 Original Android Development] ayysir:
wish i knew how to do that now because atm im getting a major headache in getting loki to work with my implement
[G2 Original Android Development] NervGaz:
Unpackbootimg can't handle lokied boot images, it ends up grabbing the loki shellcode instead of the ramdisk as that is what the boot image header points to. You would have to parse the header to get that address and go through the shellcode to get the original ramdisk address and patch the header back to that and use unpackbootimg. Or include that procedure in unpackbootimg. Most of the needed code is available to strip straight from the loki_patch and loki_flash sources... Hope that points you in the right direction... If my dev machine wasn't dead I'd have a go at it tonight but I haven't got the time to fix it at the moment....
[G2 Original Android Development] ayysir:
https://github.com/huaixzk/unpackbootimg

unpackboot.img repo^ let me know what i should do. I know c++ but not c lol. i work with cpp
[G2 Original Android Development] NervGaz:
The daughter decided to have a nightmare so I won't be able to do anything tonight, but I should have a couple of hours tomorrow. Won't be able to test anything but I should be able to edit the source enough for it to compile and hopefully make some sense to you...
[G2 Original Android Development] ayysir:
thanks for the help, no rush
[G2 Original Android Development] NervGaz:
No worries, should be a pretty quick job...
[G2 Original Android Development] NervGaz:
Yeah, like I said unpackbootimg extracts the loki shellcode instead of the ramdisk which is why gunzip and cpio can't extract the contents of the ramdisk and fails... It should be easy enough if I just copy the part of loki that identifies a lokied image and where it stores the original address for loading... It's all in the loki sources so it'll mainly be a cut and paste job...
[G2 Original Android Development] ayysir:
which c file is that?

loki_find.c

loki_patch.c

loki_flash.c
[G2 Original Android Development] NervGaz:
In loki_patch.c you'll find the code that identifies that an image has already been through loki. If this test is true get ramdisk address from header+0x400 which is where you find the loki header. You can get the sizes and offsets in loki.h, I hope this helps. If not I'll have a look in the morning...
[G2 Original Android Development] ayysir:
patch_shellcode function?
[G2 Original Android Development] NervGaz:
Look in main for

hdr = orig;
loki_hdr = orig + 0x400;

Pretty much have all you need is in that part of the code...
[G2 Original Android Development] ayysir:
not so fast. i need struct loki_hdr struct from loki.h and put it inot bootimg.h to use loki_hdr = orig
[G2 Original Android Development] NervGaz:
Well not really, but you'll need it to easily get the original ramdisk address. Those to bits just set up the pointers to where the headers are stored in the boot.img... You could do the math and extract it manually but that's gonna be creating more work than necessary so I would say add the loki_hdr struct and grab it from that...
[G2 Original Android Development] ayysir:
lol better yet bro, ill let you do it man. You're more knowledgeable. Thanks for the insite :) hope to see if you can make a new one

btw

gcc -o unpackbootimg.o -c unpackbootimg.c
unpackbootimg.c: In function ‘main’:
unpackbootimg.c:86:18: error: ‘orig’ undeclared (first use in this function)
header = orig;
^
unpackbootimg.c:86:18: note: each undeclared identifier is reported only once for each function it appears in
Makefile:30: recipe for target 'unpackbootimg.o' failed

SO IT SEEMS I NEED THESE IF STATEMENTS:

/* Map the original boot/recovery image */
if (fstat(ifd, &st)) {
printf("[-] fstat() failed.\n");
return 1;
}

orig = mmap(0, (st.st_size + 0x2000 + 0xfff) & ~0xfff, PROT_READ|PROT_WRITE, MAP_PRIVATE, ifd, 0);
if (orig == MAP_FAILED) {
printf("[-] Failed to mmap input file.\n");
return 1;
}
[G2 Original Android Development] NervGaz:
I'll have a look in the morning, and all you missed out was declaring orig as a void in the beginning of the procedure...
[G2 Original Android Development] xian_online:
when the OP was changed to works with CM it was working great with CM, I was having great results... starting on the 12/15 nightly it broke battery reporting all together, and some other funky stuff. It only started behaving badly on that flash.

He had originally only planed for PM but it was working on CM at the time I think was the deal. Then that nightly all of a sudden broke everything.
[G2 Original Android Development] ayysir:
this what i came up with:

https://github.com/Ayysir/unpackbootimg/commit/55ee61cd03858a6e5be6395520adf05e57f69b2a
[G2 Original Android Development] NervGaz:
The code that's needed is below the hdr stuff in loki_patch... I'll let you know what I come up with tomorrow....
[G2 Original Android Development] ayysir:
alright
[G2 Original Android Development] crzykiller:
Play Dead Trigger 2 with Tegra 4 Graphics on the newest maps that came out for it... it lagspikes to about 10-15fps and it isnt throttling. So GPU overclock might be needed. I think thats the only game that needs it, other than that everything is buttery smooth
[G2 Original Android Development] tuxing:
Tried the 3.5 alpha on cm11 latest nightly clean install

root is lost on reboot after install from twrp

thanks ayysir for the kernel, hope 4.0 will solve the isue
[G2 Original Android Development] C.Hatfield:
Check the OP .... kernel is only for PA ....
[G2 Original Android Development] houstonn:
I wouldn't play too much until [MENTION=4238916]ayysir[/MENTION] or implement a better thermal driver in kernel which will be most likely next release
[G2 Original Android Development] DaveHTC200:
Boot loop on int D802 (stock like ROM)
[G2 Original Android Development] ayysir:
:| ill just take down links til i can sort booting out.. phone coming soon
[G2 Original Android Development] dekkon:
A+ for effort
[G2 Original Android Development] jcallaway77:
On a LS980 using TWRP 2.6.3.3 this kernel wont boot... i had a boot loop for about a minute, booted to starting apps, crashed and wouldnt boot past animation again.
[G2 Original Android Development] ayysir:
Canadian builds were booting though
[G2 Original Android Development] fog918:
LS980 so far going good for me :)

very quick !!
[G2 Original Android Development] ayysir:
so +1 for sprint
[G2 Original Android Development] jcallaway77:
what recovery are you using?
[G2 Original Android Development] ayysir:
removed 800/801 builds from my server
[G2 Original Android Development] fog918:
TWRP 2.6.3.4
[G2 Original Android Development] jcallaway77:
Have you installed the V8 modem yet?
[G2 Original Android Development] ars0n:
May I have your babies good sir.

lol thank you!!! Cant wait to check it out! on vs980 4.4.1 rom..will let you know if it boots!

booted up once! got my home screen then just kept rebooting! seems like something is just BARELY off!!
[G2 Original Android Development] houstonn:
All good here on d803
[G2 Original Android Development] MaluNoPeleke:
Thanks a lot for this [MENTION=4238916]ayysir[/MENTION]!

Is it possible to release this kernel in a version that supports (nearly) every ROM? Would be great because we don't have a lot of kernel developers but different ROMs. This is possible without a problem on the Nexus series but I don't know if there is something special with this device.

Thanks
[G2 Original Android Development] beggar23:
Looks very interesting! Is it for PA only, or can I try with CM10.2?

Many thanks!
[G2 Original Android Development] djkinetic:
And now patiently waiting.
[G2 Original Android Development] darkobas:
D802 alsi stuck for me at the end of the boot anim. Couldbit be because i have art enabled?
[G2 Original Android Development] ayysir:
alright 800/801 users i fixed the build.... they are labeled debug on my server
[G2 Original Android Development] charlie95113:
Flash everything under twr
[G2 Original Android Development] ALiENr0x:
i used that kernel with slimkat and now with omnirom and works great :)
[G2 Original Android Development] NervGaz:
I've had a proper look at it and it's gonna be a tad more work than I thought, mostly as it looks like the entire image is rewritten and not just the values as I first thought. I would probably have to compare a non loki boot.img with one that has been lokied which could take a while as I don't have any decent tools installed on the pc I have access to.

Sadly with Christmas coming up I'm a bit swamped, the joys of having small children, so I won't be able to get round to doing anything for a while.

But if this still needs doing after Christmas I should hopefully have a bit more spare time to play with.
[G2 Original Android Development] croesus:
Can anyone mirror the latest version? I can not download because of our office's firewall.
[G2 Original Android Development] nnowak1103:
Kernel works very nice on Houston's beta 4.4.2 hope this kernel becomes as good as the s3s all star dev kernel you made. Thanks for the hard work
[G2 Original Android Development] osm0sis:
Gotta say I'm avidly awaiting this as well. I maintain a ramdisk unpacking tool and recently started getting requests for Loki support and was surprised to find there wasn't already a tool to de-loki images. I think whenever you can get to it, people will be grateful. :)

Better not to patch unpackbootimg and just make a standalone unloki tool though I'd imagine. :good:
[G2 Original Android Development] NervGaz:
I'm would say you're right, but on the other hand I don't see any other use for the feature than this. What I was considering was integrating loki_patch into mkbootimg as well basically making a loki specific set of tools for anykernel. But either way it's a lot like reinventing the wheel.

From what I can see loki completely repacks the boot image which means an unloki tool would basically be unpackbootimg but putting it back together again.
[G2 Original Android Development] jmileti:
Flash su in twrp to get root back. Anytime you flash this kernel you should flash su. Until root issue is resolved.

Op says for cm and pa only.
[G2 Original Android Development] ayysir:
v4 is up

changelog:

-- TCP default: westwood

-- Mpdecision minimum clocking fixed up

-- remove exfat support [compile issues]

-- ASoC: msm: Add 24 bit support to Primary MI2S TX

-- kexec-hardboot for multirom support ( [MENTION=4709667]Wootever[/MENTION] never got back to me about supporting multirom in twrp for g2)

-- dts: lm3630: lower min brightness to 1

-- Enable arch_power

-- USB: Bringups

-- Stop rom's mpdecision service

-- SaberMod 4.8.3 Toolchain

-- other stuff
[G2 Original Android Development] ayysir:
do what you can, wanted to do anykernel because me and [MENTION=4852479]houstonn[/MENTION] just did something epic with the kernels we have
[G2 Original Android Development] Ltilt2:
Is it normal for the device to be really hot 147 f?
[G2 Original Android Development] chrisexv6:
Is the something epic in V4? Or do I have to F5 for a while before I see it :)
[G2 Original Android Development] dragon36:
Anyone flash on cm 11 yet.. Do you still lose root.
[G2 Original Android Development] ayysir:
no dont bother doing that, not something you will just see and its not in v4.......

just hold on...compiling cm compatible versions now.....
[G2 Original Android Development] Lazy79:
Flashed on cm11 with supersu by Philz recovery. Still have root.
[G2 Original Android Development] Schrotty35:
I have flash v4 and my LG not Boot. See 1 second the LG Logo and then black. What can i do???

Gesendet von meinem Nexus 7 mit Tapatalk 4
[G2 Original Android Development] ayysir:
http://90.hostingsharedbox.com:3000/?dir=ayysir/CM

^ my kernel with CM ramdisk. should work np on cm roms
[G2 Original Android Development] Ltilt2:
Is this normal?
[G2 Original Android Development] ayysir:
what build are you on, always flash my new kernels on newest builds....
[G2 Original Android Development] ayysir:
either reboot or leave your phone alone for a few...

edit: i may have caught a bug... ill test now
[G2 Original Android Development] suhiiii:
Flashed on omni rom without problems so far.
[G2 Original Android Development] martindar:
In answer to the above question about losing root -- after you've flashed your rom and gapps flash SuperSu 1.86, you'll have root back its not a big problem you can find the Su zip easily in xda.
[G2 Original Android Development] Schrotty35:
Use latest pa.

Gesendet von meinem Nexus 7 mit Tapatalk 4
[G2 Original Android Development] ayysir:
cant help you if you dont tell em which variant
[G2 Original Android Development] suhiiii:
[MENTION=4238916]ayysir[/MENTION] Nice to see this multirom support,now we must wait compatible twrp to install more then one rom ?
[G2 Original Android Development] ayysir:
yeahh... cant use multirom without twrp support..........
[G2 Original Android Development] dragon36:
So far so good on cm11 vs980.. I'll give it a little bit and see how it works out. Thanks.
[G2 Original Android Development] waleedshiekh:
Clean installed CM11, Flashed v4, flashed SuperSu 1.80 but root not working. Any suggestions ? Thanks.

V4 is like melted butter. Very smooth. Thanks Dev.
[G2 Original Android Development] Ltilt2:
No change after rebooting and leaving device alone :(
[G2 Original Android Development] ayysir:
I just up'd cm version my kernel. View my download link for cm folder
[G2 Original Android Development] ruvort:
Omni VS980 latest kernel the knock on does not seem to function....
[G2 Original Android Development] Schrotty35:
Intl i have flash.

Gesendet von meinem Nexus 7 mit Tapatalk 4
[G2 Original Android Development] waleedshiekh:
Same issue with CM version. Cleaned install CM again, Flashed CM version and SuperSU 1.80 but root not working. It's enabled in Dev Options also. Thanks.

-------EDIT--------

SuperSU is not prompting. Root is working. In superSu I have set the RequestRoot->Grant. Root working fine. Thanks.

-------Edit 2-----

Flashed SuperSu 1.86. Everything is perfect now.
[G2 Original Android Development] ayysir:
Should work. Didn't change anything that would hinder that. But then again I don't support omni so who knows what they have implemented (shrugs)
[G2 Original Android Development] Ltilt2:
Let's try v4 again. hope the heat issue goes away but it's weird that I had about 90% battery left and in 1 hr it dropped to 63%..That's no bueno
[G2 Original Android Development] schukje:
Which one do i have to download for d802?

grtz from crazy bastard from Holland on my G2
[G2 Original Android Development] expertzero1:
The one that says international??? ¿???????¿???????????
[G2 Original Android Development] NOUFELP:
[MENTION=4238916]ayysir[/MENTION] Flashed V4 on D802. Everything looks good so far. I noticed that MP-Decision is off by default. Do you have something like intelliplug activated? :confused: Excuse me if this is a stupid question :sly:
[G2 Original Android Development] masri1987:
Thank you ayysir for including cm, on cyan fox 4.4.2
[G2 Original Android Development] xian_online:
I'm sorry to take up a dev post with this but:

THANK YOU SO MUCH! Just flashing v4 right now, but i've been flashing all your version since they went live. I just have to tell you how much it means to me that you and the others are working on a kernel for us for ASOP on this device, that I have fallen in love with. I adore this phone, and I've been praying to god for a good kernel for it to bring out its full soul. ASOP on this phone mod'd up right is a revelation, I can't stand the stock ROM, and kernel development means a ton to me. I want you and your contributors to know that I really really appreciate the work, and I know how much time and effort goes into something like this since I do Linux kernels for myself sometimes. Thank you very much, and I hope you have a wonderful Christmas and Holidays. Thanks for remembering us G2 guys. I'm a Verizon guy by necessity and I couldn't have a Nexus 5, so having G2 development is very important to me, I love this phone, and I love you guys.
[G2 Original Android Development] ayysir:
I like mpdecision better...
[G2 Original Android Development] ayysir:
Im Looking into it....
[G2 Original Android Development] NOUFELP:
I don't know if it is just me. The mp decision is not sticking in Trickster. Once activate the change, it goes back to off position.

Is it because you removed mp decision service from ROM (as per the change log)?:confused::

Thank you for your response and excellent work :thumbup: :D
[G2 Original Android Development] expertzero1:
Ultra low frequency support niceee
[G2 Original Android Development] ayysir:
.......because I have a different implement for it.....look at trickstermod again under sound control...........
[G2 Original Android Development] ars0n:
Also using the CM version...

I found that area, but, even with it off on the outer menu, clicking on the menu under sound control shows that it is infact on, but,

When I move to cpu screen to see whats active, when the phone is idle, all the cpus are still active. Dunno if thats what you expect or not? Shouldnt all cpus but 1 be turned off when mp kicks in?
[G2 Original Android Development] NOUFELP:
For me, some cores goes off even when the screen on if no activity :) I see that by default min CPU is set to two. So, I assume two cores will always be active unless we change it.:sly:
[G2 Original Android Development] suhiiii:
Wheatley governor , OC @ 2.5 . Amazing , will report full tomorrow to see would droping % be normal till the end.
[G2 Original Android Development] ayysir:
Seems for some reason heating issues was due to new toolchain. Also I'll look into intelli-plug for 4.5
[G2 Original Android Development] Ltilt2:
Thank you kind sir
[G2 Original Android Development] zekurosu:
mind sharing the link for 1.86 mate? thanks
[G2 Original Android Development] waleedshiekh:
OP: http://xdaforums.com/showthread.php?t=1538053

Download Link: http://download.chainfire.eu/372/SuperSU/UPDATE-SuperSU-v1.86.zip
[G2 Original Android Development] suhiiii:
I don't have any temp problem,temp between 40-45( with few apps oppened) ,but its normal for 2.5ghz. This is best battery i ever had on g2 on OC ,on stock with 2.4,2.5 oc max was 1:50min with 30% battery.

I am on OMNI ROM 1.1 and using ART,I flashed kernel while was on art ( don't know if this is important)

And with weatly governor I noticed in trickster thath 80% of time freq is on 300mhz,but in general ui smootnes ,multitasking etc ,it look like it's on 3ghz.

Rly strange thath other have problems :D
[G2 Original Android Development] xblackvalorx:
No heat issues here.

V4 is a huge improvement to me. The idle issues kept me away but now that they're fixed I have more speed and battery life than the stock kernel. Thanks op
[G2 Original Android Development] rodcpierce:
Alright. Tried using on PA 4.4.1 and lost knock on for some reason? Back on PA 4.4.2 and everything is working like a charm. I'll have to test battery life as that is why I initially left PA 4.4.2. I'll let it all settle out tonight and report back tomorrow. Thanks again Ayysir
[G2 Original Android Development] addicted1900:
Try this

echo 1 > /sys/devices/virtual/input/lge_touch/touch_gesture

This fixed it for me on slimbean and D802
[G2 Original Android Development] micr0g:
Smooth and fast, also some great results on Antutu 34100.

Thanks.
[G2 Original Android Development] ars0n:
Same phone and rom, knock on works fine. what nightly are you running on OSE and version of kernel? CM?
[G2 Original Android Development] addicted1900:
Paek v4 non cm kernel. The touch_input file was empty. After adding the 1 everything is alright as stated above.
[G2 Original Android Development] ars0n:
I used the CM kernel with no ill effects besides mp-desicion not working correctly, does yours work? ( do you see the cores shut off when not in use?)
[G2 Original Android Development] suppliesidejesus:
I'm on the CM build. Mpdecision seems to be keeping the cores on a LOT.

I mean, doesn't this seem kind of excessive?
[G2 Original Android Development] expertzero1:
yeah seems like mp decision is disabled with no replacement -_-
[G2 Original Android Development] ruvort:
Thank you! This fixed the issue.
[G2 Original Android Development] phatmanxxl:
Use Trickster Mod, Go in to MP Decision Control change min cpus to [1].

The only thing I've noticed is my phone won't use deep sleep, not sure if it's me or the new kernel but 3.5 it slept fine.
[G2 Original Android Development] matheus_sc:
I think is not kernel, deep sleep doing very good here
[G2 Original Android Development] ars0n:
OP stated earlier that even though it says off there is a mp-decision button and if you open it you can see that it is on...
[G2 Original Android Development] phatmanxxl:
Thanks for verifying it.
[G2 Original Android Development] sirmims:
I flashed and lost root but when I manually try booting into recovery it takes me to a factory reset screen instead? Anyone know what's wrong
[G2 Original Android Development] rodcpierce:
Deep sleep is working fine here as well.